Merge duplicate prefers-reduced-motion media queries
Consolidate the two @media (prefers-reduced-motion: no-preference) blocks into one — scroll-behavior and theme-switch colour transitions share the same query and are cleaner in a single block. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,15 +22,12 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Smooth scroll and colour transitions; gated so reduced-motion users are unaffected. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
:root {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
||||
/* Smooth colour transition when the data-bs-theme attribute changes between light and dark.
|
||||
Scoped to no-preference so users who opt out of motion also skip colour flashes. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
:root,
|
||||
body,
|
||||
.container-wrapper,
|
||||
|
||||
2
src/media/css/template.min.css
vendored
2
src/media/css/template.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user