From 3b3a7fd7aea37d15e5cffb70744302c777661edd Mon Sep 17 00:00:00 2001 From: ethamck Date: Sat, 3 Aug 2024 09:44:10 -0400 Subject: [PATCH] theme/css/general.css: emphasize active sidebar item Highlights the background of the selected sidebar link --- src/theme/css/general.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/theme/css/general.css b/src/theme/css/general.css index 3d682f8d9..4eb45e393 100644 --- a/src/theme/css/general.css +++ b/src/theme/css/general.css @@ -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 {