1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01:00

Fixed loading animation delay

Loading animation would show in an unready state due to animation-delay
on components. Updated to a negative delay to ensure elements were in
correct positions right away upon show.
This commit is contained in:
Dan Brown 2022-05-14 13:31:24 +01:00
parent 2c74dfd1d4
commit 89dfa43e73
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -79,17 +79,17 @@ $loadingSize: 10px;
animation-timing-function: cubic-bezier(.62, .28, .23, .99); animation-timing-function: cubic-bezier(.62, .28, .23, .99);
margin-inline-end: 4px; margin-inline-end: 4px;
background-color: var(--color-page); background-color: var(--color-page);
animation-delay: 0.3s; animation-delay: -300ms;
} }
> div:first-child { > div:first-child {
left: -($loadingSize+$-xs); left: -($loadingSize+$-xs);
background-color: var(--color-book); background-color: var(--color-book);
animation-delay: 0s; animation-delay: -600ms;
} }
> div:last-of-type { > div:last-of-type {
left: $loadingSize+$-xs; left: $loadingSize+$-xs;
background-color: var(--color-chapter); background-color: var(--color-chapter);
animation-delay: 0.6s; animation-delay: 0ms;
} }
> span { > span {
margin-inline-start: $-s; margin-inline-start: $-s;