app.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. /* THEME SPECIFIC STYLES */
  2. .contents {
  3. color: mc('grey', '800');
  4. padding-bottom: 50px;
  5. // ---------------------------------
  6. // HEADERS
  7. // ---------------------------------
  8. h1, h2, h3, h4, h5, h6 {
  9. position: relative;
  10. &:hover {
  11. .toc-anchor {
  12. display: block;
  13. }
  14. }
  15. .toc-anchor {
  16. display: none;
  17. position: absolute;
  18. right: 1rem;
  19. bottom: .5rem;
  20. font-size: 1.25rem;
  21. text-decoration: none;
  22. color: mc('grey', '500');
  23. }
  24. }
  25. h1 {
  26. padding-left: 24px;
  27. color: mc('blue', '800');
  28. margin-top: 2rem;
  29. position: relative;
  30. &::after {
  31. content: '';
  32. position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 2px;
  37. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  38. }
  39. & + h2, & + h3 {
  40. margin-top: 8px;
  41. }
  42. }
  43. h2 {
  44. margin-left: 24px;
  45. padding: 8px 0 0 0;
  46. color: mc('grey', '800');
  47. position: relative;
  48. &::after {
  49. content: '';
  50. position: absolute;
  51. bottom: 0;
  52. left: 0;
  53. width: 100%;
  54. height: 1px;
  55. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  56. }
  57. & + h3 {
  58. margin-top: 8px;
  59. }
  60. }
  61. h3 {
  62. margin-left: 24px;
  63. padding: 8px 0 0 0;
  64. color: mc('grey', '700');
  65. position: relative;
  66. &::after {
  67. content: '';
  68. position: absolute;
  69. bottom: 0;
  70. left: 0;
  71. width: 100%;
  72. height: 1px;
  73. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0));
  74. }
  75. }
  76. // ---------------------------------
  77. // PARAGRAPHS
  78. // ---------------------------------
  79. p {
  80. padding: 1rem 24px 0 24px;
  81. margin: 0;
  82. text-align: justify;
  83. }
  84. hr {
  85. margin: 1rem;
  86. height: 1px;
  87. border: none;
  88. background-color: mc('grey', '400');
  89. }
  90. blockquote {
  91. padding: 0 0 1rem 0;
  92. border: 1px solid mc('blue', '500');
  93. border-radius: .5rem;
  94. margin: 1rem;
  95. &.is-info {
  96. background-color: mc('blue', '50');
  97. background-image: radial-gradient(ellipse at top, mc('blue', '50'), lighten(mc('blue', '50'), 5%));
  98. border-color: mc('blue', '100');
  99. box-shadow: 0 0 2px 0 mc('blue', '100');
  100. code {
  101. background-color: mc('blue', '50');
  102. color: mc('blue', '800');
  103. }
  104. }
  105. &.is-warning {
  106. background-color: mc('orange', '50');
  107. background-image: radial-gradient(ellipse at top, mc('orange', '50'), lighten(mc('orange', '50'), 5%));
  108. border-color: mc('orange', '100');
  109. box-shadow: 0 0 2px 0 mc('orange', '100');
  110. code {
  111. background-color: mc('orange', '50');
  112. color: mc('orange', '800');
  113. }
  114. }
  115. &.is-danger {
  116. background-color: mc('red', '50');
  117. background-image: radial-gradient(ellipse at top, mc('red', '50'), lighten(mc('red', '50'), 5%));
  118. border-color: mc('red', '100');
  119. box-shadow: 0 0 2px 0 mc('red', '100');
  120. code {
  121. background-color: mc('red', '50');
  122. color: mc('red', '800');
  123. }
  124. }
  125. &.is-success {
  126. background-color: mc('green', '50');
  127. background-image: radial-gradient(ellipse at top, mc('green', '50'), lighten(mc('green', '50'), 5%));
  128. border-color: mc('green', '100');
  129. box-shadow: 0 0 2px 0 mc('green', '100');
  130. code {
  131. background-color: mc('green', '50');
  132. color: mc('green', '800');
  133. }
  134. }
  135. }
  136. // ---------------------------------
  137. // CODE
  138. // ---------------------------------
  139. code {
  140. background-color: mc('indigo', '50');
  141. padding: 0 5px;
  142. color: mc('indigo', '800');
  143. font-family: 'Source Code Pro', monospace;
  144. font-weight: normal;
  145. font-size: 1rem;
  146. box-shadow: none;
  147. &::before, &::after {
  148. display: none;
  149. }
  150. }
  151. ol, ul {
  152. padding: 1rem 24px 0 24px;
  153. list-style-position: inside;
  154. li + li {
  155. margin-top: .5rem;
  156. }
  157. }
  158. .prismjs{
  159. border: none;
  160. border-radius: 5px;
  161. box-shadow: initial;
  162. background-color: mc('grey', '900');
  163. padding: 1rem 1rem 1rem 3rem;
  164. margin: 1rem 24px;
  165. > code {
  166. background-color: transparent;
  167. padding: 0;
  168. color: #FFF;
  169. box-shadow: initial;
  170. display: block;
  171. font-size: .85rem;
  172. font-family: 'Source Code Pro', monospace;
  173. &:after, &:before {
  174. content: initial;
  175. letter-spacing: initial;
  176. }
  177. }
  178. }
  179. // ---------------------------------
  180. // TASK LISTS
  181. // ---------------------------------
  182. .task-list-item {
  183. position: relative;
  184. list-style-type: none;
  185. &-checkbox[disabled] {
  186. display: none;
  187. & + label {
  188. padding-left: 1.5rem;
  189. }
  190. & + label::before {
  191. position: absolute;
  192. left: 0;
  193. top: 2px;
  194. content: ' ';
  195. display: block;
  196. width: 1.1rem;
  197. height: 1.1rem;
  198. background-color: #FFF;
  199. border: 1px solid mc('grey', '400');
  200. border-radius: 2px;
  201. font-weight: bold;
  202. font-size: .8rem;
  203. line-height: 1rem;
  204. text-align: center;
  205. }
  206. &[checked] + label::before {
  207. content: '✓';
  208. }
  209. }
  210. .contains-task-list {
  211. padding: .5rem 0 0 1.5rem;
  212. }
  213. }
  214. }