Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Delete CSS no component references any more

Bittiab4fc70fa939
diff --git a/src/styles/base.css b/src/styles/base.css
index 7fc42c9..446f783 100644
--- a/src/styles/base.css
+++ b/src/styles/base.css
@@ -204,20 +204,6 @@ textarea:focus-visible,
}
}
-/* The Fluent ProgressRing, for anything that waits without a known length.
- A 16px ring whose arc sweeps round; it replaces bouncing dots and pulsing
- glows. Wears currentColor so it follows whatever label it replaces. */
-.progress-ring {
- width: 16px;
- height: 16px;
- flex: none;
- border: 2px solid transparent;
- border-top-color: currentColor;
- border-right-color: currentColor;
- border-radius: 50%;
- animation: spin 0.9s linear infinite;
-}
-
/* --- Utilities ------------------------------------------------------------- */
.sr-only {
@@ -250,6 +236,3 @@ textarea:focus-visible,
to { transform: rotate(360deg); }
}
-@keyframes scan {
- to { transform: translateY(420%); }
-}
diff --git a/src/styles/controls.css b/src/styles/controls.css
index e3482af..f0d8cc6 100644
--- a/src/styles/controls.css
+++ b/src/styles/controls.css
@@ -1,7 +1,7 @@
/* ============================================================================
controls.css — shared UI primitives used by every surface.
- Buttons, icon buttons, text fields, check boxes, radios, sliders,
- progress bars, panel chrome: the WinUI control set, in CSS.
+ Buttons, icon buttons, text fields, check boxes, radios and sliders: the
+ WinUI control set, in CSS.
========================================================================== */
/* --- Buttons ---------------------------------------------------------------
@@ -75,56 +75,6 @@
background: var(--fill-control-disabled);
}
-/* A standard button with a stronger neutral fill: a row's own verb, louder
- than a subtle control and quieter than the accent. */
-.fill-button {
- min-height: var(--control-md);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: var(--space-2);
- padding: 0 var(--space-3);
- border: 1px solid var(--stroke-control);
- border-bottom-color: var(--stroke-control-bottom);
- border-radius: var(--radius-sm);
- color: var(--text-primary);
- background: var(--button-fill-bg);
- font-size: var(--text-base);
- font-weight: var(--weight-regular);
- line-height: var(--leading-normal);
- transition: var(--transition-control);
-}
-
-.fill-button:hover:not(:disabled) { background: var(--button-fill-hover); }
-
-.fill-button:disabled {
- opacity: 1;
- color: var(--text-disabled);
- background: var(--fill-control-disabled);
-}
-
-.danger-button {
- width: 100%;
- min-height: var(--control-md);
- display: flex;
- align-items: center;
- justify-content: center;
- gap: var(--space-2);
- padding: 0 var(--space-3);
- border: 1px solid var(--danger-line);
- border-radius: var(--radius-sm);
- color: var(--danger);
- background: var(--danger-soft);
- font-size: var(--text-base);
- font-weight: var(--weight-regular);
- transition: var(--transition-control);
-}
-
-.danger-button:hover:not(:disabled) {
- border-color: var(--danger-line-strong);
- background: var(--danger-soft-strong);
-}
-
/* --- Icon buttons ---------------------------------------------------------- */
.icon-button {
@@ -156,32 +106,6 @@
/* A toggle icon button that is on (.icon-button--checked / aria-pressed)
takes the shared on-state in ui.css ("Toggle on-state"). */
-.icon-button--strong {
- border-color: var(--stroke-control);
- border-bottom-color: var(--stroke-control-bottom);
- background: var(--fill-control);
-}
-
-/* Destructive icon action shared by inspector headers. */
-.inspector-remove-button {
- width: var(--icon-button);
- height: var(--icon-button);
- flex: 0 0 auto;
- display: grid;
- place-items: center;
- padding: 0;
- border: 0;
- border-radius: var(--radius-sm);
- color: var(--text-secondary);
- background: none;
- transition: var(--transition-control);
-}
-
-.inspector-remove-button:hover:not(:disabled) {
- color: var(--danger);
- background: var(--danger-soft);
-}
-
/* --- Text fields ------------------------------------------------------------
The Fluent TextBox: 32px, 4px corners, a hairline edge whose BOTTOM is the
strong stroke, and — while typing — a 2px accent underline and a slightly
@@ -192,7 +116,7 @@
zero specificity (:where), so any screen's own field rule still wins on the
properties it sets. It is drawn as a border colour plus a 1px inset shadow
so the field does not grow a pixel on focus. A composite field — a bordered
- wrapper around a borderless input, like .search-field — draws the underline
+ wrapper around a borderless input, like .ui-textfield — draws the underline
on the wrapper instead and sets `box-shadow: none` on the inner input so
the two never stack. */
@@ -232,61 +156,6 @@
background: var(--fill-input-focus);
}
-/* --- Search field ---------------------------------------------------------- */
-
-.search-field {
- height: var(--field-height);
- width: 260px;
- display: flex;
- align-items: center;
- gap: var(--space-2);
- padding: 0 var(--space-3);
- color: var(--text-secondary);
- background: var(--fill-control);
- border: 1px solid var(--stroke-control);
- border-bottom-color: var(--stroke-strong);
- border-radius: var(--radius-sm);
- transition: var(--transition-control);
-}
-
-.search-field:hover:not(:focus-within) {
- background: var(--fill-control-hover);
-}
-
-/* The bordered wrapper IS the control, so it carries the TextBox underline —
- Ctrl+K has to land somewhere obvious. */
-.search-field:focus-within {
- border-bottom-color: var(--field-focus-line);
- background: var(--fill-input-focus);
- box-shadow: inset 0 -1px 0 var(--field-focus-line);
-}
-
-.search-field input {
- min-width: 0;
- flex: 1;
- height: 100%;
- background: none;
- border: 0;
- outline: none;
- box-shadow: none; /* .search-field:focus-within draws it */
- color: var(--text-primary);
- font-size: var(--text-base);
-}
-
-.search-field input::placeholder {
- color: var(--text-faint);
-}
-
-/* The Ctrl K hint inside the search field: a caption-sized key cap. */
-.search-field kbd {
- font: var(--weight-regular) var(--text-xs) / 1 var(--font-sans);
- color: var(--text-secondary);
- border: 1px solid var(--stroke-control);
- border-bottom-color: var(--stroke-control-bottom);
- padding: 2px var(--space-1);
- border-radius: var(--radius-sm);
-}
-
/* --- Check box, radio button, slider ----------------------------------------
Global element styling, so every screen gets the Fluent controls without a
class. The platform's own check box is a web control in a Windows frame.
@@ -454,127 +323,5 @@ input[type="range"]:disabled::-webkit-slider-thumb {
);
}
-/* --- Section label ---------------------------------------------------------
- Sentence case, caption size, semibold: the Fluent section header. The
- markup may still spell some labels in capitals; that is copy, not style. */
-
-.eyebrow {
- display: inline-flex;
- align-items: center;
- gap: var(--space-2);
- margin: 0;
- color: var(--text-secondary);
- font-size: var(--text-xs);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
-
-/* --- Back link ------------------------------------------------------------- */
-
-.back-link {
- min-height: var(--control-md);
- display: inline-flex;
- gap: var(--space-2);
- align-items: center;
- padding: 0 var(--space-2);
- margin-left: calc(var(--space-2) * -1);
- border: 0;
- border-radius: var(--radius-sm);
- background: none;
- color: var(--text-secondary);
- font-size: var(--text-base);
- transition: var(--transition-control);
-}
-
-.back-link:hover {
- color: var(--text-primary);
- background: var(--fill-subtle-hover);
-}
-
-/* --- Panel chrome (shared header strip inside editor panels) ---------------- */
-
-.panel-chrome {
- height: var(--control-md);
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 var(--space-2) 0 var(--space-3);
- border-bottom: 1px solid var(--line);
- color: var(--text-primary);
- font-size: var(--text-xs);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
-
-.panel-chrome > span {
- display: flex;
- align-items: center;
- gap: var(--space-2);
-}
-
-.panel-chrome button {
- min-height: var(--control-sm);
- display: flex;
- align-items: center;
- gap: var(--space-2);
- padding: 0 var(--space-2);
- border: 0;
- border-radius: var(--radius-sm);
- color: var(--text-secondary);
- background: none;
- font-size: var(--text-xs);
- transition: var(--transition-control);
-}
-
-.panel-chrome button:hover {
- color: var(--text-primary);
- background: var(--fill-subtle-hover);
-}
-
-/* A flat status dot. No glow. */
-.live-dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--success);
-}
-
-/* --- Progress ---------------------------------------------------------------
- The Fluent ProgressBar: a 3px track with 1.5px ends. */
-
-.progress-track {
- height: var(--progress-height);
- margin: var(--space-3) 0;
- border-radius: var(--radius-progress);
- background: var(--track);
- overflow: hidden;
-}
-
-.progress-track i {
- display: block;
- height: 100%;
- border-radius: var(--radius-progress);
- background: var(--progress-fill);
-}
-
-.mini-progress {
- display: block;
- height: var(--progress-height);
- margin-top: var(--space-2);
- border-radius: var(--radius-progress);
- background: var(--track);
- overflow: hidden;
-}
-
-.mini-progress em {
- display: block;
- height: 100%;
- border-radius: var(--radius-progress);
- background: var(--progress-fill);
-}
-
-.progress-track i[data-state="done"],
-.mini-progress em[data-state="done"] { background: var(--success); }
-
/* Toasts are gone: errors and notices are InfoBars placed inline under the
command bar or title bar (src/components/ui/InfoBar.tsx). */
diff --git a/src/styles/image-editor.css b/src/styles/image-editor.css
index 86a34d5..34da3bb 100644
--- a/src/styles/image-editor.css
+++ b/src/styles/image-editor.css
@@ -57,7 +57,7 @@
.image-viewport { position: relative; flex: 1; min-height: 0; overflow: clip; container-type: size; user-select: none; background: var(--layer-alt); }
.image-viewport.panning, .image-viewport.panning * { cursor: grabbing; }
.image-frame { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--image-pan-x)), calc(-50% + var(--image-pan-y))); width: calc(min(100cqw - 48px, (100cqh - 48px) * var(--image-ratio)) * var(--image-zoom)); aspect-ratio: var(--image-ratio); background: var(--panel); box-shadow: 0 0 0 1px var(--line-solid); }
-.image-frame > img, .image-frame > .reference-image { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0; }
+.image-frame > img { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0; }
.image-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; padding: var(--space-4); color: var(--text-muted); }
.image-empty strong { color: var(--text-primary); font-size: var(--text-base); font-weight: var(--weight-semibold); }
.image-empty span { max-width: 300px; font-size: var(--text-xs); }
diff --git a/src/styles/index.css b/src/styles/index.css
index 625854c..ce0f7e1 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -29,8 +29,7 @@
@import "./export.css";
@import "./updater.css";
-/* Body text entry uses one reading size. Editable inspector headings keep
- their own hierarchy below. */
+/* Body text entry uses one reading size. */
:root input:not([type]),
:root input[type="text"],
:root input[type="search"],
@@ -41,11 +40,3 @@
font-size: var(--text-base);
}
-:root .generator-panel .job-title__name,
-:root .generator-panel .shot-title__name,
-:root .reference-inspector .reference-title__name,
-:root .clip-inspector .clip-title__name {
- font-size: var(--text-md);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
diff --git a/src/styles/ui.css b/src/styles/ui.css
index 62a1694..ce41988 100644
--- a/src/styles/ui.css
+++ b/src/styles/ui.css
@@ -1797,8 +1797,7 @@
.ui-cmd[aria-pressed="true"],
.icon-button.icon-button--checked,
.icon-button[aria-pressed="true"],
-.ui-toggle-button[aria-pressed="true"],
-.ui-toggle-button.is-checked {
+.ui-toggle-button[aria-pressed="true"] {
color: var(--accent-bright);
background: var(--accent-soft);
}
@@ -1807,8 +1806,7 @@
.ui-cmd[aria-pressed="true"]:hover:not(:disabled),
.icon-button.icon-button--checked:hover:not(:disabled),
.icon-button[aria-pressed="true"]:hover:not(:disabled),
-.ui-toggle-button[aria-pressed="true"]:hover:not(:disabled),
-.ui-toggle-button.is-checked:hover:not(:disabled) {
+.ui-toggle-button[aria-pressed="true"]:hover:not(:disabled) {
color: var(--accent-bright);
background: var(--accent-soft-strong);
}
@@ -1817,8 +1815,7 @@
.ui-cmd[aria-pressed="true"]:active:not(:disabled),
.icon-button.icon-button--checked:active:not(:disabled),
.icon-button[aria-pressed="true"]:active:not(:disabled),
-.ui-toggle-button[aria-pressed="true"]:active:not(:disabled),
-.ui-toggle-button.is-checked:active:not(:disabled) {
+.ui-toggle-button[aria-pressed="true"]:active:not(:disabled) {
color: var(--accent-bright);
background: var(--accent-soft);
}
@@ -1938,7 +1935,7 @@
}
/* ============================================================================
- TextField — the TextBox as a composite (see .search-field in controls.css)
+ TextField — the TextBox as a composite (see the text-field notes in controls.css)
========================================================================== */
.ui-textfield {