Created
August 8, 2023 08:34
-
-
Save epreston/fbd950f4074c46c4fd25cf1b928548fe to your computer and use it in GitHub Desktop.
css - minimal and opinionated css reset from kevin powell
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
/* makes sizing simpler */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* remove default spacing */ | |
/* force styling of type through styling, rather than elements */ | |
* { | |
margin: 0; | |
padding: 0; | |
font: inherit; | |
} | |
/* dark mode user-agent-styles */ | |
html { | |
color-scheme: dark light; | |
} | |
/* min body height */ | |
body { | |
min-height: 100vh; | |
} | |
/* responsive images/videos */ | |
img, | |
picture, | |
svg, | |
video { | |
display: block; | |
max-width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://codepen.io/kevinpowell/pen/QWxBgZX