_base.scss (4045B)
1 *, 2 *:after, 3 *:before { 4 box-sizing: inherit; 5 } 6 7 html { 8 box-sizing: border-box; 9 font-size: 62.5%; 10 } 11 12 body { 13 color: $fg-color; 14 background-color: $bg-color; 15 font-family: $font-family; 16 font-size: 1.8em; 17 font-weight: 400; 18 line-height: 1.8em; 19 20 @media only screen and (max-width: 768px) { 21 font-size: 1.6em; 22 line-height: 1.6em; 23 } 24 } 25 26 iframe[src*="disqus"] { 27 color-scheme: light; 28 } 29 30 a { 31 font-weight: 500; 32 color: $link-color; 33 text-decoration: none; 34 transition: all 0.25s ease-in; 35 36 &:focus, 37 &:hover { 38 text-decoration: underline; 39 } 40 } 41 42 p { 43 margin: 2rem 0 2rem 0; 44 @media only screen and (max-width: 768px) { 45 margin: 1.5rem 0 1.5rem 0; 46 } 47 } 48 49 h1, 50 h2, 51 h3, 52 h4, 53 h5, 54 h6 { 55 font-family: $font-family; 56 font-weight: 600; 57 color: $alt-fg-color; 58 margin: 4rem 0 2.5rem 0; 59 60 &:hover .heading-link { 61 visibility: visible; 62 } 63 64 .heading-link { 65 color: $link-color; 66 font-weight: inherit; 67 text-decoration: none; 68 font-size: 80%; 69 visibility: hidden; 70 } 71 72 .title-link { 73 color: inherit; 74 font-weight: inherit; 75 text-decoration: none; 76 } 77 } 78 79 h1 { 80 font-size: 3.2rem; 81 line-height: 3.6rem; 82 83 @media only screen and (max-width: 768px) { 84 font-size: 3rem; 85 line-height: 3.4rem; 86 } 87 } 88 89 h2 { 90 font-size: 2.8rem; 91 line-height: 3.2rem; 92 93 @media only screen and (max-width: 768px) { 94 font-size: 2.6rem; 95 line-height: 3rem; 96 } 97 } 98 99 h3 { 100 font-size: 2.4rem; 101 line-height: 2.8rem; 102 103 @media only screen and (max-width: 768px) { 104 font-size: 2.2rem; 105 line-height: 2.6rem; 106 } 107 } 108 109 h4 { 110 font-size: 2.2rem; 111 line-height: 2.6rem; 112 113 @media only screen and (max-width: 768px) { 114 font-size: 2rem; 115 line-height: 2.4rem; 116 } 117 } 118 119 h5 { 120 font-size: 2rem; 121 line-height: 2.4rem; 122 123 @media only screen and (max-width: 768px) { 124 font-size: 1.8rem; 125 line-height: 2.2rem; 126 } 127 } 128 129 h6 { 130 font-size: 1.8rem; 131 line-height: 2.2rem; 132 133 @media only screen and (max-width: 768px) { 134 font-size: 1.6rem; 135 line-height: 2rem; 136 } 137 } 138 139 b, 140 strong { 141 font-weight: 700; 142 } 143 144 .highlight { 145 div, 146 pre { 147 margin: 2rem 0 2rem; 148 padding: 1rem; 149 border-radius: 1rem; 150 overflow-x: auto; 151 } 152 } 153 154 pre { 155 display: block; 156 font-family: $code-font-family; 157 font-size: 1.6rem; 158 font-weight: 400; 159 line-height: 2.6rem; 160 overflow-x: auto; 161 margin: 2rem 0 2rem; 162 padding: 1rem; 163 border-radius: 1rem; 164 165 code { 166 display: inline-block; 167 background-color: inherit; 168 color: inherit; 169 } 170 } 171 172 code { 173 font-family: $code-font-family; 174 font-size: 1.6rem; 175 font-weight: 400; 176 border-radius: 0.6rem; 177 padding: 0.3rem 0.6rem; 178 background-color: $darker-alt-bg-color; 179 color: $fg-color; 180 @media only screen and (max-width: 768px) { 181 font-size: 1.5rem; 182 } 183 } 184 185 blockquote { 186 border-left: 2px solid $alt-bg-color; 187 padding-left: 2rem; 188 line-height: 2.2rem; 189 font-weight: 400; 190 font-style: italic; 191 } 192 * { 193 -webkit-tap-highlight-color: transparent; 194 } 195 196 th, 197 td { 198 padding: 1.6rem; 199 } 200 201 table { 202 border-collapse: collapse; 203 } 204 205 table td, 206 table th { 207 border: 2px solid $alt-fg-color; 208 } 209 210 table tr:first-child th { 211 border-top: 0; 212 } 213 214 table tr:last-child td { 215 border-bottom: 0; 216 } 217 218 table tr td:first-child, 219 table tr th:first-child { 220 border-left: 0; 221 } 222 223 table tr td:last-child, 224 table tr th:last-child { 225 border-right: 0; 226 } 227 228 img { 229 max-width: 100%; 230 } 231 232 figure { 233 text-align: center; 234 } 235 236 .footnotes { 237 ol li p { 238 margin: 0; 239 } 240 } 241 242 .preload-transitions * { 243 $null-transition: none !important; 244 245 -webkit-transition: $null-transition; 246 -moz-transition: $null-transition; 247 -ms-transition: $null-transition; 248 -o-transition: $null-transition; 249 transition: $null-transition; 250 } 251 252 .wrapper { 253 display: flex; 254 flex-direction: column; 255 256 min-height: 100vh; 257 width: 100%; 258 } 259 260 .container { 261 margin: 1rem auto; 262 max-width: 90rem; 263 width: 100%; 264 padding-left: 2rem; 265 padding-right: 2rem; 266 } 267 268 .fab { 269 font-weight: 400; 270 } 271 272 .fas { 273 font-weight: 700; 274 } 275 276 .float-right { 277 float: right; 278 } 279 280 .float-left { 281 float: left; 282 } 283 284 .fab { 285 font-weight: 400; 286 } 287 288 .fas { 289 font-weight: 900; 290 }