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

Merge pull request #17855 from calixteman/bug1888657

Avoid useless CSS animation when nothing is done (bug 1888657)
This commit is contained in:
calixteman 2024-04-01 19:01:14 +02:00 committed by GitHub
commit 26466b50bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;