_base.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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: $text-font-family;
  14. font-size: 1.6em;
  15. font-weight: 300;
  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: 300;
  24. color: $link-color;
  25. text-decoration: none;
  26. &:focus,
  27. &:hover {
  28. text-decoration: underline;
  29. }
  30. }
  31. p {
  32. margin: 2.0rem 0 2.0rem 0;
  33. }
  34. h1,
  35. h2,
  36. h3,
  37. h4,
  38. h5,
  39. h6 {
  40. font-family: $heading-font-family;
  41. font-weight: 700;
  42. color: $alt-fg-color;
  43. margin: 6.4rem 0 3.2rem 0;
  44. }
  45. h1 {
  46. font-size: 3.2rem;
  47. line-height: 3.6rem;
  48. @media only screen and (max-width : 768px) {
  49. font-size: 3.0rem;
  50. line-height: 3.4rem;
  51. }
  52. }
  53. h2 {
  54. font-size: 2.8rem;
  55. line-height: 3.2rem;
  56. @media only screen and (max-width : 768px) {
  57. font-size: 2.6rem;
  58. line-height: 3.0rem;
  59. }
  60. }
  61. h3 {
  62. font-size: 2.4rem;
  63. line-height: 2.8rem;
  64. @media only screen and (max-width : 768px) {
  65. font-size: 2.2rem;
  66. line-height: 2.6rem;
  67. }
  68. }
  69. h4 {
  70. font-size: 2.2rem;
  71. line-height: 2.6rem;
  72. @media only screen and (max-width : 768px) {
  73. font-size: 2.0rem;
  74. line-height: 2.4rem;
  75. }
  76. }
  77. h5 {
  78. font-size: 2.0rem;
  79. line-height: 2.4rem;
  80. @media only screen and (max-width : 768px) {
  81. font-size: 1.8rem;
  82. line-height: 2.2rem;
  83. }
  84. }
  85. h6 {
  86. font-size: 1.8rem;
  87. line-height: 2.2rem;
  88. @media only screen and (max-width : 768px) {
  89. font-size: 1.6rem;
  90. line-height: 2.0rem;
  91. }
  92. }
  93. b, strong {
  94. font-weight: 700;
  95. }
  96. .highlight > div,
  97. .highlight > pre {
  98. margin: 0 0 2rem;
  99. padding: 1rem;
  100. border-radius: 1rem;
  101. }
  102. pre {
  103. display: block;
  104. font-family: $code-font-family;
  105. font-size: 1.6rem;
  106. font-weight: 400;
  107. line-height: 2.6rem;
  108. overflow-x: auto;
  109. margin: 0;
  110. code {
  111. display: inline-block;
  112. background-color: inherit;
  113. color: inherit;
  114. }
  115. }
  116. code {
  117. font-family: $code-font-family;
  118. font-size: 1.6rem;
  119. font-weight: 400;
  120. background-color: $alt-bg-color;
  121. color: $fg-color;
  122. }
  123. blockquote {
  124. border-left: 2px solid $alt-bg-color;
  125. padding-left: 2.0rem;
  126. line-height: 2.2rem;
  127. font-weight: 400;
  128. font-style: italic;
  129. }
  130. th, td {
  131. padding: 1.6rem;
  132. }
  133. table {
  134. border-collapse: collapse;
  135. }
  136. table td, table th {
  137. border: 2px solid $alt-fg-color;
  138. }
  139. table tr:first-child th {
  140. border-top: 0;
  141. }
  142. table tr:last-child td {
  143. border-bottom: 0;
  144. }
  145. table tr td:first-child,
  146. table tr th:first-child {
  147. border-left: 0;
  148. }
  149. table tr td:last-child,
  150. table tr th:last-child {
  151. border-right: 0;
  152. }
  153. img {
  154. max-width: 100%;
  155. }
  156. .wrapper {
  157. display: flex;
  158. flex-direction: column;
  159. min-height: 100vh;
  160. width: 100%;
  161. }
  162. .container {
  163. margin: 0 auto;
  164. max-width: 90.0rem;
  165. width: 100%;
  166. padding-left: 2.0rem;
  167. padding-right: 2.0rem;
  168. }
  169. .fab {
  170. font-weight: 400;
  171. }
  172. .fas {
  173. font-weight: 700;
  174. }
  175. .float-right {
  176. float: right;
  177. }
  178. .float-left {
  179. float: left;
  180. }
  181. .fab {
  182. font-weight: 400;
  183. }
  184. .fas {
  185. font-weight: 900;
  186. }