mirror of
https://github.com/maputnik/editor.git
synced 2025-12-28 09:00:02 +00:00
Added 'prefers-reduced-motion' css support.
This commit is contained in:
@@ -126,6 +126,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