Move prefers-reduced-motion media query outside of the root

This commit is contained in:
David Lapshin
2024-05-09 23:36:02 +03:00
parent b7b95e6653
commit 357279b563

View File

@ -37,15 +37,6 @@
--transition-longer: 0.4s;
--transition: 0.2s;
@media (prefers-reduced-motion) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}
@media (prefers-color-scheme: dark) {
// COLORS
--bg-color: var(--bg-color-d);
@ -70,3 +61,12 @@
color-scheme: dark;
}
}
@media (prefers-reduced-motion) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}