_markdown.less 6.2 KB

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