From 1d0161374b670631149dba81eff9556020967cfc Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Thu, 26 Nov 2026 19:41:12 +0100 Subject: [PATCH] feat(theme): default logos left/center/right + 30px top margin + 90px header bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Row 138: default look of the mother theme: - brandlogofile default -> ./files/logo-left.png (left) - centerlogofile default -> ./files/logo.png (center, was "off") - rightlogofile default -> ./files/logo-right.png (right, was "off") so all three logos are visible by default - brand/center/rightlogotopmargin defaults 15 -> 30 (px added in the view) - new option headerheight (Top of the page tab, col 3 next to the sticky checkboxes, default 90) applied in custom_header.twig as min-height on #survey-nav (min-height so taller logos can still grow the bar; the sticky body padding in scripts/custom.js follows the real nav height) - sticky defaults were already computer on / tablet on / mobile off (unchanged) Core normalizes ./files/x on theme reset to image::theme::files/x, so the config defaults keep the ./files/ style like the existing one. The PNG files logo-left.png / logo-right.png remain the owner's untracked files (Prompt PL). Verified: options render tc=633 (headerheight field present, logo dropdowns list all three files, divs balanced); live survey 282267 with the defaults applied to the DB row: three logo imgs (logo-left/logo/logo-right), padding-top 30px on all logo imgs, min-height 90px on #survey-nav, fixed-top media queries only for computer+tablet (mobile non-sticky) — DB row restored afterwards; jsdom 7/7; export exit 0. Theme reset needed for the new defaults to land in the DB. Variants not rebuilt (deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- config.xml | 25 +++++++++++++++--------- options/options.twig | 3 ++- views/subviews/header/custom_header.twig | 17 ++++++++++++---- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/config.xml b/config.xml index bacf77b..4fe288f 100644 --- a/config.xml +++ b/config.xml @@ -105,24 +105,25 @@ FIRST option is "No logo" (value "off", prepended by options.twig), a top margin in px (plain number 0-100; the views add the "px"), and "Show logo on" checkboxes per device (Bootstrap breakpoints: mobile < 768px, - tablet 768-991px, computer >= 992px). Defaults: left logo on with - logo.png, center/right "off" (no logo); margin 15; show on computer and - tablet, NOT on mobile (same as the old hide-on-small default). + tablet 768-991px, computer >= 992px). Defaults (row 138): ALL THREE + logos on — left logo-left.png, center logo.png, right logo-right.png; + margin 30 px; show on computer and tablet, NOT on mobile (same as the + old hide-on-small default). The old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, the shared logotopmargin) were removed; variants/build.php maps the variant json's old keys onto these new keys. --> - ./files/logo.png - 15 + ./files/logo-left.png + 30 on on off - off - 15 + ./files/logo.png + 30 on on off - off - 15 + ./files/logo-right.png + 30 on on off @@ -191,6 +192,12 @@ on on off + + 90