1
0

_base.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. }
  137. }
  138. code {
  139. font-family: $code-font-family;
  140. font-size: 1.6rem;
  141. font-weight: 400;
  142. border-radius: 0.6rem;
  143. padding: 0.3rem 0.6rem;
  144. }
  145. blockquote {
  146. border-left: 2px solid $alt-bg-color;
  147. padding-left: 2rem;
  148. line-height: 2.2rem;
  149. font-weight: 400;
  150. font-style: italic;
  151. }
  152. th,
  153. td {
  154. padding: 1.6rem;
  155. }
  156. table {
  157. border-collapse: collapse;
  158. }
  159. table td,
  160. table th {
  161. border: 2px solid $alt-fg-color;
  162. }
  163. table tr:first-child th {
  164. border-top: 0;
  165. }
  166. table tr:last-child td {
  167. border-bottom: 0;
  168. }
  169. table tr td:first-child,
  170. table tr th:first-child {
  171. border-left: 0;
  172. }
  173. table tr td:last-child,
  174. table tr th:last-child {
  175. border-right: 0;
  176. }
  177. img {
  178. max-width: 100%;
  179. }
  180. figure {
  181. text-align: center;
  182. }
  183. .footnotes {
  184. ol li p {
  185. margin: 0;
  186. }
  187. }
  188. .preload-transitions * {
  189. $null-transition: none !important;
  190. -webkit-transition: $null-transition;
  191. -moz-transition: $null-transition;
  192. -ms-transition: $null-transition;
  193. -o-transition: $null-transition;
  194. transition: $null-transition;
  195. }
  196. .wrapper {
  197. display: flex;
  198. flex-direction: column;
  199. min-height: 100vh;
  200. width: 100%;
  201. }
  202. .container {
  203. margin: 1rem auto;
  204. max-width: 90rem;
  205. width: 100%;
  206. padding-left: 2rem;
  207. padding-right: 2rem;
  208. }
  209. .fab {
  210. font-weight: 400;
  211. }
  212. .fas {
  213. font-weight: 700;
  214. }
  215. .float-right {
  216. float: right;
  217. }
  218. .float-left {
  219. float: left;
  220. }
  221. .fab {
  222. font-weight: 400;
  223. }
  224. .fas {
  225. font-weight: 900;
  226. }