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.

377 lines
6.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: $icon-open;
  113. display: inline-block;
  114. font-family: 'core-icons';
  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. .align-right {
  222. float:right;
  223. margin: 0 0 10px 10px;
  224. max-width: 30vw;
  225. }
  226. .align-center {
  227. text-align: center;
  228. }
  229. img.pagelogo {
  230. position: absolute;
  231. right: 20px;
  232. top: 20px;
  233. max-width: 200px;
  234. max-height: 100px;
  235. z-index: 3;
  236. }
  237. strong {
  238. color: mc('grey', '700');
  239. }
  240. .twa {
  241. font-size: 120%;
  242. }
  243. hr {
  244. margin: 20px;
  245. border-top: 1px dotted mc('grey', '500');
  246. }
  247. blockquote {
  248. background-color: mc('teal', '50');
  249. background: linear-gradient(to bottom right, lighten(mc('teal', '50'), 5%), mc('teal', '50'));
  250. border: 1px solid mc('teal', '100');
  251. border-left-width: 7px;
  252. box-shadow: inset 0px 0px 0px 1px rgba(255,255,255,1);
  253. border-radius: 5px;
  254. padding: 0 10px;
  255. margin: 10px 20px;
  256. p {
  257. padding: 10px 0;
  258. color: mc('teal', '800');
  259. &:first-child {
  260. padding: 10px 0;
  261. }
  262. strong {
  263. color: inherit;
  264. }
  265. }
  266. &.is-danger {
  267. background-color: mc('red', '100');
  268. background: linear-gradient(to bottom right, lighten(mc('red', '50'), 5%), mc('red', '50'));
  269. border-color: mc('red', '200');
  270. p {
  271. color: mc('red', '900');
  272. }
  273. }
  274. &.is-warning {
  275. background-color: mc('amber', '50');
  276. background: linear-gradient(to bottom right, lighten(mc('amber', '50'), 5%), mc('amber', '50'));
  277. border-color: mc('amber', '200');
  278. p {
  279. color: darken(mc('amber', '900'), 10%);
  280. }
  281. }
  282. &.is-success {
  283. background-color: mc('green', '50');
  284. background: linear-gradient(to bottom right, lighten(mc('green', '50'), 5%), mc('green', '50'));
  285. border-color: mc('green', '200');
  286. p {
  287. color: darken(mc('green', '900'), 10%);
  288. }
  289. }
  290. &.is-info {
  291. background-color: mc('blue', '50');
  292. background: linear-gradient(to bottom right, lighten(mc('blue', '50'), 5%), mc('blue', '50'));
  293. border-color: mc('blue', '200');
  294. p {
  295. color: darken(mc('blue', '900'), 10%);
  296. }
  297. }
  298. }
  299. }