diff --git a/zddc/internal/apps/embedded/archive.html b/zddc/internal/apps/embedded/archive.html index d1c5b09..f431df6 100644 --- a/zddc/internal/apps/embedded/archive.html +++ b/zddc/internal/apps/embedded/archive.html @@ -357,7 +357,83 @@ a:hover { font-size: 1.1rem; } -/* Toast CSS lives in classifier/css/base.css — only that tool uses toasts. */ +/* Toast CSS lives in shared/toast.css; loaded by every tool's build. */ + +/* ── Empty state ──────────────────────────────────────────────────────────── */ +/* The "nothing's loaded yet" screen. By default, centers its inner + content in whatever space the parent gives it (works inside a flex + column). Tools that need to overlay an existing layout (archive, + classifier) add .empty-state--overlay; the screen pins below the + app header and on top of whatever underlying layout already exists. + Inner content uses BEM-ish .empty-state__inner with two variants: + plain (left-aligned, doc-style) and --centered (centered card). */ + +.empty-state { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + padding: 2rem; + background: var(--bg); +} + +.empty-state--overlay { + position: absolute; + top: 50px; /* clear the app-header */ + left: 0; + right: 0; + bottom: 0; + z-index: 10; + flex: none; +} + +.empty-state__inner { + max-width: 640px; + color: var(--text-muted); + line-height: 1.5; +} + +.empty-state__inner h2 { + color: var(--text); + margin: 0 0 1rem; + font-size: 1.5rem; +} + +.empty-state__inner p { + margin-bottom: 1rem; +} + +.empty-state__inner ul, +.empty-state__inner ol { + margin: 1rem 0; + padding-left: 1.5rem; +} + +.empty-state__inner li { + margin: 0.4rem 0; +} + +.empty-state__inner .note { + font-size: 0.85rem; + font-style: italic; +} + +/* Centered variant: tighter max-width + centered text. Used by tools + whose empty-state reads as a "welcome card" (archive, classifier) + rather than a doc-style page (browse). */ +.empty-state__inner--centered { + max-width: 500px; + text-align: center; + padding: 2rem; +} + +/* Bullet list inside an empty-state — keep the bullets left-aligned + even when the surrounding card is centered. */ +.welcome-list { + text-align: left; + margin: 0.5rem auto; + max-width: 400px; +} /* ── Theme and help icon buttons ─────────────────────────────────────────── */ #theme-btn, @@ -893,24 +969,7 @@ body.help-open .app-header { } /* Empty State — positioned below the app header */ -.empty-state { - position: absolute; - top: 50px; /* clear the header */ - left: 0; - right: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - background: var(--bg); - z-index: 10; -} - -.empty-state-content { - text-align: center; - max-width: 500px; - padding: 2rem; -} +/* .empty-state / .empty-state__inner / .welcome-list live in shared/base.css. */ /* Project warning banner */ .project-warning-banner { @@ -935,16 +994,6 @@ body.help-open .app-header { flex-shrink: 0; } -.empty-state-content h2 { - color: var(--text); - margin-bottom: 1rem; -} - -.empty-state-content p { - margin-bottom: 1rem; - color: var(--text-muted); -} - /* Project access warning banner */ .project-warning-banner { display: flex; @@ -1613,12 +1662,7 @@ input[type="checkbox"] { color: var(--text-muted); } -/* ── Welcome screen list ─────────────────────────────────────────────────── */ -.welcome-list { - text-align: left; - margin: 0.5rem auto; - max-width: 400px; -} +/* .welcome-list lives in shared/base.css. */ /* ── Windows path tip (inside welcome screen) ────────────────────────────── */ .windows-tip { @@ -2272,7 +2316,7 @@ td[data-field="trackingNumber"] {