diff options
author | 2022-01-10 22:44:17 -0500 | |
---|---|---|
committer | 2022-01-10 22:44:17 -0500 | |
commit | 337413e09e76fafaed32b7886dc7323ccb6a22ea (patch) | |
tree | bbdba45c2af9662be086e0f074ff0beb5396dcbc /docs | |
parent | 6cbe79fac4e56f9255c0d87c21ab5013b2190058 (diff) | |
download | astro-337413e09e76fafaed32b7886dc7323ccb6a22ea.tar.gz astro-337413e09e76fafaed32b7886dc7323ccb6a22ea.tar.zst astro-337413e09e76fafaed32b7886dc7323ccb6a22ea.zip |
Use smooth scrolling with reduced motion has no preference (#2355)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/public/index.css | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/public/index.css b/docs/public/index.css index f3fdcc47e..54e4124fd 100644 --- a/docs/public/index.css +++ b/docs/public/index.css @@ -2,9 +2,7 @@ box-sizing: border-box; margin: 0; } -html { - scroll-behavior: smooth; -} + /* Global focus outline reset */ *:focus:not(:focus-visible) { outline: none; @@ -21,6 +19,12 @@ html { } } +@media (prefers-reduced-motion: no-preference) { + :root { + scroll-behavior: smooth; + } +} + body { display: flex; flex-direction: column; |