Last active
October 27, 2022 14:02
-
-
Save mrtoorich/1d19cdb2f13afb152898095e7d9d8a7f to your computer and use it in GitHub Desktop.
Modern CSS Reset
This file contains 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
/** | |
* refs: | |
* 1. https://www.joshwcomeau.com/css/custom-css-reset/ | |
* 2. https://piccalil.li/blog/a-modern-css-reset/ | |
* 3. https://github.com/necolas/normalize.css | |
*/ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
* { | |
margin: 0; | |
} | |
ul, | |
ol { | |
list-style: none; | |
} | |
html, | |
body, | |
#root, | |
#app { | |
height: 100%; | |
} | |
body { | |
line-height: 1.5; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
-webkit-text-size-adjust: 100%; | |
} | |
img, | |
picture, | |
video, | |
canvas, | |
svg { | |
display: block; | |
max-width: 100%; | |
} | |
button, | |
input, | |
select, | |
textarea { | |
font: inherit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment