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.

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