From f14413989ce226b8f6d726328d6a5c06c9de589a Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sat, 28 Jan 2023 16:23:23 +0100 Subject: [PATCH] Remove the transition when displaying the sidebar when the user prefers reduced motion (bug 1813138) In Firefox, it can be easily testesd in setting the pref `ui.prefersReducedMotion` to 1. --- web/viewer.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/viewer.css b/web/viewer.css index b23f1850a..3a79aa4f2 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -189,6 +189,12 @@ } } +@media screen and (prefers-reduced-motion: reduce) { + :root { + --sidebar-transition-duration: 0; + } +} + * { padding: 0; margin: 0;