feat(nav): add context-aware expansion for nested navigation
Children are only visible when user is viewing a page within that section. Uses Tera's starting_with test to detect ancestor relationship.
This commit is contained in:
6
docs/static/style.css
vendored
6
docs/static/style.css
vendored
@@ -98,11 +98,15 @@ body {
|
||||
margin-left: 1rem;
|
||||
padding-left: 0.5rem;
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.sidebar .nav-children.expanded {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.sidebar .nav-children a {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user