| 1 |
/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */ |
| 2 |
/* Document |
| 3 |
========================================================================== */ |
| 4 |
/** |
| 5 |
* 1. Correct the line height in all browsers. |
| 6 |
* 2. Prevent adjustments of font size after orientation changes in |
| 7 |
* IE on Windows Phone and in iOS. |
| 8 |
*/ |
| 9 |
html { |
| 10 |
line-height: 1.15; |
| 11 |
/* 1 */ |
| 12 |
-ms-text-size-adjust: 100%; |
| 13 |
/* 2 */ |
| 14 |
-webkit-text-size-adjust: 100%; |
| 15 |
/* 2 */ } |
| 16 |
|
| 17 |
/* Sections |
| 18 |
========================================================================== */ |
| 19 |
/** |
| 20 |
* Remove the margin in all browsers (opinionated). |
| 21 |
*/ |
| 22 |
body { |
| 23 |
margin: 0; } |
| 24 |
|
| 25 |
/** |
| 26 |
* Add the correct display in IE 9-. |
| 27 |
*/ |
| 28 |
article, |
| 29 |
aside, |
| 30 |
footer, |
| 31 |
header, |
| 32 |
nav, |
| 33 |
section { |
| 34 |
display: block; } |
| 35 |
|
| 36 |
/** |
| 37 |
* Correct the font size and margin on `h1` elements within `section` and |
| 38 |
* `article` contexts in Chrome, Firefox, and Safari. |
| 39 |
*/ |
| 40 |
h1 { |
| 41 |
font-size: 2em; |
| 42 |
margin: 0.67em 0; } |
| 43 |
|
| 44 |
/* Grouping content |
| 45 |
========================================================================== */ |
| 46 |
/** |
| 47 |
* Add the correct display in IE 9-. |
| 48 |
*/ |
| 49 |
figcaption, |
| 50 |
figure { |
| 51 |
display: block; } |
| 52 |
|
| 53 |
/** |
| 54 |
* Add the correct margin in IE 8. |
| 55 |
*/ |
| 56 |
figure { |
| 57 |
margin: 1em 40px; } |
| 58 |
|
| 59 |
/** |
| 60 |
* 1. Add the correct box sizing in Firefox. |
| 61 |
* 2. Show the overflow in Edge and IE. |
| 62 |
*/ |
| 63 |
hr { |
| 64 |
box-sizing: content-box; |
| 65 |
/* 1 */ |
| 66 |
height: 0; |
| 67 |
/* 1 */ |
| 68 |
overflow: visible; |
| 69 |
/* 2 */ } |
| 70 |
|
| 71 |
/** |
| 72 |
* Add the correct display in IE. |
| 73 |
*/ |
| 74 |
main { |
| 75 |
display: block; } |
| 76 |
|
| 77 |
/** |
| 78 |
* 1. Correct the inheritance and scaling of font size in all browsers. |
| 79 |
* 2. Correct the odd `em` font sizing in all browsers. |
| 80 |
*/ |
| 81 |
pre, code, |
| 82 |
kbd, |
| 83 |
samp { |
| 84 |
font-family: monospace, monospace; |
| 85 |
/* 1 */ |
| 86 |
font-size: 1em; |
| 87 |
/* 2 */ } |
| 88 |
|
| 89 |
/* Links |
| 90 |
========================================================================== */ |
| 91 |
/** |
| 92 |
* 1. Remove the gray background on active links in IE 10. |
| 93 |
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+. |
| 94 |
*/ |
| 95 |
a { |
| 96 |
background-color: transparent; |
| 97 |
/* 1 */ |
| 98 |
-webkit-text-decoration-skip: objects; |
| 99 |
/* 2 */ } |
| 100 |
|
| 101 |
/* Text-level semantics |
| 102 |
========================================================================== */ |
| 103 |
/** |
| 104 |
* 1. Remove the bottom border in Chrome 57- and Firefox 39-. |
| 105 |
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. |
| 106 |
*/ |
| 107 |
abbr[title] { |
| 108 |
border-bottom: none; |
| 109 |
/* 1 */ |
| 110 |
text-decoration: underline; |
| 111 |
/* 2 */ |
| 112 |
text-decoration: underline dotted; |
| 113 |
/* 2 */ } |
| 114 |
|
| 115 |
/** |
| 116 |
* Prevent the duplicate application of `bolder` by the next rule in Safari 6. |
| 117 |
*/ |
| 118 |
b, |
| 119 |
strong { |
| 120 |
font-weight: inherit; } |
| 121 |
|
| 122 |
/** |
| 123 |
* Add the correct font weight in Chrome, Edge, and Safari. |
| 124 |
*/ |
| 125 |
b, |
| 126 |
strong { |
| 127 |
font-weight: bolder; } |
| 128 |
|
| 129 |
/** |
| 130 |
* Add the correct font style in Android 4.3-. |
| 131 |
*/ |
| 132 |
dfn { |
| 133 |
font-style: italic; } |
| 134 |
|
| 135 |
/** |
| 136 |
* Add the correct background and color in IE 9-. |
| 137 |
*/ |
| 138 |
mark { |
| 139 |
background-color: #ff0; |
| 140 |
color: #000; } |
| 141 |
|
| 142 |
/** |
| 143 |
* Add the correct font size in all browsers. |
| 144 |
*/ |
| 145 |
small { |
| 146 |
font-size: 80%; } |
| 147 |
|
| 148 |
/** |
| 149 |
* Prevent `sub` and `sup` elements from affecting the line height in |
| 150 |
* all browsers. |
| 151 |
*/ |
| 152 |
sub, |
| 153 |
sup { |
| 154 |
font-size: 75%; |
| 155 |
line-height: 0; |
| 156 |
position: relative; |
| 157 |
vertical-align: baseline; } |
| 158 |
|
| 159 |
sub { |
| 160 |
bottom: -0.25em; } |
| 161 |
|
| 162 |
sup { |
| 163 |
top: -0.5em; } |
| 164 |
|
| 165 |
/* Embedded content |
| 166 |
========================================================================== */ |
| 167 |
/** |
| 168 |
* Add the correct display in IE 9-. |
| 169 |
*/ |
| 170 |
audio, |
| 171 |
video { |
| 172 |
display: inline-block; } |
| 173 |
|
| 174 |
/** |
| 175 |
* Add the correct display in iOS 4-7. |
| 176 |
*/ |
| 177 |
audio:not([controls]) { |
| 178 |
display: none; |
| 179 |
height: 0; } |
| 180 |
|
| 181 |
/** |
| 182 |
* Remove the border on images inside links in IE 10-. |
| 183 |
*/ |
| 184 |
img { |
| 185 |
border-style: none; } |
| 186 |
|
| 187 |
/** |
| 188 |
* Hide the overflow in IE. |
| 189 |
*/ |
| 190 |
svg:not(:root) { |
| 191 |
overflow: hidden; } |
| 192 |
|
| 193 |
/* Forms |
| 194 |
========================================================================== */ |
| 195 |
/** |
| 196 |
* Known issues: |
| 197 |
* - `select`: |
| 198 |
* By default, Chrome on OS X and Safari on OS X allow very limited styling of |
| 199 |
* select, unless a border property is set. The default font weight on |
| 200 |
* optgroup elements cannot safely be changed in Chrome on OSX and Safari on |
| 201 |
* OS X. |
| 202 |
* - `[type="checkbox"]`: |
| 203 |
* It is recommended that you do not style checkbox and radio inputs as |
| 204 |
* Firefox's implementation does not respect box-sizing, padding, or width. |
| 205 |
* - `[type="number"]`: |
| 206 |
* Certain font size values applied to number inputs cause the cursor style of |
| 207 |
* the decrement button to change from `default` to `text`. |
| 208 |
* - `[type="search"]`: |
| 209 |
* The search input is not fully stylable by default. In Chrome and Safari on |
| 210 |
* OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In |
| 211 |
* Chrome and Safari on Windows you can't control `border` properly. It will |
| 212 |
* apply `border-width` but will only show a border color (which cannot be |
| 213 |
* controlled) for the outer 1px of that border. Applying |
| 214 |
* `-webkit-appearance: textfield` addresses these issues without removing the |
| 215 |
* benefits of search inputs (e.g. showing past searches). Safari (but not |
| 216 |
* Chrome) will clip the cancel button on when it has padding (and `textfield` |
| 217 |
* appearance). |
| 218 |
* - `::placeholder`: |
| 219 |
* In Edge, placeholders will disappear on `relative` or `absolute` positioned |
| 220 |
* `<input>` elements if you use `opacity` less than `1` due to a |
| 221 |
* [bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3901363/). |
| 222 |
*/ |
| 223 |
/** |
| 224 |
* 1. Change the font styles in all browsers (opinionated). |
| 225 |
* 2. Remove the margin in Firefox and Safari. |
| 226 |
*/ |
| 227 |
button, |
| 228 |
input, |
| 229 |
optgroup, |
| 230 |
select, |
| 231 |
textarea { |
| 232 |
line-height: 1.15; |
| 233 |
/* 1 */ |
| 234 |
font-family: sans-serif; |
| 235 |
/* 1 */ |
| 236 |
font-size: 100%; |
| 237 |
/* 1 */ |
| 238 |
margin: 0; |
| 239 |
/* 2 */ } |
| 240 |
|
| 241 |
/** |
| 242 |
* Show the overflow in IE. |
| 243 |
*/ |
| 244 |
button { |
| 245 |
overflow: visible; } |
| 246 |
|
| 247 |
/** |
| 248 |
* Remove the inheritance of text transform in Edge, Firefox, and IE. |
| 249 |
* 1. Remove the inheritance of text transform in Firefox. |
| 250 |
*/ |
| 251 |
button, |
| 252 |
select { |
| 253 |
/* 1 */ |
| 254 |
text-transform: none; } |
| 255 |
|
| 256 |
/** |
| 257 |
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` |
| 258 |
* controls in Android 4. |
| 259 |
* 2. Correct the inability to style clickable types in iOS and Safari. |
| 260 |
*/ |
| 261 |
button, |
| 262 |
html [type="button"], |
| 263 |
[type="reset"], |
| 264 |
[type="submit"] { |
| 265 |
-webkit-appearance: button; |
| 266 |
/* 2 */ } |
| 267 |
|
| 268 |
button, |
| 269 |
[type="button"], |
| 270 |
[type="reset"], |
| 271 |
[type="submit"] { |
| 272 |
/** |
| 273 |
* Remove the inner border and padding in Firefox. |
| 274 |
*/ |
| 275 |
/** |
| 276 |
* Restore the focus styles unset by the previous rule. |
| 277 |
*/ } |
| 278 |
button::-moz-focus-inner, |
| 279 |
[type="button"]::-moz-focus-inner, |
| 280 |
[type="reset"]::-moz-focus-inner, |
| 281 |
[type="submit"]::-moz-focus-inner { |
| 282 |
border-style: none; |
| 283 |
padding: 0; } |
| 284 |
button:-moz-focusring, |
| 285 |
[type="button"]:-moz-focusring, |
| 286 |
[type="reset"]:-moz-focusring, |
| 287 |
[type="submit"]:-moz-focusring { |
| 288 |
outline: 1px dotted ButtonText; } |
| 289 |
|
| 290 |
/** |
| 291 |
* Show the overflow in Edge. |
| 292 |
*/ |
| 293 |
input { |
| 294 |
overflow: visible; } |
| 295 |
|
| 296 |
/** |
| 297 |
* 1. Add the correct box sizing in IE 10-. |
| 298 |
* 2. Remove the padding in IE 10-. |
| 299 |
*/ |
| 300 |
[type="checkbox"], |
| 301 |
[type="radio"] { |
| 302 |
box-sizing: border-box; |
| 303 |
/* 1 */ |
| 304 |
padding: 0; |
| 305 |
/* 2 */ } |
| 306 |
|
| 307 |
/** |
| 308 |
* Correct the cursor style of increment and decrement buttons in Chrome. |
| 309 |
*/ |
| 310 |
[type="number"]::-webkit-inner-spin-button, |
| 311 |
[type="number"]::-webkit-outer-spin-button { |
| 312 |
height: auto; } |
| 313 |
|
| 314 |
/** |
| 315 |
* 1. Correct the odd appearance in Chrome and Safari. |
| 316 |
* 2. Correct the outline style in Safari. |
| 317 |
*/ |
| 318 |
[type="search"] { |
| 319 |
-webkit-appearance: textfield; |
| 320 |
/* 1 */ |
| 321 |
outline-offset: -2px; |
| 322 |
/* 2 */ |
| 323 |
/** |
| 324 |
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS. |
| 325 |
*/ } |
| 326 |
[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { |
| 327 |
-webkit-appearance: none; } |
| 328 |
|
| 329 |
/** |
| 330 |
* 1. Correct the inability to style clickable types in iOS and Safari. |
| 331 |
* 2. Change font properties to `inherit` in Safari. |
| 332 |
*/ |
| 333 |
::-webkit-file-upload-button { |
| 334 |
-webkit-appearance: button; |
| 335 |
/* 1 */ |
| 336 |
font: inherit; |
| 337 |
/* 2 */ } |
| 338 |
|
| 339 |
/** |
| 340 |
* Correct the padding in Firefox. |
| 341 |
*/ |
| 342 |
fieldset { |
| 343 |
padding: 0.35em 0.75em 0.625em; } |
| 344 |
|
| 345 |
/** |
| 346 |
* 1. Correct the text wrapping in Edge and IE. |
| 347 |
* 2. Correct the color inheritance from `fieldset` elements in IE. |
| 348 |
* 3. Remove the padding so developers are not caught out when they zero out |
| 349 |
* `fieldset` elements in all browsers. |
| 350 |
*/ |
| 351 |
legend { |
| 352 |
box-sizing: border-box; |
| 353 |
/* 1 */ |
| 354 |
display: table; |
| 355 |
/* 1 */ |
| 356 |
max-width: 100%; |
| 357 |
/* 1 */ |
| 358 |
padding: 0; |
| 359 |
/* 3 */ |
| 360 |
color: inherit; |
| 361 |
/* 2 */ |
| 362 |
white-space: normal; |
| 363 |
/* 1 */ } |
| 364 |
|
| 365 |
/** |
| 366 |
* 1. Add the correct display in IE 9-. |
| 367 |
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. |
| 368 |
*/ |
| 369 |
progress { |
| 370 |
display: inline-block; |
| 371 |
/* 1 */ |
| 372 |
vertical-align: baseline; |
| 373 |
/* 2 */ } |
| 374 |
|
| 375 |
/** |
| 376 |
* Remove the default vertical scrollbar in IE. |
| 377 |
*/ |
| 378 |
textarea { |
| 379 |
overflow: auto; } |
| 380 |
|
| 381 |
/* Interactive |
| 382 |
========================================================================== */ |
| 383 |
/* |
| 384 |
* Add the correct display in Edge, IE, and Firefox. |
| 385 |
*/ |
| 386 |
details { |
| 387 |
display: block; } |
| 388 |
|
| 389 |
/* |
| 390 |
* Add the correct display in all browsers. |
| 391 |
*/ |
| 392 |
summary { |
| 393 |
display: list-item; } |
| 394 |
|
| 395 |
/* |
| 396 |
* Add the correct display in IE 9-. |
| 397 |
*/ |
| 398 |
menu { |
| 399 |
display: block; } |
| 400 |
|
| 401 |
/* Scripting |
| 402 |
========================================================================== */ |
| 403 |
/** |
| 404 |
* Add the correct display in IE 9-. |
| 405 |
*/ |
| 406 |
canvas { |
| 407 |
display: inline-block; } |
| 408 |
|
| 409 |
/** |
| 410 |
* Add the correct display in IE. |
| 411 |
*/ |
| 412 |
template { |
| 413 |
display: none; } |
| 414 |
|
| 415 |
/* Hidden |
| 416 |
========================================================================== */ |
| 417 |
/** |
| 418 |
* Add the correct display in IE 10-. |
| 419 |
*/ |
| 420 |
[hidden] { |
| 421 |
display: none; } |