fix(options): Questions tab row-195 corrections — 3-col help section, checkbox chooser in answers col 2, radius subcolumns
- Help section now 3 col-md-4 columns: col 1 = new questionhelpfont fontselect + questionhelpfontcolor (plain picker per decision 8), col 2 = help background chooser + custom, col 3 = help text position; questionhelpfont applied in survey_question_help.twig (falls back to answersfont on base) - checkboxcolor became a standard 6-way color chooser + checkboxcolorcustom (default other + #ff005f, look unchanged) and moved to column 2 of the 'Answer options and subquestions' section; resolved via cmm.cm() in custom_header.twig (legacy hex passthrough); legacy col 3 removed - Border radii now form two subcolumns: border-start vertical divider on the right subcolumn (TR/BR), hr between the two rows kept - chooser key lists synced in options.twig/options.js/build.php (+checkboxcolor) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
aae3112981
commit
52bd169335
7 changed files with 95 additions and 56 deletions
59
config.xml
59
config.xml
|
|
@ -475,11 +475,28 @@
|
|||
<option value="other">Other ...</option>
|
||||
</dropdownoptions></answerstextcolor>
|
||||
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
||||
<!-- Row 178 plan P4 (row 186): section "Question help" (options.twig) — a
|
||||
three-column grid (col-md-4, width 4) of which only the first column is
|
||||
used: help background color CHOOSER (6-way + custom, default "other" with
|
||||
custom #fff3cd so the look stays as before), the help font color (stays a
|
||||
plain picker per row-178 decision 8) and the help text position. -->
|
||||
<!-- Row 195: the checkbox/radiobutton color moved here — column 2 of the
|
||||
"Answer options and subquestions" section — and became a standard 6-way
|
||||
color chooser (+ custom child), like the other color options. Default
|
||||
mode "other" + custom #ff005f, so the look stays exactly as before. -->
|
||||
<checkboxcolor type="dropdown" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions>
|
||||
<option value="default">Default font color</option>
|
||||
<option value="defaultbackgroundcolor">Default background color</option>
|
||||
<option value="color1">Color 1</option>
|
||||
<option value="color2">Color 2</option>
|
||||
<option value="color3">Color 3</option>
|
||||
<option value="other" data-default="1">[Other ...]</option>
|
||||
</dropdownoptions></checkboxcolor>
|
||||
<checkboxcolorcustom type="colorpicker" category="Questions" width="4" title="Custom checkbox/radiobutton color (for 'Other ...')" parent="checkboxcolor">#ff005f</checkboxcolorcustom>
|
||||
<!-- Row 178 plan P4 (row 186, revised row 195): section "Question help"
|
||||
(options.twig) — a three-column grid (col-md-4, width 4):
|
||||
col 1 = the font chooser for the help text + the help font color (stays a
|
||||
plain picker per row-178 decision 8), col 2 = the help background color
|
||||
CHOOSER (6-way + custom, default "other" with custom #fff3cd so the look
|
||||
stays as before), col 3 = the help text position. -->
|
||||
<questionhelpfont type="fontselect" category="Questions" width="4" title="Font for question help text">base</questionhelpfont>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelpbackgroundcolor type="dropdown" category="Questions" width="4" title="Question help background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions>
|
||||
<option value="default">Default font color</option>
|
||||
|
|
@ -490,7 +507,6 @@
|
|||
<option value="other" data-default="1">[Other ...]</option>
|
||||
</dropdownoptions></questionhelpbackgroundcolor>
|
||||
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<!-- Row 178 plan P5 (row 188): section "Question border" (options.twig) —
|
||||
three col-md-4 subcolumns with a vertical divider between them (col 1 =
|
||||
|
|
@ -514,28 +530,29 @@
|
|||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
questiondropdown, questionhelptextposition and checkboxcolor (now a 6-way
|
||||
chooser, row 195).
|
||||
Row 178 plan: order = the sections of the Questions tab as rendered by
|
||||
options.twig (aQSections/aQSlots): first the "Overall question" section
|
||||
(width 4 = the first col-md-4 of a three-column grid, row 183), then the
|
||||
"Question title and body" section (three col-md-4 columns, width 4):
|
||||
col1 title font chooser/color chooser + legacy picker, col2 title
|
||||
background chooser, col3 body background chooser; then (P3/row 184) the
|
||||
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
||||
three-column grid, only it used): answers font + 6-way color chooser +
|
||||
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||
custom, plain help font color picker, help text position; then (P5/row
|
||||
188) the "Question border" section (three col-md-4 subcolumns with a
|
||||
background chooser, col3 body background chooser; then (P3/row 184,
|
||||
row 195) the "Answer options and subquestions" section (three col-md-4
|
||||
columns): col1 answers font + 6-way color chooser + custom, col2 the
|
||||
checkbox/radiobutton color chooser + custom; then (P4/row 186, revised
|
||||
row 195) the "Question help" section (three col-md-4 columns): col1 help
|
||||
font chooser + plain help font color picker, col2 help background
|
||||
chooser + custom, col3 help text position; then (P5/row 188, row 195)
|
||||
the "Question border" section (three col-md-4 subcolumns with a
|
||||
vertical divider between them: col 1 = the border buttons, col 2 = the
|
||||
color/style/shadow children, col 3 = the four radii as two rows of two
|
||||
with an hr between the rows); then the remaining legacy column
|
||||
(checkbox color), then the rest full-width (width 12). Inside a pane
|
||||
column each option stacks as col-12 (the radius options as col-md-6
|
||||
for the 2x2 rows). questionhelpfontcolor is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
color/style/shadow children, col 3 = the four radii as TWO subcolumns
|
||||
of two with a vertical divider between them and an hr between the two
|
||||
rows); then the rest full-width (width 12). Inside a pane column each
|
||||
option stacks as col-12 (the radius options as col-md-6 for the 2x2
|
||||
subcolumns, the right subcolumn with border-start). questionhelpfontcolor
|
||||
is applied in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Buttons tab (row 178 plan P6): own category directly after Questions,
|
||||
so the options page renders it as a tab directly after the Questions tab.
|
||||
One column per navigator button — col 1 = Previous, col 2 = Next,
|
||||
|
|
|
|||
|
|
@ -36,9 +36,10 @@ var ThemeOptions = function () {
|
|||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
// questionhelpbackgroundcolor as well; row 191 / plan P6: the six per-button
|
||||
// choosers (previous/next/submit button background + text color).
|
||||
// choosers (previous/next/submit button background + text color); row 195:
|
||||
// checkboxcolor as well.
|
||||
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
// the 5 presets, in the SAME order as the dropdown options in config.xml
|
||||
// (object key order = swatch chip order) — row 125: "Default background color"
|
||||
// is the SECOND choice, right after "Default font color".
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@
|
|||
row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
questionhelpbackgroundcolor as well. Must stay in sync with
|
||||
aColorChooserKeys in options/options.js. #}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
|
||||
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
||||
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
||||
|
|
@ -320,7 +320,9 @@
|
|||
{# row 188 / plan P5: the border keys moved into their own "Question border"
|
||||
section (aQSlots above) — legacy column 2 is empty now #}
|
||||
{% set aQuestionsCol2 = [] %}
|
||||
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
||||
{# row 195: checkboxcolor moved into the answers section (answers:1 below) —
|
||||
legacy column 3 is empty now #}
|
||||
{% set aQuestionsCol3 = [] %}
|
||||
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
||||
h3 + its own row of columns and ends with a full-width hr. aQSections lists the
|
||||
sections (id, h3, colClass); aQSlots maps each option key to "sectionId:colIndex".
|
||||
|
|
@ -344,8 +346,10 @@
|
|||
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
|
||||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
||||
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0',
|
||||
'checkboxcolor': 'answers:1', 'checkboxcolorcustom': 'answers:1',
|
||||
'questionhelpfont': 'help:0', 'questionhelpfontcolor': 'help:0',
|
||||
'questionhelpbackgroundcolor': 'help:1', 'questionhelpbackgroundcolorcustom': 'help:1',
|
||||
'questionhelptextposition': 'help:2',
|
||||
'questionborder': 'border:0',
|
||||
'questionbordercolor': 'border:1', 'questionborderstyle': 'border:1', 'questiondropdown': 'border:1',
|
||||
'questionborderradiusTL': 'border:2', 'questionborderradiusTR': 'border:2',
|
||||
|
|
@ -792,8 +796,10 @@
|
|||
{% if bQuestionsPane or bTopPane or bGroupsPane or bImagesPane or bButtonsPane or (bFontsPane and fSlot != 'rest') %}{% set wrapClass = 'col-12' %}{% else %}{% set wrapClass = 'col-12 col-md-' ~ attr.width|default(2) %}{% endif %}
|
||||
{# row 188 / plan P5: inside the "Question border" section's radius
|
||||
subcolumn the four radius options form two rows of two — their
|
||||
wrappers are half the column (col-md-6) instead of col-12 #}
|
||||
{% if bQuestionsPane and key starts with 'questionborderradius' %}{% set wrapClass = 'col-12 col-md-6' %}{% endif %}
|
||||
wrappers are half the column (col-md-6) instead of col-12.
|
||||
Row 195: the two radius subcolumns get a vertical divider —
|
||||
the right subcolumn (TR / BR) carries border-start #}
|
||||
{% if bQuestionsPane and key starts with 'questionborderradius' %}{% set wrapClass = 'col-12 col-md-6' %}{% if key == 'questionborderradiusTR' or key == 'questionborderradiusBR' %}{% set wrapClass = wrapClass ~ ' border-start' %}{% endif %}{% endif %}
|
||||
{# server-side current value for this option (checked/selected/value) #}
|
||||
{% set currentValue = bGeneralInherit ? 'inherit' : (aCurrentOptions[key] is defined ? aCurrentOptions[key] : (oParentOptions[key] is defined ? oParentOptions[key] : '')) %}
|
||||
{# parent != '': this field is only visible when the parent option's value
|
||||
|
|
|
|||
|
|
@ -274,14 +274,14 @@ foreach ($logoPositions as $pos) {
|
|||
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
|
||||
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
|
||||
// answerstextcolor; row 186 plan P4 adds questionhelpbackgroundcolor; row 191 plan
|
||||
// P6 adds the six per-button choosers) became mode
|
||||
// P6 adds the six per-button choosers; row 195 adds checkboxcolor) became mode
|
||||
// dropdowns
|
||||
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
|
||||
// colorpicker child. A legacy HEX value in the json means "custom color": map it
|
||||
// to mode "other" and move the hex into the <key>custom child, so the variant
|
||||
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
|
||||
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
|
||||
foreach ($colorChooserKeys as $ck) {
|
||||
if (isset($definition['options'][$ck])
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<version>3.3.0</version>
|
||||
<apiVersion>3</apiVersion>
|
||||
<description><strong>Example variant of Respondage Vanilla</strong><br>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 14:39:51</lastUpdate>
|
||||
<lastUpdate>2026-11-29 14:58:38</lastUpdate>
|
||||
<extends>vanilla_respondage</extends>
|
||||
</metadata>
|
||||
<compatibility>
|
||||
|
|
@ -355,15 +355,24 @@
|
|||
<answerstextcolor type="dropdown" category="Questions" width="4" title="Text color for answers and subquestions" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></answerstextcolor>
|
||||
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
||||
<!-- Row 178 plan P4 (row 186): section "Question help" (options.twig) — a
|
||||
three-column grid (col-md-4, width 4) of which only the first column is
|
||||
used: help background color CHOOSER (6-way + custom, default "other" with
|
||||
custom #fff3cd so the look stays as before), the help font color (stays a
|
||||
plain picker per row-178 decision 8) and the help text position. -->
|
||||
<!-- Row 195: the checkbox/radiobutton color moved here — column 2 of the
|
||||
"Answer options and subquestions" section — and became a standard 6-way
|
||||
color chooser (+ custom child), like the other color options. Default
|
||||
mode "other" + custom #ff005f, so the look stays exactly as before. -->
|
||||
<checkboxcolor type="dropdown" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other" data-default="1">[Other ...]</option></dropdownoptions></checkboxcolor>
|
||||
<checkboxcolorcustom type="colorpicker" category="Questions" width="4" title="Custom checkbox/radiobutton color (for 'Other ...')" parent="checkboxcolor">#ff005f</checkboxcolorcustom>
|
||||
<!-- Row 178 plan P4 (row 186, revised row 195): section "Question help"
|
||||
(options.twig) — a three-column grid (col-md-4, width 4):
|
||||
col 1 = the font chooser for the help text + the help font color (stays a
|
||||
plain picker per row-178 decision 8), col 2 = the help background color
|
||||
CHOOSER (6-way + custom, default "other" with custom #fff3cd so the look
|
||||
stays as before), col 3 = the help text position. -->
|
||||
<questionhelpfont type="fontselect" category="Questions" width="4" title="Font for question help text">base</questionhelpfont>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelpbackgroundcolor type="dropdown" category="Questions" width="4" title="Question help background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other" data-default="1">[Other ...]</option></dropdownoptions></questionhelpbackgroundcolor>
|
||||
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<!-- Row 178 plan P5 (row 188): section "Question border" (options.twig) —
|
||||
three col-md-4 subcolumns with a vertical divider between them (col 1 =
|
||||
|
|
@ -387,28 +396,29 @@
|
|||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
questiondropdown, questionhelptextposition and checkboxcolor (now a 6-way
|
||||
chooser, row 195).
|
||||
Row 178 plan: order = the sections of the Questions tab as rendered by
|
||||
options.twig (aQSections/aQSlots): first the "Overall question" section
|
||||
(width 4 = the first col-md-4 of a three-column grid, row 183), then the
|
||||
"Question title and body" section (three col-md-4 columns, width 4):
|
||||
col1 title font chooser/color chooser + legacy picker, col2 title
|
||||
background chooser, col3 body background chooser; then (P3/row 184) the
|
||||
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
||||
three-column grid, only it used): answers font + 6-way color chooser +
|
||||
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||
custom, plain help font color picker, help text position; then (P5/row
|
||||
188) the "Question border" section (three col-md-4 subcolumns with a
|
||||
background chooser, col3 body background chooser; then (P3/row 184,
|
||||
row 195) the "Answer options and subquestions" section (three col-md-4
|
||||
columns): col1 answers font + 6-way color chooser + custom, col2 the
|
||||
checkbox/radiobutton color chooser + custom; then (P4/row 186, revised
|
||||
row 195) the "Question help" section (three col-md-4 columns): col1 help
|
||||
font chooser + plain help font color picker, col2 help background
|
||||
chooser + custom, col3 help text position; then (P5/row 188, row 195)
|
||||
the "Question border" section (three col-md-4 subcolumns with a
|
||||
vertical divider between them: col 1 = the border buttons, col 2 = the
|
||||
color/style/shadow children, col 3 = the four radii as two rows of two
|
||||
with an hr between the rows); then the remaining legacy column
|
||||
(checkbox color), then the rest full-width (width 12). Inside a pane
|
||||
column each option stacks as col-12 (the radius options as col-md-6
|
||||
for the 2x2 rows). questionhelpfontcolor is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
color/style/shadow children, col 3 = the four radii as TWO subcolumns
|
||||
of two with a vertical divider between them and an hr between the two
|
||||
rows); then the rest full-width (width 12). Inside a pane column each
|
||||
option stacks as col-12 (the radius options as col-md-6 for the 2x2
|
||||
subcolumns, the right subcolumn with border-start). questionhelpfontcolor
|
||||
is applied in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Buttons tab (row 178 plan P6): own category directly after Questions,
|
||||
so the options page renders it as a tab directly after the Questions tab.
|
||||
One column per navigator button — col 1 = Previous, col 2 = Next,
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@
|
|||
|
||||
label::after,
|
||||
.radio-item label::after{
|
||||
background-color: {{ aSurveyInfo.options.checkboxcolor }};
|
||||
background-color: {{ cmm.cm(aSurveyInfo.options.checkboxcolor|default('other'), aSurveyInfo.options.checkboxcolorcustom|default('#ff005f'), aSurveyInfo.options) }};
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,13 @@
|
|||
#}
|
||||
|
||||
{# THEME ADDITION: help texts use the answers font (config.xml option "answersfont",
|
||||
type fontselect). "base" = same as the base font: no extra class, inherits body font. #}
|
||||
type fontselect). "base" = same as the base font: no extra class, inherits body font.
|
||||
Row 195: the dedicated help font (config.xml option "questionhelpfont", type
|
||||
fontselect) wins when set to something other than "base"; otherwise the answers
|
||||
font is used as before. #}
|
||||
{% set sHelpFont = aSurveyInfo.options.questionhelpfont|default('') %}
|
||||
{% set sAnswersFont = aSurveyInfo.options.answersfont|default('base') %}
|
||||
{% set sUsedFont = (sHelpFont != '' and sHelpFont != 'base') ? sHelpFont : sAnswersFont %}
|
||||
{# Prompt U: per-element text color — mode default -> fontcolor, primary ->
|
||||
primarycolor, secondary -> secondarycolor, other -> answerstextcolorcustom.
|
||||
Emitted as an inline style on the element below. #}
|
||||
|
|
@ -29,7 +34,7 @@
|
|||
{% set sAnswersTextColor = sAnswersTextColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sAnswersTextColorMode : (sAnswersTextColorMode == 'color1' or sAnswersTextColorMode == 'primary' ? oA.primarycolor|default('') : (sAnswersTextColorMode == 'color2' or sAnswersTextColorMode == 'secondary' ? oA.secondarycolor|default('') : (sAnswersTextColorMode == 'color3' ? oA.tertiarycolor|default('') : (sAnswersTextColorMode == 'defaultbackgroundcolor' ? oA.defaultbackgroundcolor|default('') : (sAnswersTextColorMode == 'other' ? oA.answerstextcolorcustom|default('') : oA.fontcolor|default('')))))) %}
|
||||
|
||||
<!-- Survey question help -->
|
||||
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.helpcontainer }}>
|
||||
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sUsedFont != 'base' %}font-{{ sUsedFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.helpcontainer }}>
|
||||
{% if aQuestion.help.show %}
|
||||
<div class="{{ aSurveyInfo.class.lsquestionhelp }}">
|
||||
{{ aQuestion.help.text | raw }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue