Created
March 23, 2023 18:31
-
-
Save Steve-Reid/710db5a9cda1c2417a961adae5a97040 to your computer and use it in GitHub Desktop.
Full CSS Reset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| reset.css | |
| */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| * { | |
| margin: 0; | |
| } | |
| ul[class], | |
| ol[class] { | |
| padding: 0; | |
| list-style: none; | |
| } | |
| html:focus-within { | |
| scroll-behavior: smooth; | |
| } | |
| body { | |
| min-block-size: 100vh; | |
| text-rendering: optimizeSpeed; | |
| line-height: 1.5; | |
| font-size: 100%; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| a:not([class]) { | |
| text-decoration-skip-ink: auto; | |
| } | |
| img, | |
| picture { | |
| display: block; | |
| max-inline-size: 100%; | |
| } | |
| p, | |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6, | |
| li, | |
| figcaption { | |
| max-inline-size: 60ch; | |
| overflow-wrap: break-word; | |
| } | |
| input, | |
| button, | |
| textarea, | |
| select { | |
| font: inherit; | |
| max-inline-size: 100%; | |
| } | |
| .js-focus-visible :focus:not(.focus-visible) { | |
| outline: none; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| html:focus-within { | |
| scroll-behavior: auto; | |
| } | |
| *, | |
| *::before, | |
| *::after { | |
| animation-duration: 0.01ms !important; | |
| animation-iteration-count: 1 !important; | |
| transition-duration: 0.01ms !important; | |
| scroll-behavior: auto !important; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment