feat(options): Questions tab starts with 'Overall question' section + 2 distance options (plan P1)

Questions pane now has h2 'Questions' + intro paragraph, then an h3
'Overall question' section rendered as ONE col-md-6 column holding two new
text options — questiondistance ('Distance between two questions') and
questiondistancebottom ('Distance between last question and buttons at
bottom of page'), both default 30px and accepting px or rem — followed by a
full-width hr before the existing 3-column grid. custom_header.twig applies
them as CSS: .question-container margin-bottom and #navigator-container
margin-top, guarded to ^<number>(px|rem)$ with fallback 30px. config.xml:
both keys first in the Questions category, width=6 (row 160 rule). All
variants rebuilt + example config synced. jsdom: new row-179 assertions,
suite 8/8; live survey page emits both rules at 30px.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-29 14:27:52 +01:00
commit c4ec304dd0

View file

@ -31,7 +31,7 @@
<version>3.3.0</version>
<apiVersion>3</apiVersion>
<description>&lt;strong&gt;Example variant of Respondage Vanilla&lt;/strong&gt;&lt;br&gt;Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
<lastUpdate>2026-11-29 10:53:15</lastUpdate>
<lastUpdate>2026-11-29 13:20:28</lastUpdate>
<extends>vanilla_respondage</extends>
</metadata>
<compatibility>
@ -303,6 +303,15 @@
<groupdescriptionfontsize type="buttons" category="Groups" width="6" title="Group description font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</groupdescriptionfontsize>
<groupdescriptionfontoptions type="buttons" category="Groups" width="6" title="Group description font options" options="normal|bold|italic|bolditalic" optionlabels="Normal|Bold|Italic|Bold italic">normal</groupdescriptionfontoptions>
<!-- Questions tab (options.twig tab 5): first the three columns (col 1 colors+help, col 2 border + children, col 3 checkbox color; width 4 = col-md-4 columns), then the rest full-width (width 12). -->
<!-- Row 179 / plan P1: the Questions tab starts with the "Overall question"
section — ONE col-md-6 column (width 6) holding the two distance options,
followed by a full-width hr in options.twig. Values are free text in px or
rem (default 30px) and are applied as CSS in custom_header.twig:
questiondistance = margin-bottom of .question-container,
questiondistancebottom = margin-top of #navigator-container (the bottom
Previous/Next/Submit buttons). NOT house-style (structural). -->
<questiondistance type="text" category="Questions" width="6" title="Distance between two questions (px or rem)">30px</questiondistance>
<questiondistancebottom type="text" category="Questions" width="6" title="Distance between last question and buttons at bottom of page (px or rem)">30px</questiondistancebottom>
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
title/background/help/help-font/border/checkbox colors) are house-style