File tree 3 files changed +6
-6
lines changed
_javascript/modules/components/toc
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
{% if enable_toc %}
4
4
< div class ="toc-border-cover z-3 "> </ div >
5
- < section id ="toc-wrapper " class ="position-sticky ps-0 pe-4 ">
5
+ < section id ="toc-wrapper " class ="invisible position-sticky ps-0 pe-4 ">
6
6
< h2 class ="panel-heading ps-3 pb-2 mb-0 "> {{- site.data.locales[include.lang].panel.toc -}}</ h2 >
7
7
< nav id ="toc "> </ nav >
8
8
</ section >
Original file line number Diff line number Diff line change @@ -15,8 +15,11 @@ export class TocDesktop {
15
15
}
16
16
17
17
static init ( ) {
18
- if ( document . getElementById ( 'toc-wrapper' ) ) {
18
+ const $tocWrapper = document . getElementById ( 'toc-wrapper' ) ;
19
+
20
+ if ( $tocWrapper ) {
19
21
tocbot . init ( this . options ) ;
22
+ $tocWrapper . classList . remove ( 'invisible' ) ;
20
23
}
21
24
}
22
25
}
Original file line number Diff line number Diff line change @@ -234,14 +234,11 @@ header {
234
234
@keyframes fade-up {
235
235
from {
236
236
opacity : 0 ;
237
- position : relative ;
238
- top : 2rem ;
237
+ margin-top : 4rem ;
239
238
}
240
239
241
240
to {
242
241
opacity : 1 ;
243
- position : relative ;
244
- top : 0 ;
245
242
}
246
243
}
247
244
You can’t perform that action at this time.
0 commit comments