diff --git a/README.md b/README.md index 9ee7267..6c65ba1 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,9 @@ 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`. +## Distance from the logo to the top of the screen + +Option `logotopmargin` (Images category, e.g. `15px` or `0px`) sets the top +padding of the header logos, applied in `custom_header.twig`. Use `0px` to +align a logo exactly with the top of the screen. + diff --git a/config.xml b/config.xml index f4c7267..80371cb 100644 --- a/config.xml +++ b/config.xml @@ -73,6 +73,7 @@ ./files/logo.png off ./files/logo2.png + 15px on scroll tile diff --git a/views/subviews/header/custom_header.twig b/views/subviews/header/custom_header.twig index b6dd478..5e98305 100644 --- a/views/subviews/header/custom_header.twig +++ b/views/subviews/header/custom_header.twig @@ -145,6 +145,10 @@ background-color: {{ aSurveyInfo.options.headerbackgroundcolor }}; } + #survey-nav .logo-container > img { + padding-top: {{ aSurveyInfo.options.logotopmargin }}; + } + #survey-nav .navbar-nav > li > a, #survey-nav .navbar-nav .nav-link { color: {{ aSurveyInfo.options.navbarfontcolor }};