Skip to content

Commit

Permalink
fix(theme-default): fix link active status, close #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 13, 2024
1 parent a7a45cf commit 506e28c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions themes/theme-default/src/client/styles/navbar-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

& > a {
font-weight: inherit;
&.router-link-active {
&.route-link-active {
&::after {
display: none;
}
Expand Down Expand Up @@ -84,7 +84,7 @@
color: var(--c-text-accent);
}

&.router-link-active {
&.route-link-active {
color: var(--c-text-accent);

&::after {
Expand Down
8 changes: 4 additions & 4 deletions themes/theme-default/src/client/styles/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
color: inherit;

&:hover,
&.router-link-active {
&.route-link-active {
color: var(--c-text);
}
}
Expand All @@ -93,7 +93,7 @@

> a {
&:hover,
&.router-link-active {
&.route-link-active {
margin-bottom: -2px;
border-bottom: 2px solid var(--c-text-accent);
}
Expand All @@ -108,7 +108,7 @@

> a {
&:hover,
&.router-link-active {
&.route-link-active {
margin-bottom: 0;
border-bottom: none;
}
Expand All @@ -117,7 +117,7 @@

a {
&:hover,
&.router-link-active {
&.route-link-active {
color: var(--c-text-accent);
}
}
Expand Down
2 changes: 1 addition & 1 deletion themes/theme-default/src/client/styles/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.navbar-dropdown-wrapper
.navbar-dropdown
.navbar-dropdown-item
a.router-link-active::after {
a.route-link-active::after {
top: calc(1rem - 2px);
}
}
Expand Down

0 comments on commit 506e28c

Please sign in to comment.