File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
_javascript/modules/components Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 33{% if enable_toc %}
44 < div class ="toc-border-cover z-3 "> </ div >
55 < section id ="toc-wrapper " class ="invisible position-sticky ps-0 pe-4 pb-4 ">
6- < h2 class ="panel-heading ps-3 pb-2 mb-0 "> {{- site.data.locales[include.lang].panel.toc -}}</ h2 >
6+ < h2 class ="panel-heading ps-3 pb-1 mb-0 "> {{- site.data.locales[include.lang].panel.toc -}}</ h2 >
77 < nav id ="toc "> </ nav >
88 </ section >
99{% endif %}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function refreshTheme(event) {
1111 const mermaidList = document . getElementsByClassName ( MERMAID ) ;
1212
1313 [ ...mermaidList ] . forEach ( ( elem ) => {
14- const svgCode = elem . previousSibling . children . item ( 0 ) . innerHTML ;
14+ const svgCode = elem . previousSibling . children . item ( 0 ) . textContent ;
1515 elem . textContent = svgCode ;
1616 elem . removeAttribute ( 'data-processed' ) ;
1717 } ) ;
Original file line number Diff line number Diff line change @@ -220,14 +220,11 @@ header {
220220@-webkit-keyframes fade-up {
221221 from {
222222 opacity : 0 ;
223- position : relative ;
224- top : 2rem ;
223+ margin-top : 4rem ;
225224 }
226225
227226 to {
228227 opacity : 1 ;
229- position : relative ;
230- top : 0 ;
231228 }
232229}
233230
@@ -247,6 +244,7 @@ header {
247244%top-cover {
248245 content : ' ' ;
249246 display : block ;
247+ position : -webkit-sticky ;
250248 position : sticky ;
251249 top : 0 ;
252250 width : 100% ;
@@ -257,13 +255,16 @@ header {
257255#toc-wrapper {
258256 top : 0 ;
259257 transition : top 0.2s ease-in-out ;
260- -webkit-animation : fade- up 0.8s ;
261- animation : fade- up 0.8s ;
262258 overflow-y : auto ;
263259 max-height : 100vh ;
264260 scrollbar-width : none ;
265261 margin-top : 2rem ;
266262
263+ & :not (.invisible ) {
264+ -webkit-animation : fade- up 0.8s ;
265+ animation : fade- up 0.8s ;
266+ }
267+
267268 ul {
268269 list-style : none ;
269270 font-size : 0.85rem ;
@@ -275,10 +276,6 @@ header {
275276 margin : 0.4rem 0 ;
276277 }
277278
278- & :first-child {
279- margin-top : 0 ;
280- }
281-
282279 a {
283280 padding : 0.2rem 0 0.2rem 1.25rem ;
284281 }
You can’t perform that action at this time.
0 commit comments