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:
Tammo ter Hark 2026-11-30 09:11:39 +01:00
commit 756c0ec2d1
2 changed files with 158 additions and 130 deletions

View file

@ -1,51 +1,48 @@
/******************
User custom CSS
---------------
In this file you can add your own custom CSS
It will be loaded last, so you can override any other property.
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
#outerframeContainer{
hyphens: none;
@charset "UTF-8";
/* User custom CSS — compiled from this file (sass is leading): edit sass/custom.sass, then `sass --watch sass:css` or `sass sass/custom.sass css/custom.css`. */
/* It is loaded last, so you can override any other property; it will never be updated by theme upgrades. */
/* The compiled css/custom.css is the committed runtime file; sass/ stays developer-local (gitignored). */
#outerframeContainer {
hyphens: none;
}
/* Subtle theme credit at the bottom of every page
(rendered by views/subviews/footer/footer.twig) */
* (rendered by views/subviews/footer/footer.twig) */
.respondage-theme-footer {
padding: 1rem 0 1.5rem;
opacity: 0.75;
padding: 1rem 0 1.5rem;
opacity: 0.75;
}
/* row 207: logo height 25px (was max-height 18px) */
.respondage-theme-footer-logo {
height: 25px;
width: auto;
vertical-align: middle;
height: 25px;
width: auto;
vertical-align: middle;
}
/* row 214: untouched slider = grey handle + transparent selection; touched =
sliderhandlecolor (the .slider-handle rule in custom_header.twig).
The slider-is-untouched class is synced onto li.slider-item by
scripts/custom.js from the answer input's value — core's own
slider-untouched class on the .slider element is unreliable when
"slider_default_set" is on. Specificity (0,3,0) beats the .slider-handle
rule (0,1,0) from custom_header.twig regardless of style-block order. */
* sliderhandlecolor (the .slider-handle rule in custom_header.twig).
* The slider-is-untouched class is synced onto li.slider-item by
* scripts/custom.js from the answer input's value — core's own
* slider-untouched class on the .slider element is unreliable when
* "slider_default_set" is on. Specificity (0,3,0) beats the .slider-handle
* rule (0,1,0) from custom_header.twig regardless of style-block order. */
.slider-item.slider-is-untouched .slider-handle {
background-color: grey;
background-color: grey;
}
.slider-item.slider-is-untouched .slider-selection {
background: transparent;
box-shadow: none;
background: transparent;
box-shadow: none;
}
/* row 215: while untouched, also hide the value tooltip — core only does that
(jQuery .hide()) when no default position is set; with slider_default_set
the tooltip stays visible on an untouched slider. No !important on purpose:
on touch core sets an inline display via .show(), which wins over this rule
(and slider-is-untouched is removed anyway). */
* (jQuery .hide()) when no default position is set; with slider_default_set
* the tooltip stays visible on an untouched slider. No !important on purpose:
* on touch core sets an inline display via .show(), which wins over this rule
* (and slider-is-untouched is removed anyway). */
.slider-item.slider-is-untouched .slider .tooltip {
display: none;
}
display: none;
}
/*# sourceMappingURL=custom.css.map */

View file

@ -1,115 +1,105 @@
/*
* Bundled open source fonts for vanilla_respondage.
*
* The font files live in ../files/fonts/ (the asset manager copies the whole
* theme directory to the assets dir, so this relative path works from css/).
* Each font below is selectable in the theme options (Fonts category, optgroup
* "Bundled open source fonts" in config.xml). The class rules are GENERIC
* (.font-<value>, not body-scoped) on purpose: the base font is applied as
* font-<value> on <body>, and the per-element font overrides (fontselect
* options) apply the same class on individual elements (header, progress bar,
* question titles, answers, group titles/descriptions, buttons).
*
* To add your own font to this theme: see files/fonts/README.md.
*
* Licenses: SIL Open Font License 1.1 — see files/fonts/OFL-*.txt.
*/
@charset "UTF-8";
/* Bundled open source fonts for vanilla_respondage — compiled from this file (sass is leading): edit sass/fonts.sass, then `sass --watch sass:css` or `sass sass/fonts.sass css/fonts.css`. */
/* The font files live in ../files/fonts/ (the asset manager copies the whole theme directory to the assets dir, so this relative path works from css/). */
/* Each font is selectable in the theme options (Fonts category, optgroup "Bundled open source fonts" in config.xml). The class rules are GENERIC (.font-<value>, not body-scoped) on purpose: */
/* the base font is applied as font-<value> on <body>, and per-element font overrides (fontselect options) apply the same class on individual elements. */
/* To add your own font to this theme: see files/fonts/README.md. Licenses: SIL Open Font License 1.1 — see files/fonts/OFL-*.txt. */
/* Inter — sans-serif — https://github.com/rsms/inter — OFL 1.1 */
@font-face {
font-family: 'Inter';
src: url('../files/fonts/inter-var.woff2') format('woff2');
font-weight: 100 900; /* variable font: wght axis 100-900 */
font-style: normal;
font-display: swap;
font-family: "Inter";
src: url("../files/fonts/inter-var.woff2") format("woff2");
/* variable font: wght axis 100-900 */
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* Source Serif 4 — serif — https://github.com/adobe-fonts/source-serif — OFL 1.1 */
@font-face {
font-family: 'Source Serif 4';
src: url('../files/fonts/source-serif-4-var.woff2') format('woff2');
font-weight: 200 900; /* variable font: wght axis 200-900 */
font-style: normal;
font-display: swap;
font-family: "Source Serif 4";
src: url("../files/fonts/source-serif-4-var.woff2") format("woff2");
/* variable font: wght axis 200-900 */
font-weight: 200 900;
font-style: normal;
font-display: swap;
}
/* EB Garamond — serif — https://open-foundry.com/fonts/eb-garamond — OFL 1.1 */
@font-face {
font-family: 'EB Garamond';
src: url('../files/fonts/eb-garamond-var.woff2') format('woff2');
font-weight: 400 800; /* variable font: wght axis 400-800 */
font-style: normal;
font-display: swap;
font-family: "EB Garamond";
src: url("../files/fonts/eb-garamond-var.woff2") format("woff2");
/* variable font: wght axis 400-800 */
font-weight: 400 800;
font-style: normal;
font-display: swap;
}
/* Liberation Sans — sans-serif — https://open-foundry.com/fonts/liberation-sans — OFL 1.1
(static weights: 400 and 700 are shipped as separate files) */
* (static weights: 400 and 700 are shipped as separate files) */
@font-face {
font-family: 'Liberation Sans';
src: url('../files/fonts/liberation-sans-400.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
font-family: "Liberation Sans";
src: url("../files/fonts/liberation-sans-400.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Liberation Sans';
src: url('../files/fonts/liberation-sans-700.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
font-family: "Liberation Sans";
src: url("../files/fonts/liberation-sans-700.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
/* Noto Sans — sans-serif — source: Google Fonts family "Noto Sans" — OFL 1.1 */
@font-face {
font-family: 'Noto Sans';
src: url('../files/fonts/noto-sans-var.woff2') format('woff2');
font-weight: 100 900; /* variable font: wght axis 100-900 (wdth stays at default 100) */
font-style: normal;
font-display: swap;
font-family: "Noto Sans";
src: url("../files/fonts/noto-sans-var.woff2") format("woff2");
/* variable font: wght axis 100-900 (wdth stays at default 100) */
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* Noto Serif — serif — source: Google Fonts family "Noto Serif" — OFL 1.1 */
@font-face {
font-family: 'Noto Serif';
src: url('../files/fonts/noto-serif-var.woff2') format('woff2');
font-weight: 100 900; /* variable font: wght axis 100-900 (wdth stays at default 100) */
font-style: normal;
font-display: swap;
font-family: "Noto Serif";
src: url("../files/fonts/noto-serif-var.woff2") format("woff2");
/* variable font: wght axis 100-900 (wdth stays at default 100) */
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
/* Open Sans — sans-serif — source: Google Fonts family "Open Sans" — OFL 1.1 */
@font-face {
font-family: 'Open Sans';
src: url('../files/fonts/open-sans-var.woff2') format('woff2');
font-weight: 300 800; /* variable font: wght axis 300-800 (wdth stays at default 100) */
font-style: normal;
font-display: swap;
font-family: "Open Sans";
src: url("../files/fonts/open-sans-var.woff2") format("woff2");
/* variable font: wght axis 300-800 (wdth stays at default 100) */
font-weight: 300 800;
font-style: normal;
font-display: swap;
}
.font-inter {
font-family: 'Inter', Arial, Helvetica, sans-serif;
font-family: "Inter", Arial, Helvetica, sans-serif;
}
.font-source_serif_4 {
font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}
.font-eb_garamond {
font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
font-family: "EB Garamond", Georgia, "Times New Roman", serif;
}
.font-liberation_sans {
font-family: 'Liberation Sans', Arial, Helvetica, sans-serif;
font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
}
.font-noto_sans {
font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
font-family: "Noto Sans", Arial, Helvetica, sans-serif;
}
.font-noto_serif {
font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}
.font-open_sans {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
font-family: "Open Sans", Arial, Helvetica, sans-serif;
}
/*# sourceMappingURL=fonts.css.map */