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