Skip to content

Instantly share code, notes, and snippets.

@mrtoorich
Last active October 27, 2022 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtoorich/1d19cdb2f13afb152898095e7d9d8a7f to your computer and use it in GitHub Desktop.
Save mrtoorich/1d19cdb2f13afb152898095e7d9d8a7f to your computer and use it in GitHub Desktop.
Modern CSS Reset
/**
* 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