1
0

_base.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. display:flex;
  12. color: $fg-color;
  13. background-color: $bg-color;
  14. font-family: $text-font-family;
  15. font-size: 1.6em;
  16. font-weight: 300;
  17. line-height: 1.8em;
  18. @media only screen and (max-device-width : 768px) {
  19. font-size: 1.6em;
  20. line-height: 1.6em;
  21. }
  22. }
  23. a {
  24. font-weight: 300;
  25. color: $link-color;
  26. text-decoration: none;
  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-device-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-device-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-device-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-device-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-device-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-device-width : 768px) {
  90. font-size: 1.6rem;
  91. line-height: 2.0rem;
  92. }
  93. }
  94. b, strong {
  95. font-weight: 700;
  96. }
  97. pre {
  98. display: block;
  99. font-family: $code-font-family;
  100. font-size: 1.6rem;
  101. font-weight: 400;
  102. line-height: 2.6rem;
  103. margin: 2.0rem 0 2.0rem 0;
  104. padding: 2.0rem;
  105. overflow-x: auto;
  106. code {
  107. background-color: inherit;
  108. color: inherit;
  109. }
  110. }
  111. code {
  112. font-family: $code-font-family;
  113. font-size: 1.6rem;
  114. font-weight: 400;
  115. background-color: $alt-bg-color;
  116. color: $fg-color;
  117. padding: 0.2rem 0.4rem 0.2rem 0.4rem;
  118. }
  119. blockquote {
  120. border-left: 2px solid $alt-bg-color;
  121. padding-left: 2.0rem;
  122. line-height: 2.2rem;
  123. font-weight: 400;
  124. font-style: italic;
  125. }
  126. th, td {
  127. padding: 1.6rem;
  128. }
  129. table {
  130. border-collapse: collapse;
  131. }
  132. table td, table th {
  133. border: 2px solid $alt-fg-color;
  134. }
  135. table tr:first-child th {
  136. border-top: 0;
  137. }
  138. table tr:last-child td {
  139. border-bottom: 0;
  140. }
  141. table tr td:first-child,
  142. table tr th:first-child {
  143. border-left: 0;
  144. }
  145. table tr td:last-child,
  146. table tr th:last-child {
  147. border-right: 0;
  148. }
  149. img {
  150. max-width: 100%;
  151. }
  152. .wrapper {
  153. display: flex;
  154. flex-direction: column;
  155. min-height: 100vh;
  156. width: 100%;
  157. }
  158. .container {
  159. margin: 0 auto;
  160. max-width: 90.0rem;
  161. width: 100%;
  162. padding-left: 2.0rem;
  163. padding-right: 2.0rem;
  164. }
  165. .fab {
  166. font-weight: 400;
  167. }
  168. .fas {
  169. font-weight: 700;
  170. }
  171. .float-right {
  172. float: right;
  173. }
  174. .float-left {
  175. float: left;
  176. }