Skip to content

Commit c8b6b24

Browse files
committed
#41 collapse sidemenu for second level
1 parent 4d53ba6 commit c8b6b24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

themes/hugo-theme-learn/static/css/hugo-theme.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ body {
8383
margin-right: 0.5rem !important;
8484
}
8585

86+
.dd-item.visited ul li.dd-item[data-nav-id] ul {
87+
display: none !important;
88+
}
89+
90+
.dd-item.visited ul .dd-item.active.visited a ~ ul , .dd-item.visited ul .dd-item.parent.visited a ~ ul{
91+
display: block !important;
92+
}
93+
8694
#sidebar-toggle-span {
8795
border-right: thin solid #DAD8D8 !important;
8896
padding-right: 0.5rem !important;

0 commit comments

Comments
 (0)