docusaurus/docs/adding-css-reset.md
This project setup uses PostCSS Normalize for adding a CSS Reset.
To start using it, add @import-normalize; anywhere in your CSS file(s). You only need to include it once and duplicate imports are automatically removed. Since you only need to include it once, a good place to add it is index.css or App.css.
index.css@import-normalize; /* bring in normalize.css styles */
/* rest of app styles */
Tip: If you see an "Unknown at rule @import-normalize css(unknownAtRules)" warning in VSCode, change the
css.lint.unknownAtRulessetting toignore.
You can control which parts of normalize.css to use via your project's browserslist.
Results when browserslist is last 3 versions:
/**
* Add the correct display in IE 9-.
*/
audio,
video {
display: inline-block;
}
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
Results when browserslist is last 2 versions:
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
Browser support is dictated by what normalize.css supports. As of this writing, it includes: