You've already forked zblade.dev
fix(nav): highlight active navigation links
Add active route detection in BaseLayout and apply active styles for docs, blog, and changelog links, including trailing slash support
This commit is contained in:
@@ -170,11 +170,13 @@ a {
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
.nav a:hover,
|
||||
.nav a.active {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.nav a:hover::after {
|
||||
.nav a:hover::after,
|
||||
.nav a.active::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user