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.

429 lines
7.2 KiB

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