mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-20 14:46:22 -04:00
animated dark mode toggle 🌓
This commit is contained in:
1 parent
19394c1fb7
commit
f5c8a7a21a
8 files changed
+229
-31
No files matched your search
@@ -157,20 +157,6 @@ export const globalStyles = globalCss(
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// reduced motion preference:
|
||||
// https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites
|
||||
"@media (prefers-reduced-motion: reduce)": {
|
||||
"*, ::before, ::after": {
|
||||
animationDelay: "-1ms !important",
|
||||
animationDuration: "1ms !important",
|
||||
animationIterationCount: "1 !important",
|
||||
backgroundAttachment: "initial !important",
|
||||
scrollBehavior: "auto !important",
|
||||
transitionDuration: "0s !important",
|
||||
transitionDelay: "0s !important",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user