File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -220,14 +220,11 @@ header {
220
220
@-webkit-keyframes fade-up {
221
221
from {
222
222
opacity : 0 ;
223
- position : relative ;
224
- top : 2rem ;
223
+ margin-top : 4rem ;
225
224
}
226
225
227
226
to {
228
227
opacity : 1 ;
229
- position : relative ;
230
- top : 0 ;
231
228
}
232
229
}
233
230
@@ -247,6 +244,7 @@ header {
247
244
%top-cover {
248
245
content : ' ' ;
249
246
display : block ;
247
+ position : -webkit-sticky ;
250
248
position : sticky ;
251
249
top : 0 ;
252
250
width : 100% ;
@@ -257,13 +255,16 @@ header {
257
255
#toc-wrapper {
258
256
top : 0 ;
259
257
transition : top 0.2s ease-in-out ;
260
- -webkit-animation : fade- up 0.8s ;
261
- animation : fade- up 0.8s ;
262
258
overflow-y : auto ;
263
259
max-height : 100vh ;
264
260
scrollbar-width : none ;
265
261
margin-top : 2rem ;
266
262
263
+ & :not (.invisible ) {
264
+ -webkit-animation : fade- up 0.8s ;
265
+ animation : fade- up 0.8s ;
266
+ }
267
+
267
268
ul {
268
269
list-style : none ;
269
270
font-size : 0.85rem ;
You can’t perform that action at this time.
0 commit comments