diff --git a/README.md b/README.md index bc5b41d..9ee7267 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ copying of files needed. - `css/custom.css`, `scripts/custom.js` — loaded last, safe for project tweaks. - `options/` — options page assets. +- `variants/` — build/export tooling only. Client variant definitions (`variants/*.json`) hold confidential house-style values, are gitignored (see `.gitignore`) and live in the private variants repo, not here. @@ -29,3 +30,9 @@ right. The center logo is absolutely centered in the navbar (see `sass/plain.sass`). Logo files are looked up in the theme's own `files/` folder first, then in the mother theme's `files/` folder. +## Menu item color in the top bar + +Option `navbarfontcolor` (Colors category) sets the text color of the menu +items in the navbar; it is applied in `views/subviews/header/custom_header.twig` +and should contrast with `headerbackgroundcolor`. + diff --git a/config.xml b/config.xml index 4b0e7a0..f4c7267 100644 --- a/config.xml +++ b/config.xml @@ -100,6 +100,7 @@ #eeeeee + #444444 #5e1c64 #444444 #5e1c64 diff --git a/views/subviews/header/custom_header.twig b/views/subviews/header/custom_header.twig index 301fbc1..b6dd478 100644 --- a/views/subviews/header/custom_header.twig +++ b/views/subviews/header/custom_header.twig @@ -145,8 +145,17 @@ background-color: {{ aSurveyInfo.options.headerbackgroundcolor }}; } - .navbar-default .navbar-nav > li > a:hover { - color: {{ aSurveyInfo.options.fontcolor }}; + #survey-nav .navbar-nav > li > a, + #survey-nav .navbar-nav .nav-link { + color: {{ aSurveyInfo.options.navbarfontcolor }}; + } + + #survey-nav .navbar-nav > li > a:hover, + #survey-nav .navbar-nav > li > a:focus, + #survey-nav .navbar-nav .nav-link:hover, + #survey-nav .navbar-nav .nav-link:focus { + color: {{ aSurveyInfo.options.navbarfontcolor }}; + opacity: 0.75; } .progress {