fix(ui): slow script loading hides TOC fade-up effect in desktop (#2120)
This commit is contained in:
parent
1b4e318dc1
commit
e0c3fafa47
1 changed files with 7 additions and 6 deletions
|
@ -220,14 +220,11 @@ header {
|
||||||
@-webkit-keyframes fade-up {
|
@-webkit-keyframes fade-up {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
position: relative;
|
margin-top: 4rem;
|
||||||
top: 2rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
position: relative;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,6 +244,7 @@ header {
|
||||||
%top-cover {
|
%top-cover {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -257,13 +255,16 @@ header {
|
||||||
#toc-wrapper {
|
#toc-wrapper {
|
||||||
top: 0;
|
top: 0;
|
||||||
transition: top 0.2s ease-in-out;
|
transition: top 0.2s ease-in-out;
|
||||||
-webkit-animation: fade-up 0.8s;
|
|
||||||
animation: fade-up 0.8s;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
|
|
||||||
|
&:not(.invisible) {
|
||||||
|
-webkit-animation: fade-up 0.8s;
|
||||||
|
animation: fade-up 0.8s;
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue