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
menu texts (language changer, save/clear all, question index) sit on their
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
option that is the exact distance from the top of the header to the logo
(`0` = the logo touches the top of the page).
Each logo can be shown/hidden per device (computer / tablet / mobile), and
each logo has a top margin option that is the exact distance from the top of
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
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
hide `.action_hide_on_inherit` rows on "Inherit everything"; re-apply that
patch when updating the copy).
- `variants/` — build/export tooling only; **not part of this public repo**
(the whole folder is gitignored, see `.gitignore`, and stays local / in the
private variants repo). Client variant definitions (`variants/*.json`) hold
confidential house-style values and live in the private variants repo, not
here.
- `variants/` — the GENERIC tooling is tracked and public: `build.php`,
`build_all.sh`, `export_public.sh` and `example/` (the public example output
of a variant build). Only the confidential parts are gitignored (see
`.gitignore`): `variants/*.json` (client definitions with house-style
values), `variants/leak-patterns.txt` and `variants/tests/` — those live in
the private variants repo, not here.
## Multiple languages in the theme options (i18n)
@ -129,27 +130,32 @@ LimeSurvey developers).
## Header logos (left / center / right)
Three independent logo options in the Images category: `brandlogo`(+`brandlogofile`)
left, `centerlogo`(+`centerlogofile`) center, `rightlogo`(+`rightlogofile`)
right. All three logos share one top-aligned row (`.survey-nav-logo-row` in
`nav_bar.twig`); the center logo is absolutely positioned at `left: 50%` of
that row (see `css/plain.css`), so it sits in the true center of the header no
matter how wide the left or right logo is. Logo files
are looked up in the theme's own `files/` folder first, then in the starter
theme's `files/` folder.
Three independent logo file options in the Header category: `brandlogofile`
(left), `centerlogofile` (center), `rightlogofile` (right) — each is an
`imagefile` option where `off` means "no logo". All three logos share one
top-aligned row (`.survey-nav-logo-row` in `nav_bar.twig`); the center logo is
absolutely positioned at `left: 50%` of that row (see `css/plain.css`), so it
sits in the true center of the header no matter how wide the left or right
logo is. Logo files are looked up in the theme's own `files/` folder first,
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`,
`centerlogohideonsmall`, `rightlogohideonsmall` (Images category, on/off,
default `on`, `parent` = the logo's on/off option). `on` = the logo is hidden
below the Bootstrap `md` breakpoint (`d-none d-md-block` in `nav_bar.twig`);
`off` = the logo is always shown. All logo options (on/off, file, hide-on-small)
appear automatically in the custom options page (see `options/options.twig`).
Per logo there are also three visibility checkboxes — `brandshowoncomputer`,
`brandshowontablet`, `brandshowonmobile` (and the `center…`/`right…`
equivalents), Header category, default computer/tablet on, mobile off —
mapped to Bootstrap display classes in `nav_bar.twig`
(`logoVisibilityClasses()`). All logo options appear automatically in the
custom options page (see `options/options.twig`).
## Menu item color in the top bar
Option `navbarfontcolor` (Colors category) sets the text color of the menu
items in the navbar; it is applied in `views/subviews/header/custom_header.twig`
and should contrast with `headerbackgroundcolor`.
Option `navbarfontcolor` (Header category) is a color-chooser dropdown
(`default | defaultbackgroundcolor | color1 | color2 | color3 | other`, plus
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
@ -163,11 +169,11 @@ to make a logo touch the top of the page.
## Sticky header per screen size (computer / tablet / mobile)
In the **Top of the page** tab: `headersticky` ("Make header sticky", Yes/No,
default Yes) with three child checkboxes — `headerstickycomputer`
("Computer screen"), `headerstickytablet` ("Tablet"), `headerstickymobile`
("Mobile phone") — visible/enabled only when the master switch is on.
Defaults: sticky on computer and tablet, **not** on mobile.
In the **Header** tab: `headerstickycomputer` ("Computer screen"),
`headerstickytablet` ("Tablet"), `headerstickymobile` ("Mobile phone")
checkboxes, independent of each other (the legacy `headersticky` Yes/No master
switch still exists but no longer gates them). Defaults: sticky on computer
and tablet, **not** on mobile.
The breakpoints are Bootstrap's default ones: phone < `md` (768px), tablet
`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
are gitignored (see `.gitignore`), so they are never pushed:
- `variants/` — build/export tooling (`build.php`, `export_public.sh`) and the
confidential client definitions (`*.json`, `leak-patterns.txt`,
`README.internal.md`);
- `variants/*.json`, `variants/leak-patterns.txt`, `variants/tests/` — the
confidential client definitions and dev tests (the generic tooling
`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`);
- `css/*.map` — source maps from the local sass compile;
- `AGENTS.md`, `prompts.md`, `FEATURE_REQUEST*.md`, `BUG_REPORT*.md` — internal notes and drafts;
- `/dist/` — old export zips.
- `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;
- `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
with:
Optionally, a checked zip of the public release can additionally be built with:
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.
NEVER publish: `variants/*.json`, generated client theme folders, or any git
branch containing a client theme (client names, colors and logos are