app.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. /* THEME SPECIFIC STYLES */
  2. .contents {
  3. color: mc('grey', '800');
  4. padding-bottom: 50px;
  5. @at-root .theme--dark & {
  6. color: mc('grey', '300');
  7. a {
  8. color: mc('blue', '300');
  9. }
  10. }
  11. // ---------------------------------
  12. // HEADERS
  13. // ---------------------------------
  14. h1, h2, h3, h4, h5, h6 {
  15. position: relative;
  16. &:hover {
  17. .toc-anchor {
  18. display: block;
  19. }
  20. }
  21. .toc-anchor {
  22. display: none;
  23. position: absolute;
  24. right: 1rem;
  25. bottom: .5rem;
  26. font-size: 1.25rem;
  27. text-decoration: none;
  28. color: mc('grey', '500');
  29. }
  30. }
  31. h1 {
  32. padding-left: 24px;
  33. color: mc('blue', '800');
  34. margin-top: 2rem;
  35. position: relative;
  36. @at-root .theme--dark & {
  37. color: mc('grey', '400');
  38. }
  39. &::after {
  40. content: '';
  41. position: absolute;
  42. bottom: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 2px;
  46. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  47. @at-root .theme--dark & {
  48. background: linear-gradient(to right, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  49. }
  50. }
  51. & + h2, & + h3 {
  52. margin-top: 8px;
  53. }
  54. }
  55. h2 {
  56. margin-left: 24px;
  57. padding: 8px 0 0 0;
  58. color: mc('grey', '800');
  59. position: relative;
  60. margin-top: 1rem;
  61. @at-root .theme--dark & {
  62. color: mc('grey', '500');
  63. }
  64. &::after {
  65. content: '';
  66. position: absolute;
  67. bottom: 0;
  68. left: 0;
  69. width: 100%;
  70. height: 1px;
  71. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  72. @at-root .theme--dark & {
  73. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  74. }
  75. }
  76. & + h3 {
  77. margin-top: 8px;
  78. }
  79. }
  80. h3 {
  81. margin-left: 24px;
  82. padding: 8px 0 0 0;
  83. color: mc('grey', '700');
  84. position: relative;
  85. @at-root .theme--dark & {
  86. color: mc('grey', '600');
  87. }
  88. &::after {
  89. content: '';
  90. position: absolute;
  91. bottom: 0;
  92. left: 0;
  93. width: 100%;
  94. height: 1px;
  95. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0));
  96. }
  97. }
  98. // ---------------------------------
  99. // PARAGRAPHS
  100. // ---------------------------------
  101. p {
  102. padding: 1rem 24px 0 24px;
  103. margin: 0;
  104. text-align: justify;
  105. }
  106. hr {
  107. margin: 1rem;
  108. height: 1px;
  109. border: none;
  110. background-color: mc('grey', '400');
  111. @at-root .theme--dark & {
  112. background-color: mc('grey', '700');
  113. }
  114. }
  115. .emoji {
  116. height: 1.25em;
  117. margin: 0 1px -4px;
  118. }
  119. blockquote {
  120. padding: 0 0 1rem 0;
  121. border: 1px solid mc('blue', '500');
  122. border-radius: .5rem;
  123. margin: 1rem;
  124. > p:first-child .emoji {
  125. margin-right: .5rem;
  126. }
  127. &.is-info {
  128. background-color: mc('blue', '50');
  129. background-image: radial-gradient(ellipse at top, mc('blue', '50'), lighten(mc('blue', '50'), 5%));
  130. border-color: mc('blue', '100');
  131. box-shadow: 0 0 2px 0 mc('blue', '100');
  132. code {
  133. background-color: mc('blue', '50');
  134. color: mc('blue', '800');
  135. }
  136. @at-root .theme--dark & {
  137. background-color: mc('blue', '900');
  138. background-image: radial-gradient(ellipse at top, mc('blue', '900'), darken(mc('blue', '900'), 5%));
  139. border-color: mc('blue', '500');
  140. box-shadow: 0 0 2px 0 mc('grey', '900');
  141. }
  142. }
  143. &.is-warning {
  144. background-color: mc('orange', '50');
  145. background-image: radial-gradient(ellipse at top, mc('orange', '50'), lighten(mc('orange', '50'), 5%));
  146. border-color: mc('orange', '100');
  147. box-shadow: 0 0 2px 0 mc('orange', '100');
  148. code {
  149. background-color: mc('orange', '50');
  150. color: mc('orange', '800');
  151. }
  152. @at-root .theme--dark & {
  153. background-color: mc('orange', '900');
  154. background-image: radial-gradient(ellipse at top, mc('orange', '900'), darken(mc('orange', '900'), 5%));
  155. border-color: mc('orange', '500');
  156. box-shadow: 0 0 2px 0 mc('grey', '900');
  157. }
  158. }
  159. &.is-danger {
  160. background-color: mc('red', '50');
  161. background-image: radial-gradient(ellipse at top, mc('red', '50'), lighten(mc('red', '50'), 5%));
  162. border-color: mc('red', '100');
  163. box-shadow: 0 0 2px 0 mc('red', '100');
  164. code {
  165. background-color: mc('red', '50');
  166. color: mc('red', '800');
  167. }
  168. @at-root .theme--dark & {
  169. background-color: mc('red', '900');
  170. background-image: radial-gradient(ellipse at top, mc('red', '900'), darken(mc('red', '900'), 5%));
  171. border-color: mc('red', '500');
  172. box-shadow: 0 0 2px 0 mc('grey', '900');
  173. }
  174. }
  175. &.is-success {
  176. background-color: mc('green', '50');
  177. background-image: radial-gradient(ellipse at top, mc('green', '50'), lighten(mc('green', '50'), 5%));
  178. border-color: mc('green', '100');
  179. box-shadow: 0 0 2px 0 mc('green', '100');
  180. code {
  181. background-color: mc('green', '50');
  182. color: mc('green', '800');
  183. }
  184. @at-root .theme--dark & {
  185. background-color: mc('green', '900');
  186. background-image: radial-gradient(ellipse at top, mc('green', '900'), darken(mc('green', '900'), 5%));
  187. border-color: mc('green', '500');
  188. box-shadow: 0 0 2px 0 mc('grey', '900');
  189. }
  190. }
  191. }
  192. // ---------------------------------
  193. // LISTS
  194. // ---------------------------------
  195. ol, ul {
  196. padding: 1rem 24px 0 24px;
  197. list-style-position: inside;
  198. li + li {
  199. margin-top: .5rem;
  200. }
  201. }
  202. ul {
  203. list-style: none;
  204. > li::before {
  205. content: '\25b8';
  206. color: mc('grey', '600');
  207. display: inline-block;
  208. width: 1.35rem;
  209. }
  210. }
  211. // ---------------------------------
  212. // CODE
  213. // ---------------------------------
  214. code {
  215. background-color: mc('indigo', '50');
  216. padding: 0 5px;
  217. color: mc('indigo', '800');
  218. font-family: 'Source Code Pro', monospace;
  219. font-weight: normal;
  220. font-size: 1rem;
  221. box-shadow: none;
  222. &::before, &::after {
  223. display: none;
  224. }
  225. }
  226. .prismjs{
  227. border: none;
  228. border-radius: 5px;
  229. box-shadow: initial;
  230. background-color: mc('grey', '900');
  231. padding: 1rem 1rem 1rem 3rem;
  232. margin: 1rem 24px;
  233. > code {
  234. background-color: transparent;
  235. padding: 0;
  236. color: #FFF;
  237. box-shadow: initial;
  238. display: block;
  239. font-size: .85rem;
  240. font-family: 'Source Code Pro', monospace;
  241. &:after, &:before {
  242. content: initial;
  243. letter-spacing: initial;
  244. }
  245. }
  246. }
  247. // ---------------------------------
  248. // TASK LISTS
  249. // ---------------------------------
  250. .task-list-item {
  251. position: relative;
  252. list-style-type: none;
  253. &-checkbox[disabled] {
  254. display: none;
  255. & + label {
  256. padding-left: 1.5rem;
  257. }
  258. & + label::before {
  259. position: absolute;
  260. left: 0;
  261. top: 2px;
  262. content: ' ';
  263. display: block;
  264. width: 1.1rem;
  265. height: 1.1rem;
  266. background-color: #FFF;
  267. border: 1px solid mc('grey', '400');
  268. border-radius: 2px;
  269. font-weight: bold;
  270. font-size: .8rem;
  271. line-height: 1rem;
  272. text-align: center;
  273. @at-root .theme--dark & {
  274. background-color: mc('grey', '900');
  275. border-color: mc('grey', '700');
  276. }
  277. }
  278. &[checked] + label::before {
  279. content: '✓';
  280. }
  281. }
  282. .contains-task-list {
  283. padding: .5rem 0 0 1.5rem;
  284. }
  285. }
  286. // ---------------------------------
  287. // TABLES
  288. // ---------------------------------
  289. table {
  290. margin: .5rem 1.75rem;
  291. border-spacing: 0;
  292. th {
  293. padding: .75rem;
  294. border-bottom: 2px solid mc('grey', '500');
  295. color: mc('grey', '600');
  296. }
  297. td {
  298. padding: .75rem;
  299. }
  300. tr {
  301. td {
  302. border-bottom: 1px solid mc('grey', '200');
  303. }
  304. }
  305. }
  306. }