Ajout de @media (prefers-reduced-motion: reduce)

This commit is contained in:
Raphael Goetter 2019-01-30 21:54:32 +01:00
parent 32ad91f29a
commit 4782f69f44
7 changed files with 24 additions and 18 deletions

View file

@ -2,6 +2,14 @@
/* ==Base (basic styles) */
/* ----------------------------- */
/* disable animations styles when reduced rotion is enabled */
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
/* switching to border-box model for all elements */
html {
box-sizing: border-box;