_markdown.less 6.6 KB

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