mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
Merge pull request #296 from orangemug/feature/prefers-reduced-motion
Added prefers-reduced-motion support
This commit is contained in:
@@ -125,6 +125,10 @@
|
||||
border-width: 2px;
|
||||
border-color: $color-gray;
|
||||
transition: background-color 0.1s ease-out;
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
transition-duration: 0ms;
|
||||
}
|
||||
}
|
||||
|
||||
&-icon {
|
||||
|
||||
@@ -43,6 +43,10 @@
|
||||
-webkit-transition: opacity 600ms, visibility 600ms;
|
||||
transition: opacity 600ms, visibility 600ms;
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
transition-duration: 0;
|
||||
}
|
||||
|
||||
@include flex-row;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user