Skip to content

Commit

Permalink
theme/css/general.css: emphasize active sidebar item
Browse files Browse the repository at this point in the history
Highlights the background of the selected sidebar link
  • Loading branch information
ethamck authored and classabbyamp committed Sep 18, 2024
1 parent 8e7053a commit 3b3a7fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/theme/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ svg {
text-decoration: none;
}
#sidebar a.active {
color: var(--sidebar-active);
display: block;
padding: 0.5em;
width: 100%;
background-color: var(--sidebar-active);
color: var(--bg);
}
#sidebar a.active::after {
content: "" / " selected";
}

#sidebar-toggle {
Expand Down

0 comments on commit 3b3a7fd

Please sign in to comment.