Skip to content

Commit

Permalink
respect prefers-reduced-motion some more places
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Feb 18, 2024
1 parent bbc3799 commit fbfdd83
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
24 changes: 21 additions & 3 deletions copyparty/web/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -1151,9 +1151,6 @@ html.y #widget.open {
@keyframes spin {
100% {transform: rotate(360deg)}
}
@media (prefers-reduced-motion) {
@keyframes spin { }
}
@keyframes fadein {
0% {opacity: 0}
100% {opacity: 1}
Expand Down Expand Up @@ -3170,3 +3167,24 @@ html.d #treepar {
padding: 0.2em;
}
}





@media (prefers-reduced-motion) {
@keyframes spin { }
@keyframes gexit { }
@keyframes bounce { }
@keyframes bounceFromLeft { }
@keyframes bounceFromRight { }

#ggrid>a:before,
#widget.anim,
#u2tabw,
.dropdesc,
.dropdesc b,
.dropdesc>div>div {
transition: none;
}
}
8 changes: 8 additions & 0 deletions copyparty/web/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -580,3 +580,11 @@ hr {
border: .07em dashed #444;
}
}

@media (prefers-reduced-motion) {
#toast,
#toast a#toastc,
#tt {
transition: none;
}
}

0 comments on commit fbfdd83

Please sign in to comment.