File tree Expand file tree Collapse file tree 2 files changed +32
-5
lines changed Expand file tree Collapse file tree 2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -532,6 +532,7 @@ atomic-search-layout atomic-layout-section[section="search"] {
532
532
max-height : 100vh ;
533
533
overflow : hidden;
534
534
scrollbar-gutter : stable;
535
+ scrollbar-width : none;
535
536
}
536
537
537
538
.sidebar .scrollbar-container : hover {
@@ -701,7 +702,7 @@ atomic-search-layout atomic-layout-section[section="search"] {
701
702
702
703
.sidebar .sidebar-navigation ul li .partial {
703
704
margin-top : 0 ;
704
- top : calc ( 50 % - 3. 5px ) ;
705
+ top : 5px ;
705
706
left : -13px ;
706
707
}
707
708
@@ -710,10 +711,7 @@ atomic-search-layout atomic-layout-section[section="search"] {
710
711
position : relative;
711
712
}
712
713
713
- .sidebar
714
- .sidebar-navigation
715
- .parent-collapsible-content
716
- li : not (: only-child )::before {
714
+ .sidebar .sidebar-navigation .parent-collapsible-content : first-child ::before {
717
715
content : "" ;
718
716
position : absolute;
719
717
border-left : black 1px solid;
@@ -722,6 +720,16 @@ atomic-search-layout atomic-layout-section[section="search"] {
722
720
height : calc (100% - 9px - 10px );
723
721
}
724
722
723
+ .sidebar
724
+ .sidebar-navigation
725
+ .parent-collapsible-content
726
+ li : not (: only-child )
727
+ a
728
+ + : not (: has (# TableOfContents ))
729
+ li ::before {
730
+ border : none;
731
+ }
732
+
725
733
/* First Sidebar Nav Horizontal Lines */
726
734
.sidebar
727
735
.sidebar-navigation
@@ -751,6 +759,22 @@ atomic-search-layout atomic-layout-section[section="search"] {
751
759
align-items : flex-start;
752
760
}
753
761
762
+ /* Table of Contents */
763
+ # TableOfContents {
764
+ /* Close all TOC on sidebar */
765
+ display : none;
766
+ }
767
+
768
+ .collapsible-content li ul li : has (.current ) > nav {
769
+ /* Open TOC for current page */
770
+ display : block !important ;
771
+ }
772
+
773
+ # TableOfContents li {
774
+ position : relative;
775
+ list-style : square;
776
+ }
777
+
754
778
/* content */
755
779
main {
756
780
flex : 1 ;
Original file line number Diff line number Diff line change 20
20
< span class ="box-link partial "> </ span >
21
21
{{ end }}
22
22
< a href ="{{ .Permalink }} " style ="{{if eq $currentUrl .Permalink}}font-weight: bold;{{end}} "> {{ .Title }} </ a >
23
+ {{- with .TableOfContents -}}
24
+ {{- . -}}
25
+ {{- end -}}
23
26
{{ end }}
24
27
</ li >
25
28
{{ end }}
You can’t perform that action at this time.
0 commit comments