app.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. @at-root .theme--dark & {
  61. color: mc('grey', '500');
  62. }
  63. &::after {
  64. content: '';
  65. position: absolute;
  66. bottom: 0;
  67. left: 0;
  68. width: 100%;
  69. height: 1px;
  70. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  71. @at-root .theme--dark & {
  72. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  73. }
  74. }
  75. & + h3 {
  76. margin-top: 8px;
  77. }
  78. }
  79. h3 {
  80. margin-left: 24px;
  81. padding: 8px 0 0 0;
  82. color: mc('grey', '700');
  83. position: relative;
  84. @at-root .theme--dark & {
  85. color: mc('grey', '600');
  86. }
  87. &::after {
  88. content: '';
  89. position: absolute;
  90. bottom: 0;
  91. left: 0;
  92. width: 100%;
  93. height: 1px;
  94. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0));
  95. }
  96. }
  97. // ---------------------------------
  98. // PARAGRAPHS
  99. // ---------------------------------
  100. p {
  101. padding: 1rem 24px 0 24px;
  102. margin: 0;
  103. text-align: justify;
  104. }
  105. hr {
  106. margin: 1rem;
  107. height: 1px;
  108. border: none;
  109. background-color: mc('grey', '400');
  110. @at-root .theme--dark & {
  111. background-color: mc('grey', '700');
  112. }
  113. }
  114. blockquote {
  115. padding: 0 0 1rem 0;
  116. border: 1px solid mc('blue', '500');
  117. border-radius: .5rem;
  118. margin: 1rem;
  119. &.is-info {
  120. background-color: mc('blue', '50');
  121. background-image: radial-gradient(ellipse at top, mc('blue', '50'), lighten(mc('blue', '50'), 5%));
  122. border-color: mc('blue', '100');
  123. box-shadow: 0 0 2px 0 mc('blue', '100');
  124. code {
  125. background-color: mc('blue', '50');
  126. color: mc('blue', '800');
  127. }
  128. @at-root .theme--dark & {
  129. background-color: mc('blue', '900');
  130. background-image: radial-gradient(ellipse at top, mc('blue', '900'), darken(mc('blue', '900'), 5%));
  131. border-color: mc('blue', '500');
  132. box-shadow: 0 0 2px 0 mc('grey', '900');
  133. }
  134. }
  135. &.is-warning {
  136. background-color: mc('orange', '50');
  137. background-image: radial-gradient(ellipse at top, mc('orange', '50'), lighten(mc('orange', '50'), 5%));
  138. border-color: mc('orange', '100');
  139. box-shadow: 0 0 2px 0 mc('orange', '100');
  140. code {
  141. background-color: mc('orange', '50');
  142. color: mc('orange', '800');
  143. }
  144. @at-root .theme--dark & {
  145. background-color: mc('orange', '900');
  146. background-image: radial-gradient(ellipse at top, mc('orange', '900'), darken(mc('orange', '900'), 5%));
  147. border-color: mc('orange', '500');
  148. box-shadow: 0 0 2px 0 mc('grey', '900');
  149. }
  150. }
  151. &.is-danger {
  152. background-color: mc('red', '50');
  153. background-image: radial-gradient(ellipse at top, mc('red', '50'), lighten(mc('red', '50'), 5%));
  154. border-color: mc('red', '100');
  155. box-shadow: 0 0 2px 0 mc('red', '100');
  156. code {
  157. background-color: mc('red', '50');
  158. color: mc('red', '800');
  159. }
  160. @at-root .theme--dark & {
  161. background-color: mc('red', '900');
  162. background-image: radial-gradient(ellipse at top, mc('red', '900'), darken(mc('red', '900'), 5%));
  163. border-color: mc('red', '500');
  164. box-shadow: 0 0 2px 0 mc('grey', '900');
  165. }
  166. }
  167. &.is-success {
  168. background-color: mc('green', '50');
  169. background-image: radial-gradient(ellipse at top, mc('green', '50'), lighten(mc('green', '50'), 5%));
  170. border-color: mc('green', '100');
  171. box-shadow: 0 0 2px 0 mc('green', '100');
  172. code {
  173. background-color: mc('green', '50');
  174. color: mc('green', '800');
  175. }
  176. @at-root .theme--dark & {
  177. background-color: mc('green', '900');
  178. background-image: radial-gradient(ellipse at top, mc('green', '900'), darken(mc('green', '900'), 5%));
  179. border-color: mc('green', '500');
  180. box-shadow: 0 0 2px 0 mc('grey', '900');
  181. }
  182. }
  183. }
  184. // ---------------------------------
  185. // CODE
  186. // ---------------------------------
  187. code {
  188. background-color: mc('indigo', '50');
  189. padding: 0 5px;
  190. color: mc('indigo', '800');
  191. font-family: 'Source Code Pro', monospace;
  192. font-weight: normal;
  193. font-size: 1rem;
  194. box-shadow: none;
  195. &::before, &::after {
  196. display: none;
  197. }
  198. }
  199. ol, ul {
  200. padding: 1rem 24px 0 24px;
  201. list-style-position: inside;
  202. li + li {
  203. margin-top: .5rem;
  204. }
  205. }
  206. .prismjs{
  207. border: none;
  208. border-radius: 5px;
  209. box-shadow: initial;
  210. background-color: mc('grey', '900');
  211. padding: 1rem 1rem 1rem 3rem;
  212. margin: 1rem 24px;
  213. > code {
  214. background-color: transparent;
  215. padding: 0;
  216. color: #FFF;
  217. box-shadow: initial;
  218. display: block;
  219. font-size: .85rem;
  220. font-family: 'Source Code Pro', monospace;
  221. &:after, &:before {
  222. content: initial;
  223. letter-spacing: initial;
  224. }
  225. }
  226. }
  227. // ---------------------------------
  228. // TASK LISTS
  229. // ---------------------------------
  230. .task-list-item {
  231. position: relative;
  232. list-style-type: none;
  233. &-checkbox[disabled] {
  234. display: none;
  235. & + label {
  236. padding-left: 1.5rem;
  237. }
  238. & + label::before {
  239. position: absolute;
  240. left: 0;
  241. top: 2px;
  242. content: ' ';
  243. display: block;
  244. width: 1.1rem;
  245. height: 1.1rem;
  246. background-color: #FFF;
  247. border: 1px solid mc('grey', '400');
  248. border-radius: 2px;
  249. font-weight: bold;
  250. font-size: .8rem;
  251. line-height: 1rem;
  252. text-align: center;
  253. @at-root .theme--dark & {
  254. background-color: mc('grey', '900');
  255. border-color: mc('grey', '700');
  256. }
  257. }
  258. &[checked] + label::before {
  259. content: '✓';
  260. }
  261. }
  262. .contains-task-list {
  263. padding: .5rem 0 0 1.5rem;
  264. }
  265. }
  266. }