docs(readme): refresh stale sections (logos model, navbar color, sticky header, variants/ tracking, public release)

- 'What's in here': variants/ is no longer 'fully gitignored' — the generic
  tooling (build.php, build_all.sh, export_public.sh) and variants/example/
  are tracked; only *.json, leak-patterns.txt and tests/ stay local.
- Header logos section rewritten for the current model: <pos>logofile imagefile
  options ('off' = no logo) + per-device <pos>showoncomputer/tablet/mobile
  checkboxes (the old <pos>logo on/off + <pos>logohideonsmall keys are gone).
- Menu item color: navbarfontcolor is now a 6-way color-chooser dropdown in the
  Header category (+ navbarfontcolorcustom), not a plain Colors colorpicker.
- Sticky header: the legacy headersticky master switch no longer gates the
  three per-device checkboxes.
- Public release section: corrected the gitignored list (dropped nonexistent
  README.internal.md, added limesurvey.md/OPEN_PROMPTS.md/SECURITY_REVIEW*,
  files/logos.svg; noted preview.svg is public on purpose).

export_public.sh exit 0.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-30 12:40:15 +01:00
commit 98cf23e999

View file

@ -22,9 +22,9 @@ copying of files needed.
always sticks to the far right — so all logos align nicely. The right-side always sticks to the far right — so all logos align nicely. The right-side
menu texts (language changer, save/clear all, question index) sit on their menu texts (language changer, save/clear all, question index) sit on their
own row in the header, below the logos, right-aligned. own row in the header, below the logos, right-aligned.
Each logo can be hidden on small screens, and each logo has a top margin Each logo can be shown/hidden per device (computer / tablet / mobile), and
option that is the exact distance from the top of the header to the logo each logo has a top margin option that is the exact distance from the top of
(`0` = the logo touches the top of the page). the header to the logo (`0` = the logo touches the top of the page).
- House-style colors, fonts and logos per client variant, without code - House-style colors, fonts and logos per client variant, without code
duplication (thin variants extending this starter theme). duplication (thin variants extending this starter theme).
@ -86,11 +86,12 @@ Arguments for choosing Respondage Vanilla:
`assets/packages/themeoptions-core/themeoptions-core.js` (patched to also `assets/packages/themeoptions-core/themeoptions-core.js` (patched to also
hide `.action_hide_on_inherit` rows on "Inherit everything"; re-apply that hide `.action_hide_on_inherit` rows on "Inherit everything"; re-apply that
patch when updating the copy). patch when updating the copy).
- `variants/` — build/export tooling only; **not part of this public repo** - `variants/` — the GENERIC tooling is tracked and public: `build.php`,
(the whole folder is gitignored, see `.gitignore`, and stays local / in the `build_all.sh`, `export_public.sh` and `example/` (the public example output
private variants repo). Client variant definitions (`variants/*.json`) hold of a variant build). Only the confidential parts are gitignored (see
confidential house-style values and live in the private variants repo, not `.gitignore`): `variants/*.json` (client definitions with house-style
here. values), `variants/leak-patterns.txt` and `variants/tests/` — those live in
the private variants repo, not here.
## Multiple languages in the theme options (i18n) ## Multiple languages in the theme options (i18n)
@ -129,27 +130,32 @@ LimeSurvey developers).
## Header logos (left / center / right) ## Header logos (left / center / right)
Three independent logo options in the Images category: `brandlogo`(+`brandlogofile`) Three independent logo file options in the Header category: `brandlogofile`
left, `centerlogo`(+`centerlogofile`) center, `rightlogo`(+`rightlogofile`) (left), `centerlogofile` (center), `rightlogofile` (right) — each is an
right. All three logos share one top-aligned row (`.survey-nav-logo-row` in `imagefile` option where `off` means "no logo". All three logos share one
`nav_bar.twig`); the center logo is absolutely positioned at `left: 50%` of top-aligned row (`.survey-nav-logo-row` in `nav_bar.twig`); the center logo is
that row (see `css/plain.css`), so it sits in the true center of the header no absolutely positioned at `left: 50%` of that row (see `css/plain.css`), so it
matter how wide the left or right logo is. Logo files sits in the true center of the header no matter how wide the left or right
are looked up in the theme's own `files/` folder first, then in the starter logo is. Logo files are looked up in the theme's own `files/` folder first,
theme's `files/` folder. then in the starter theme's `files/` folder (and validated by core:
only `gif,ico,jpg,jpeg,png` — SVG is rejected).
Each logo also has a "hide on small screens" option: `brandlogohideonsmall`, Per logo there are also three visibility checkboxes — `brandshowoncomputer`,
`centerlogohideonsmall`, `rightlogohideonsmall` (Images category, on/off, `brandshowontablet`, `brandshowonmobile` (and the `center…`/`right…`
default `on`, `parent` = the logo's on/off option). `on` = the logo is hidden equivalents), Header category, default computer/tablet on, mobile off —
below the Bootstrap `md` breakpoint (`d-none d-md-block` in `nav_bar.twig`); mapped to Bootstrap display classes in `nav_bar.twig`
`off` = the logo is always shown. All logo options (on/off, file, hide-on-small) (`logoVisibilityClasses()`). All logo options appear automatically in the
appear automatically in the custom options page (see `options/options.twig`). custom options page (see `options/options.twig`).
## Menu item color in the top bar ## Menu item color in the top bar
Option `navbarfontcolor` (Colors category) sets the text color of the menu Option `navbarfontcolor` (Header category) is a color-chooser dropdown
items in the navbar; it is applied in `views/subviews/header/custom_header.twig` (`default | defaultbackgroundcolor | color1 | color2 | color3 | other`, plus
and should contrast with `headerbackgroundcolor`. the `navbarfontcolorcustom` picker for "Other ..."): `default` = the default
font color, `color1/2/3` = primary/secondary/tertiary color, a legacy stored
hex passes through directly. It is resolved and applied in
`views/subviews/header/custom_header.twig` and should contrast with
`headerbackgroundcolor` (same chooser scheme).
## Distance from the logo to the top of the screen ## Distance from the logo to the top of the screen
@ -163,11 +169,11 @@ to make a logo touch the top of the page.
## Sticky header per screen size (computer / tablet / mobile) ## Sticky header per screen size (computer / tablet / mobile)
In the **Top of the page** tab: `headersticky` ("Make header sticky", Yes/No, In the **Header** tab: `headerstickycomputer` ("Computer screen"),
default Yes) with three child checkboxes — `headerstickycomputer` `headerstickytablet` ("Tablet"), `headerstickymobile` ("Mobile phone")
("Computer screen"), `headerstickytablet` ("Tablet"), `headerstickymobile` checkboxes, independent of each other (the legacy `headersticky` Yes/No master
("Mobile phone") — visible/enabled only when the master switch is on. switch still exists but no longer gates them). Defaults: sticky on computer
Defaults: sticky on computer and tablet, **not** on mobile. and tablet, **not** on mobile.
The breakpoints are Bootstrap's default ones: phone < `md` (768px), tablet The breakpoints are Bootstrap's default ones: phone < `md` (768px), tablet
`md`–`lg` (768–991px), computer ≥ `lg` (992px). `custom_header.twig` emits the `md`–`lg` (768–991px), computer ≥ `lg` (992px). `custom_header.twig` emits the
@ -552,21 +558,22 @@ needed to run the theme (`config.xml`, `views/`, `options/`, `css/`,
`scripts/`, `files/`, `README.md`, `LICENSE`). All helper files stay local and `scripts/`, `files/`, `README.md`, `LICENSE`). All helper files stay local and
are gitignored (see `.gitignore`), so they are never pushed: are gitignored (see `.gitignore`), so they are never pushed:
- `variants/` — build/export tooling (`build.php`, `export_public.sh`) and the - `variants/*.json`, `variants/leak-patterns.txt`, `variants/tests/` — the
confidential client definitions (`*.json`, `leak-patterns.txt`, confidential client definitions and dev tests (the generic tooling
`README.internal.md`); `variants/build.php`, `variants/build_all.sh`, `variants/export_public.sh`
and `variants/example/` ARE tracked and public);
- `sass/` — developer-only LEADING sources of all `css/*.css` (compiled locally with `sass --watch sass:css`); - `sass/` — developer-only LEADING sources of all `css/*.css` (compiled locally with `sass --watch sass:css`);
- `css/*.map` — source maps from the local sass compile; - `css/*.map` — source maps from the local sass compile;
- `AGENTS.md`, `prompts.md`, `FEATURE_REQUEST*.md`, `BUG_REPORT*.md` — internal notes and drafts; - `AGENTS.md`, `prompts.md`, `limesurvey.md`, `OPEN_PROMPTS.md`, `SECURITY_REVIEW*.md`, `FEATURE_REQUEST*.md`, `BUG_REPORT*.md` — internal notes and drafts;
- `/dist/` — old export zips. - `/dist/` — old export zips;
- `files/logos.svg` — work-in-progress logo artwork (`files/preview.svg` is
public on purpose, see the variants section).
Optionally, a checked zip of the public release can still be built LOCALLY Optionally, a checked zip of the public release can additionally be built with:
with:
bash variants/export_public.sh [output-dir] bash variants/export_public.sh [output-dir]
(the script and its leak check live in the local-only `variants/` folder; (default output: `<limesurvey-root>/dist/`). Publish only the public repo /
default output: `<limesurvey-root>/dist/`). Publish only the public repo /
its `main` branch or that checked artifact. its `main` branch or that checked artifact.
NEVER publish: `variants/*.json`, generated client theme folders, or any git NEVER publish: `variants/*.json`, generated client theme folders, or any git
branch containing a client theme (client names, colors and logos are branch containing a client theme (client names, colors and logos are