| 54 |
54 |
|
// the hand-written ones, so there is no directory to scan. No tuning
|
| 55 |
55 |
|
// widths -- every threshold here is a shell boundary.
|
| 56 |
56 |
|
makeover_build::check_breakpoints_files(&HAND_WRITTEN_CSS, &[]);
|
|
57 |
+ |
makeover_build::check_vocabulary_files(
|
|
58 |
+ |
&HAND_WRITTEN_CSS,
|
|
59 |
+ |
&makeover_build::Emit::default(),
|
|
60 |
+ |
REVIEWED_OVERLAPS,
|
|
61 |
+ |
);
|
| 57 |
62 |
|
|
| 58 |
63 |
|
// --- Static asset fingerprinting ---
|
| 59 |
64 |
|
// Hash the content of key static files to produce a version suffix.
|
| 229 |
234 |
|
}
|
| 230 |
235 |
|
}
|
| 231 |
236 |
|
}
|
|
237 |
+ |
|
|
238 |
+ |
/// Class-and-property overlaps with the generated stylesheet that have been
|
|
239 |
+ |
/// read and kept.
|
|
240 |
+ |
///
|
|
241 |
+ |
/// Three kinds, and only the first is what the check is really for.
|
|
242 |
+ |
///
|
|
243 |
+ |
/// **Different selector arms.** `.badge { color }` and `.card { color }`:
|
|
244 |
+ |
/// makeover colours the tone and disabled arms, the server colours the base and
|
|
245 |
+ |
/// its own variants (`.badge.ai-tier-*`, `.badge--founder-*`). Neither touches
|
|
246 |
+ |
/// the other's arm. The check collapses arms, because separating them would
|
|
247 |
+ |
/// need a selector matcher and a checker that guesses wrong about specificity
|
|
248 |
+ |
/// fails correct builds, so the judgement is recorded here.
|
|
249 |
+ |
///
|
|
250 |
+ |
/// **A deliberate pairing.** `.table-heading { content }` is the sort caret's
|
|
251 |
+ |
/// reserved gap, declared on the unsorted arm precisely so it cannot blank the
|
|
252 |
+ |
/// generated caret on the sorted one; `.table-heading { display }` and
|
|
253 |
+ |
/// `.progress-fill { background }` are different elements rather than different
|
|
254 |
+ |
/// arms -- the caret pseudo-element, and the media scrubber's fill, which lives
|
|
255 |
+ |
/// inside `.progress-bar` and never matches the generated
|
|
256 |
+ |
/// `.progress > .progress-fill`. That last one already carried a `respec-ok`
|
|
257 |
+ |
/// comment saying so.
|
|
258 |
+ |
///
|
|
259 |
+ |
/// **A divergence taken on purpose.** `.table-row { display }` is `grid` here
|
|
260 |
+ |
/// against makeover's `table-row`, which is the same build-time grid story
|
|
261 |
+ |
/// goingson is on.
|
|
262 |
+ |
///
|
|
263 |
+ |
/// `.tab { background }` and `.tab { box-shadow }` are none of the above and
|
|
264 |
+ |
/// should not stay. `.tab.is-selected` sets `--surface-raised` and
|
|
265 |
+ |
/// `--bevel-raised`, which is byte for byte what the generated `.tab.chosen`
|
|
266 |
+ |
/// sets: a second name for makeover's own state, which is the defect
|
|
267 |
+ |
/// makeover-webview 0.27.0 exists to prevent. Removing it is a template change
|
|
268 |
+ |
/// rather than a stylesheet one, so it is filed rather than done here.
|
|
269 |
+ |
///
|
|
270 |
+ |
/// An entry that stops colliding fails the build, so this list cannot outlive
|
|
271 |
+ |
/// what it describes.
|
|
272 |
+ |
const REVIEWED_OVERLAPS: &[(&str, &str)] = &[
|
|
273 |
+ |
("badge", "color"),
|
|
274 |
+ |
("card", "color"),
|
|
275 |
+ |
("progress-fill", "background"),
|
|
276 |
+ |
("tab", "background"),
|
|
277 |
+ |
("tab", "box-shadow"),
|
|
278 |
+ |
("tab", "color"),
|
|
279 |
+ |
("tab", "cursor"),
|
|
280 |
+ |
("table-heading", "content"),
|
|
281 |
+ |
("table-heading", "display"),
|
|
282 |
+ |
("table-row", "display"),
|
|
283 |
+ |
];
|