Commit graph

128 commits

Author SHA1 Message Date
5dfe08bf6f chore(files): row 234 — gitignore WIP svg artwork (files/*.svg), commit new preview.png
The new theme preview was added as files/preview.svg (source) +
files/preview.png (export). LimeSurvey's image validator rejects SVG for
theme images anyway, so only the PNG is tracked: .gitignore now ignores
/files/*.svg (generalizes the row-208 logos.svg entry to all WIP artwork).

Also fixed variants/export_public.sh: the staging tar did not exclude
files/*.svg, so the gitignored logos.svg still leaked into the public zip;
added --exclude='./files/*.svg'. Verified: export exit 0 and the new
dist/vanilla_respondage-0.1-public.zip contains files/preview.png and no
.svg files at all.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 11:58:34 +01:00
d8ee93a1c0 fix(security): sanitize theme option values at emission (S1) and escape imagefile option HTML (S2)
S1 (HIGH, SECURITY_REVIEW_20261129.md): LimeSurvey renders theme twig with
autoescape OFF, so stored option values are untrusted on the public survey
pages. New views/subviews/security_macros.twig provides validators (color,
length, keyword, fontslug, pxnum, iconcode) applied at every emission point:
the <style> block in custom_header.twig (incl. the resolved values of the
cm()/cmbg() chooser macros), the inline style="color:..." and font-<slug>
class attributes in all survey subviews, and the <body> font class +
data-thememode in the newly overridden layout_global.twig and
layout_survey_list.twig. Crafted values fall back to the configured
defaults; legitimate picker/enum/slug values pass unchanged.

S2 (MEDIUM): options/options.twig escapes group/preview/filepath/filename
with |e('html_attr')/|e('html') when building the imagefile <option> HTML.

Verified: twig compile of all changed templates, malicious-value renders
neutralized + legit renders unchanged, live surveys 216664/282267 render
correct colors with no twig errors, jsdom custom_js tests pass (options_*
tests still need /tmp fixtures, pre-existing), export_public.sh exit 0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 11:27:38 +01:00
2b19f350f4 docs(readme): row 229 — document font variant availability (real weights vs synthesized italic)
The bundled fonts declare font-style: normal only: Inter/Noto variable fonts
give real weights 100-900 but faux italic; Atkinson Hyperlegible ships static
400/700 only. Per-element normal|bold|italic|bolditalic options therefore map
to real weights where shipped and browser-synthesized styles otherwise; browser
fonts depend on the respondent's OS. Documented under the fonts section.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 10:32:05 +01:00
a1d58c7c79 feat(fonts): row 228 — Inter as default font, 4-font bundle incl. Atkinson Hyperlegible
Purged: EB Garamond, Liberation Sans 400/700, Open Sans, Source Serif 4
(rationale in README.md 'Default font'). Kept: Inter (now the default of the
font option, best screen readability at survey sizes, with Noto Sans stacked
behind it as multilingual fallback), Noto Sans, Noto Serif (the one serif,
non-Latin coverage). Added: Atkinson Hyperlegible 400/700 (OFL 1.1, from
googlefonts/atkinson-hyperlegible) as the accessibility variant for
respondents with reading impairments. sass/fonts.sass is the leading source;
css/fonts.css recompiled. README.md + files/fonts/README.md document the
choice and the alternatives. Variant propagation parked per row 222.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 10:31:07 +01:00
c66eceb9bb feat(options): row 227 — slider handle color gets the full swatch chooser + lowered like answers col 2; 'radio button' spacing
- options.js aColorChooserKeys += sliderhandlecolor: the option now gets the
  same color-chooser scheme as Checkbox/radio button color (6-way dropdown,
  5 preset swatches + 'Other ...' custom picker) in the options UI.
- alignQuestionColumns: answers section col 3 (slider handle color) is now
  lowered with the same measured padding-top as col 2 (checkbox color).
- config.xml: checkboxcolor title 'Checkbox/radiobutton color' ->
  'Checkbox/radio button color'.
Variant propagation parked per row 222 (no variant rebuilds/example sync).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 10:15:19 +01:00
e9c0ac5c14 feat(options): row 221 — align Questions-tab color columns + move slider handle color into the answers section
Request 1: options.js generalizes the Header-tab column alignment
(alignHeaderColumns, measured padding-top) to the Questions tab via
alignQuestionColumns(): in the 'Question title and body' section columns 2
and 3 are top-aligned with the title text-color chooser in column 1; in
'Answer options and subquestions' column 2 (checkbox color) aligns with the
answers text color; in 'Question help' column 2 (help background) aligns with
the help font color. Runs on run(), on any shown.bs.tab and on resize (hidden
panes measure 0 and no-op).

Request 2: the orphaned full-width 'Slider handle color' picker at the bottom
of the Questions tab becomes a 6-way color chooser (default color2) with a
sliderhandlecolorcustom child, placed in the THIRD column of 'Answer options
and subquestions' (aQSlots answers:2). custom_header.twig resolves it via
cm() (legacy stored hex passes through). variants/build.php maps legacy hex
json values of variants to mode 'other' + custom child; all variants rebuilt
(defensie, erasmus) + example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 10:01:49 +01:00
756c0ec2d1 refactor(css): row 216 — sass is leading for ALL css files, not just plain.css
Previously only css/plain.css was compiled from sass/plain.sass; css/custom.css
and css/fonts.css were hand-written. Now every theme stylesheet has a leading
sass source: sass/plain.sass, sass/custom.sass, sass/fonts.sass (partials _*),
compiled with 'sass --watch sass:css' (dart-sass 1.83.4 added as local
devDependency; node_modules/package.json stay gitignored). css/*.css are build
artifacts and remain the committed runtime files; sass/ stays developer-local.
Recompiled output is semantically identical to the previous hand-written files
(dart-sass normalization only: 2-space indent, double quotes, @charset).
variants/export_public.sh step 0 now checks BOTH directions for every pair:
stale css/<name>.css vs sass/<name>.sass aborts, and a css file without a sass
source aborts; compiler resolved from PATH or node_modules/.bin/sass.
.gitignore/README document the workflow.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 09:11:39 +01:00
22c1f230b3 feat(slider): row 215 — hide the value tooltip on untouched sliders
Core hides the slider tooltip via jQuery .hide() only when no default
position is set; with slider_default_set an untouched slider keeps a
visible tooltip (and the slider-touched class — see
BUG_REPORT_slider_touched_class_unreliable_with_default_set.md). While
the slider-is-untouched class (row 214) is set, also hide .slider .tooltip.
No !important on purpose: on touch core sets an inline display via .show(),
which wins over this rule, so the tooltip reappears exactly when the slider
is touched.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 09:00:39 +01:00
368929c1cf feat(slider): row 214 — grey handle for untouched sliders, theme color when touched
Core's slider-untouched/slider-touched classes on the .slider element are not
a reliable state signal (with slider_default_set an untouched slider keeps
slider-touched), so the theme now derives the state itself: scripts/custom.js
syncs a slider-is-untouched class onto li.slider-item from the real answer
input (#answer<fname>, empty = untouched) on load and on every change/keyup
that core fires on it; css/custom.css greys .slider-handle and makes
.slider-selection transparent while that class is set (specificity 0,3,0 beats
the .slider-handle rule in custom_header.twig, which still colors touched
handles with sliderhandlecolor). Works for horizontal and vertical sliders;
inherited by all variants via extends, no config.xml change.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 08:57:23 +01:00
61d0aa2709 chore(files): row 209 — recreated placeholder logos logo-left.png (640x200) / logo-right.png (928x400)
Owner-recreated PNGs replacing the 236x200 versions from row 206.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 19:24:56 +01:00
261e8c5989 chore(gitignore): row 208 — ignore files/logos.svg (work-in-progress logo artwork)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 19:24:34 +01:00
a50be4b1e7 feat(views): row 207 — 'Proudly developed by [logo]' footer below the survey buttons, on all pages except the welcome page
- footer.twig: renders on every page except the welcome page
  (aSurveyInfo.include_content == 'firstpage'); text + logo now sit in
  ONE link to https://www.respondage.nl, like the options-page footer.
  Logo still uses the dedicated respondage-logo.png (falls through to the
  mother theme in variants).
- custom_header.twig style block: .respondage-theme-footer gets the base
  font size (fontsize option) and Color 2 (secondarycolor); the text uses
  the default (body) font by inheritance.
- css/custom.css: logo height 25px (was max-height 18px).
- Only the mother theme is touched — variants inherit the view via
  <extends> and get no variant-specific values (per owner).
- Fix along the way: footer.twig had mode 600 after a rewrite, so the web
  server could not read it and the footer silently compiled empty;
  chmod 664 restored.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 19:20:07 +01:00
690fbe05fa chore(files): row 206 — updated placeholder logos logo-left.png / logo-right.png
New PNGs (236x200 RGBA, smaller) reflecting the chosen default colors
(Color 1 #26547c / Color 2 #ef476f / Color 3 #fff3cd). Owner-edited files,
committed as-is. These are the Prompt PL placeholder logos for the left and
right header positions (placement itself still parked in OPEN_PROMPTS.md).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 17:50:35 +01:00
611f7f2c34 chore(metadata): row 205 — version 0.1, creationDate/lastUpdate 2026-11-29 (new theme, no name change)
Per owner: this is a complete new theme, so the version restarts at 0.1
and creationDate/lastUpdate are set to today (2026-11-29 17:48). Name
unchanged (vanilla_respondage / 'Vanilla Respondage') per owner decision.
Variants rebuilt (version+creationDate propagate from the mother,
lastUpdate stamped by build.php) + example config synced.
Owner action: reset the theme in LS-admin so lime_templates picks up the
new metadata (version column currently NULL).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 17:50:04 +01:00
b224627cda feat(options): row 204 — place the last Colors-category options on visible tabs; park open prompts; security review filed
- sliderhandlecolor moved to the Questions category (full-width row at
  the end of the Questions pane, after the border section hr);
  privacybackgroundcolor moved to Page background (column 1, under the
  background image switch). The Colors category is gone entirely; the
  options.twig tab loop keeps a Colors exclusion as a safety net.
  Both values are still applied in custom_header.twig (verified live).
  Variants rebuilt + example config synced; jsdom 8/8.
- Prompt V cleanup verified: no respondage_vanilla folder/zip left in
  upload/themes/survey, zero DB references (surveys, template_configuration,
  lime_templates). Remaining resets/flushassets are owner actions.
- Security review (Prompt B) executed, approval-gated: report in
  SECURITY_REVIEW_20261129.md (S1 HIGH raw option values into <style>/
  attributes → stored XSS; S2 MEDIUM raw imagefile option HTML in
  options.twig:98-104; S3-S7 info/safe), core FR filed as
  FEATURE_REQUEST_security_theme_option_raw_output.md. No fixes without
  owner approval.
- Parked prompts moved from prompts.md to OPEN_PROMPTS.md (findable
  index): PL, HB, AN, A, C open; Z/B/V marked done. New local files
  gitignored + export-excluded (OPEN_PROMPTS.md, SECURITY_REVIEW*.md).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 17:46:47 +01:00
931d61b13d fix(views): row 201 — emit the border-radius values as-is (they already carry px/rem)
The duration options store e.g. "5px", but custom_header.twig appended
"px" again, rendering border-radius: 5pxpx ... — invalid, so the browser
dropped the declaration and no radius showed in the survey. Values are
now emitted unchanged, with a ^<number>(px|rem)$ guard falling back to
5px (regex written backslash-free: [0-9], [.]). Verified live: 5px renders,
1.5rem renders, invalid values fall back to 5px.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:54:28 +01:00
0dfecd1a9e style(options): row 200 — drop the vertical divider between the border-radius subcolumns
The border-start on the TR/BR radius wrappers added nothing next to the
already-capped input width; removed it. The hr between the two radius
rows and the section-level column dividers stay.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:51:09 +01:00
6ee5ba0635 style(options): row 199 — cap the border-radius input width in the 2x2 subcolumn grid
The four radius inputs are full-width form-controls, so the two inputs of
a subcolumn row touched each other. max-width: 8rem on the inputs inside
.questions-col-border-2 keeps a comfortable gap.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:49:36 +01:00
95c95dd8f6 fix(options): row 198 — restore 3-column section layouts in the Questions tab; make border radii a real 2x2 subcolumn grid
- aQSlots back to the row 178 plan / row 195 layouts: title = 3 columns
  (col 1 font+font color+size+options+legacy picker, col 2 title bg
  chooser, col 3 body bg chooser), answers = col 1 font+font color,
  col 2 checkbox chooser (column 2 as row 195), help = 3 columns
  (col 1 font+font color, col 2 bg chooser, col 3 text position);
  config.xml order already matched, only the slots changed
- border radii: the col-md-6 wrappers sat directly in the block-level
  col-md-4 column, so width:50% stacked them vertically instead of two
  per row — .questions-col-border-2 is now display:flex + flex-wrap,
  so TL/TR form row 1, the hr its own line, BL/BR (border-start) row 2
- config.xml: refreshed the stale Questions-tab comment to describe the
  section layout; all variants rebuilt + example config synced

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:47:12 +01:00
8370a945d5 feat(options): row 197 — help/border font color choosers, box-only radii, aligned chooser columns, 'Font color for ...' labels
- questionhelpfontcolor + questionbordercolor are now 6-way color choosers
  (+custom children), both default mode 'default' (Default font color);
  resolved via cmm.cm() in custom_header.twig (legacy hex passthrough)
- border radii show only for questionborder=box (per-key show-values in
  options.twig aShowIfValuesByKey); options.js cascades hiding to nested
  conditional wrappers (questionbordercolorcustom); radii stay two
  subcolumns (border-start on TR/BR)
- chooser columns aligned with the font color: title section = one column
  (title-0: font, font color, size/options, legacy picker, title bg, body
  bg), answers-0 += checkbox chooser, help-0 = font + font color + bg
  chooser, help-1 = text position
- all font-color labels follow 'Font color for ...' / 'Custom font color
  for ...' (21 labels renamed, incl. 'Font color for question titles' and
  'Font color for answers and subquestions')
- chooser key lists synced in options.twig/options.js/build.php (+2)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:31:52 +01:00
c2930a938a fix(config): defaults row 196 — checkboxcolor=Color 2, Color 3=#fff3cd, help bg=Color 3
- checkboxcolor default mode other -> color2 (custom #ff005f kept for 'other')
- tertiarycolor (Color 3) default #ffd166 -> #fff3cd
- questionhelpbackgroundcolor default mode other -> color3 (custom #fff3cd
  kept for 'other'; effective help background stays #fff3cd)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 16:13:06 +01:00
52bd169335 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>
2026-11-29 16:05:39 +01:00
aae3112981 feat(options): new Buttons tab after Questions with per-button color choosers (row 178 plan P6)
- config.xml: new 'Buttons' category directly after Questions — buttonsfont
  (full width) + 12 per-button options (Previous/Next/Submit x background+
  text, 6-way mode dropdown + custom picker, width 4); old global
  buttonstextcolor(+custom) removed (row-178 decision 7)
- options.twig: Buttons pane = h2+intro, full-width font row, one row of three
  col-md-4 columns (Previous/Next/Submit, border-start dividers); 6 new keys
  in aColorChooserKeys; OPTIONS_JS_TOKEN 20261129.4
- options.js + build.php: chooser key lists synced (+6)
- navigator.twig: respondage-btn-prev/-next/-submit classes, old global text
  color inline style removed; custom_header.twig: cmbg() macro (mode 'default'
  = no override) + per-button bg/text rules with decision-7 defaults
  (Next/Submit bg=Color 1 + text #ffffff, Previous bg=#ffffff + default font
  color)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:48:26 +01:00
af3b408768 feat(options): Questions tab 'Question border' section with 3 subcolumns and radius rows (row 178 plan P5)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:26:36 +01:00
101c3135ea feat(config): universal default colors — Color 1 #26547c, Color 2 #ef476f, Color 3 #ffd166
primarycolor/secondarycolor/tertiarycolor defaults in the mother config.xml
(variants keep their own house-style colors via their jsons; variants without
an explicit value inherit these). Variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:20:01 +01:00
ff998489b9 feat(options): Questions tab 'Question help' section; help background becomes a 6-way color chooser (row 178 plan P4)
New section (h3 + first col-md-4 of a 3-column grid, only it used):
questionhelpbackgroundcolor as 6-way chooser (default 'other' + custom
#fff3cd, look unchanged) + questionhelpbackgroundcolorcustom, the plain
help font color picker (stays plain per row-178 decision 8) and the help
text position; keys moved between the answers block and the border options,
legacy col 1 is empty now. questionhelpbackgroundcolor joined
aColorChooserKeys (twig + js, OPTIONS_JS_TOKEN 20261129.3) and the
build.php chooser migration; custom_header.twig resolves it via cm()
(legacy hex passes through). Variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:17:56 +01:00
82ce4284ad fix(options): horizontal lines and column dividers in the options tabs are #5e5c64
.tab-content hr (color + opacity 1, Bootstrap uses currentColor at .25) and
.tab-content .border-start (border-left-color !important) — covers all
section hrs and all border-start columns in every tab pane.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:11:15 +01:00
e061f7c0f3 feat(options): Questions tab 'Answer options and subquestions' section; answerstextcolor becomes a 6-way color chooser (row 178 plan P3)
New section in the Questions pane (h3 + first col-md-4 of a 3-column grid,
only it used): answersfont + answerstextcolor + answerstextcolorcustom,
moved up in config.xml between the title block and the help options,
width 12 -> 4. answerstextcolor upgraded to the chooser scheme
(default|defaultbackgroundcolor|color1|color2|color3|other, default stays
'default'), added to aColorChooserKeys in options.twig/options.js
(OPTIONS_JS_TOKEN 20261129.2) and to the build.php chooser migration.
Views (answers, survey_question_help, valid_message_and_help): 6-way
mapping with legacy primary/secondary + raw hex passthrough.
All 3 variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:08:49 +01:00
1085c5d132 fix(options): 'Overall question' section is a 3-column grid, only the first column used (col-md-4)
Row 183: aQSections 'overall' colClass col-md-6 -> col-md-4; per the row-160
rule the two distance options' config.xml width follows: 6 -> 4.
Variants rebuilt, example config synced. Theme was reset by the owner meanwhile
(new global tc row = 693, survey 282267 = 694).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 15:02:46 +01:00
721ec2b6ee fix(options): h3 section headers in the options tabs are 20px (one step below the 24px h2 pane titles)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 14:47:56 +01:00
14eb1c2a99 feat(options): Questions tab 'Question title and body' section with 6-way color choosers (row 178 plan P2)
config.xml: new section keys questiontitlefont/textcolor(+custom)/fontsize/
fontoptions + legacy fontcolor (col 1), questiontitlebackgroundcolor(+custom)
(col 2), questionbackgroundcolor(+custom) (col 3); old width-12 Prompt-U keys
and plain colorpickers replaced; questiontitlefontweight -> questiontitlefontoptions.
options.twig: title section slots (were prepared in P1), 3 keys join
aColorChooserKeys, OPTIONS_JS_TOKEN 20261129.1. options.js: same 3 keys in its
aColorChooserKeys. Views: choosers resolved via cm() (chooser wins; legacy hex
and primary/secondary modes pass through; legacy picker used when the mode key
is absent); fontoptions mapped to weight/style with legacy fontweight fallback.
build.php: chooser migration list + questiontitle fontweight migration.
All 3 variants rebuilt (defensie legacy hex -> other+custom), example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 14:45:57 +01:00
c4ec304dd0 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>
2026-11-29 14:27:52 +01:00
c4d728445d fix(options): 15px after the last checkbox of a checkbox group (.checkbox-last)
The last checkbox of each consecutive checkbox run now gets the class
checkbox-last, styled margin-bottom: 15px in the page style block (beats
mb-1 by specificity), so there is 15px between a checkbox group (e.g.
'Make header sticky') and the following item. The 'Show logo on' boxes in
the Logos row get it via loop.last. Inner checkbox spacing stays mb-1
(row 176). jsdom: new row-177 assertions, suite 8/8.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 14:04:19 +01:00
da9589b962 fix(options): checkbox rows equally compact everywhere (form-check mb-1, no mb-3 wrapper)
In the Header tab the 'Make header sticky' checkboxes were wrapped in the
generic mb-3 option div (1rem gap between rows), while the Logos row's
'Show logo on' checkboxes use .form-check.mb-1 (0.25rem). The generic
checkbox branch now renders .form-check.mb-1 and the wrapper div carries no
mb-3 for checkbox type, so the distance between checkbox+label rows is the
same in every row. jsdom: new row-176 assertions (suite 8/8), inherit page
renders 12x form-check mb-1 and 0x plain form-check.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 13:10:28 +01:00
4d5f66e1f5 fix(header): non-sticky header touches the top of the page (body padding-top 0px)
The parent vanilla theme.css statically sets body { padding-top: 90px } and
theme.js fixBodyPadding() always sets the inline padding to the header height.
Our fixBodyPaddingSticky() correction cleared the inline style when the header
was not fixed, so the stylesheet's 90px applied and a non-sticky header sat
~90px below the top. Now it sets padding-top: 0px explicitly when the computed
position is not 'fixed' (custom.js loads after theme.js, so this correction
runs last on ready/pjax:scriptcomplete/resize). Regression test
variants/tests/custom_js_sticky.test.js (jsdom): fails on the old code
(padding cleared to ''), passes now; suite 8/8.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 12:59:11 +01:00
44cef7d530 refactor(options): 'Default fonts and colors' tab becomes 'Default font and colors' in one three-column row
Tab title and pane heading now 'Default font and colors' (description
unchanged); the pane is a single row with three col-md-4 columns:
col 1 = Default font (body text), Base font size (body text), Default font
color (body text); col 2 = Default background color; col 3 = Color 1
(primary), Color 2, Color 3. The old hr + 'Default colors' section between
the two rows is removed. config.xml mirrors this per the row 160 rule:
category renamed to the tab label, option order within the category = the
pane render order (fontsize moved before fontcolor), all seven options
width=4. Tab id stays 'category-fonts' so stored tab preferences survive.
All variants rebuilt (defensie/erasmus from the private defs,
respondage_respondage from /tmp/example_defs) and the tracked example
config synced from the built theme dir (it was stale from the deferred
rebuilds). options.js untouched, no OPTIONS_JS_TOKEN bump.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 11:56:04 +01:00
2a41c36854 chore(files): remove text175.png
Owner indicated the uploaded text175.png image is not needed after all.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:59:41 +01:00
e190c8cae3 chore(files): update left/right header logos, add text175.png
Owner's own image changes in the theme's files/ folder (uploaded 2026-11-27):
logo-left.png and logo-right.png replaced, text175.png added.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:57:20 +01:00
3e370322e7 fix(header): exact logo-top margin (0px touches top); menu texts on their own header row
- nav_bar.twig: header split into two rows — row 1 .survey-nav-logo-row holds
  all logos (left far left, center absolutely centered in the row, right
  ms-auto far right) so they align; row 2 #navbar holds the menu texts
  (language changer, save/clear all, question index) full-width, right-aligned
- sass/plain.sass (leading): #survey-nav align-items:flex-start, container
  stretch, .survey-nav-logo-row relative/w-100, .logo-container and its img
  padding-top:0, .logo-center top:0 translateX(-50%); dropped .logo-right
  margin-left:0 (ms-auto now on the element)
- css/plain.css: compiled from sass with dart-sass (export guard green)
- custom_header.twig: <pos>logotopmargin now emitted as margin-top on the
  .logo-*.logo-container, so the value is the EXACT distance from the top of
  the header to the logo (0px = logo touches the top of the page)
- README.md: header layout + logo-top-distance sections updated

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:56:11 +01:00
dc2f09e73c fix(options): Page background tab in two col-md-6 columns; option wrappers full column width
Row 163/164: the Page background pane used three col-md-4 columns with an
empty third, and its option wrappers rendered col-12 col-md-<width> inside
the slot columns (bImagesPane was missing from the wrapClass condition), so
each option only used the left part of its column. Now two col-md-6 columns
under the full-width h2/p intro, wrappers plain col-12; config.xml widths
of the 6 Page background options 4 -> 6 (width = pane column width).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:40:45 +01:00
d05b5ce226 refactor(options): rename the 'Top of the page' tab to 'Header'
Row 161. Tab label and config.xml category both become 'Header' (standing
rule row 160: category = tab label), so the core options renderer also
shows a 'Header' tab. The tab id stays 'top-of-page' so stored tab
preferences and the options.js #top-of-page hook keep working.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:17:57 +01:00
cafa8fe116 refactor(config): order and width of options now mirror the options.twig layout
Row 160 (standing rule): config.xml stays analogue to options.twig —
categories in the tab-row order, options within a category in the exact
render order of the pane (aTopOfPageKeys/aImagesPaneKeys/aGroupKeys), and
width = the pane column width (Groups 6, three-column panes 4, fonts
colors row 3, full-width rows 12), so the core options renderer
(optionspage=core) lays out the same structure. No option values changed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:15:30 +01:00
cbcf3c75bd refactor(options): config.xml categories now equal the options.twig tab labels
Row 159. When the options page falls back to the core renderer
(optionspage=core), options are grouped by their config.xml category — so
each category must be the tab it lives in under the custom options.twig:
group keys -> 'Groups', top-of-page keys (logos, header/navbar/progress
colors, progress position, sticky, height) -> 'Top of the page',
background keys -> 'Page background', font/color keys -> 'Default fonts and
colors', the former 'Simple options' -> 'Other options'. Tab ids are kept,
so stored tab preferences stay valid. 'Colors' remains for
sliderhandlecolor/privacybackgroundcolor (no custom tab yet, Prompt T).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 03:07:30 +01:00
030974054a Deleted two superflous image files. 2026-11-27 03:02:59 +01:00
71396c3cb9 fix(options): rename 'Font for group titles' to singular 'Font for group title'
Row 158: matches the singular wording of column 2 ('Font for group
description') in the Groups tab.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 02:53:07 +01:00
956324775b feat(options): Groups tab with intro and two columns; group colors become color choosers; font options Normal|Bold|Italic|Bold italic
Row 157. Groups pane gets a full-width h2 'Groups' + explanatory text and a
two-column slot layout: col 1 = group title options (font, color, custom,
size, font options), col 2 = same for the group description (singular wording).
grouptitletextcolor/groupdescriptiontextcolor switch from the old 4-way
dropdown to the row-135 color chooser (6 modes, default 'Default font color',
swatch chips, grayed-out custom picker unless 'other'); legacy stored modes
primary/secondary and raw hex migrate client-side (options.js) and in the views.
The old *fontweight keys (400|700) become *fontoptions (normal|bold|italic|
bolditalic), mapped to font-weight/font-style in custom_header.twig with a
legacy 400/700 fallback until theme reset. build.php migrates variant jsons
(chooser hex/modes + fontweight keys). OPTIONS_JS_TOKEN 20261127.1.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 02:50:06 +01:00
d6889067c0 chore: commit owner's README title/description tweak and placeholder logos
README.md: theme title line "Vanilla Respondage — LimeSurvey theme (version 6/7
compatible), extension of the core Vanilla theme by Respondage" and intro wording;
plus the placeholder files/logo-left.png and files/logo-right.png (default left
and right header logos).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 21:13:59 +01:00
90a65b3d65 chore(variants): add bodybackgroundcolor to build.php chooser migration (row 149)
Missed in the row-149 commit: the legacy-hex -> mode "other" + <key>custom
migration list now also covers bodybackgroundcolor, matching aColorChooserKeys
in options.js/options.twig.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 21:09:06 +01:00
8fad17f56d fix(options): move the upload facility into column 2 of the Page background tab
The "Upload an image" widget (with its scope-dependent help text) now renders
inside column 2, under the background image options, instead of full-width at
the bottom of the tab. Column 2 carries option-visibility on the
backgroundimage switch, so the upload only appears when the background image
is on. The full-width hr at the bottom of the pane is removed; the in-column
hr in column 1 stays.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 21:03:32 +01:00
7bf5437596 feat(options): rebuild Page background tab layout; overall background color becomes a color chooser
Page background tab (config.xml "Images" category), new layout:
- full-width h2 "Page background (behind the body of the page)" + intro text
  "Set the page background here. Either just a solid color or an image."
- three columns: col 1 = Overall background color + custom picker, an in-column
  hr, then Background image on/off; col 2 = background image file / fixed-or-scroll /
  display, hidden as a whole column when the image is off (the column itself carries
  option-visibility on backgroundimage); col 3 empty
- full-width hr, then the image upload facility full width with the same
  scope-dependent help text as in the Top of the page tab

bodybackgroundcolor is now a color-chooser dropdown (modes default|
defaultbackgroundcolor|color1|color2|color3|other) with a bodybackgroundcolorcustom
child; its default is "Default background color". Added to aColorChooserKeys in
options.twig/options.js and to the legacy-hex migration in variants/build.php;
custom_header.twig resolves the mode via the cm() macro (raw hex still passes through).
OPTIONS_JS_TOKEN -> 20261126.19.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 20:57:07 +01:00