Skip to content

Commit 3b3a7fd

Browse files
ethamckclassabbyamp
authored andcommitted
theme/css/general.css: emphasize active sidebar item
Highlights the background of the selected sidebar link
1 parent 8e7053a commit 3b3a7fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/theme/css/general.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,14 @@ svg {
202202
text-decoration: none;
203203
}
204204
#sidebar a.active {
205-
color: var(--sidebar-active);
205+
display: block;
206+
padding: 0.5em;
207+
width: 100%;
208+
background-color: var(--sidebar-active);
209+
color: var(--bg);
210+
}
211+
#sidebar a.active::after {
212+
content: "" / " selected";
206213
}
207214

208215
#sidebar-toggle {

0 commit comments

Comments
 (0)