feat(theme): default logos left/center/right + 30px top margin + 90px header bar
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 <vibe@mistral.ai>
This commit is contained in:
parent
8f46af54d6
commit
1d0161374b
1 changed files with 31 additions and 14 deletions
|
|
@ -225,7 +225,7 @@
|
|||
value. The order of this list is the order shown in the tab. #}
|
||||
{% set aTopOfPageKeys = [
|
||||
'headerfont', 'navbarfontcolor', 'navbarfontcolorcustom', 'headerbackgroundcolor', 'headerbackgroundcolorcustom',
|
||||
'headersticky', 'headerstickycomputer', 'headerstickytablet', 'headerstickymobile',
|
||||
'headersticky', 'headerstickycomputer', 'headerstickytablet', 'headerstickymobile', 'headerheight',
|
||||
'brandlogofile', 'brandlogotopmargin', 'brandshowoncomputer', 'brandshowontablet', 'brandshowonmobile',
|
||||
'centerlogofile', 'centerlogotopmargin', 'centershowoncomputer', 'centershowontablet', 'centershowonmobile',
|
||||
'rightlogofile', 'rightlogotopmargin', 'rightshowoncomputer', 'rightshowontablet', 'rightshowonmobile',
|
||||
|
|
@ -381,6 +381,7 @@
|
|||
{% elseif key == 'navbarfontcolorcustom' %}{% set fSlot = 'h1' %}
|
||||
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h2' %}
|
||||
{% elseif key == 'headerbackgroundcolorcustom' %}{% set fSlot = 'h2' %}
|
||||
{% elseif key == 'headerheight' %}{% set fSlot = 'h3' %}
|
||||
{% elseif key in aTopStickyKeys %}{% set fSlot = 'h3' %}
|
||||
{% elseif key == 'progressbarposition' %}{% set fSlot = 'ppos' %}
|
||||
{% elseif key == 'progressbarfont' %}{% set fSlot = 'pfont' %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue