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.

_markdown.less 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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 2em 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. ul.task-list,
  165. ol.task-list {
  166. list-style-type: none;
  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 0;
  313. margin: 0;
  314. font-size: 85%;
  315. background-color: rgba(0, 0, 0, .04);
  316. border-radius: 3px;
  317. }
  318. code:before,
  319. code:after,
  320. tt:before,
  321. tt:after {
  322. letter-spacing: -.2em;
  323. content: "\00a0";
  324. }
  325. code br,
  326. tt br {
  327. display: none;
  328. }
  329. del code {
  330. text-decoration: inherit;
  331. }
  332. pre > code {
  333. padding: 0;
  334. margin: 0;
  335. font-size: 100%;
  336. word-break: normal;
  337. white-space: pre;
  338. background: transparent;
  339. border: 0;
  340. }
  341. .highlight {
  342. margin-bottom: 16px;
  343. }
  344. .highlight pre,
  345. pre {
  346. padding: 16px;
  347. overflow: auto;
  348. font-size: 85%;
  349. line-height: 1.45;
  350. background-color: #f7f7f7;
  351. border-radius: 3px;
  352. }
  353. .highlight pre {
  354. margin-bottom: 0;
  355. word-break: normal;
  356. }
  357. pre {
  358. word-wrap: normal;
  359. }
  360. pre code,
  361. pre tt {
  362. display: inline;
  363. max-width: initial;
  364. padding: 0;
  365. margin: 0;
  366. overflow: initial;
  367. line-height: inherit;
  368. word-wrap: normal;
  369. background-color: transparent;
  370. border: 0;
  371. }
  372. pre code:before,
  373. pre code:after,
  374. pre tt:before,
  375. pre tt:after {
  376. content: normal;
  377. }
  378. kbd {
  379. display: inline-block;
  380. padding: 3px 5px;
  381. font-size: 11px;
  382. line-height: 10px;
  383. color: #555555;
  384. vertical-align: middle;
  385. background-color: #fcfcfc;
  386. border: solid 1px #cccccc;
  387. border-bottom-color: #bbbbbb;
  388. border-radius: 3px;
  389. box-shadow: inset 0 -1px 0 #bbbbbb;
  390. }
  391. input[type="checkbox"] {
  392. vertical-align: middle !important;
  393. }
  394. .csv-data td,
  395. .csv-data th {
  396. padding: 5px;
  397. overflow: hidden;
  398. font-size: 12px;
  399. line-height: 1;
  400. text-align: left;
  401. white-space: nowrap;
  402. }
  403. .csv-data .blob-num {
  404. padding: 10px 8px 9px;
  405. text-align: right;
  406. background: #ffffff;
  407. border: 0;
  408. }
  409. .csv-data tr {
  410. border-top: 0;
  411. }
  412. .csv-data th {
  413. font-weight: bold;
  414. background: #f8f8f8;
  415. border-top: 0;
  416. }
  417. .ui.list .list,
  418. ol.ui.list ol,
  419. ul.ui.list ul {
  420. padding-left: 2em;
  421. }
  422. }
  423. .repository.wiki.revisions {
  424. .ui.container > .ui.stackable.grid {
  425. -ms-flex-direction: row-reverse;
  426. flex-direction: row-reverse;
  427. > .header {
  428. margin-top: 0;
  429. .sub.header {
  430. padding-left: 52px;
  431. word-break: break-word;
  432. }
  433. }
  434. }
  435. }
  436. .file-revisions-btn {
  437. display: block;
  438. float: left;
  439. margin-bottom: 2px !important;
  440. padding: 11px !important;
  441. margin-right: 10px !important;
  442. i {
  443. -webkit-touch-callout: none;
  444. -webkit-user-select: none;
  445. -khtml-user-select: none;
  446. -moz-user-select: none;
  447. -ms-user-select: none;
  448. user-select: none;
  449. }
  450. }