_base.scss 3.6 KB

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