Last active
February 12, 2022 20:09
-
-
Save Thiago-spart/efaec945626d26557931b4ee879bdb58 to your computer and use it in GitHub Desktop.
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
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
* { | |
padding: 0; | |
margin: 0; | |
line-height: calc(1em + 0.5rem); | |
} | |
html, body { | |
height: 100%; | |
} | |
html { | |
font-size: 62.5%; | |
scroll-behavior: smooth; | |
} | |
body { | |
-webkit-font-smoothing: antialiased; | |
/* | |
background: DEFAULT_COLOR; | |
color: DEFAULT_COLOR; | |
font-family: "IMPORTED_FONT", Arial, Helvetica, sans-serif; | |
*/ | |
} | |
img, picture, video, canvas, svg { | |
display: block; | |
max-width: 100%; | |
} | |
input, button, textarea, select { | |
font: inherit; | |
background: transparent; | |
border: transparent; | |
} | |
p, h1, h2, h3, h4, h5, h6 { | |
overflow-wrap: break-word; | |
} | |
ul { | |
list-style: none; | |
} | |
a { | |
text-decoration: none; | |
/* | |
color: LINK_DEFAULT-COLOR; | |
*/ | |
} | |
a:hover { | |
/* | |
color: LINK_DEFAULT-COLOR_HOVER; | |
*/ | |
} | |
#root, #__next { | |
isolation: isolate; | |
} | |
@media (max-width: 768px) { | |
html { | |
font-size: 60%; | |
} | |
} | |
@media (max-width: 425px) { | |
html { | |
font-size: 57.5%; | |
} | |
} | |
@media (max-width: 375px) { | |
html { | |
font-size: 55%; | |
} | |
} | |
@media (max-width: 320px) { | |
html { | |
font-size: 52.5%; | |
} | |
} | |
@media (max-width: 280px) { | |
html { | |
font-size: 50%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: https://www.joshwcomeau.com/css/custom-css-reset/