From b6a9ac74dbf7a3e3e9cde0dbb257ce53399b2689 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Mon, 16 Nov 2026 19:51:19 +0100 Subject: [PATCH] feat(options): logo top margin (logotopmargin) - config.xml: new duration option "logotopmargin" in the Images category (default 15px). - custom_header.twig: sets padding-top of the header logos, so 0px aligns a logo exactly with the top of the screen. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- README.md | 6 ++++++ config.xml | 1 + views/subviews/header/custom_header.twig | 4 ++++ 3 files changed, 11 insertions(+) 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 }};