components: Honour 'prefers reduced motion' setting in many components

This helps accessibility for motion-sensitive people such as myself, and
can improve battery life in "battery saving" mode on most devices
This commit is contained in:
Yuki Joou 2023-08-02 12:45:18 +02:00
parent af97dd7484
commit 51ebe643d5
6 changed files with 22 additions and 0 deletions
src/components/mobile_nav

View file

@ -157,6 +157,9 @@
box-shadow: var(--panelShadow);
transition-property: transform;
transition-duration: 0.25s;
@media (prefers-reduced-motion: reduce) {
transition: unset;
}
transform: translateX(0);
z-index: 1001;
-webkit-overflow-scrolling: touch;