1
0

_base.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. white-space: pre-wrap;
  38. white-space: -moz-pre-wrap;
  39. white-space: -pre-wrap;
  40. white-space: -o-pre-wrap;
  41. word-wrap: break-word;
  42. @media only screen and (max-width: 768px) {
  43. margin: 1.5rem 0 1.5rem 0;
  44. }
  45. }
  46. h1,
  47. h2,
  48. h3,
  49. h4,
  50. h5,
  51. h6 {
  52. font-family: $font-family;
  53. font-weight: 600;
  54. color: $alt-fg-color;
  55. margin: 4rem 0 2.5rem 0;
  56. &:hover .heading-link {
  57. visibility: visible;
  58. }
  59. .heading-link {
  60. color: $link-color;
  61. font-weight: inherit;
  62. text-decoration: none;
  63. font-size: 80%;
  64. visibility: hidden;
  65. }
  66. .title-link {
  67. color: inherit;
  68. font-weight: inherit;
  69. text-decoration: none;
  70. }
  71. }
  72. h1 {
  73. font-size: 3.2rem;
  74. line-height: 3.6rem;
  75. @media only screen and (max-width: 768px) {
  76. font-size: 3rem;
  77. line-height: 3.4rem;
  78. }
  79. }
  80. h2 {
  81. font-size: 2.8rem;
  82. line-height: 3.2rem;
  83. @media only screen and (max-width: 768px) {
  84. font-size: 2.6rem;
  85. line-height: 3rem;
  86. }
  87. }
  88. h3 {
  89. font-size: 2.4rem;
  90. line-height: 2.8rem;
  91. @media only screen and (max-width: 768px) {
  92. font-size: 2.2rem;
  93. line-height: 2.6rem;
  94. }
  95. }
  96. h4 {
  97. font-size: 2.2rem;
  98. line-height: 2.6rem;
  99. @media only screen and (max-width: 768px) {
  100. font-size: 2rem;
  101. line-height: 2.4rem;
  102. }
  103. }
  104. h5 {
  105. font-size: 2rem;
  106. line-height: 2.4rem;
  107. @media only screen and (max-width: 768px) {
  108. font-size: 1.8rem;
  109. line-height: 2.2rem;
  110. }
  111. }
  112. h6 {
  113. font-size: 1.8rem;
  114. line-height: 2.2rem;
  115. @media only screen and (max-width: 768px) {
  116. font-size: 1.6rem;
  117. line-height: 2rem;
  118. }
  119. }
  120. b,
  121. strong {
  122. font-weight: 700;
  123. }
  124. .highlight {
  125. div,
  126. pre {
  127. margin: 2rem 0 2rem;
  128. padding: 1rem;
  129. border-radius: 1rem;
  130. overflow-x: auto;
  131. }
  132. }
  133. pre {
  134. display: block;
  135. font-family: $code-font-family;
  136. font-size: 1.6rem;
  137. font-weight: 400;
  138. line-height: 2.6rem;
  139. overflow-x: auto;
  140. margin: 2rem 0 2rem;
  141. padding: 1rem;
  142. border-radius: 1rem;
  143. code {
  144. display: inline-block;
  145. background-color: inherit;
  146. color: inherit;
  147. }
  148. }
  149. code {
  150. font-family: $code-font-family;
  151. font-size: 1.6rem;
  152. font-weight: 400;
  153. border-radius: 0.6rem;
  154. padding: 0.3rem 0.6rem;
  155. background-color: $darker-alt-bg-color;
  156. color: $fg-color;
  157. @media only screen and (max-width: 768px) {
  158. font-size: 1.5rem;
  159. }
  160. }
  161. blockquote {
  162. border-left: 2px solid $alt-bg-color;
  163. padding-left: 2rem;
  164. line-height: 2.2rem;
  165. font-weight: 400;
  166. font-style: italic;
  167. }
  168. th,
  169. td {
  170. padding: 1.6rem;
  171. }
  172. table {
  173. border-collapse: collapse;
  174. }
  175. table td,
  176. table th {
  177. border: 2px solid $alt-fg-color;
  178. }
  179. table tr:first-child th {
  180. border-top: 0;
  181. }
  182. table tr:last-child td {
  183. border-bottom: 0;
  184. }
  185. table tr td:first-child,
  186. table tr th:first-child {
  187. border-left: 0;
  188. }
  189. table tr td:last-child,
  190. table tr th:last-child {
  191. border-right: 0;
  192. }
  193. img {
  194. max-width: 100%;
  195. }
  196. figure {
  197. text-align: center;
  198. }
  199. .footnotes {
  200. ol li p {
  201. margin: 0;
  202. }
  203. }
  204. .preload-transitions * {
  205. $null-transition: none !important;
  206. -webkit-transition: $null-transition;
  207. -moz-transition: $null-transition;
  208. -ms-transition: $null-transition;
  209. -o-transition: $null-transition;
  210. transition: $null-transition;
  211. }
  212. .wrapper {
  213. display: flex;
  214. flex-direction: column;
  215. min-height: 100vh;
  216. width: 100%;
  217. }
  218. .container {
  219. margin: 1rem auto;
  220. max-width: 90rem;
  221. width: 100%;
  222. padding-left: 2rem;
  223. padding-right: 2rem;
  224. }
  225. .fab {
  226. font-weight: 400;
  227. }
  228. .fas {
  229. font-weight: 700;
  230. }
  231. .float-right {
  232. float: right;
  233. }
  234. .float-left {
  235. float: left;
  236. }
  237. .fab {
  238. font-weight: 400;
  239. }
  240. .fas {
  241. font-weight: 900;
  242. }