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:
parent
af97dd7484
commit
51ebe643d5
6 changed files with 22 additions and 0 deletions
src/components/mobile_nav
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue