A bare-bones CSS reset for modern web development.
f1ab7b6974
The change adds the `*::before` and *::after` in the reduce motion media query. Effectively these additions should prevent any animations which were happening in these pseudo-elements when the user has opted to reduce the motion. Why? I've come across an edge case where I'm animating an `::after` (not sure if that's the ideal way to do it), but animations should be disabled for these pseudo-elements as well. |
||
---|---|---|
dist | ||
src | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
A modern CSS reset
A tiny little reset that you can use as the basis of your CSS projects. You can read a breakdown of it here.
Installation
NPM:
npm install --save-dev modern-css-reset
Yarn:
yarn add modern-css-reset
Unpkg CDN:
<link rel="stylesheet" href="https://unpkg.com/modern-css-reset/dist/reset.min.css" />
jsDelivr CDN:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/modern-css-reset/dist/reset.min.css" />
Manual installation
First, let's clone this repository:
git clone https://github.com/hankchizljaw/modern-css-reset.git
Then, go to modern-css-reset
directory:
cd modern-css-reset
And now, you can minify and move the main reset to the dist
by running:
npm run build
That's it! 🎉
License
MIT