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 7.5KB

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