feat: web UI redesign with PWA support, voice page, and mobile layout
- Redesign dash/history/notifications/trace pages with unified CSS framework (ui.css): cards, badges, scrollable tables, responsive grid, PWA shell. - Add /voice page with chat-bubble transcript, listening indicator, and push-to-talk button for voice interaction. - Add mavweb.js: client-side JS for live transcript polling, auto-scroll, push-to-talk, and service-worker registration. - Update PWA manifest, icon, and service-worker for installable web app. - Add WebAuthn credential management (register/list/delete) with modal UI. - Update main.go: /voice route, WebAuthn handlers, new page navigation. - Update handlers_test.go for new voice and WebAuthn routes.
This commit is contained in:
+692
-107
@@ -1,135 +1,720 @@
|
||||
/* maven design system — dark, restrained, #00aaff accent.
|
||||
Every server-rendered page uses this single stylesheet.
|
||||
Pages carry NO inline <style> beyond true one-offs. */
|
||||
/* ═══════════════════════════════════════════════
|
||||
Ethos design system for Maven
|
||||
accent: warm violet #A78BFA · motif: breath dots
|
||||
Tokens → layout → components → utilities
|
||||
No literal colors, spacing, radii, or font sizes
|
||||
in component code — everything comes from :root.
|
||||
═══════════════════════════════════════════════ */
|
||||
|
||||
/* ── Design Tokens ── */
|
||||
:root{
|
||||
--bg:#111;--panel:#1a1a2e;--line:#222;--border:#333;
|
||||
--fg:#ddd;--soft:#aaa;--muted:#888;--dim:#555;
|
||||
--accent:#00aaff;--ok:#00ff88;--warn:#ffaa00;--err:#ff4444;
|
||||
/* ── Ethos Design Tokens (warm, brown-tinted neutral ramp) ── */
|
||||
:root {
|
||||
/* Neutrals — warm room, not cool grey */
|
||||
--ethos-bg0: #14110D;
|
||||
--ethos-bg1: #1B1712;
|
||||
--ethos-bg2: #221D17;
|
||||
--ethos-surface0: #221D17;
|
||||
--ethos-surface1: #2C261D;
|
||||
--ethos-surface2: #372F24;
|
||||
--ethos-border: rgba(244, 234, 220, 0.09);
|
||||
--ethos-border-hi: rgba(244, 234, 220, 0.16);
|
||||
--ethos-text: #F4EEE4;
|
||||
--ethos-secondary: #B4AA98;
|
||||
--ethos-muted: #9C917D;
|
||||
--ethos-disabled: #756C5C;
|
||||
|
||||
--surface-page:var(--bg);
|
||||
--surface-card:var(--panel);
|
||||
--surface-raised:#222;
|
||||
--surface-input:#181818;
|
||||
--surface-hover:rgba(255,255,255,.04);
|
||||
/* Accent — Maven: warm violet, single use (selected/focused/active) */
|
||||
--ethos-accent: #A78BFA;
|
||||
--ethos-accent-hi: #C1AEFC;
|
||||
--ethos-accent-dim: rgba(167, 139, 250, 0.14);
|
||||
--ethos-accent-line: rgba(167, 139, 250, 0.32);
|
||||
--ethos-accent-glow: rgba(167, 139, 250, 0.4);
|
||||
|
||||
--fs-xs:.7rem;--fs-sm:.8rem;--fs-base:14px;
|
||||
--fs-lg:1.25rem;--fs-xl:1.5rem;
|
||||
--space-xs:.25rem;--space-sm:.5rem;--space-md:.75rem;
|
||||
--space-lg:1.25rem;--space-xl:2rem;
|
||||
--radius-sm:3px;--radius-md:6px;--radius-lg:10px;
|
||||
--shadow-sm:0 1px 3px rgba(0,0,0,.3);
|
||||
--shadow-md:0 2px 8px rgba(0,0,0,.4);
|
||||
--transition:150ms ease;
|
||||
/* Semantic colors */
|
||||
--ethos-green: #6FBF8B; /* running / healthy / success */
|
||||
--ethos-amber: #E0A855; /* warning / paused */
|
||||
--ethos-red: #E0715F; /* failed / danger */
|
||||
--ethos-purple: #A78BFA; /* ai agents / llms — same family as accent */
|
||||
--ethos-cyan: #5EBFC4; /* network */
|
||||
--ethos-orange: #D9895A; /* build */
|
||||
|
||||
/* Typography — Geist for human copy, Geist Mono for machine values */
|
||||
--ethos-font: 'Geist', -apple-system, system-ui, sans-serif;
|
||||
--ethos-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
||||
|
||||
/* Font sizes */
|
||||
--ethos-fs-xs: 11px;
|
||||
--ethos-fs-sm: 12px;
|
||||
--ethos-fs-base: 14px;
|
||||
--ethos-fs-lg: 16px;
|
||||
--ethos-fs-xl: 18px;
|
||||
--ethos-fs-2xl: 24px;
|
||||
--ethos-fs-3xl: 32px;
|
||||
|
||||
/* Spacing — 8px grid */
|
||||
--ethos-space-1: 4px;
|
||||
--ethos-space-2: 8px;
|
||||
--ethos-space-3: 12px;
|
||||
--ethos-space-4: 16px;
|
||||
--ethos-space-5: 24px;
|
||||
--ethos-space-6: 32px;
|
||||
--ethos-space-7: 40px;
|
||||
--ethos-space-8: 48px;
|
||||
--ethos-space-9: 64px;
|
||||
|
||||
/* Radius */
|
||||
--ethos-radius: 8px;
|
||||
--ethos-radius-lg: 12px;
|
||||
--ethos-radius-chip: 999px;
|
||||
|
||||
/* Shadows — soft warm light, no glass, no glow-blur */
|
||||
--ethos-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||||
--ethos-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.28);
|
||||
|
||||
/* Motion — mechanical, no bounce */
|
||||
--ethos-motion-fast: 130ms cubic-bezier(0.2, 0, 0, 1);
|
||||
--ethos-motion: 170ms cubic-bezier(0.2, 0, 0, 1);
|
||||
|
||||
/* Legacy aliases for backward compat during migration */
|
||||
--bg: var(--ethos-bg1);
|
||||
--panel: var(--ethos-surface0);
|
||||
--line: var(--ethos-border);
|
||||
--border: var(--ethos-border);
|
||||
--fg: var(--ethos-text);
|
||||
--soft: var(--ethos-secondary);
|
||||
--muted: var(--ethos-muted);
|
||||
--dim: var(--ethos-disabled);
|
||||
--accent: var(--ethos-accent);
|
||||
--ok: var(--ethos-green);
|
||||
--warn: var(--ethos-amber);
|
||||
--err: var(--ethos-red);
|
||||
--purple: var(--ethos-purple);
|
||||
--surface-page: var(--ethos-bg0);
|
||||
--surface-card: var(--ethos-surface0);
|
||||
--surface-raised: var(--ethos-surface1);
|
||||
--surface-input: var(--ethos-bg2);
|
||||
--surface-hover: var(--ethos-surface1);
|
||||
--fs-xs: var(--ethos-fs-xs);
|
||||
--fs-sm: var(--ethos-fs-sm);
|
||||
--fs-base: var(--ethos-fs-base);
|
||||
--fs-lg: var(--ethos-fs-lg);
|
||||
--fs-xl: var(--ethos-fs-xl);
|
||||
--space-xs: var(--ethos-space-1);
|
||||
--space-sm: var(--ethos-space-2);
|
||||
--space-md: var(--ethos-space-3);
|
||||
--space-lg: var(--ethos-space-4);
|
||||
--space-xl: var(--ethos-space-5);
|
||||
--radius-sm: var(--ethos-radius);
|
||||
--radius-md: var(--ethos-radius);
|
||||
--radius-lg: var(--ethos-radius);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
|
||||
}
|
||||
|
||||
/* ── Reset / Base ── */
|
||||
*{box-sizing:border-box}
|
||||
body{background:var(--surface-page);color:var(--fg);font:var(--fs-base)/1.6 system-ui,sans-serif;
|
||||
margin:0;padding:1rem;-webkit-text-size-adjust:100%;min-height:100vh}
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
background: var(--ethos-bg0);
|
||||
color: var(--ethos-text);
|
||||
font: var(--ethos-fs-base)/1.5 var(--ethos-font);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
min-height: 100vh;
|
||||
overflow: hidden; /* shell handles scrolling */
|
||||
}
|
||||
a { color: var(--ethos-accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ── Typography ── */
|
||||
h1,h2,h3{font-weight:400;color:var(--muted);letter-spacing:.1em;text-transform:uppercase}
|
||||
h1{font-size:var(--fs-lg);margin:0 0 var(--space-lg)}
|
||||
h2{font-size:.95rem;margin:var(--space-lg) 0 var(--space-sm)}
|
||||
h3{font-size:.85rem;margin:var(--space-md) 0 var(--space-xs)}
|
||||
h1 small,h2 small,h3 small{color:var(--dim);letter-spacing:0;text-transform:none}
|
||||
a{color:var(--accent);text-decoration:none}
|
||||
a:hover{text-decoration:underline}
|
||||
h1 {
|
||||
font-size: var(--ethos-fs-xl);
|
||||
font-weight: 500;
|
||||
color: var(--ethos-text);
|
||||
margin: 0 0 var(--ethos-space-4);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--ethos-fs-base);
|
||||
font-weight: 500;
|
||||
color: var(--ethos-secondary);
|
||||
margin: 0 0 var(--ethos-space-3);
|
||||
}
|
||||
h3 {
|
||||
font-size: var(--ethos-fs-sm);
|
||||
font-weight: 500;
|
||||
color: var(--ethos-muted);
|
||||
margin: 0 0 var(--ethos-space-2);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
h1 small, h2 small, h3 small { color: var(--ethos-muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
|
||||
|
||||
/* ── Page Layout ── */
|
||||
.page{max-width:80rem;margin:0 auto;padding:0 .5rem var(--space-xl)}
|
||||
/* ── Shell Layout ── */
|
||||
.shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Nav (shared site nav) ── */
|
||||
nav.site{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;
|
||||
border-bottom:1px solid var(--line);padding-bottom:.6rem;margin-bottom:var(--space-lg)}
|
||||
nav.site a{font-size:var(--fs-sm);letter-spacing:.08em;text-transform:uppercase;
|
||||
color:var(--dim);transition:color var(--transition)}
|
||||
nav.site a:hover{color:var(--fg);text-decoration:none}
|
||||
nav.site a.active{color:var(--accent)}
|
||||
/* Top Bar */
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
padding: 0 var(--ethos-space-4);
|
||||
background: var(--ethos-bg1);
|
||||
border-bottom: 1px solid var(--ethos-border);
|
||||
gap: var(--ethos-space-3);
|
||||
flex-shrink: 0;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
.topbar > * { -webkit-app-region: no-drag; }
|
||||
.breadcrumbs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
color: var(--ethos-muted);
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.breadcrumbs .sep { color: var(--ethos-disabled); margin: 0 2px; }
|
||||
.breadcrumbs .current { color: var(--ethos-text); font-weight: 500; }
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
}
|
||||
|
||||
/* Connection status dot */
|
||||
.conn-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-muted);
|
||||
}
|
||||
.conn-status .dot { width: 6px; height: 6px; border-radius: 50%; }
|
||||
.conn-status .dot.online { background: var(--ethos-green); }
|
||||
.conn-status .dot.offline { background: var(--ethos-disabled); }
|
||||
|
||||
/* Shell Body — sidebar + content + inspector */
|
||||
.shell-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: 200px;
|
||||
min-width: 200px;
|
||||
background: var(--ethos-bg1);
|
||||
border-right: 1px solid var(--ethos-border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
padding: var(--ethos-space-3) 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sidebar-section { margin-bottom: var(--ethos-space-3); }
|
||||
.sidebar-label {
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
padding: var(--ethos-space-1) var(--ethos-space-4);
|
||||
margin-bottom: var(--ethos-space-1);
|
||||
font-weight: 500;
|
||||
}
|
||||
.sidebar a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
padding: var(--ethos-space-1) var(--ethos-space-4);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
color: var(--ethos-secondary);
|
||||
text-decoration: none;
|
||||
border-left: 2px solid transparent;
|
||||
height: 28px;
|
||||
transition: background var(--ethos-motion), color var(--ethos-motion), border-color var(--ethos-motion);
|
||||
}
|
||||
.sidebar a:hover { background: var(--ethos-surface-hover); color: var(--ethos-text); text-decoration: none; }
|
||||
.sidebar a.active {
|
||||
color: var(--ethos-accent);
|
||||
background: var(--ethos-accent-dim);
|
||||
border-left-color: var(--ethos-accent);
|
||||
}
|
||||
.sidebar a .icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
|
||||
.sidebar a.active .icon { opacity: 1; }
|
||||
|
||||
/* Main Content */
|
||||
.content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: var(--ethos-space-5);
|
||||
background: var(--ethos-bg0);
|
||||
}
|
||||
.content-wide { max-width: 960px; }
|
||||
|
||||
/* Inspector Panel (right side) */
|
||||
.inspector {
|
||||
width: 0;
|
||||
overflow: hidden;
|
||||
background: var(--ethos-bg1);
|
||||
border-left: 1px solid var(--ethos-border);
|
||||
transition: width var(--ethos-motion);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.inspector.open { width: 400px; }
|
||||
.inspector-inner {
|
||||
width: 400px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.inspector-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--ethos-space-3) var(--ethos-space-4);
|
||||
border-bottom: 1px solid var(--ethos-border);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
font-weight: 500;
|
||||
color: var(--ethos-text);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.inspector-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--ethos-muted);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: var(--ethos-radius);
|
||||
line-height: 1;
|
||||
}
|
||||
.inspector-close:hover { color: var(--ethos-text); background: var(--ethos-surface-hover); }
|
||||
.inspector-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--ethos-space-4);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
}
|
||||
|
||||
/* ── Command Palette ── */
|
||||
.cmd-palette-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 12vh;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity var(--ethos-motion);
|
||||
}
|
||||
.cmd-palette-overlay.open { opacity: 1; pointer-events: auto; }
|
||||
.cmd-palette {
|
||||
width: 560px;
|
||||
max-width: 90vw;
|
||||
max-height: 60vh;
|
||||
background: var(--ethos-surface0);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: var(--ethos-radius);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cmd-palette-input {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--ethos-space-3) var(--ethos-space-4);
|
||||
border-bottom: 1px solid var(--ethos-border);
|
||||
gap: var(--ethos-space-2);
|
||||
}
|
||||
.cmd-palette-input input {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--ethos-text);
|
||||
font: var(--ethos-fs-base) var(--ethos-font);
|
||||
outline: none;
|
||||
}
|
||||
.cmd-palette-input input::placeholder { color: var(--ethos-disabled); }
|
||||
.cmd-palette-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--ethos-space-1) 0;
|
||||
}
|
||||
.cmd-palette-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
padding: var(--ethos-space-2) var(--ethos-space-4);
|
||||
color: var(--ethos-secondary);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
cursor: pointer;
|
||||
transition: background var(--ethos-motion-fast);
|
||||
text-decoration: none;
|
||||
}
|
||||
.cmd-palette-item:hover,
|
||||
.cmd-palette-item.selected { background: var(--ethos-surface-hover); color: var(--ethos-text); text-decoration: none; }
|
||||
.cmd-palette-item .kbd {
|
||||
margin-left: auto;
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-disabled);
|
||||
font-family: var(--ethos-mono);
|
||||
}
|
||||
|
||||
/* ── Search Bar (inline, slim) ── */
|
||||
.search-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: var(--ethos-bg2);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: var(--ethos-radius);
|
||||
padding: 2px 8px;
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-muted);
|
||||
cursor: pointer;
|
||||
height: 24px;
|
||||
transition: border-color var(--ethos-motion-fast);
|
||||
}
|
||||
.search-trigger:hover { border-color: var(--ethos-muted); }
|
||||
.search-trigger .kbd-hint {
|
||||
font-family: var(--ethos-mono);
|
||||
color: var(--ethos-disabled);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* ── Cards ── */
|
||||
.card{background:var(--surface-card);border-radius:var(--radius-md);
|
||||
padding:var(--space-md) var(--space-lg);margin-bottom:var(--space-lg);
|
||||
box-shadow:var(--shadow-sm)}
|
||||
.card-title{font-size:.95rem;margin:0 0 var(--space-sm);color:var(--muted);
|
||||
display:flex;align-items:center;gap:var(--space-sm)}
|
||||
.card-sub{font-size:var(--fs-sm);color:var(--dim);margin:0 0 var(--space-sm)}
|
||||
.card {
|
||||
background: var(--ethos-surface0);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: var(--ethos-radius);
|
||||
padding: var(--ethos-space-3) var(--ethos-space-4);
|
||||
margin-bottom: var(--ethos-space-4);
|
||||
}
|
||||
.card-title {
|
||||
font-size: var(--ethos-fs-sm);
|
||||
font-weight: 500;
|
||||
color: var(--ethos-secondary);
|
||||
margin: 0 0 var(--ethos-space-2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
}
|
||||
.card-sub {
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-muted);
|
||||
margin: 0 0 var(--ethos-space-2);
|
||||
}
|
||||
.card-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-2);
|
||||
margin-top: var(--ethos-space-3);
|
||||
}
|
||||
|
||||
/* ── Tables ── */
|
||||
.scroll{overflow-x:auto;margin-bottom:var(--space-sm)}
|
||||
table{width:100%;border-collapse:collapse}
|
||||
th,td{padding:.4rem .6rem;text-align:left;vertical-align:top;
|
||||
border-bottom:1px solid var(--line)}
|
||||
th{color:var(--dim);font-size:var(--fs-xs);text-transform:uppercase;
|
||||
letter-spacing:.05em;white-space:nowrap;font-weight:500}
|
||||
td{color:var(--soft)}
|
||||
tr:hover td{background:var(--surface-hover)}
|
||||
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
|
||||
code,.key{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ok)}
|
||||
.scroll { overflow-x: auto; margin-bottom: var(--ethos-space-2); }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td {
|
||||
padding: var(--ethos-space-1) var(--ethos-space-2);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid var(--ethos-border);
|
||||
}
|
||||
th {
|
||||
color: var(--ethos-muted);
|
||||
font-size: var(--ethos-fs-xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
padding-top: var(--ethos-space-2);
|
||||
padding-bottom: var(--ethos-space-1);
|
||||
}
|
||||
td { color: var(--ethos-secondary); font-size: var(--ethos-fs-sm); }
|
||||
tr:hover td { background: var(--ethos-surface-hover); }
|
||||
tr.clickable { cursor: pointer; }
|
||||
.mono { font-family: var(--ethos-mono); }
|
||||
code, .key {
|
||||
font-family: var(--ethos-mono);
|
||||
color: var(--ethos-accent);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
}
|
||||
|
||||
/* ── Status / Semantic Colors ── */
|
||||
.pending,.away,.gray{color:var(--muted)}
|
||||
.acted,.pres,.green{color:var(--ok)}
|
||||
.snoozed{color:var(--warn)}
|
||||
.ignored,.red{color:var(--err)}
|
||||
.updated,.muted{color:var(--dim);font-size:var(--fs-sm)}
|
||||
.empty{color:var(--dim);padding:var(--space-xl);text-align:center}
|
||||
.voided{opacity:.45;text-decoration:line-through}
|
||||
.void-badge{color:var(--dim);font-size:var(--fs-sm);margin-right:.3rem}
|
||||
/* ── Status Vocabulary ── */
|
||||
/* Only these literals: Healthy, Running, Starting, Stopping, Stopped,
|
||||
Paused, Waiting, Queued, Completed, Failed, Warning, Offline, Unknown */
|
||||
.status-Healthy,
|
||||
.status-Running,
|
||||
.status-Completed { color: var(--ethos-green); }
|
||||
|
||||
/* ── Badges ── */
|
||||
.badge{font-size:var(--fs-xs);color:var(--dim);background:var(--surface-raised);
|
||||
padding:.15rem .4rem;border-radius:var(--radius-sm);white-space:nowrap}
|
||||
.badge-accent{color:var(--accent);background:rgba(0,170,255,.12)}
|
||||
.badge-ok{color:var(--ok);background:rgba(0,255,136,.1)}
|
||||
.badge-warn{color:var(--warn);background:rgba(255,170,0,.12)}
|
||||
.badge-err{color:var(--err);background:rgba(255,68,68,.12)}
|
||||
.status-Starting,
|
||||
.status-Waiting,
|
||||
.status-Queued { color: var(--ethos-amber); }
|
||||
|
||||
.status-Stopping { color: var(--ethos-amber); }
|
||||
.status-Stopped,
|
||||
.status-Paused,
|
||||
.status-Offline { color: var(--ethos-disabled); }
|
||||
|
||||
.status-Failed { color: var(--ethos-red); }
|
||||
.status-Warning { color: var(--ethos-amber); }
|
||||
.status-Unknown { color: var(--ethos-muted); }
|
||||
|
||||
/* Legacy status aliases — mapped to ethos vocab intent during migration */
|
||||
.green, .pres, .acted { color: var(--ethos-green); }
|
||||
.pending, .away, .gray { color: var(--ethos-disabled); }
|
||||
.snoozed { color: var(--ethos-amber); }
|
||||
.ignored, .red { color: var(--ethos-red); }
|
||||
.updated, .muted { color: var(--ethos-muted); font-size: var(--ethos-fs-xs); }
|
||||
|
||||
.empty {
|
||||
color: var(--ethos-disabled);
|
||||
padding: var(--ethos-space-8) var(--ethos-space-4);
|
||||
text-align: center;
|
||||
font-size: var(--ethos-fs-sm);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-3);
|
||||
}
|
||||
.empty .icon { opacity: 0.4; margin-bottom: var(--ethos-space-1); }
|
||||
.empty .action { margin-top: var(--ethos-space-2); }
|
||||
.voided { opacity: 0.45; text-decoration: line-through; }
|
||||
.void-badge { color: var(--ethos-muted); font-size: var(--ethos-fs-xs); margin-right: var(--ethos-space-1); }
|
||||
|
||||
/* ── Status Dot ── */
|
||||
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;vertical-align:middle}
|
||||
.dot-ok{background:var(--ok);box-shadow:0 0 5px var(--ok)}
|
||||
.dot-warn{background:var(--warn);box-shadow:0 0 5px var(--warn)}
|
||||
.dot-err{background:var(--err);box-shadow:0 0 5px var(--err)}
|
||||
.dot-dim{background:var(--dim)}
|
||||
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
|
||||
.dot-ok { background: var(--ethos-green); }
|
||||
.dot-warn { background: var(--ethos-amber); }
|
||||
.dot-err { background: var(--ethos-red); }
|
||||
.dot-dim { background: var(--ethos-disabled); }
|
||||
.dot-purple { background: var(--ethos-purple); }
|
||||
.dot-cyan { background: var(--ethos-cyan); }
|
||||
.dot-online { background: var(--ethos-green); box-shadow: 0 0 6px var(--ethos-green); }
|
||||
.dot-offline { background: var(--ethos-disabled); }
|
||||
|
||||
/* ── Badges ── */
|
||||
.badge {
|
||||
font-size: var(--ethos-fs-xs);
|
||||
color: var(--ethos-secondary);
|
||||
background: var(--ethos-surface1);
|
||||
padding: 2px 6px;
|
||||
border-radius: var(--ethos-radius-chip);
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
.badge-accent { color: var(--ethos-accent-hi); background: var(--ethos-accent-dim); }
|
||||
.badge-ok { color: var(--ethos-green); background: rgba(111, 191, 139, 0.14); }
|
||||
.badge-warn { color: var(--ethos-amber); background: rgba(224, 168, 85, 0.14); }
|
||||
.badge-err { color: var(--ethos-red); background: rgba(224, 113, 95, 0.14); }
|
||||
.badge-purple { color: var(--ethos-purple); background: var(--ethos-accent-dim); }
|
||||
|
||||
/* ── Buttons ── */
|
||||
.btn{font:inherit;font-size:var(--fs-sm);background:var(--surface-card);color:var(--fg);
|
||||
border:1px solid var(--border);border-radius:var(--radius-sm);padding:.35rem .7rem;
|
||||
cursor:pointer;transition:border-color var(--transition),background var(--transition);
|
||||
display:inline-flex;align-items:center;gap:.3rem}
|
||||
.btn:hover{border-color:var(--accent);background:var(--surface-hover)}
|
||||
.btn:disabled{opacity:.4;cursor:not-allowed}
|
||||
.btn-primary{background:var(--accent);color:#111;border-color:var(--accent);font-weight:500}
|
||||
.btn-primary:hover{background:#0099ee;border-color:#0099ee}
|
||||
.btn-danger{border-color:var(--err);color:var(--err)}
|
||||
.btn-danger:hover{border-color:var(--err);background:rgba(255,68,68,.1)}
|
||||
.btn {
|
||||
font: inherit;
|
||||
font-size: var(--ethos-fs-sm);
|
||||
background: transparent;
|
||||
color: var(--ethos-secondary);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: var(--ethos-radius);
|
||||
padding: var(--ethos-space-1) var(--ethos-space-3);
|
||||
cursor: pointer;
|
||||
transition: border-color var(--ethos-motion), background var(--ethos-motion), color var(--ethos-motion);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--ethos-space-1);
|
||||
height: 28px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { border-color: var(--ethos-muted); color: var(--ethos-text); background: var(--ethos-surface-hover); }
|
||||
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
.btn:focus-visible { outline: 2px solid var(--ethos-accent); outline-offset: 2px; }
|
||||
.btn-primary {
|
||||
background: var(--ethos-accent);
|
||||
color: var(--ethos-bg0);
|
||||
border-color: var(--ethos-accent);
|
||||
font-weight: 500;
|
||||
}
|
||||
.btn-primary:hover { background: var(--ethos-accent-hi); border-color: var(--ethos-accent-hi); color: var(--ethos-bg0); }
|
||||
.btn-danger { border-color: var(--ethos-red); color: var(--ethos-red); }
|
||||
.btn-danger:hover { border-color: var(--ethos-red); background: rgba(224, 113, 95, 0.14); color: var(--ethos-red); }
|
||||
.btn-ghost { border-color: transparent; color: var(--ethos-muted); }
|
||||
.btn-ghost:hover { border-color: transparent; background: var(--ethos-surface-hover); color: var(--ethos-text); }
|
||||
.btn-sm { height: 22px; font-size: var(--ethos-fs-xs); padding: 0 var(--ethos-space-2); }
|
||||
.btn-lg { height: 34px; font-size: var(--ethos-fs-base); padding: var(--ethos-space-1) var(--ethos-space-4); }
|
||||
|
||||
/* ── Icon Button ── */
|
||||
.icon-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--ethos-muted);
|
||||
cursor: pointer;
|
||||
border-radius: var(--ethos-radius);
|
||||
transition: background var(--ethos-motion-fast), color var(--ethos-motion-fast);
|
||||
}
|
||||
.icon-btn:hover { background: var(--ethos-surface-hover); color: var(--ethos-text); }
|
||||
.icon-btn:focus-visible { outline: 2px solid var(--ethos-accent); outline-offset: 2px; }
|
||||
|
||||
/* ── Form Elements ── */
|
||||
input[type=text],input[type=url]{font:inherit;font-size:var(--fs-sm);
|
||||
background:var(--surface-input);color:var(--fg);
|
||||
border:1px solid var(--border);border-radius:var(--radius-sm);
|
||||
padding:.35rem .5rem;max-width:100%;transition:border-color var(--transition)}
|
||||
input[type=text]:focus,input[type=url]:focus{border-color:var(--accent);outline:none}
|
||||
input[type=checkbox]{accent-color:var(--accent);width:1rem;height:1rem;vertical-align:middle}
|
||||
label{color:var(--soft);cursor:pointer;display:inline-flex;align-items:center;gap:.3rem}
|
||||
input[type=text], input[type=url], input[type=search], select, textarea {
|
||||
font: inherit;
|
||||
font-size: var(--ethos-fs-sm);
|
||||
background: var(--ethos-bg2);
|
||||
color: var(--ethos-text);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: var(--ethos-radius);
|
||||
padding: var(--ethos-space-1) var(--ethos-space-2);
|
||||
max-width: 100%;
|
||||
transition: border-color var(--ethos-motion-fast);
|
||||
height: 28px;
|
||||
}
|
||||
input[type=text]:focus, input[type=url]:focus, input[type=search]:focus, select:focus, textarea:focus {
|
||||
border-color: var(--ethos-accent);
|
||||
outline: none;
|
||||
}
|
||||
input[type=checkbox] { accent-color: var(--ethos-accent); width: 14px; height: 14px; vertical-align: middle; }
|
||||
label { color: var(--ethos-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: var(--ethos-space-1); font-size: var(--ethos-fs-sm); }
|
||||
textarea { height: auto; min-height: 60px; }
|
||||
|
||||
/* ── Messages / Feedback ── */
|
||||
.msg{margin:.6rem 0;padding:.5rem .7rem;border-radius:var(--radius-sm);
|
||||
border:1px solid var(--line);font-size:var(--fs-sm)}
|
||||
.msg-ok{border-color:var(--ok);color:var(--ok)}
|
||||
.msg-err{border-color:var(--err);color:var(--err)}
|
||||
#msg{white-space:pre-wrap}
|
||||
.msg {
|
||||
margin: var(--ethos-space-2) 0;
|
||||
padding: var(--ethos-space-2) var(--ethos-space-3);
|
||||
border-radius: var(--ethos-radius);
|
||||
border: 1px solid var(--ethos-border);
|
||||
font-size: var(--ethos-fs-sm);
|
||||
color: var(--ethos-secondary);
|
||||
}
|
||||
.msg-ok { border-color: var(--ethos-green); color: var(--ethos-green); }
|
||||
.msg-err { border-color: var(--ethos-red); color: var(--ethos-red); }
|
||||
#msg { white-space: pre-wrap; }
|
||||
|
||||
/* ── Collapsible Details ── */
|
||||
details{color:var(--soft);font-size:var(--fs-sm)}
|
||||
summary{cursor:pointer;color:var(--dim);transition:color var(--transition)}
|
||||
summary:hover{color:var(--fg)}
|
||||
details[open]{margin-top:var(--space-xs)}
|
||||
details { color: var(--ethos-secondary); font-size: var(--ethos-fs-sm); }
|
||||
summary { cursor: pointer; color: var(--ethos-muted); transition: color var(--ethos-motion); user-select: none; }
|
||||
summary:hover { color: var(--ethos-text); }
|
||||
details[open] { margin-top: var(--ethos-space-1); }
|
||||
details[open] > summary { margin-bottom: var(--ethos-space-1); }
|
||||
|
||||
/* ── Skeleton Loading ── */
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, var(--ethos-surface0) 25%, var(--ethos-surface1) 50%, var(--ethos-surface0) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.5s ease-in-out infinite;
|
||||
border-radius: var(--ethos-radius);
|
||||
}
|
||||
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
||||
.skeleton-line { height: 12px; margin-bottom: var(--ethos-space-2); width: 100%; }
|
||||
.skeleton-line:last-child { width: 60%; }
|
||||
|
||||
/* ── Keyboard Shortcut Hints ── */
|
||||
kbd, .kbd {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--ethos-mono);
|
||||
font-size: 10px;
|
||||
color: var(--ethos-disabled);
|
||||
background: var(--ethos-bg2);
|
||||
border: 1px solid var(--ethos-border);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ── Notification / Nudge item ── */
|
||||
.nudge-item {
|
||||
display: flex;
|
||||
gap: var(--ethos-space-3);
|
||||
padding: var(--ethos-space-2) 0;
|
||||
border-bottom: 1px solid var(--ethos-border);
|
||||
align-items: flex-start;
|
||||
}
|
||||
.nudge-item:last-child { border-bottom: none; }
|
||||
.nudge-icon { flex-shrink: 0; margin-top: 2px; }
|
||||
.nudge-body { flex: 1; min-width: 0; }
|
||||
.nudge-rule { font-size: var(--ethos-fs-xs); color: var(--ethos-muted); }
|
||||
.nudge-msg { font-size: var(--ethos-fs-sm); color: var(--ethos-secondary); margin-top: 2px; }
|
||||
.nudge-meta { display: flex; gap: var(--ethos-space-2); align-items: center; margin-top: var(--ethos-space-1); }
|
||||
|
||||
/* ── Tooltip / Hint ── */
|
||||
.hint { font-size: var(--ethos-fs-xs); color: var(--ethos-muted); }
|
||||
.hint-icon { cursor: help; color: var(--ethos-disabled); }
|
||||
|
||||
/* ── Key-value pairs ── */
|
||||
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--ethos-space-1) var(--ethos-space-3); font-size: var(--ethos-fs-sm); }
|
||||
.kv dt { color: var(--ethos-muted); white-space: nowrap; }
|
||||
.kv dd { color: var(--ethos-secondary); word-break: break-all; }
|
||||
|
||||
/* ── Section (page section header) ── */
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--ethos-space-3);
|
||||
gap: var(--ethos-space-3);
|
||||
}
|
||||
.section-header h2 { margin-bottom: 0; }
|
||||
|
||||
/* ── Utilities ── */
|
||||
.val{word-break:break-all;max-width:20rem}
|
||||
.text-max{max-width:22rem}
|
||||
.input-wide{width:20rem}
|
||||
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
|
||||
.val { word-break: break-all; max-width: 20rem; }
|
||||
.text-max { max-width: 22rem; }
|
||||
.input-wide { width: 20rem; }
|
||||
.flex { display: flex; }
|
||||
.flex-col { display: flex; flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
.gap-1 { gap: var(--ethos-space-1); }
|
||||
.gap-2 { gap: var(--ethos-space-2); }
|
||||
.gap-3 { gap: var(--ethos-space-3); }
|
||||
.gap-4 { gap: var(--ethos-space-4); }
|
||||
.mt-1 { margin-top: var(--ethos-space-1); }
|
||||
.mt-2 { margin-top: var(--ethos-space-2); }
|
||||
.mt-3 { margin-top: var(--ethos-space-3); }
|
||||
.mt-4 { margin-top: var(--ethos-space-4); }
|
||||
.mb-1 { margin-bottom: var(--ethos-space-1); }
|
||||
.mb-2 { margin-bottom: var(--ethos-space-2); }
|
||||
.mb-3 { margin-bottom: var(--ethos-space-3); }
|
||||
.mb-4 { margin-bottom: var(--ethos-space-4); }
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { width: 48px; min-width: 48px; }
|
||||
.sidebar .sidebar-label { display: none; }
|
||||
.sidebar a { justify-content: center; padding: var(--ethos-space-2) 0; border-left: none; }
|
||||
.sidebar a span:not(.icon) { display: none; }
|
||||
.inspector.open { width: 100%; position: fixed; inset: 0; z-index: 100; border-left: none; }
|
||||
.content { padding: var(--ethos-space-3); }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.sidebar { width: 0; min-width: 0; overflow: hidden; padding: 0; border-right: none; }
|
||||
.content { padding: var(--ethos-space-2); }
|
||||
.cmd-palette { width: 100%; max-width: 100%; max-height: 80vh; border-radius: 0; }
|
||||
.cmd-palette-overlay { padding-top: 0; align-items: flex-start; }
|
||||
}
|
||||
|
||||
/* ── Print ── */
|
||||
@media print {
|
||||
.sidebar, .topbar, .inspector { display: none; }
|
||||
.shell, .shell-body { display: block; height: auto; overflow: visible; }
|
||||
.content { overflow: visible; padding: 0; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user