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>
This commit is contained in:
parent
22c1f230b3
commit
756c0ec2d1
1 changed files with 158 additions and 130 deletions
13
README.md
13
README.md
|
|
@ -67,12 +67,15 @@ Arguments for choosing Respondage Vanilla:
|
|||
sizes/weights/colors, header logos, ...).
|
||||
- `views/` — twig overrides (header with left/center/right logos and navbar
|
||||
menu color, survey list, question, group description).
|
||||
- `css/plain.css` — theme styles (listed in config.xml `<files>` and served
|
||||
- `css/*.css` — theme styles (listed in config.xml `<files>` and served
|
||||
as-is by LimeSurvey). The asset manager hashes the file mtime into the
|
||||
published URL, so a changed css is picked up automatically (no cache clear
|
||||
needed).
|
||||
- `css/custom.css`, `scripts/custom.js` — loaded last, safe for project
|
||||
tweaks.
|
||||
needed). These are BUILD ARTIFACTS: the leading sources are the
|
||||
developer-local `sass/*.sass` files (gitignored) — edit the .sass, compile
|
||||
with `sass --watch sass:css` (or `sass sass/<name>.sass css/<name>.css`),
|
||||
commit the recompiled css. `variants/export_public.sh` aborts the public
|
||||
export if any css/*.css is stale or has no sass source.
|
||||
- `scripts/custom.js` — loaded last, safe for project tweaks.
|
||||
- `options/` — the CUSTOM options page: config.xml sets
|
||||
`<optionspage>custom</optionspage>`, so LimeSurvey renders
|
||||
`options/options.twig` (and auto-registers `options/options.js`) instead of
|
||||
|
|
@ -442,7 +445,7 @@ 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`);
|
||||
- `sass/` — developer-only sources of `css/plain.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;
|
||||
- `AGENTS.md`, `prompts.md`, `FEATURE_REQUEST*.md`, `BUG_REPORT*.md` — internal notes and drafts;
|
||||
- `/dist/` — old export zips.
|
||||
|
|
|
|||
Loading…
Reference in a new issue