Skip to content

Commit d77fbcb

Browse files
committed
add opacity highlight to sidebar
1 parent 2041d2c commit d77fbcb

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/.vuepress/theme/styles/sidebar.styl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,20 @@ header.navbar .nav-links {
6969
overflow: hidden;
7070

7171
> .sidebar-links {
72-
opacity: 0.5;
73-
transition: opacity 0.5s;
72+
a {
73+
&.active {
74+
opacity: 1;
7475

75-
&:hover {
76+
a {
77+
opacity: 1;
78+
}
79+
}
80+
81+
opacity: 0.5;
82+
transition: opacity 0.5s;
83+
}
84+
85+
&:hover a {
7686
opacity: 1;
7787
}
7888

0 commit comments

Comments
 (0)