markdown-content.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. .mkcontent {
  2. font-size: 14px;
  3. color: mc('grey', '700');
  4. padding: 0 0 20px 0;
  5. h1, h2, h3 {
  6. font-weight: 400;
  7. margin: 10px 0 0;
  8. padding: 7px 20px;
  9. font-weight: 500;
  10. }
  11. h1 {
  12. background-color: mc('indigo', '50');
  13. border-bottom: 2px solid mc('indigo', '100');
  14. font-size: 18px;
  15. color: mc('indigo', '500');
  16. &:first-child {
  17. margin-top: 1px;
  18. }
  19. /*& + h2 {
  20. margin-top: 1px;
  21. border-top: none;
  22. }*/
  23. & + p {
  24. padding-top: 20px;
  25. }
  26. }
  27. h2 {
  28. background-color: lighten(mc('teal', '50'), 5%);
  29. border: 1px solid mc('teal', '100');
  30. border-right-width: 5px;
  31. border-top-left-radius: 3px;
  32. border-bottom-left-radius: 3px;
  33. font-size: 16px;
  34. color: mc('teal', '900');
  35. margin-left: 20px;
  36. }
  37. .indent-h2 {
  38. border-right: 5px solid mc('teal', '100');
  39. margin-left: 20px;
  40. padding-top: 1px;
  41. padding-bottom: 20px;
  42. overflow: hidden;
  43. & + h1, & + h2 {
  44. margin-top: 1px;
  45. }
  46. &:last-child {
  47. padding-bottom: 5px;
  48. }
  49. h3:first-child {
  50. margin-top: 0;
  51. border-top: none;
  52. }
  53. }
  54. h3 {
  55. background-color: lighten(mc('blue', '50'), 3%);
  56. border: 1px solid mc('blue', '100');
  57. border-right-width: 5px;
  58. border-top-left-radius: 3px;
  59. border-bottom-left-radius: 3px;
  60. font-size: 14px;
  61. color: mc('blue', '700');
  62. margin-left: 20px;
  63. margin-right: 1px;
  64. padding: 5px 20px;
  65. }
  66. .indent-h3 {
  67. border-right: 5px solid mc('teal', '100');
  68. margin-left: 20px;
  69. margin-right: 1px;
  70. padding-bottom: 10px;
  71. & + h1, & + h2, & + h3 {
  72. margin-top: 1px;
  73. }
  74. &:last-child {
  75. padding-bottom: 0;
  76. }
  77. }
  78. a {
  79. text-decoration: underline;
  80. font-weight: 400;
  81. &:hover {
  82. color: mc('blue', '700');
  83. }
  84. &.toc-anchor {
  85. font-size: 80%;
  86. color: mc('indigo', '300');
  87. border-bottom: none;
  88. text-decoration: none;
  89. &:visited {
  90. color: mc('indigo', '300') !important;
  91. }
  92. }
  93. &.external-link {
  94. position: relative;
  95. padding-left: 5px;
  96. //display: inline-flex;
  97. //align-items: center;
  98. &:before {
  99. content: $icon-open;
  100. display: inline-block;
  101. font-family: 'core-icons';
  102. font-style: normal;
  103. font-weight: normal;
  104. text-decoration: none;
  105. color: mc('grey', '500');
  106. font-size: 14px;
  107. margin-right: 5px;
  108. }
  109. &:hover:before {
  110. text-decoration: none;
  111. }
  112. }
  113. }
  114. ul {
  115. padding: 10px 0 10px 40px;
  116. list-style-type: square;
  117. li {
  118. padding: 1px 0;
  119. > ul {
  120. padding: 5px 0 5px 15px;
  121. list-style-type: disc;
  122. }
  123. p {
  124. padding: 0;
  125. &:first-child {
  126. padding: 0;
  127. }
  128. }
  129. }
  130. }
  131. ol {
  132. padding: 10px 40px;
  133. list-style-type: decimal;
  134. li {
  135. padding: 1px 0;
  136. }
  137. }
  138. p {
  139. padding: 10px 20px;
  140. &:first-child {
  141. padding-top: 20px;
  142. }
  143. &.is-gapless {
  144. padding: 0 20px;
  145. & + p {
  146. padding-top: 20px;
  147. }
  148. & + h1 {
  149. margin-top: 1px;
  150. }
  151. }
  152. }
  153. table {
  154. width: auto;
  155. border-collapse: collapse;
  156. margin: 10px 20px;
  157. font-size: 14px;
  158. th {
  159. background-color: mc('blue', '500');
  160. color: #FFF;
  161. border: 1px solid mc('blue', '500');
  162. padding: 5px 15px;
  163. &:first-child {
  164. border-left-color: mc('blue', '500');
  165. }
  166. &:last-child {
  167. border-right-color: mc('blue', '500');
  168. }
  169. }
  170. td {
  171. border: 1px solid mc('grey', '500');
  172. padding: 5px 15px;
  173. }
  174. tr:nth-child(even) {
  175. background-color: mc('grey', '100');
  176. }
  177. }
  178. code {
  179. font-weight: 500;
  180. color: mc('purple', '500');
  181. background-color: lighten(mc('purple', '50'), 5%);
  182. padding: 0 5px;
  183. border-radius: 4px;
  184. }
  185. pre {
  186. background-color: mc('blue-grey', '900');
  187. border-left: 7px solid mc('indigo', '500');
  188. border-top-left-radius: 5px;
  189. border-bottom-left-radius: 5px;
  190. padding: 20px 20px 20px 13px;
  191. font-family: $core-font-monospace;
  192. white-space: pre;
  193. > code {
  194. border-radius: 5px;
  195. font-weight: 400;
  196. background-color: transparent;
  197. color: mc('blue-grey', '100');
  198. padding: 0;
  199. font-family: $core-font-monospace;
  200. font-size: 13px;
  201. }
  202. & + p {
  203. padding-top: 1em;
  204. }
  205. & + h1, & + h2, & + h3 {
  206. margin-top: 1px;
  207. }
  208. }
  209. .align-right {
  210. float:right;
  211. margin: 0 0 10px 10px;
  212. max-width: 30vw;
  213. }
  214. .align-center {
  215. text-align: center;
  216. }
  217. img.pagelogo {
  218. position: absolute;
  219. right: 20px;
  220. top: 20px;
  221. max-width: 200px;
  222. max-height: 100px;
  223. z-index: 3;
  224. }
  225. strong {
  226. color: mc('grey', '700');
  227. }
  228. .twa {
  229. font-size: 120%;
  230. }
  231. hr {
  232. margin: 20px;
  233. border-top: 1px dotted mc('grey', '500');
  234. }
  235. blockquote {
  236. background-color: mc('teal', '50');
  237. border: 1px solid mc('teal', '100');
  238. border-bottom-width: 2px;
  239. box-shadow: inset 0px 0px 0px 1px rgba(255,255,255,1);
  240. border-radius: 5px;
  241. padding: 0 10px;
  242. margin: 10px 20px;
  243. p {
  244. padding: 10px 0;
  245. color: mc('teal', '800');
  246. &:first-child {
  247. padding: 10px 0;
  248. }
  249. strong {
  250. color: inherit;
  251. }
  252. }
  253. &.is-danger {
  254. background-color: mc('red', '100');
  255. border-color: mc('red', '200');
  256. p {
  257. color: mc('red', '900');
  258. }
  259. }
  260. &.is-warning {
  261. background-color: mc('amber', '50');
  262. border-color: mc('amber', '200');
  263. p {
  264. color: darken(mc('amber', '900'), 10%);
  265. }
  266. }
  267. &.is-success {
  268. background-color: mc('green', '50');
  269. border-color: mc('green', '200');
  270. p {
  271. color: darken(mc('green', '900'), 10%);
  272. }
  273. }
  274. &.is-info {
  275. background-color: mc('blue', '50');
  276. border-color: mc('blue', '200');
  277. p {
  278. color: darken(mc('blue', '900'), 10%);
  279. }
  280. }
  281. }
  282. }