Ensure sync spinner spins when reduce motion is on

This commit is contained in:
Damien Elmes 2023-03-26 14:49:04 +10:00
parent 39e503d0aa
commit 96841df5f8
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ body {
@include scrollbar.custom;
}
&.reduce-motion,
&.reduce-motion * {
&.reduce-motion *:not(.no-reduce-motion) {
transition: none !important;
animation: none !important;
}

View file

@ -388,7 +388,7 @@ class Toolbar:
return f"""
<a class=hitem tabindex="-1" aria-label="{name}" title="{title}" id="{label}" href=# onclick="return pycmd('{label}')"
>{name}<img id=sync-spinner src='/_anki/imgs/refresh.svg'>
>{name}<img id=sync-spinner class="no-reduce-motion" src='/_anki/imgs/refresh.svg'>
</a>"""
def set_sync_active(self, active: bool) -> None:

View file

@ -50,7 +50,7 @@ body {
@include scrollbar.custom;
}
&.reduce-motion,
&.reduce-motion * {
&.reduce-motion *:not(.no-reduce-motion) {
transition: none !important;
animation: none !important;
}