1
0

_base.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. &: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: 3.0rem;
  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: 3.0rem;
  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: 2.0rem;
  90. line-height: 2.4rem;
  91. }
  92. }
  93. h5 {
  94. font-size: 2.0rem;
  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: 2.0rem;
  107. }
  108. }
  109. b, strong {
  110. font-weight: 700;
  111. }
  112. .highlight > div,
  113. .highlight > pre {
  114. margin: 0 0 2rem;
  115. padding: 1rem;
  116. border-radius: 1rem;
  117. }
  118. pre {
  119. display: block;
  120. font-family: $code-font-family;
  121. font-size: 1.6rem;
  122. font-weight: 400;
  123. line-height: 2.6rem;
  124. overflow-x: auto;
  125. margin: 0;
  126. code {
  127. display: inline-block;
  128. background-color: inherit;
  129. color: inherit;
  130. }
  131. }
  132. code {
  133. font-family: $code-font-family;
  134. font-size: 1.6rem;
  135. font-weight: 400;
  136. background-color: $alt-bg-color;
  137. color: $fg-color;
  138. }
  139. blockquote {
  140. border-left: 2px solid $alt-bg-color;
  141. padding-left: 2.0rem;
  142. line-height: 2.2rem;
  143. font-weight: 400;
  144. font-style: italic;
  145. }
  146. th, td {
  147. padding: 1.6rem;
  148. }
  149. table {
  150. border-collapse: collapse;
  151. }
  152. table td, table th {
  153. border: 2px solid $alt-fg-color;
  154. }
  155. table tr:first-child th {
  156. border-top: 0;
  157. }
  158. table tr:last-child td {
  159. border-bottom: 0;
  160. }
  161. table tr td:first-child,
  162. table tr th:first-child {
  163. border-left: 0;
  164. }
  165. table tr td:last-child,
  166. table tr th:last-child {
  167. border-right: 0;
  168. }
  169. img {
  170. max-width: 100%;
  171. }
  172. figure {
  173. text-align: center;
  174. }
  175. .wrapper {
  176. display: flex;
  177. flex-direction: column;
  178. min-height: 100vh;
  179. width: 100%;
  180. }
  181. .container {
  182. margin: 0 auto;
  183. max-width: 90.0rem;
  184. width: 100%;
  185. padding-left: 2.0rem;
  186. padding-right: 2.0rem;
  187. }
  188. .fab {
  189. font-weight: 400;
  190. }
  191. .fas {
  192. font-weight: 700;
  193. }
  194. .float-right {
  195. float: right;
  196. }
  197. .float-left {
  198. float: left;
  199. }
  200. .fab {
  201. font-weight: 400;
  202. }
  203. .fas {
  204. font-weight: 900;
  205. }
  206. img.emoji {
  207. height: 1em;
  208. width: 1em;
  209. margin: 0 .05em 0 .1em;
  210. vertical-align: -0.1em;
  211. }