_base.scss 3.1 KB

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