From 357279b5638f751de4042475bd1b214160ed521b Mon Sep 17 00:00:00 2001 From: David Lapshin Date: Thu, 9 May 2024 23:36:02 +0300 Subject: [PATCH] Move prefers-reduced-motion media query outside of the root --- sass/_variables.scss | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sass/_variables.scss b/sass/_variables.scss index 42315ad..6919cd7 100644 --- a/sass/_variables.scss +++ b/sass/_variables.scss @@ -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; + } +}