_markdown.less 7.0 KB

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