| | 47 | /** |
| | 48 | * Correct the font size and margin on `h1` elements within `section` and |
| | 49 | * `article` contexts in Chrome, Firefox, and Safari. |
| | 50 | */ |
| | 51 | |
| | 52 | h1 { |
| | 53 | font-size: 2em; |
| | 54 | margin: 0.67em 0; |
| | 55 | } |
| | 56 | |
| | 57 | /* Grouping content |
| | 58 | ========================================================================== */ |
| | 59 | |
| | 60 | /** |
| | 61 | * Add the correct display in IE 9-. |
| | 62 | * 1. Add the correct display in IE. |
| | 63 | */ |
| | 64 | |
| | 65 | figcaption, |
| | 66 | figure, |
| | 67 | main { /* 1 */ |
| | 68 | display: block; |
| | 69 | } |
| | 70 | |
| | 71 | /** |
| | 72 | * Add the correct margin in IE 8. |
| | 73 | */ |
| | 74 | |
| | 75 | figure { |
| | 76 | margin: 1em 40px; |
| | 77 | } |
| | 78 | |
| | 79 | /** |
| | 80 | * 1. Add the correct box sizing in Firefox. |
| | 81 | * 2. Show the overflow in Edge and IE. |
| | 82 | */ |
| | 83 | |
| | 84 | hr { |
| | 85 | box-sizing: content-box; /* 1 */ |
| | 86 | height: 0; /* 1 */ |
| | 87 | overflow: visible; /* 2 */ |
| | 88 | } |
| | 89 | |
| | 90 | /** |
| | 91 | * 1. Correct the inheritance and scaling of font size in all browsers. |
| | 92 | * 2. Correct the odd `em` font sizing in all browsers. |
| | 93 | */ |
| | 94 | |
| | 95 | pre { |
| | 96 | font-family: monospace, monospace; /* 1 */ |
| | 97 | font-size: 1em; /* 2 */ |
| | 98 | } |
| | 99 | |
| | 100 | /* Text-level semantics |
| | 101 | ========================================================================== */ |
| | 102 | |
| | 103 | /** |
| | 104 | * 1. Remove the gray background on active links in IE 10. |
| | 105 | * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. |
| | 106 | */ |
| | 107 | |
| | 108 | a { |
| | 109 | background-color: transparent; /* 1 */ |
| | 110 | -webkit-text-decoration-skip: objects; /* 2 */ |
| | 111 | } |
| | 112 | |
| | 113 | /** |
| | 114 | * Remove the outline on focused links when they are also active or hovered |
| | 115 | * in all browsers (opinionated). |
| | 116 | */ |
| | 117 | |
| | 118 | a:active, |
| | 119 | a:hover { |
| | 120 | outline-width: 0; |
| | 121 | } |
| | 122 | |
| | 123 | /** |
| | 124 | * 1. Remove the bottom border in Firefox 39-. |
| | 125 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. |
| | 126 | */ |
| | 127 | |
| | 128 | abbr[title] { |
| | 129 | border-bottom: none; /* 1 */ |
| | 130 | text-decoration: underline; /* 2 */ |
| | 131 | text-decoration: underline dotted; /* 2 */ |
| | 132 | } |
| | 133 | |
| | 134 | /** |
| | 135 | * Prevent the duplicate application of `bolder` by the next rule in Safari 6. |
| | 136 | */ |
| | 137 | |
| | 138 | b, |
| | 139 | strong { |
| | 140 | font-weight: inherit; |
| | 141 | } |
| | 142 | |
| | 143 | /** |
| | 144 | * Add the correct font weight in Chrome, Edge, and Safari. |
| | 145 | */ |
| | 146 | |
| | 147 | b, |
| | 148 | strong { |
| | 149 | font-weight: bolder; |
| | 150 | } |
| | 151 | |
| | 152 | /** |
| | 153 | * 1. Correct the inheritance and scaling of font size in all browsers. |
| | 154 | * 2. Correct the odd `em` font sizing in all browsers. |
| | 155 | */ |
| | 156 | |
| | 157 | code, |
| | 158 | kbd, |
| | 159 | samp { |
| | 160 | font-family: monospace, monospace; /* 1 */ |
| | 161 | font-size: 1em; /* 2 */ |
| | 162 | } |
| | 163 | |
| | 164 | /** |
| | 165 | * Add the correct font style in Android 4.3-. |
| | 166 | */ |
| | 167 | |
| | 168 | dfn { |
| | 169 | font-style: italic; |
| | 170 | } |
| | 171 | |
| | 172 | /** |
| | 173 | * Add the correct background and color in IE 9-. |
| | 174 | */ |
| | 175 | |
| | 176 | mark { |
| | 177 | background-color: #ff0; |
| | 178 | color: #000; |
| | 179 | } |
| | 180 | |
| | 181 | /** |
| | 182 | * Add the correct font size in all browsers. |
| | 183 | */ |
| | 184 | |
| | 185 | small { |
| | 186 | font-size: 80%; |
| | 187 | } |
| | 188 | |
| | 189 | /** |
| | 190 | * Prevent `sub` and `sup` elements from affecting the line height in |
| | 191 | * all browsers. |
| | 192 | */ |
| | 193 | |
| | 194 | sub, |
| | 195 | sup { |
| | 196 | font-size: 75%; |
| | 197 | line-height: 0; |
| | 198 | position: relative; |
| | 199 | vertical-align: baseline; |
| | 200 | } |
| | 201 | |
| | 202 | sub { |
| | 203 | bottom: -0.25em; |
| | 204 | } |
| | 205 | |
| | 206 | sup { |
| | 207 | top: -0.5em; |
| | 208 | } |
| | 209 | |
| | 210 | /* Embedded content |
| | 211 | ========================================================================== */ |
| | 212 | |
| | 213 | /** |
| | 214 | * Add the correct display in IE 9-. |
| | 215 | */ |
| | 216 | |
| 64 | | [hidden], |
| | 231 | /** |
| | 232 | * Remove the border on images inside links in IE 10-. |
| | 233 | */ |
| | 234 | |
| | 235 | img { |
| | 236 | border-style: none; |
| | 237 | } |
| | 238 | |
| | 239 | /** |
| | 240 | * Hide the overflow in IE. |
| | 241 | */ |
| | 242 | |
| | 243 | svg:not(:root) { |
| | 244 | overflow: hidden; |
| | 245 | } |
| | 246 | |
| | 247 | /* Forms |
| | 248 | ========================================================================== */ |
| | 249 | |
| | 250 | /** |
| | 251 | * 1. Change the font styles in all browsers (opinionated). |
| | 252 | * 2. Remove the margin in Firefox and Safari. |
| | 253 | */ |
| | 254 | |
| | 255 | button, |
| | 256 | input, |
| | 257 | optgroup, |
| | 258 | select, |
| | 259 | textarea { |
| | 260 | font-family: sans-serif; /* 1 */ |
| | 261 | font-size: 100%; /* 1 */ |
| | 262 | line-height: 1.15; /* 1 */ |
| | 263 | margin: 0; /* 2 */ |
| | 264 | } |
| | 265 | |
| | 266 | /** |
| | 267 | * Show the overflow in IE. |
| | 268 | * 1. Show the overflow in Edge. |
| | 269 | */ |
| | 270 | |
| | 271 | button, |
| | 272 | input { /* 1 */ |
| | 273 | overflow: visible; |
| | 274 | } |
| | 275 | |
| | 276 | /** |
| | 277 | * Remove the inheritance of text transform in Edge, Firefox, and IE. |
| | 278 | * 1. Remove the inheritance of text transform in Firefox. |
| | 279 | */ |
| | 280 | |
| | 281 | button, |
| | 282 | select { /* 1 */ |
| | 283 | text-transform: none; |
| | 284 | } |
| | 285 | |
| | 286 | /** |
| | 287 | * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` |
| | 288 | * controls in Android 4. |
| | 289 | * 2. Correct the inability to style clickable types in iOS and Safari. |
| | 290 | */ |
| | 291 | |
| | 292 | button, |
| | 293 | html [type="button"], /* 1 */ |
| | 294 | [type="reset"], |
| | 295 | [type="submit"] { |
| | 296 | -webkit-appearance: button; /* 2 */ |
| | 297 | } |
| | 298 | |
| | 299 | /** |
| | 300 | * Remove the inner border and padding in Firefox. |
| | 301 | */ |
| | 302 | |
| | 303 | button::-moz-focus-inner, |
| | 304 | [type="button"]::-moz-focus-inner, |
| | 305 | [type="reset"]::-moz-focus-inner, |
| | 306 | [type="submit"]::-moz-focus-inner { |
| | 307 | border-style: none; |
| | 308 | padding: 0; |
| | 309 | } |
| | 310 | |
| | 311 | /** |
| | 312 | * Restore the focus styles unset by the previous rule. |
| | 313 | */ |
| | 314 | |
| | 315 | button:-moz-focusring, |
| | 316 | [type="button"]:-moz-focusring, |
| | 317 | [type="reset"]:-moz-focusring, |
| | 318 | [type="submit"]:-moz-focusring { |
| | 319 | outline: 1px dotted ButtonText; |
| | 320 | } |
| | 321 | |
| | 322 | /** |
| | 323 | * Change the border, margin, and padding in all browsers (opinionated). |
| | 324 | */ |
| | 325 | |
| | 326 | fieldset { |
| | 327 | border: 1px solid #c0c0c0; |
| | 328 | margin: 0 2px; |
| | 329 | padding: 0.35em 0.625em 0.75em; |
| | 330 | } |
| | 331 | |
| | 332 | /** |
| | 333 | * 1. Correct the text wrapping in Edge and IE. |
| | 334 | * 2. Correct the color inheritance from `fieldset` elements in IE. |
| | 335 | * 3. Remove the padding so developers are not caught out when they zero out |
| | 336 | * `fieldset` elements in all browsers. |
| | 337 | */ |
| | 338 | |
| | 339 | legend { |
| | 340 | box-sizing: border-box; /* 1 */ |
| | 341 | color: inherit; /* 2 */ |
| | 342 | display: table; /* 1 */ |
| | 343 | max-width: 100%; /* 1 */ |
| | 344 | padding: 0; /* 3 */ |
| | 345 | white-space: normal; /* 1 */ |
| | 346 | } |
| | 347 | |
| | 348 | /** |
| | 349 | * 1. Add the correct display in IE 9-. |
| | 350 | * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. |
| | 351 | */ |
| | 352 | |
| | 353 | progress { |
| | 354 | display: inline-block; /* 1 */ |
| | 355 | vertical-align: baseline; /* 2 */ |
| | 356 | } |
| | 357 | |
| | 358 | /** |
| | 359 | * Remove the default vertical scrollbar in IE. |
| | 360 | */ |
| | 361 | |
| | 362 | textarea { |
| | 363 | overflow: auto; |
| | 364 | } |
| | 365 | |
| | 366 | /** |
| | 367 | * 1. Add the correct box sizing in IE 10-. |
| | 368 | * 2. Remove the padding in IE 10-. |
| | 369 | */ |
| | 370 | |
| | 371 | [type="checkbox"], |
| | 372 | [type="radio"] { |
| | 373 | box-sizing: border-box; /* 1 */ |
| | 374 | padding: 0; /* 2 */ |
| | 375 | } |
| | 376 | |
| | 377 | /** |
| | 378 | * Correct the cursor style of increment and decrement buttons in Chrome. |
| | 379 | */ |
| | 380 | |
| | 381 | [type="number"]::-webkit-inner-spin-button, |
| | 382 | [type="number"]::-webkit-outer-spin-button { |
| | 383 | height: auto; |
| | 384 | } |
| | 385 | |
| | 386 | /** |
| | 387 | * 1. Correct the odd appearance in Chrome and Safari. |
| | 388 | * 2. Correct the outline style in Safari. |
| | 389 | */ |
| | 390 | |
| | 391 | [type="search"] { |
| | 392 | -webkit-appearance: textfield; /* 1 */ |
| | 393 | outline-offset: -2px; /* 2 */ |
| | 394 | } |
| | 395 | |
| | 396 | /** |
| | 397 | * Remove the inner padding and cancel buttons in Chrome and Safari on OS X. |
| | 398 | */ |
| | 399 | |
| | 400 | [type="search"]::-webkit-search-cancel-button, |
| | 401 | [type="search"]::-webkit-search-decoration { |
| | 402 | -webkit-appearance: none; |
| | 403 | } |
| | 404 | |
| | 405 | /** |
| | 406 | * 1. Correct the inability to style clickable types in iOS and Safari. |
| | 407 | * 2. Change font properties to `inherit` in Safari. |
| | 408 | */ |
| | 409 | |
| | 410 | ::-webkit-file-upload-button { |
| | 411 | -webkit-appearance: button; /* 1 */ |
| | 412 | font: inherit; /* 2 */ |
| | 413 | } |
| | 414 | |
| | 415 | /* Interactive |
| | 416 | ========================================================================== */ |
| | 417 | |
| | 418 | /* |
| | 419 | * Add the correct display in IE 9-. |
| | 420 | * 1. Add the correct display in Edge, IE, and Firefox. |
| | 421 | */ |
| | 422 | |
| | 423 | details, /* 1 */ |
| | 424 | menu { |
| | 425 | display: block; |
| | 426 | } |
| | 427 | |
| | 428 | /* |
| | 429 | * Add the correct display in all browsers. |
| | 430 | */ |
| | 431 | |
| | 432 | summary { |
| | 433 | display: list-item; |
| | 434 | } |
| | 435 | |
| | 436 | /* Scripting |
| | 437 | ========================================================================== */ |
| | 438 | |
| | 439 | /** |
| | 440 | * Add the correct display in IE 9-. |
| | 441 | */ |
| | 442 | |
| | 443 | canvas { |
| | 444 | display: inline-block; |
| | 445 | } |
| | 446 | |
| | 447 | /** |
| | 448 | * Add the correct display in IE. |
| | 449 | */ |
| | 450 | |