1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Avoid useless CSS animation when nothing is done (bug 1888657)

This commit is contained in:
Calixte Denizet 2024-03-29 14:45:06 +01:00
parent 55db43966e
commit d3a613dd5b

View file

@ -501,6 +501,7 @@ body {
font-style: normal;
}
.loadingInput:has(> &[data-status="pending"])::after {
display: block;
visibility: visible;
}
&[data-status="notFound"] {
@ -1117,6 +1118,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
/*#endif*/
.loadingInput:has(> &.loading)::after {
display: block;
visibility: visible;
transition-property: visibility;
@ -1128,6 +1130,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
&::after {
position: absolute;
visibility: hidden;
display: none;
top: calc(50% - 8px);
width: 16px;
height: 16px;