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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. .markdown {
  2. background-color: white;
  3. font-size: 16px;
  4. line-height: 24px;
  5. .markdown-body {
  6. padding-left: 24px;
  7. padding-right: 16px;
  8. }
  9. h5,
  10. h6 {
  11. font-size: 1em;
  12. }
  13. ul {
  14. padding: 10px 0 0 15px;
  15. li {
  16. list-style: inside;
  17. }
  18. }
  19. ol li {
  20. list-style: decimal inside;
  21. }
  22. li {
  23. line-height: 1.6;
  24. margin-top: 6px;
  25. &:first-child {
  26. margin-top: 0;
  27. }
  28. }
  29. > pre {
  30. font-size: 14px;
  31. line-height: 1.6;
  32. overflow: auto;
  33. border: 1px solid #ddd;
  34. border-radius: .25em;
  35. margin: 5px 0;
  36. padding: 10px;
  37. background-color: #f8f8f8;
  38. }
  39. img {
  40. padding: 10px 0;
  41. max-width: 100%;
  42. }
  43. }
  44. .markdown a {
  45. color: #428BCA;
  46. }
  47. .markdown h1,
  48. .markdown h2,
  49. .markdown h3,
  50. .markdown h4,
  51. .markdown h5,
  52. .markdown h6 {
  53. line-height: 1.7;
  54. padding: 15px 0 0;
  55. margin: 0 0 15px;
  56. color: #444;
  57. font-weight: bold;
  58. }
  59. .markdown h1,
  60. .markdown h2 {
  61. border-bottom: 1px solid #E0E0E0;
  62. }
  63. .markdown h2 {
  64. border-bottom: 1px solid #E0E0E0;
  65. }
  66. .markdown h1 {
  67. color: #000;
  68. font-size: 33px
  69. }
  70. .markdown h2 {
  71. color: #333;
  72. font-size: 28px
  73. }
  74. .markdown h3 {
  75. font-size: 22px
  76. }
  77. .markdown h4 {
  78. font-size: 18px
  79. }
  80. .markdown table {
  81. border-collapse: collapse;
  82. border-spacing: 0;
  83. display: block;
  84. overflow: auto;
  85. width: 100%;
  86. margin: 0 0 9px;
  87. }
  88. .markdown table th {
  89. font-weight: 700
  90. }
  91. .markdown table th,
  92. .markdown table td {
  93. border: 1px solid #DDD;
  94. padding: 6px 13px;
  95. }
  96. .markdown table tr {
  97. background-color: #FFF;
  98. border-top: 1px solid #CCC;
  99. }
  100. .markdown table tr:nth-child(2n) {
  101. background-color: #F8F8F8
  102. }
  103. .markdown dl dt {
  104. font-style: italic;
  105. margin-top: 9px;
  106. }
  107. .markdown dl dd {
  108. margin: 0 0 9px;
  109. padding: 0 9px;
  110. }
  111. .markdown blockquote,
  112. .markdown blockquote p {
  113. font-size: 14px;
  114. background-color: #f5f5f5;
  115. }
  116. .markdown > pre.linenums {
  117. padding: 0;
  118. }
  119. .markdown > pre > ol.linenums {
  120. list-style: none;
  121. padding: 0;
  122. }
  123. .markdown > pre > ol.linenums > li {
  124. margin-top: 2px;
  125. }
  126. .markdown > pre.nums-style > ol.linenums {
  127. list-style-type: decimal;
  128. padding: 0 0 0 40px;
  129. -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  130. box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  131. }
  132. .markdown > pre > code {
  133. white-space: pre;
  134. word-wrap: normal;
  135. }
  136. .markdown > pre > ol.linenums > li {
  137. padding: 0 10px;
  138. }
  139. .markdown > pre > ol.linenums > li:first-child {
  140. padding-top: 12px;
  141. }
  142. .markdown > pre > ol.linenums > li:last-child {
  143. padding-bottom: 12px;
  144. }
  145. .markdown > pre.nums-style > ol.linenums > li {
  146. border-left: 1px solid #ddd;
  147. }
  148. .markdown hr {
  149. border: none;
  150. color: #ccc;
  151. height: 4px;
  152. padding: 0;
  153. margin: 15px 0;
  154. border-bottom: 2px solid #EEE;
  155. }
  156. .markdown blockquote:last-child,
  157. .markdown ul:last-child,
  158. .markdown ol:last-child,
  159. .markdown > pre:last-child,
  160. .markdown > pre:last-child,
  161. .markdown p:last-child {
  162. margin-bottom: 0;
  163. }
  164. .markdown .btn {
  165. color: #fff;
  166. }
  167. .markdown h1 a,
  168. .markdown h2 a,
  169. .markdown h3 a {
  170. text-decoration: none;
  171. }
  172. .markdown h1 a.anchor,
  173. .markdown h2 a.anchor,
  174. .markdown h3 a.anchor,
  175. .markdown h4 a.anchor,
  176. .markdown h5 a.anchor,
  177. .markdown h6 a.anchor {
  178. text-decoration: none;
  179. line-height: 1;
  180. padding-left: 0;
  181. margin-left: -24px;
  182. top: 15%;
  183. }
  184. .markdown a span.octicon {
  185. font-size: 16px;
  186. line-height: 1;
  187. display: inline-block;
  188. text-decoration: none;
  189. -webkit-font-smoothing: antialiased;
  190. margin-left: 30px;
  191. }
  192. .markdown a span.octicon-link {
  193. opacity: 0;
  194. color: #444;
  195. }
  196. .markdown h1:hover .octicon-link,
  197. .markdown h2:hover .octicon-link,
  198. .markdown h3:hover .octicon-link,
  199. .markdown h4:hover .octicon-link,
  200. .markdown h5:hover .octicon-link,
  201. .markdown h6:hover .octicon-link {
  202. display: inline-block;
  203. opacity: 1;
  204. }
  205. /* Author: jmblog */
  206. /* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
  207. /* GitHub Theme */
  208. /* Pretty printing styles. Used with prettify.js. */
  209. /* SPAN elements with the classes below are added by prettyprint. */
  210. /* plain text */
  211. .pln {
  212. color: #333333;
  213. }
  214. @media screen {
  215. /* string content */
  216. .str {
  217. color: #dd1144;
  218. }
  219. /* a keyword */
  220. .kwd {
  221. color: #333333;
  222. }
  223. /* a comment */
  224. .com {
  225. color: #999988;
  226. font-style: italic;
  227. }
  228. /* a type name */
  229. .typ {
  230. color: #445588;
  231. }
  232. /* a literal value */
  233. .lit {
  234. color: #445588;
  235. }
  236. /* punctuation */
  237. .pun {
  238. color: #333333;
  239. }
  240. /* lisp open bracket */
  241. .opn {
  242. color: #333333;
  243. }
  244. /* lisp close bracket */
  245. .clo {
  246. color: #333333;
  247. }
  248. /* a markup tag name */
  249. .tag {
  250. color: navy;
  251. }
  252. /* a markup attribute name */
  253. .atn {
  254. color: teal;
  255. }
  256. /* a markup attribute value */
  257. .atv {
  258. color: #dd1144;
  259. }
  260. /* a declaration */
  261. .dec {
  262. color: #333333;
  263. }
  264. /* a variable name */
  265. .var {
  266. color: teal;
  267. }
  268. /* a function name */
  269. .fun {
  270. color: #990000;
  271. }
  272. }
  273. /* Use higher contrast and text-weight for printable form. */
  274. @media print,
  275. projection {
  276. .str {
  277. color: #006600;
  278. }
  279. .kwd {
  280. color: #006;
  281. font-weight: bold;
  282. }
  283. .com {
  284. color: #600;
  285. font-style: italic;
  286. }
  287. .typ {
  288. color: #404;
  289. font-weight: bold;
  290. }
  291. .lit {
  292. color: #004444;
  293. }
  294. .pun,
  295. .opn,
  296. .clo {
  297. color: #444400;
  298. }
  299. .tag {
  300. color: #006;
  301. font-weight: bold;
  302. }
  303. .atn {
  304. color: #440044;
  305. }
  306. .atv {
  307. color: #006600;
  308. }
  309. }
  310. /* Specify class=linenums on a pre to get line numbering */
  311. ol.linenums {
  312. margin-top: 0;
  313. margin-bottom: 0;
  314. }