_base.scss 3.7 KB

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