mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Ensure sync spinner spins when reduce motion is on
This commit is contained in:
parent
39e503d0aa
commit
96841df5f8
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ body {
|
||||||
@include scrollbar.custom;
|
@include scrollbar.custom;
|
||||||
}
|
}
|
||||||
&.reduce-motion,
|
&.reduce-motion,
|
||||||
&.reduce-motion * {
|
&.reduce-motion *:not(.no-reduce-motion) {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
animation: none !important;
|
animation: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,7 @@ class Toolbar:
|
||||||
|
|
||||||
return f"""
|
return f"""
|
||||||
<a class=hitem tabindex="-1" aria-label="{name}" title="{title}" id="{label}" href=# onclick="return pycmd('{label}')"
|
<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>"""
|
</a>"""
|
||||||
|
|
||||||
def set_sync_active(self, active: bool) -> None:
|
def set_sync_active(self, active: bool) -> None:
|
||||||
|
|
|
@ -50,7 +50,7 @@ body {
|
||||||
@include scrollbar.custom;
|
@include scrollbar.custom;
|
||||||
}
|
}
|
||||||
&.reduce-motion,
|
&.reduce-motion,
|
||||||
&.reduce-motion * {
|
&.reduce-motion *:not(.no-reduce-motion) {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
animation: none !important;
|
animation: none !important;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue