From 6441682afe8c1e465bbd66308b433dc0209be6e9 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Fri, 15 Apr 2022 10:22:05 +0200 Subject: [PATCH] Simplified menu coloring This reduces the number of required colors and makes desktop and mobile colors closer. Partly fixes #702 --- slt/css/dynamic-styles.css.php | 35 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/slt/css/dynamic-styles.css.php b/slt/css/dynamic-styles.css.php index d5e558e..e3deb55 100644 --- a/slt/css/dynamic-styles.css.php +++ b/slt/css/dynamic-styles.css.php @@ -58,29 +58,16 @@ a, a:hover, a:active, a:visited color: ; } -#mobile-menu li > a { - background-color: ; - color: ; -} /* General menu coloring */ -#mobile-menu li.current > a { - background-color: ; - color: ; -} ul.mod-menu { background-color: ; color: ; } -#mobile-menu { - background-color: ; - color: ; -} - ul.mod-menu li.current > a, ul.mod-menu li.current:hover > a { @@ -88,21 +75,35 @@ ul.mod-menu li.current:hover > a color: ; } -ul.nav > li > a:hover, -ul.nav > li > a:focus, +ul.mod-menu > li > a:hover, +ul.mod-menu > li > a:focus, ul.mod-menu__sub > li > a:hover, ul.mod-menu__sub > li > a:focus { - background-color: ; - color: ; + background-color: ; + color: ; +} + + /* Mobile menu settings */ + +#mobile-menu li > a { + background-color: ; + color: ; } +#mobile-menu li.current > a { + background-color: ; + color: ; +} + + /* Top menu coloring */ + #topmenu, #topmenu > ul.mod-menu { background-color: ;