You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

526 lines
8.8 KiB

  1. .markdown:not(code) {
  2. overflow: hidden;
  3. font-size: 16px;
  4. line-height: 1.6 !important;
  5. word-wrap: break-word;
  6. &.ui.segment {
  7. padding: 3em;
  8. }
  9. &.file-view {
  10. padding: 2em !important;
  11. }
  12. > *:first-child {
  13. margin-top: 0 !important;
  14. }
  15. > *:last-child {
  16. margin-bottom: 0 !important;
  17. }
  18. a:not([href]) {
  19. color: inherit;
  20. text-decoration: none;
  21. }
  22. .absent {
  23. color: #cc0000;
  24. }
  25. .anchor {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. display: block;
  30. padding-right: 6px;
  31. padding-left: 30px;
  32. margin-left: -30px;
  33. }
  34. .anchor:focus {
  35. outline: none;
  36. }
  37. h1,
  38. h2,
  39. h3,
  40. h4,
  41. h5,
  42. h6 {
  43. position: relative;
  44. margin-top: 1em;
  45. margin-bottom: 16px;
  46. font-weight: bold;
  47. line-height: 1.4;
  48. &:first-of-type {
  49. margin-top: 0 !important;
  50. }
  51. }
  52. h1 .octicon-link,
  53. h2 .octicon-link,
  54. h3 .octicon-link,
  55. h4 .octicon-link,
  56. h5 .octicon-link,
  57. h6 .octicon-link {
  58. display: none;
  59. color: #000000;
  60. vertical-align: middle;
  61. }
  62. h1:hover .anchor,
  63. h2:hover .anchor,
  64. h3:hover .anchor,
  65. h4:hover .anchor,
  66. h5:hover .anchor,
  67. h6:hover .anchor {
  68. padding-left: 8px;
  69. margin-left: -30px;
  70. text-decoration: none;
  71. }
  72. h1:hover .anchor .octicon-link,
  73. h2:hover .anchor .octicon-link,
  74. h3:hover .anchor .octicon-link,
  75. h4:hover .anchor .octicon-link,
  76. h5:hover .anchor .octicon-link,
  77. h6:hover .anchor .octicon-link {
  78. display: inline-block;
  79. }
  80. h1 tt,
  81. h1 code,
  82. h2 tt,
  83. h2 code,
  84. h3 tt,
  85. h3 code,
  86. h4 tt,
  87. h4 code,
  88. h5 tt,
  89. h5 code,
  90. h6 tt,
  91. h6 code {
  92. font-size: inherit;
  93. }
  94. h1 {
  95. padding-bottom: .3em;
  96. font-size: 2.25em;
  97. line-height: 1.2;
  98. border-bottom: 1px solid #eeeeee;
  99. }
  100. h1 .anchor {
  101. line-height: 1;
  102. }
  103. h2 {
  104. padding-bottom: .3em;
  105. font-size: 1.75em;
  106. line-height: 1.225;
  107. border-bottom: 1px solid #eeeeee;
  108. }
  109. h2 .anchor {
  110. line-height: 1;
  111. }
  112. h3 {
  113. font-size: 1.5em;
  114. line-height: 1.43;
  115. }
  116. h3 .anchor {
  117. line-height: 1.2;
  118. }
  119. h4 {
  120. font-size: 1.25em;
  121. }
  122. h4 .anchor {
  123. line-height: 1.2;
  124. }
  125. h5 {
  126. font-size: 1em;
  127. }
  128. h5 .anchor {
  129. line-height: 1.1;
  130. }
  131. h6 {
  132. font-size: 1em;
  133. color: #777777;
  134. }
  135. h6 .anchor {
  136. line-height: 1.1;
  137. }
  138. p,
  139. blockquote,
  140. ul,
  141. ol,
  142. dl,
  143. table,
  144. pre {
  145. margin-top: 0;
  146. margin-bottom: 16px;
  147. }
  148. hr {
  149. height: 4px;
  150. padding: 0;
  151. margin: 16px 0;
  152. background-color: #e7e7e7;
  153. border: 0;
  154. }
  155. ul,
  156. ol {
  157. padding-left: 2em;
  158. }
  159. ul.no-list,
  160. ol.no-list {
  161. padding: 0;
  162. list-style-type: none;
  163. }
  164. li.task-list-item {
  165. list-style-type: none;
  166. margin-left: calc(-2em + 2px);
  167. }
  168. ul ul,
  169. ul ol,
  170. ol ol,
  171. ol ul {
  172. margin-top: 0;
  173. margin-bottom: 0;
  174. }
  175. ol ol,
  176. ul ol {
  177. list-style-type: lower-roman;
  178. }
  179. li > p {
  180. margin-top: 0;
  181. }
  182. dl {
  183. padding: 0;
  184. }
  185. dl dt {
  186. padding: 0;
  187. margin-top: 16px;
  188. font-size: 1em;
  189. font-style: italic;
  190. font-weight: bold;
  191. }
  192. dl dd {
  193. padding: 0 16px;
  194. margin-bottom: 16px;
  195. }
  196. blockquote {
  197. margin-left: 0;
  198. padding: 0 15px;
  199. color: #777777;
  200. border-left: 4px solid #dddddd;
  201. }
  202. blockquote > :first-child {
  203. margin-top: 0;
  204. }
  205. blockquote > :last-child {
  206. margin-bottom: 0;
  207. }
  208. table {
  209. width: auto;
  210. overflow: auto;
  211. word-break: keep-all;
  212. display: block;
  213. }
  214. table th {
  215. font-weight: bold;
  216. }
  217. table th,
  218. table td {
  219. padding: 6px 13px !important;
  220. border: 1px solid #dddddd !important;
  221. }
  222. table tr {
  223. background-color: #ffffff;
  224. border-top: 1px solid #cccccc;
  225. }
  226. table tr:nth-child(2n) {
  227. background-color: #f8f8f8;
  228. }
  229. img {
  230. max-width: 100%;
  231. box-sizing: border-box;
  232. }
  233. .emoji {
  234. max-width: none;
  235. }
  236. span.frame {
  237. display: block;
  238. overflow: hidden;
  239. }
  240. span.frame > span {
  241. display: block;
  242. float: left;
  243. width: auto;
  244. padding: 7px;
  245. margin: 13px 0 0;
  246. overflow: hidden;
  247. border: 1px solid #dddddd;
  248. }
  249. span.frame span img {
  250. display: block;
  251. float: left;
  252. }
  253. span.frame span span {
  254. display: block;
  255. padding: 5px 0 0;
  256. clear: both;
  257. color: #333333;
  258. }
  259. span.align-center {
  260. display: block;
  261. overflow: hidden;
  262. clear: both;
  263. }
  264. span.align-center > span {
  265. display: block;
  266. margin: 13px auto 0;
  267. overflow: hidden;
  268. text-align: center;
  269. }
  270. span.align-center span img {
  271. margin: 0 auto;
  272. text-align: center;
  273. }
  274. span.align-right {
  275. display: block;
  276. overflow: hidden;
  277. clear: both;
  278. }
  279. span.align-right > span {
  280. display: block;
  281. margin: 13px 0 0;
  282. overflow: hidden;
  283. text-align: right;
  284. }
  285. span.align-right span img {
  286. margin: 0;
  287. text-align: right;
  288. }
  289. span.float-left {
  290. display: block;
  291. float: left;
  292. margin-right: 13px;
  293. overflow: hidden;
  294. }
  295. span.float-left span {
  296. margin: 13px 0 0;
  297. }
  298. span.float-right {
  299. display: block;
  300. float: right;
  301. margin-left: 13px;
  302. overflow: hidden;
  303. }
  304. span.float-right > span {
  305. display: block;
  306. margin: 13px auto 0;
  307. overflow: hidden;
  308. text-align: right;
  309. }
  310. code,
  311. tt {
  312. padding: .2em .3em;
  313. margin: 0;
  314. font-size: 85%;
  315. background-color: rgba(0, 0, 0, .04);
  316. border-radius: 3px;
  317. }
  318. code br,
  319. tt br {
  320. display: none;
  321. }
  322. del code {
  323. text-decoration: inherit;
  324. }
  325. pre > code {
  326. padding: 0;
  327. margin: 0;
  328. font-size: 100%;
  329. word-break: normal;
  330. white-space: pre;
  331. background: transparent;
  332. border: 0;
  333. }
  334. .highlight {
  335. margin-bottom: 16px;
  336. }
  337. .highlight pre,
  338. pre {
  339. padding: 16px;
  340. overflow: auto;
  341. font-size: 85%;
  342. line-height: 1.45;
  343. background-color: #f7f7f7;
  344. border-radius: 3px;
  345. }
  346. .highlight pre {
  347. margin-bottom: 0;
  348. word-break: normal;
  349. }
  350. pre {
  351. word-wrap: normal;
  352. }
  353. pre code,
  354. pre tt {
  355. display: inline;
  356. max-width: initial;
  357. padding: 0;
  358. margin: 0;
  359. overflow: initial;
  360. line-height: inherit;
  361. word-wrap: normal;
  362. background-color: transparent;
  363. border: 0;
  364. }
  365. pre code:before,
  366. pre code:after,
  367. pre tt:before,
  368. pre tt:after {
  369. content: normal;
  370. }
  371. kbd {
  372. display: inline-block;
  373. padding: 3px 5px;
  374. font-size: 11px;
  375. line-height: 10px;
  376. color: #555555;
  377. vertical-align: middle;
  378. background-color: #fcfcfc;
  379. border: solid 1px #cccccc;
  380. border-bottom-color: #bbbbbb;
  381. border-radius: 3px;
  382. box-shadow: inset 0 -1px 0 #bbbbbb;
  383. }
  384. input[type="checkbox"] {
  385. vertical-align: middle !important;
  386. }
  387. .csv-data td,
  388. .csv-data th {
  389. padding: 5px;
  390. overflow: hidden;
  391. font-size: 12px;
  392. line-height: 1;
  393. text-align: left;
  394. white-space: nowrap;
  395. }
  396. .csv-data .blob-num {
  397. padding: 10px 8px 9px;
  398. text-align: right;
  399. background: #ffffff;
  400. border: 0;
  401. }
  402. .csv-data tr {
  403. border-top: 0;
  404. }
  405. .csv-data th {
  406. font-weight: bold;
  407. background: #f8f8f8;
  408. border-top: 0;
  409. }
  410. .ui.list .list,
  411. ol.ui.list ol,
  412. ul.ui.list ul {
  413. padding-left: 2em;
  414. }
  415. }
  416. .repository.wiki.revisions {
  417. .ui.container > .ui.stackable.grid {
  418. -ms-flex-direction: row-reverse;
  419. flex-direction: row-reverse;
  420. > .header {
  421. margin-top: 0;
  422. .sub.header {
  423. padding-left: 52px;
  424. word-break: break-word;
  425. }
  426. }
  427. }
  428. }
  429. .file-revisions-btn {
  430. display: block;
  431. float: left;
  432. margin-bottom: 2px !important;
  433. padding: 11px !important;
  434. margin-right: 10px !important;
  435. i {
  436. -webkit-touch-callout: none;
  437. -webkit-user-select: none;
  438. -khtml-user-select: none;
  439. -moz-user-select: none;
  440. -ms-user-select: none;
  441. user-select: none;
  442. }
  443. }