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.

355 lines
5.2 KiB

  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. padding: 20px 20px 20px 13px;
  189. font-family: $core-font-monospace;
  190. white-space: pre;
  191. > code {
  192. border-radius: 5px;
  193. font-weight: 400;
  194. background-color: transparent;
  195. color: mc('blue-grey', '100');
  196. padding: 0;
  197. font-family: $core-font-monospace;
  198. font-size: 13px;
  199. }
  200. & + p {
  201. padding-top: 1em;
  202. }
  203. & + h1, & + h2, & + h3 {
  204. margin-top: 1px;
  205. }
  206. }
  207. .align-right {
  208. float:right;
  209. margin: 0 0 10px 10px;
  210. max-width: 30vw;
  211. }
  212. .align-center {
  213. text-align: center;
  214. }
  215. img.pagelogo {
  216. position: absolute;
  217. right: 20px;
  218. top: 20px;
  219. max-width: 200px;
  220. max-height: 100px;
  221. z-index: 3;
  222. }
  223. strong {
  224. color: mc('grey', '700');
  225. }
  226. .twa {
  227. font-size: 120%;
  228. }
  229. hr {
  230. margin: 20px;
  231. border-top: 1px dotted mc('grey', '500');
  232. }
  233. blockquote {
  234. background-color: mc('teal', '50');
  235. border: 1px solid mc('teal', '100');
  236. border-bottom-width: 2px;
  237. box-shadow: inset 0px 0px 0px 1px rgba(255,255,255,1);
  238. border-radius: 5px;
  239. padding: 0 10px;
  240. margin: 10px 20px;
  241. p {
  242. padding: 10px 0;
  243. color: mc('teal', '800');
  244. &:first-child {
  245. padding: 10px 0;
  246. }
  247. strong {
  248. color: inherit;
  249. }
  250. }
  251. &.is-danger {
  252. background-color: mc('red', '100');
  253. border-color: mc('red', '200');
  254. p {
  255. color: mc('red', '900');
  256. }
  257. }
  258. &.is-warning {
  259. background-color: mc('amber', '50');
  260. border-color: mc('amber', '200');
  261. p {
  262. color: darken(mc('amber', '900'), 10%);
  263. }
  264. }
  265. &.is-success {
  266. background-color: mc('green', '50');
  267. border-color: mc('green', '200');
  268. p {
  269. color: darken(mc('green', '900'), 10%);
  270. }
  271. }
  272. &.is-info {
  273. background-color: mc('blue', '50');
  274. border-color: mc('blue', '200');
  275. p {
  276. color: darken(mc('blue', '900'), 10%);
  277. }
  278. }
  279. }
  280. }