_markdown.less 6.1 KB

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