_base.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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: 'Fira Mono', monospace;
  15. font-size: 1.6em;
  16. font-weight: 400;
  17. letter-spacing: 0.0625em;
  18. line-height: 1.8em;
  19. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  20. font-size: 1.4em;
  21. line-height: 1.6em;
  22. }
  23. }
  24. a {
  25. font-weight: 700;
  26. color: $alt-fg-color;
  27. text-decoration: none;
  28. &:focus,
  29. &:hover {
  30. text-decoration: underline;
  31. }
  32. }
  33. p {
  34. margin: 1.6rem 0 1.6rem 0;
  35. a {
  36. font-weight: 400;
  37. color: $alt-fg-color;
  38. text-decoration: underline;
  39. text-underline-position: under;
  40. &:focus,
  41. &:hover {
  42. color: $link-color;
  43. }
  44. }
  45. }
  46. h1,
  47. h2,
  48. h3,
  49. h4,
  50. h5,
  51. h6 {
  52. color: $alt-fg-color;
  53. text-transform: uppercase;
  54. letter-spacing: 0.0625em;
  55. margin: 3.2rem 0 1.6rem 0;
  56. }
  57. h1 {
  58. font-size: 3.2rem;
  59. line-height: 3.2rem;
  60. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  61. font-size: 2.8rem;
  62. line-height: 2.8rem;
  63. }
  64. }
  65. h2 {
  66. font-size: 2.8rem;
  67. line-height: 2.8rem;
  68. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  69. font-size: 2.4rem;
  70. line-height: 2.4rem;
  71. }
  72. }
  73. h3 {
  74. font-size: 2.4rem;
  75. line-height: 2.4rem;
  76. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  77. font-size: 2.0rem;
  78. line-height: 2.0rem;
  79. }
  80. }
  81. h4 {
  82. font-size: 2.2rem;
  83. line-height: 2.2rem;
  84. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  85. font-size: 1.8rem;
  86. line-height: 1.8rem;
  87. }
  88. }
  89. h5 {
  90. font-size: 2.0rem;
  91. line-height: 2.0rem;
  92. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  93. font-size: 1.6rem;
  94. line-height: 1.6rem;
  95. }
  96. }
  97. h6 {
  98. font-size: 1.4rem;
  99. line-height: 1.4rem;
  100. }
  101. pre {
  102. margin: 1.6rem 0 1.0rem 0;
  103. padding: 1.6rem;
  104. overflow-x: auto;
  105. }
  106. code {
  107. display: inline-block;
  108. background-color: $alt-fg-color;
  109. color: $bg-color;
  110. padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  111. }
  112. blockquote {
  113. border-left: 2px solid $alt-bg-color;
  114. padding-left: 1.6rem;
  115. font-style: italic;
  116. }
  117. th, td {
  118. padding: 1.6rem;
  119. }
  120. table {
  121. border-collapse: collapse;
  122. }
  123. table td, table th {
  124. border: 2px solid $alt-fg-color;
  125. }
  126. table tr:first-child th {
  127. border-top: 0;
  128. }
  129. table tr:last-child td {
  130. border-bottom: 0;
  131. }
  132. table tr td:first-child,
  133. table tr th:first-child {
  134. border-left: 0;
  135. }
  136. table tr td:last-child,
  137. table tr th:last-child {
  138. border-right: 0;
  139. }
  140. img {
  141. max-width: 100%;
  142. }
  143. .wrapper {
  144. display: flex;
  145. flex-direction: column;
  146. min-height: 100vh;
  147. width: 100%;
  148. }
  149. .container {
  150. margin: 0 auto;
  151. max-width: 120.0rem;
  152. width: 100%;
  153. padding-left: 2.0rem;
  154. padding-right: 2.0rem;
  155. }
  156. .float-right {
  157. float: right;
  158. }
  159. .float-left {
  160. float: left;
  161. }