File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
_javascript/modules/components/toc Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
33{% if enable_toc %}
44 < 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 ">
66 < h2 class ="panel-heading ps-3 pb-2 mb-0 "> {{- site.data.locales[include.lang].panel.toc -}}</ h2 >
77 < nav id ="toc "> </ nav >
88 </ section >
Original file line number Diff line number Diff line change @@ -15,8 +15,11 @@ export class TocDesktop {
1515 }
1616
1717 static init ( ) {
18- if ( document . getElementById ( 'toc-wrapper' ) ) {
18+ const $tocWrapper = document . getElementById ( 'toc-wrapper' ) ;
19+
20+ if ( $tocWrapper ) {
1921 tocbot . init ( this . options ) ;
22+ $tocWrapper . classList . remove ( 'invisible' ) ;
2023 }
2124 }
2225}
Original file line number Diff line number Diff line change @@ -234,14 +234,11 @@ header {
234234@keyframes fade-up {
235235 from {
236236 opacity : 0 ;
237- position : relative ;
238- top : 2rem ;
237+ margin-top : 4rem ;
239238 }
240239
241240 to {
242241 opacity : 1 ;
243- position : relative ;
244- top : 0 ;
245242 }
246243}
247244
You can’t perform that action at this time.
0 commit comments