1
0

_base.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. *,
  2. *:after,
  3. *:before {
  4. box-sizing: inherit;
  5. }
  6. html {
  7. box-sizing: border-box;
  8. font-size: 62.5%;
  9. }
  10. body {
  11. color: $fg-color;
  12. background-color: $bg-color;
  13. font-family: $font-family;
  14. font-size: 1.8em;
  15. font-weight: 400;
  16. line-height: 1.8em;
  17. @media only screen and (max-width: 768px) {
  18. font-size: 1.6em;
  19. line-height: 1.6em;
  20. }
  21. }
  22. iframe[src*=disqus] {
  23. color-scheme: light;
  24. }
  25. a {
  26. font-weight: 500;
  27. color: $link-color;
  28. text-decoration: none;
  29. transition: all 0.25s ease-in;
  30. &:focus,
  31. &:hover {
  32. text-decoration: underline;
  33. }
  34. }
  35. p {
  36. margin: 2rem 0 2rem 0;
  37. }
  38. h1,
  39. h2,
  40. h3,
  41. h4,
  42. h5,
  43. h6 {
  44. font-family: $font-family;
  45. font-weight: 600;
  46. color: $alt-fg-color;
  47. margin: 4rem 0 2.5rem 0;
  48. &:hover .heading-link {
  49. visibility: visible;
  50. }
  51. .heading-link {
  52. color: $link-color;
  53. font-weight: inherit;
  54. text-decoration: none;
  55. font-size: 80%;
  56. visibility: hidden;
  57. }
  58. .title-link {
  59. color: inherit;
  60. font-weight: inherit;
  61. text-decoration: none;
  62. }
  63. }
  64. h1 {
  65. font-size: 3.2rem;
  66. line-height: 3.6rem;
  67. @media only screen and (max-width: 768px) {
  68. font-size: 3rem;
  69. line-height: 3.4rem;
  70. }
  71. }
  72. h2 {
  73. font-size: 2.8rem;
  74. line-height: 3.2rem;
  75. @media only screen and (max-width: 768px) {
  76. font-size: 2.6rem;
  77. line-height: 3rem;
  78. }
  79. }
  80. h3 {
  81. font-size: 2.4rem;
  82. line-height: 2.8rem;
  83. @media only screen and (max-width: 768px) {
  84. font-size: 2.2rem;
  85. line-height: 2.6rem;
  86. }
  87. }
  88. h4 {
  89. font-size: 2.2rem;
  90. line-height: 2.6rem;
  91. @media only screen and (max-width: 768px) {
  92. font-size: 2rem;
  93. line-height: 2.4rem;
  94. }
  95. }
  96. h5 {
  97. font-size: 2rem;
  98. line-height: 2.4rem;
  99. @media only screen and (max-width: 768px) {
  100. font-size: 1.8rem;
  101. line-height: 2.2rem;
  102. }
  103. }
  104. h6 {
  105. font-size: 1.8rem;
  106. line-height: 2.2rem;
  107. @media only screen and (max-width: 768px) {
  108. font-size: 1.6rem;
  109. line-height: 2rem;
  110. }
  111. }
  112. b,
  113. strong {
  114. font-weight: 700;
  115. }
  116. .highlight {
  117. div,
  118. pre {
  119. margin: 2rem 0 2rem;
  120. padding: 1rem;
  121. border-radius: 1rem;
  122. }
  123. }
  124. pre {
  125. display: block;
  126. font-family: $code-font-family;
  127. font-size: 1.6rem;
  128. font-weight: 400;
  129. line-height: 2.6rem;
  130. overflow-x: auto;
  131. margin: 2rem 0 2rem;
  132. padding: 1rem;
  133. border-radius: 1rem;
  134. code {
  135. display: inline-block;
  136. background-color: inherit;
  137. color: inherit;
  138. }
  139. }
  140. code {
  141. font-family: $code-font-family;
  142. font-size: 1.6rem;
  143. font-weight: 400;
  144. border-radius: 0.6rem;
  145. padding: 0.3rem 0.6rem;
  146. background-color: $darker-alt-bg-color;
  147. color: $fg-color;
  148. }
  149. blockquote {
  150. border-left: 2px solid $alt-bg-color;
  151. padding-left: 2rem;
  152. line-height: 2.2rem;
  153. font-weight: 400;
  154. font-style: italic;
  155. }
  156. th,
  157. td {
  158. padding: 1.6rem;
  159. }
  160. table {
  161. border-collapse: collapse;
  162. }
  163. table td,
  164. table th {
  165. border: 2px solid $alt-fg-color;
  166. }
  167. table tr:first-child th {
  168. border-top: 0;
  169. }
  170. table tr:last-child td {
  171. border-bottom: 0;
  172. }
  173. table tr td:first-child,
  174. table tr th:first-child {
  175. border-left: 0;
  176. }
  177. table tr td:last-child,
  178. table tr th:last-child {
  179. border-right: 0;
  180. }
  181. img {
  182. max-width: 100%;
  183. }
  184. figure {
  185. text-align: center;
  186. }
  187. .footnotes {
  188. ol li p {
  189. margin: 0;
  190. }
  191. }
  192. .preload-transitions * {
  193. $null-transition: none !important;
  194. -webkit-transition: $null-transition;
  195. -moz-transition: $null-transition;
  196. -ms-transition: $null-transition;
  197. -o-transition: $null-transition;
  198. transition: $null-transition;
  199. }
  200. .wrapper {
  201. display: flex;
  202. flex-direction: column;
  203. min-height: 100vh;
  204. width: 100%;
  205. }
  206. .container {
  207. margin: 1rem auto;
  208. max-width: 90rem;
  209. width: 100%;
  210. padding-left: 2rem;
  211. padding-right: 2rem;
  212. }
  213. .fab {
  214. font-weight: 400;
  215. }
  216. .fas {
  217. font-weight: 700;
  218. }
  219. .float-right {
  220. float: right;
  221. }
  222. .float-left {
  223. float: left;
  224. }
  225. .fab {
  226. font-weight: 400;
  227. }
  228. .fas {
  229. font-weight: 900;
  230. }