Commit graph vanilla_respondage/css
Author SHA1 Message Date
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
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
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
75ff90ab85 fix(options): move options-page chip styles inline into options.twig
The admin options page (themeOptions/update) does NOT load the theme's
css/plain.css — that file is registered for survey pages only — so the swatch
chip styles added there never applied on the options page: with the new JS
(hex label element) but old/absent CSS the swatches collapsed to tiny buttons
with the hex beside them. The chip/disable-mode styles are options-page-only
UI, so they now live in an inline <style> block in options/options.twig (always
rendered with the page, twig auto_reload — no asset cache involved) and were
removed from css/plain.css (sass source kept in sync). No options.js change, so
OPTIONS_JS_TOKEN stays 20261126.3. jsdom test now asserts gap:10px and the
column layout against the inline <style>; suite 6/6, export 0. Variants not
rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:20:21 +01:00
f2316d1a5d fix(options): readable swatch chips + re-enable color swatch on 'Other'
Two fixes for the navbarfontcolor working example: (1) the hex value inside the
swatch chips was unreadable and obscured the color — chips are now plain color
swatches with the hex in a small label BELOW each swatch (.color-chip-label),
and the chips row uses gap: 10px so the swatches stand out. (2) The visible
color swatch input (navbarfontcolorcustom_picker) never re-enabled when
choosing 'Other…' from the dropdown: it lacked data-parent/selector_radio_childfield,
so updateChild/updateAllChildren never touched it and it stayed disabled
(server-side rendered disabled) — the text field was enabled but the swatch
the user actually clicks stayed grayed out. The swatch now gets the child
classes when parented, so it follows the mode like the text field (also fixes
the same latent bug for the per-element <el>textcolorcustom pickers).
OPTIONS_JS_TOKEN -> 20261126.3. jsdom test extended: swatch enabled in mode
'other'/disabled otherwise, hex below swatch, chip gap 10px asserted against
css/plain.css; suite 6/6, export 0. Variants intentionally not rebuilt.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:15:09 +01:00
dc27d63de5 fix(options): keep navbarfontcolorcustom in column 2, full-width swatch chips
The new navbarfontcolorcustom picker fell into the generic 'rest' slot of the
Top-of-the-page layout, which opened a NEW col-md-4 — so the picker landed in
column 3 next to the sticky checkboxes and left the divs unbalanced. Map the
key to slot h2 so it stays in column 2 under the navbarfontcolor dropdown,
rendered col-12 (full column width); column 3 is the sticky block again and
the pane markup is balanced (89/89 divs). The swatch chips under the dropdown
were tiny inline squares — make the chips row full column width with taller
flex chips showing the hex value (options.js chip.text). OPTIONS_JS_TOKEN
bumped to 20261126.2 (options.js changed). Layout pinned by jsdom assertions
(picker in the same col-md-4 as the dropdown, wrapper col-12); suite 6/6,
export 0. Variants intentionally not rebuilt (owner: deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:05:18 +01:00
f2ebf24270 feat(options): menu item color as preset dropdown with persistent custom color (working example)
navbarfontcolor (Top of the page tab, column 2) changes from a plain
colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 |
Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but
grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its
value across saves (data-keep-value) so switching back to 'Other' restores the
last picked color. Dropdown option labels show the live hex of each preset and
clickable swatch chips select a preset; an effective-color swatch next to the
picker shows the color actually applied. A legacy stored hex is migrated to
mode 'other' + custom field (options.js) and accepted directly in
custom_header.twig, so nothing is lost before a theme reset. Views map
default->fontcolor, color1/2/3->primary/secondary/tertiarycolor,
other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay
plain colorpickers, default #ffffff. build.php maps a legacy hex
navbarfontcolor in variant jsons to other+custom for when variants are built.
Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration,
gray-out, keep-value on save, chips, swatches), live survey render for all 5
modes, export check exit 0.

NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no
customer is waiting; the on-disk variant folders were left at their
pre-feature state and no variant theme was reset. Run
variants/build.php per variant only after the open prompts are done.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:55:30 +01:00
cffd3cefa6 feat!: rename theme respondage_vanilla -> vanilla_respondage, variants -> respondage_<client>
Prompt V (prompts.md rows 51-54). Mother theme folder + <name> renamed to
vanilla_respondage (version 3.3.0); client variants renamed to
respondage_defensie / respondage_erasmus (<extends>vanilla_respondage</extends>,
auto-derived by build.php). export_public.sh now derives the release name from
the theme dir and the leak-check glob matches ../respondage_* siblings, so the
public-release leak check keeps working after the rename (sabotage-tested).
All doc/tooling references updated; local-only files stay gitignored.

Also includes the pending uncommitted theme work from this testing week
(custom options page, header logos, sticky-header options, bundled OFL fonts,
per-element font overrides, font-dropdown reordering, jsdom tests) that was
verified locally but not yet pushed.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-24 22:04:11 +01:00
fd7ecba1a3 chore: normalize all line endings to LF and enforce via .gitattributes
All text files in the theme (config.xml, sass, css, js, twig, md) used mixed
CRLF/LF. Normalize everything to LF (Unix), matching the LimeSurvey core
themes. .gitattributes (* text=auto eol=lf, binary images/fonts) keeps it
that way; config.xml documents the convention in its header comment.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-16 19:36:04 +01:00
a023555acf First commit after long time, too much to describe (sorry) 2026-07-07 16:05:43 +02:00
e3be1bcde7 First commit 2026-06-17 10:06:07 +02:00