From ca3f73d5433156c2c6d1af7877024996ff020afd Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Sat, 26 Sep 2020 05:40:42 +0200 Subject: fix theme picker highlighting of selected theme --- data/style.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'data/style.scss') diff --git a/data/style.scss b/data/style.scss index f7facc2..c146919 100644 --- a/data/style.scss +++ b/data/style.scss @@ -160,7 +160,14 @@ nav .theme li a::hover { color: var(--change_theme_link_color_hover); } -nav .theme li.active a { +@each $theme in $themes { + body.theme_#{$theme} nav .theme li.theme_#{$theme} a { + font-weight: bold; + color: var(--switch_theme_active); + } +} + +body:not([class^="theme_"]) nav .theme li.theme_default a { font-weight: bold; color: var(--switch_theme_active); } -- cgit v1.2.3