Skip to content

Commit

Permalink
Fix sidebar chevron states
Browse files Browse the repository at this point in the history
Fix #76
  • Loading branch information
jhildenbiddle committed Dec 6, 2023
1 parent 022d027 commit 1c71252
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/scss/app/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,7 @@ main {
padding: var(--sidebar-nav-pagelink-padding, var(--sidebar-nav-link-padding));
}

// Not loaded (w/o subnav)
&:only-child {
background: var(--sidebar-nav-pagelink-background);
}

// Loaded (w/ subnav)
&:not(:only-child) {
background: var(--sidebar-nav-pagelink-background--loaded, var(--sidebar-nav-pagelink-background));
}
background: var(--sidebar-nav-pagelink-background); // Chevron mono right
}
}

Expand Down Expand Up @@ -259,6 +251,21 @@ main {
}
}

&:has(.active) {
> a {

// Page links (routerMode: history|hash)
&[href^="/"]:not([href*="?id="]),
&[href^="#/"]:not([href*="?id="]) {

// Loaded (w/ subnav)
&:not(:only-child) {
background: var(--sidebar-nav-pagelink-background--loaded, var(--sidebar-nav-pagelink-background--loaded, var(--sidebar-nav-pagelink-background)));
}
}
}
}

&.collapse {
> a {
// Page links (routerMode: history|hash)
Expand Down

0 comments on commit 1c71252

Please sign in to comment.