Split toolbox Sass partials

This commit is contained in:
Shinuwa 2026-08-14 09:24:54 +02:00
parent b221257616
commit c312b9ed91
19 changed files with 6490 additions and 6419 deletions

View file

@ -13,7 +13,18 @@ test("style entrypoint and theme layers are wired", async () => {
const styleCards = await readFile("website/src/styles/_cards.scss", "utf8");
const styleHome = await readFile("website/src/styles/_home.scss", "utf8");
const styleToolboxesEntry = await readFile("website/src/styles/_toolboxes.scss", "utf8");
const styleToolboxes = await readFile("website/src/styles/toolboxes/_core.scss", "utf8");
const styleToolboxesCore = await readFile("website/src/styles/toolboxes/_core.scss", "utf8");
const styleToolboxLayout = await readFile("website/src/styles/toolboxes/_layout.scss", "utf8");
const styleToolboxShell = await readFile("website/src/styles/toolboxes/_module-shell.scss", "utf8");
const styleToolboxTextExchange = await readFile("website/src/styles/toolboxes/_text-exchange.scss", "utf8");
const styleToolboxNotepad = await readFile("website/src/styles/toolboxes/_notepad.scss", "utf8");
const styleToolboxChecklist = await readFile("website/src/styles/toolboxes/_checklist.scss", "utf8");
const styleToolboxCalculator = await readFile("website/src/styles/toolboxes/_calculator.scss", "utf8");
const styleToolboxCalculatorResults = await readFile("website/src/styles/toolboxes/_calculator-results.scss", "utf8");
const styleToolboxTable = await readFile("website/src/styles/toolboxes/_table.scss", "utf8");
const styleToolboxCombos = await readFile("website/src/styles/toolboxes/_combos.scss", "utf8");
const styleToolboxImages = await readFile("website/src/styles/toolboxes/_images.scss", "utf8");
const styleToolboxSharedControls = await readFile("website/src/styles/toolboxes/_shared-controls.scss", "utf8");
const styleOverlays = await readFile("website/src/styles/_overlays.scss", "utf8");
const styleIcons = await readFile("website/src/styles/_icons.scss", "utf8");
const styleGames = await readFile("website/src/styles/_games.scss", "utf8");
@ -24,6 +35,11 @@ test("style entrypoint and theme layers are wired", async () => {
assert.match(styles, /@use "nebula"/);
assert.match(styles, /@use "toolboxes"/);
assert.match(styleToolboxesEntry, /@use "toolboxes\/core"/);
assert.match(styleToolboxesCore, /@use "layout"/);
assert.match(styleToolboxesCore, /@use "module-shell"/);
assert.match(styleToolboxesCore, /@use "task-planner"/);
assert.match(styleToolboxesCore, /@use "equipment-planner"/);
assert.match(styleToolboxesCore, /@use "shared-controls"/);
assert.match(styles, /@use "mhwilds"/);
assert.match(styles, /@use "diablo4"/);
assert.match(styleTokens, /--gradient-brand/);
@ -48,22 +64,22 @@ test("style entrypoint and theme layers are wired", async () => {
assert.match(styleMixins, /@mixin gold-panel-frame/);
assert.match(styleShell, /\.sidebar-about-link/);
assert.match(styleShell, /\.sidebar-mascot/);
assert.match(styleToolboxes, /\.module-icon-abacus/);
assert.match(styleToolboxes, /\.module-icon-calculator/);
assert.match(styleToolboxes, /\.module-icon-columns/);
assert.match(styleToolboxes, /\.module-icon-table/);
assert.match(styleToolboxes, /\.calculator-module/);
assert.match(styleToolboxes, /\.table-module/);
assert.match(styleToolboxes, /\.table-cell-input\.is-selected/);
assert.match(styleToolboxes, /\.table-cell-input\.is-move-target/);
assert.match(styleToolboxes, /\.notepad-toolbar-button\.danger/);
assert.match(styleToolboxes, /\.toolbox-icon-picker/);
assert.match(styleToolboxes, /\.toolbox-game-icon/);
assert.match(styleToolboxes, /\.toolbox-hero-link/);
assert.match(styleToolboxes, /\.toolbox-actions-row/);
assert.match(styleToolboxes, /\.text-import-actions/);
assert.match(styleToolboxes, /\.text-import-modal-dialog/);
assert.doesNotMatch(styleToolboxes, /lecture seule/);
assert.match(styleToolboxShell, /\.module-icon-abacus/);
assert.match(styleToolboxShell, /\.module-icon-calculator/);
assert.match(styleToolboxShell, /\.module-icon-columns/);
assert.match(styleToolboxShell, /\.module-icon-table/);
assert.match(styleToolboxCalculator, /\.calculator-module/);
assert.match(styleToolboxTable, /\.table-module/);
assert.match(styleToolboxTable, /\.table-cell-input\.is-selected/);
assert.match(styleToolboxTable, /\.table-cell-input\.is-move-target/);
assert.match(styleToolboxSharedControls, /\.notepad-toolbar-button\.danger/);
assert.match(styleToolboxLayout, /\.toolbox-icon-picker/);
assert.match(styleToolboxLayout, /\.toolbox-game-icon/);
assert.match(styleToolboxLayout, /\.toolbox-hero-link/);
assert.match(styleToolboxLayout, /\.toolbox-actions-row/);
assert.match(styleToolboxTextExchange, /\.text-import-actions/);
assert.match(styleToolboxTextExchange, /\.text-import-modal-dialog/);
assert.doesNotMatch(styleToolboxNotepad, /lecture seule/);
assert.match(styleIcons, /ui-icon-drag/);
assert.match(styleIcons, /ui-icon-dropdown/);
assert.match(styleIcons, /ui-icon-enter/);
@ -85,12 +101,17 @@ test("style entrypoint and theme layers are wired", async () => {
assert.match(styleIcons, /ui-icon-grab/);
assert.match(styleIcons, /ui-icon-shield/);
assert.match(styleIcons, /ui-icon-gun/);
assert.match(styleToolboxes, /module-icon-chest-armor/);
assert.match(styleToolboxes, /\.combo-hold-controls/);
assert.match(styleToolboxes, /\.combo-input-direction/);
assert.match(styleToolboxes, /\.combo-device-n64\.combo-value-stick-up/);
assert.match(styleToolboxes, /\.combo-device-n64\.combo-value-up/);
assert.match(styleToolboxes, /\.combo-value-grab \.ui-icon/);
assert.match(styleToolboxShell, /module-icon-chest-armor/);
assert.match(styleToolboxCombos, /\.combo-hold-controls/);
assert.match(styleToolboxCombos, /\.combo-input-direction/);
assert.match(styleToolboxCombos, /\.combo-device-n64\.combo-value-stick-up/);
assert.match(styleToolboxCombos, /\.combo-device-n64\.combo-value-up/);
assert.match(styleToolboxCombos, /\.combo-value-grab \.ui-icon/);
assert.match(styleToolboxChecklist, /\.timer-alert-mode-button/);
assert.match(styleToolboxSharedControls, /\.timer-alert-mode-switch\.is-blocked/);
assert.match(styleToolboxCalculatorResults, /\.calculator-result/);
assert.match(styleToolboxSharedControls, /\.tool-split-scroll-toggle/);
assert.match(styleToolboxImages, /\.annotation-marker/);
assert.match(styleGames, /\.game-home-card/);
assert.match(styleGames, /\.game-layout/);
assert.match(styleGames, /\.game-grid/);