Skip to content

Commit

Permalink
fix: active style for first level nav items (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Oct 12, 2024
1 parent b0925fc commit 296b793
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions assets/hb/modules/docs/scss/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
margin-top: 0.25rem;
padding: 0.25rem 0.5rem;
text-decoration: none;
}

.hb-docs-nav-heading {
&:hover,
&.active {
background: var(--#{$prefix}primary-bg-subtle);
Expand All @@ -31,21 +29,23 @@

.hb-docs-nav-link {
position: relative;
}

&:hover,
&.active {
@if ($hb-docs-navs-active-style == '') {
background: var(--#{$prefix}primary-bg-subtle);
}
@if ($hb-docs-navs-active-style == 'bordered') {
.hb-docs-nav-links-group {
.hb-docs-nav-link {
&:hover,
&.active {
background: unset;

@if ($hb-docs-navs-active-style == 'bordered') {
&::before {
content: "";
position: absolute;
left: 0;
margin-left: -.325rem;
border-left: 2px solid var(--#{$prefix}primary);
height: 1.25rem;
&::before {
content: "";
position: absolute;
left: 0;
margin-left: -.325rem;
border-left: 2px solid var(--#{$prefix}primary);
height: 1.25rem;
}
}
}
}
Expand Down

0 comments on commit 296b793

Please sign in to comment.