feat(webui): Fluent 2 mica/acrylic materials, acrylic topbar overlay, token consistency
- Restore official light neutral background ramp; add danger hover/pressed and warning-border tokens; drop dead --edge - Mica ambient brand-tinted backdrop; acrylic sidebar/topbar/flyouts with reduced-transparency fallback - Content and session rail scroll under the acrylic topbar (--topbar-h driven offsets) - Global .danger-solid, shared .chip/.dot, card hover lift, radius/type ramp normalization; bump to 1.5.1
This commit is contained in:
parent
c02993ae2c
commit
ac0a0c42ad
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "picobot"
|
name = "picobot"
|
||||||
version = "1.5.0"
|
version = "1.5.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="theme-color" content="#f5f5f5" />
|
<meta name="theme-color" content="#fafafa" />
|
||||||
<script src="/theme-init.js"></script>
|
<script src="/theme-init.js"></script>
|
||||||
<title>PicoBot Workspace</title>
|
<title>PicoBot Workspace</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "picobot-webui",
|
"name": "picobot-webui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
|
|||||||
@ -98,7 +98,7 @@
|
|||||||
.spine-shell { position: relative; margin-left: auto; min-width: 0; }
|
.spine-shell { position: relative; margin-left: auto; min-width: 0; }
|
||||||
.spine-shell summary { list-style: none; }
|
.spine-shell summary { list-style: none; }
|
||||||
.spine-shell summary::-webkit-details-marker { display: none; }
|
.spine-shell summary::-webkit-details-marker { display: none; }
|
||||||
.spine { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; color: var(--text-soft); background: var(--panel-2); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; }
|
.spine { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--text-soft); background: var(--panel-2); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; }
|
||||||
.spine:hover { border-color: var(--line-strong); background: var(--color-neutral-background-4); }
|
.spine:hover { border-color: var(--line-strong); background: var(--color-neutral-background-4); }
|
||||||
.spine:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
.spine:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||||
.spine-turn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
|
.spine-turn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
|
||||||
@ -119,17 +119,17 @@
|
|||||||
.spine-down { color: var(--danger); }
|
.spine-down { color: var(--danger); }
|
||||||
.context-pending { color: var(--muted); }
|
.context-pending { color: var(--muted); }
|
||||||
|
|
||||||
.stats-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(390px, calc(100vw - 28px)); padding: 17px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--overlay); box-shadow: var(--shadow-16); font-family: var(--font-ui); }
|
.stats-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(390px, calc(100vw - 28px)); padding: 17px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface-acrylic); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); box-shadow: var(--shadow-16); font-family: var(--font-ui); }
|
||||||
.stats-panel header, .usage-heading, .stats-panel footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
.stats-panel header, .usage-heading, .stats-panel footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
||||||
.stats-panel header div { display: flex; align-items: baseline; gap: 10px; }
|
.stats-panel header div { display: flex; align-items: baseline; gap: 10px; }
|
||||||
.stats-panel header span, .usage-heading span { font-size: 12px; font-weight: 700; }
|
.stats-panel header span, .usage-heading span { font-size: 12px; font-weight: 700; }
|
||||||
.stats-panel header strong { font-family: var(--font-mono); font-size: 21px; letter-spacing: -0.04em; }
|
.stats-panel header strong { font-family: var(--font-mono); font-size: 21px; letter-spacing: -0.04em; }
|
||||||
.stats-panel small, .stats-panel footer { color: var(--muted); font-size: 10.5px; }
|
.stats-panel small, .stats-panel footer { color: var(--muted); font-size: 10px; }
|
||||||
.detail-rail { height: 8px; margin: 12px 0 15px; border-radius: 99px; }
|
.detail-rail { height: 8px; margin: 12px 0 15px; border-radius: 99px; }
|
||||||
.context-grid, .usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
|
.context-grid, .usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
|
||||||
.context-grid div, .usage-grid div { min-width: 0; padding: 9px 10px; background: var(--panel); }
|
.context-grid div, .usage-grid div { min-width: 0; padding: 9px 10px; background: var(--panel); }
|
||||||
dt { color: var(--muted); font-size: 10.5px; }
|
dt { color: var(--muted); font-size: 10px; }
|
||||||
dd { margin: 3px 0 0; overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
|
dd { margin: 3px 0 0; overflow: hidden; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.usage-heading { margin: 16px 0 8px; }
|
.usage-heading { margin: 16px 0 8px; }
|
||||||
.stats-panel footer { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
|
.stats-panel footer { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
|
||||||
.stats-panel footer span { text-align: right; }
|
.stats-panel footer span { text-align: right; }
|
||||||
@ -149,4 +149,7 @@
|
|||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.context-rail i, .detail-rail i { transition: none; }
|
.context-rail i, .detail-rail i { transition: none; }
|
||||||
}
|
}
|
||||||
|
@media (prefers-reduced-transparency: reduce) {
|
||||||
|
.stats-panel { background: var(--overlay); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -99,7 +99,9 @@
|
|||||||
.mode-grid > button { position: relative; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: var(--panel); text-align: left; cursor: pointer; }
|
.mode-grid > button { position: relative; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: var(--panel); text-align: left; cursor: pointer; }
|
||||||
.mode-grid > button:hover { background: var(--panel-2); }
|
.mode-grid > button:hover { background: var(--panel-2); }
|
||||||
.mode-grid > button.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
.mode-grid > button.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
||||||
.mode-preview { position: relative; height: 80px; display: block; overflow: hidden; border: 1px solid #d1d1d1; border-radius: 5px; background: #f5f5f5; }
|
/* Mode thumbnails are intentionally theme-independent illustrations: they depict both
|
||||||
|
light and dark surfaces at once, so they use fixed Fluent palette values instead of tokens. */
|
||||||
|
.mode-preview { position: relative; height: 80px; display: block; overflow: hidden; border: 1px solid #d1d1d1; border-radius: 6px; background: #f5f5f5; }
|
||||||
.mode-preview::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 24%; border-right: 1px solid #d1d1d1; background: #fafafa; }
|
.mode-preview::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 24%; border-right: 1px solid #d1d1d1; background: #fafafa; }
|
||||||
.mode-preview i, .mode-preview b, .mode-preview em { position: absolute; display: block; border-radius: 2px; }
|
.mode-preview i, .mode-preview b, .mode-preview em { position: absolute; display: block; border-radius: 2px; }
|
||||||
.mode-preview i { top: 12px; left: 31%; width: 46%; height: 7px; background: var(--accent); }
|
.mode-preview i { top: 12px; left: 31%; width: 46%; height: 7px; background: var(--accent); }
|
||||||
@ -116,25 +118,25 @@
|
|||||||
.accent-grid button { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); text-align: left; cursor: pointer; }
|
.accent-grid button { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); text-align: left; cursor: pointer; }
|
||||||
.accent-grid button:hover { border-color: var(--line-strong); background: var(--panel-2); }
|
.accent-grid button:hover { border-color: var(--line-strong); background: var(--panel-2); }
|
||||||
.accent-grid button.selected { border-color: var(--accent); background: var(--accent-soft); }
|
.accent-grid button.selected { border-color: var(--accent); background: var(--accent-soft); }
|
||||||
.swatch { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid rgb(0 0 0 / 12%); border-radius: 6px; color: #fff; background: var(--swatch); }
|
.swatch { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #fff; background: var(--swatch); }
|
||||||
.accent-grid strong, .accent-grid small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
.accent-grid strong, .accent-grid small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||||
.accent-grid strong { font-size: 12px; }
|
.accent-grid strong { font-size: 12px; }
|
||||||
.accent-grid small { margin-top: 2px; color: var(--muted); font-size: 10px; }
|
.accent-grid small { margin-top: 2px; color: var(--muted); font-size: 10px; }
|
||||||
.storage-note { margin: -2px 2px 0; color: var(--muted); font-size: 11px; line-height: 17px; }
|
.storage-note { margin: -2px 2px 0; color: var(--muted); font-size: 11px; line-height: 17px; }
|
||||||
.preview-card { position: sticky; top: 0; overflow: hidden; }
|
.preview-card { position: sticky; top: calc(var(--topbar-h) + 20px); overflow: hidden; }
|
||||||
.preview-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
|
.preview-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
|
||||||
.preview-status { display: inline-flex; align-items: center; gap: 5px; color: var(--signal); font-size: 10px; }
|
.preview-status { display: inline-flex; align-items: center; gap: 5px; color: var(--signal); font-size: 10px; }
|
||||||
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
||||||
.preview-window { margin: 14px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--bg); box-shadow: var(--shadow-8); }
|
.preview-window { margin: 14px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); box-shadow: var(--shadow-8); }
|
||||||
.preview-titlebar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 11px; }
|
.preview-titlebar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 11px; }
|
||||||
.preview-logo { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; color: var(--accent-contrast); background: var(--accent); }
|
.preview-logo { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; color: var(--accent-contrast); background: var(--accent); }
|
||||||
.window-dots { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
|
.window-dots { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
|
||||||
.preview-body { height: 180px; display: grid; grid-template-columns: 48px 1fr; }
|
.preview-body { height: 180px; display: grid; grid-template-columns: 48px 1fr; }
|
||||||
.preview-nav { display: grid; align-content: start; gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--panel); }
|
.preview-nav { display: grid; align-content: start; gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--panel); }
|
||||||
.preview-nav span { height: 7px; border-radius: 3px; background: var(--line-strong); }
|
.preview-nav span { height: 7px; border-radius: 4px; background: var(--line-strong); }
|
||||||
.preview-nav span.active { height: 20px; border-left: 2px solid var(--accent); border-radius: 3px; background: var(--accent-soft); }
|
.preview-nav span.active { height: 20px; border-left: 2px solid var(--accent); border-radius: 4px; background: var(--accent-soft); }
|
||||||
.preview-content { padding: 18px 14px; }
|
.preview-content { padding: 18px 14px; }
|
||||||
.preview-line { height: 7px; border-radius: 3px; background: var(--line-strong); }
|
.preview-line { height: 7px; border-radius: 4px; background: var(--line-strong); }
|
||||||
.preview-line.wide { width: 70%; }
|
.preview-line.wide { width: 70%; }
|
||||||
.preview-line.short { width: 42%; margin-top: 7px; opacity: .65; }
|
.preview-line.short { width: 42%; margin-top: 7px; opacity: .65; }
|
||||||
.preview-message { display: flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--accent); }
|
.preview-message { display: flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--accent); }
|
||||||
|
|||||||
@ -16,8 +16,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.tile { display: flex; flex-direction: column; gap: 5px; padding: 15px 17px; transition: border-color .1s ease; }
|
.tile { display: flex; flex-direction: column; gap: 5px; padding: 15px 17px; transition: border-color .15s ease, box-shadow .15s ease; }
|
||||||
.tile:hover { border-color: var(--line-strong); }
|
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-8); }
|
||||||
.value { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
|
.value { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
|
||||||
.sub { font-size: 12px; color: var(--muted); }
|
.sub { font-size: 12px; color: var(--muted); }
|
||||||
.spark { height: 28px; margin-top: 4px; }
|
.spark { height: 28px; margin-top: 4px; }
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export function applyTheme(theme) {
|
|||||||
document.documentElement.style.colorScheme = next;
|
document.documentElement.style.colorScheme = next;
|
||||||
document
|
document
|
||||||
.querySelector('meta[name="theme-color"]')
|
.querySelector('meta[name="theme-color"]')
|
||||||
?.setAttribute("content", next === "dark" ? "#1f1f1f" : "#f5f5f5");
|
?.setAttribute("content", next === "dark" ? "#1f1f1f" : "#fafafa");
|
||||||
localStorage.setItem(STORAGE_KEY, next);
|
localStorage.setItem(STORAGE_KEY, next);
|
||||||
notifyAppearance();
|
notifyAppearance();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -174,29 +174,6 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.chips {
|
|
||||||
display: flex;
|
|
||||||
gap: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip {
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
background: var(--panel);
|
|
||||||
color: var(--muted);
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 5px 12px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 500;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.15s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chip.active {
|
|
||||||
background: var(--accent-soft);
|
|
||||||
border-color: var(--accent-border);
|
|
||||||
color: var(--accent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-bar {
|
.status-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -215,14 +192,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
width: 6px;
|
animation: dot-pulse 2s infinite;
|
||||||
height: 6px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: currentColor;
|
|
||||||
animation: pulse 2s infinite;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes dot-pulse {
|
||||||
0%, 100% { opacity: 1; }
|
0%, 100% { opacity: 1; }
|
||||||
50% { opacity: 0.4; }
|
50% { opacity: 0.4; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,8 +162,6 @@
|
|||||||
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||||
.card > .card-actions { margin-top: 14px; }
|
.card > .card-actions { margin-top: 14px; }
|
||||||
.danger-outline { border-color: var(--danger-border); color: var(--danger); }
|
.danger-outline { border-color: var(--danger-border); color: var(--danger); }
|
||||||
.danger-solid { border-radius: 4px; padding: 5px 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--danger); background: var(--danger); color: #fff; }
|
|
||||||
.danger-solid:hover { filter: brightness(1.08); }
|
|
||||||
.edit-field { display: grid; gap: 6px; margin-top: 12px; }
|
.edit-field { display: grid; gap: 6px; margin-top: 12px; }
|
||||||
.edit-field > span { color: var(--muted); font-size: 12px; }
|
.edit-field > span { color: var(--muted); font-size: 12px; }
|
||||||
.edit-field textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); color: var(--text); padding: 10px; font: 14px/1.6 var(--font-ui); }
|
.edit-field textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); color: var(--text); padding: 10px; font: 14px/1.6 var(--font-ui); }
|
||||||
|
|||||||
@ -60,7 +60,7 @@
|
|||||||
<span>离线 — {error}</span>
|
<span>离线 — {error}</span>
|
||||||
</div>
|
</div>
|
||||||
{:else if status}
|
{:else if status}
|
||||||
<div class="status-bar panel">
|
<div class="status-strip panel">
|
||||||
<div class="status-left">
|
<div class="status-left">
|
||||||
<span class="pulse-dot" class:active={running}></span>
|
<span class="pulse-dot" class:active={running}></span>
|
||||||
<strong>{running ? "运行中" : "空闲"}</strong>
|
<strong>{running ? "运行中" : "空闲"}</strong>
|
||||||
@ -168,13 +168,13 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.offline { display: flex; align-items: center; gap: 10px; padding: 18px 22px; color: var(--danger); font-size: 14px; }
|
.offline { display: flex; align-items: center; gap: 10px; padding: 18px 22px; color: var(--danger); font-size: 14px; }
|
||||||
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
|
.status-strip { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
|
||||||
.status-left { display: flex; align-items: center; gap: 10px; }
|
.status-left { display: flex; align-items: center; gap: 10px; }
|
||||||
.status-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
|
.status-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
|
||||||
.warn-bar { color: var(--accent); font-size: 12px; margin-bottom: 10px; }
|
.warn-bar { color: var(--accent); font-size: 12px; margin-bottom: 10px; }
|
||||||
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
|
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
|
||||||
.section { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; overflow-x: auto; }
|
.section { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; overflow-x: auto; }
|
||||||
.provider-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
|
.provider-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
|
||||||
.provider-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
|
.provider-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
|
||||||
.provider-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
|
.provider-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
|
||||||
.provider-table tr:last-child td { border-bottom: none; }
|
.provider-table tr:last-child td { border-bottom: none; }
|
||||||
|
|||||||
@ -146,6 +146,5 @@
|
|||||||
<style>
|
<style>
|
||||||
.cron { font-size: 12px; color: var(--text-soft); background: var(--code-bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
|
.cron { font-size: 12px; color: var(--text-soft); background: var(--code-bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
|
||||||
.status-dots { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
|
.status-dots { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
|
||||||
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
|
|
||||||
.elapsed { color: var(--info); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
|
.elapsed { color: var(--info); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -170,9 +170,6 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
|
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
|
||||||
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
|
|
||||||
.chip { border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); border-radius: 4px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
|
|
||||||
.chip.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
|
|
||||||
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
||||||
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
|
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
|
||||||
.cap-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
|
.cap-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
|
||||||
|
|||||||
@ -23,9 +23,9 @@
|
|||||||
|
|
||||||
/* Fluent 2 semantic tokens */
|
/* Fluent 2 semantic tokens */
|
||||||
--color-neutral-background-1: #ffffff;
|
--color-neutral-background-1: #ffffff;
|
||||||
--color-neutral-background-2: #f5f5f5;
|
--color-neutral-background-2: #fafafa;
|
||||||
--color-neutral-background-3: #f0f0f0;
|
--color-neutral-background-3: #f5f5f5;
|
||||||
--color-neutral-background-4: #e8e8e8;
|
--color-neutral-background-4: #ebebeb;
|
||||||
--color-neutral-foreground-1: #242424;
|
--color-neutral-foreground-1: #242424;
|
||||||
--color-neutral-foreground-2: #424242;
|
--color-neutral-foreground-2: #424242;
|
||||||
--color-neutral-foreground-3: #616161;
|
--color-neutral-foreground-3: #616161;
|
||||||
@ -48,7 +48,7 @@
|
|||||||
--panel: var(--color-neutral-background-1);
|
--panel: var(--color-neutral-background-1);
|
||||||
--panel-2: var(--color-neutral-background-3);
|
--panel-2: var(--color-neutral-background-3);
|
||||||
--sidebar: #fafafa;
|
--sidebar: #fafafa;
|
||||||
--header: rgb(255 255 255 / 94%);
|
--header: rgb(255 255 255 / 82%);
|
||||||
--line: var(--color-neutral-stroke-2);
|
--line: var(--color-neutral-stroke-2);
|
||||||
--line-strong: var(--color-neutral-stroke-1);
|
--line-strong: var(--color-neutral-stroke-1);
|
||||||
--muted: var(--color-neutral-foreground-3);
|
--muted: var(--color-neutral-foreground-3);
|
||||||
@ -68,10 +68,13 @@
|
|||||||
--info-soft: #ebf3fc;
|
--info-soft: #ebf3fc;
|
||||||
--info-border: #b4d6fa;
|
--info-border: #b4d6fa;
|
||||||
--danger: var(--color-status-danger);
|
--danger: var(--color-status-danger);
|
||||||
|
--danger-hover: #9c0c19;
|
||||||
|
--danger-pressed: #7c0a14;
|
||||||
--danger-soft: #fdf3f4;
|
--danger-soft: #fdf3f4;
|
||||||
--danger-border: #eeacb2;
|
--danger-border: #eeacb2;
|
||||||
--warning: var(--color-status-warning);
|
--warning: var(--color-status-warning);
|
||||||
--warning-soft: #fff9f5;
|
--warning-soft: #fff9f5;
|
||||||
|
--warning-border: #f2bb8d;
|
||||||
--success-soft: #f1faf1;
|
--success-soft: #f1faf1;
|
||||||
--overlay: #ffffff;
|
--overlay: #ffffff;
|
||||||
--code-bg: #f5f5f5;
|
--code-bg: #f5f5f5;
|
||||||
@ -82,7 +85,6 @@
|
|||||||
--shadow: var(--shadow-16);
|
--shadow: var(--shadow-16);
|
||||||
--shadow-sm: var(--shadow-2);
|
--shadow-sm: var(--shadow-2);
|
||||||
--shadow-lift: var(--shadow-8);
|
--shadow-lift: var(--shadow-8);
|
||||||
--edge: none;
|
|
||||||
--radius: 8px;
|
--radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +112,7 @@
|
|||||||
--panel: var(--color-neutral-background-1);
|
--panel: var(--color-neutral-background-1);
|
||||||
--panel-2: var(--color-neutral-background-3);
|
--panel-2: var(--color-neutral-background-3);
|
||||||
--sidebar: #242424;
|
--sidebar: #242424;
|
||||||
--header: rgb(41 41 41 / 94%);
|
--header: rgb(41 41 41 / 82%);
|
||||||
--line: var(--color-neutral-stroke-2);
|
--line: var(--color-neutral-stroke-2);
|
||||||
--line-strong: var(--color-neutral-stroke-1);
|
--line-strong: var(--color-neutral-stroke-1);
|
||||||
--muted: var(--color-neutral-foreground-3);
|
--muted: var(--color-neutral-foreground-3);
|
||||||
@ -130,10 +132,13 @@
|
|||||||
--info-soft: #0f2d46;
|
--info-soft: #0f2d46;
|
||||||
--info-border: #0f6cbd;
|
--info-border: #0f6cbd;
|
||||||
--danger: var(--color-status-danger);
|
--danger: var(--color-status-danger);
|
||||||
|
--danger-hover: #e17a83;
|
||||||
|
--danger-pressed: #b74954;
|
||||||
--danger-soft: #3b1219;
|
--danger-soft: #3b1219;
|
||||||
--danger-border: #8f1d2c;
|
--danger-border: #8f1d2c;
|
||||||
--warning: var(--color-status-warning);
|
--warning: var(--color-status-warning);
|
||||||
--warning-soft: #3a2d00;
|
--warning-soft: #3a2d00;
|
||||||
|
--warning-border: #986f00;
|
||||||
--success-soft: #183b18;
|
--success-soft: #183b18;
|
||||||
--overlay: #333333;
|
--overlay: #333333;
|
||||||
--code-bg: #1f1f1f;
|
--code-bg: #1f1f1f;
|
||||||
@ -155,6 +160,17 @@
|
|||||||
:root[data-theme="dark"][data-accent="orange"] { --color-brand-background: #f4a261; --color-brand-background-hover: #ffb57a; --color-brand-background-pressed: #db8747; --color-brand-foreground: #ffb57a; --color-brand-subtle: #402313; --accent-border: #c45d1d; --accent-contrast: #1f1f1f; }
|
:root[data-theme="dark"][data-accent="orange"] { --color-brand-background: #f4a261; --color-brand-background-hover: #ffb57a; --color-brand-background-pressed: #db8747; --color-brand-foreground: #ffb57a; --color-brand-subtle: #402313; --accent-border: #c45d1d; --accent-contrast: #1f1f1f; }
|
||||||
:root[data-theme="dark"][data-accent="magenta"] { --color-brand-background: #e36fbe; --color-brand-background-hover: #ef88cc; --color-brand-background-pressed: #c951a3; --color-brand-foreground: #ef88cc; --color-brand-subtle: #3d1830; --accent-border: #a4267a; --accent-contrast: #1f1f1f; }
|
:root[data-theme="dark"][data-accent="magenta"] { --color-brand-background: #e36fbe; --color-brand-background-hover: #ef88cc; --color-brand-background-pressed: #c951a3; --color-brand-foreground: #ef88cc; --color-brand-subtle: #3d1830; --accent-border: #a4267a; --accent-contrast: #1f1f1f; }
|
||||||
|
|
||||||
|
/* Fluent materials. Mica: ambient brand-tinted backdrop. Acrylic: translucent blurred surfaces. */
|
||||||
|
:root {
|
||||||
|
--topbar-h: 68px;
|
||||||
|
--mica:
|
||||||
|
radial-gradient(1200px 560px at 76% -140px, color-mix(in srgb, var(--accent) 7%, transparent), transparent 64%),
|
||||||
|
radial-gradient(900px 480px at -8% 108%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 60%),
|
||||||
|
var(--bg);
|
||||||
|
--surface-acrylic: color-mix(in srgb, var(--overlay) 80%, transparent);
|
||||||
|
--acrylic-blur: blur(20px) saturate(1.5);
|
||||||
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
|
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
|
||||||
*::-webkit-scrollbar { width: 10px; height: 10px; }
|
*::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||||
*::-webkit-scrollbar-track { background: transparent; }
|
*::-webkit-scrollbar-track { background: transparent; }
|
||||||
@ -162,7 +178,7 @@
|
|||||||
*::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
|
*::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
|
||||||
::selection { color: var(--text); background: var(--accent-soft); }
|
::selection { color: var(--text); background: var(--accent-soft); }
|
||||||
html, body, #app { width: 100%; min-width: 320px; height: 100%; }
|
html, body, #app { width: 100%; min-width: 320px; height: 100%; }
|
||||||
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; }
|
body { margin: 0; color: var(--text); background: var(--mica); font-size: 14px; }
|
||||||
h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", var(--font-ui); font-weight: 600; }
|
h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", var(--font-ui); font-weight: 600; }
|
||||||
strong, b { font-weight: 600; }
|
strong, b { font-weight: 600; }
|
||||||
button, input, textarea, select { font: inherit; }
|
button, input, textarea, select { font: inherit; }
|
||||||
@ -173,7 +189,7 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-
|
|||||||
button:disabled { cursor: not-allowed; opacity: .45; }
|
button:disabled { cursor: not-allowed; opacity: .45; }
|
||||||
|
|
||||||
/* Pairing */
|
/* Pairing */
|
||||||
.pairing-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, var(--bg), var(--panel-2)); }
|
.pairing-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
|
||||||
.pairing-card { width: min(100%, 440px); padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-16); }
|
.pairing-card { width: min(100%, 440px); padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-16); }
|
||||||
.pairing-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
|
.pairing-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
|
||||||
.pairing-brand strong { font-size: 16px; }
|
.pairing-brand strong { font-size: 16px; }
|
||||||
@ -193,7 +209,7 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
|
|
||||||
/* Application shell */
|
/* Application shell */
|
||||||
.shell { height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); overflow: hidden; }
|
.shell { height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); overflow: hidden; }
|
||||||
.sidebar { z-index: 30; display: flex; flex-direction: column; min-width: 0; padding: 8px 12px 12px; border-right: 1px solid var(--line); background: var(--sidebar); }
|
.sidebar { z-index: 30; display: flex; flex-direction: column; min-width: 0; padding: 8px 12px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--sidebar) 72%, transparent); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); }
|
||||||
.brand { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 6px 8px; }
|
.brand { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 6px 8px; }
|
||||||
.brand-mark, .empty-logo { display: grid; place-items: center; color: var(--accent-contrast); background: linear-gradient(145deg, var(--accent), var(--accent-pressed)); }
|
.brand-mark, .empty-logo { display: grid; place-items: center; color: var(--accent-contrast); background: linear-gradient(145deg, var(--accent), var(--accent-pressed)); }
|
||||||
.brand-mark { width: 36px; height: 36px; border-radius: 8px; box-shadow: var(--shadow-2); }
|
.brand-mark { width: 36px; height: 36px; border-radius: 8px; box-shadow: var(--shadow-2); }
|
||||||
@ -216,8 +232,8 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.gateway-status b, .gateway-status small { display: block; }
|
.gateway-status b, .gateway-status small { display: block; }
|
||||||
.gateway-status b { font-size: 12px; line-height: 16px; }
|
.gateway-status b { font-size: 12px; line-height: 16px; }
|
||||||
.gateway-status small { margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 14px; }
|
.gateway-status small { margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 14px; }
|
||||||
.app-main { min-width: 0; min-height: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
|
.app-main { position: relative; min-width: 0; min-height: 0; height: 100vh; display: flex; flex-direction: column; }
|
||||||
.topbar { z-index: 10; min-height: 68px; flex: 0 0 68px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(16px); }
|
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 10; min-height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); }
|
||||||
.page-heading { min-width: 180px; }
|
.page-heading { min-width: 180px; }
|
||||||
.topbar h1 { margin: 0; font-size: 20px; line-height: 26px; }
|
.topbar h1 { margin: 0; font-size: 20px; line-height: 26px; }
|
||||||
.topbar p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 16px; }
|
.topbar p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 16px; }
|
||||||
@ -226,7 +242,7 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.theme-toggle:hover { color: var(--text); background: var(--panel-2); }
|
.theme-toggle:hover { color: var(--text); background: var(--panel-2); }
|
||||||
.nav-scrim { display: none; }
|
.nav-scrim { display: none; }
|
||||||
|
|
||||||
/* Fluent controls */
|
/* Fluent controls. 13px/20px control text is a deliberate dense ramp choice below Fluent Body1 14/20. */
|
||||||
.primary, .secondary, .danger-solid { min-height: 32px; padding: 5px 12px; border-radius: 4px; font-size: 13px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color .1s ease, border-color .1s ease; }
|
.primary, .secondary, .danger-solid { min-height: 32px; padding: 5px 12px; border-radius: 4px; font-size: 13px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color .1s ease, border-color .1s ease; }
|
||||||
.primary, .secondary, .danger-solid { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
|
.primary, .secondary, .danger-solid { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
|
||||||
.primary { border: 1px solid var(--accent); color: var(--accent-contrast); background: var(--accent); }
|
.primary { border: 1px solid var(--accent); color: var(--accent-contrast); background: var(--accent); }
|
||||||
@ -235,6 +251,9 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.secondary { border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); }
|
.secondary { border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); }
|
||||||
.secondary:hover { background: var(--panel-2); }
|
.secondary:hover { background: var(--panel-2); }
|
||||||
.secondary:active { background: var(--color-neutral-background-4); }
|
.secondary:active { background: var(--color-neutral-background-4); }
|
||||||
|
.danger-solid { border: 1px solid var(--danger); color: var(--accent-contrast); background: var(--danger); }
|
||||||
|
.danger-solid:hover:not(:disabled) { border-color: var(--danger-hover); background: var(--danger-hover); }
|
||||||
|
.danger-solid:active:not(:disabled) { border-color: var(--danger-pressed); background: var(--danger-pressed); }
|
||||||
.full { width: 100%; min-height: 36px; }
|
.full { width: 100%; min-height: 36px; }
|
||||||
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: var(--text-soft); background: transparent; cursor: pointer; }
|
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: var(--text-soft); background: transparent; cursor: pointer; }
|
||||||
.icon-button:hover { color: var(--text); background: var(--panel-2); }
|
.icon-button:hover { color: var(--text); background: var(--panel-2); }
|
||||||
@ -244,20 +263,25 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.search input { width: 100%; padding: 0 7px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
|
.search input { width: 100%; padding: 0 7px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
|
||||||
.filters select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: var(--panel); }
|
.filters select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: var(--panel); }
|
||||||
.grow { flex: 1; max-width: 520px; }
|
.grow { flex: 1; max-width: 520px; }
|
||||||
|
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||||
|
.chip { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); background: var(--panel); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .1s ease, border-color .1s ease, color .1s ease; }
|
||||||
|
.chip:hover { border-color: var(--muted); color: var(--text); }
|
||||||
|
.chip.active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
|
||||||
|
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
||||||
.tabs { display: flex; gap: 16px; min-height: 36px; border-bottom: 1px solid var(--line); }
|
.tabs { display: flex; gap: 16px; min-height: 36px; border-bottom: 1px solid var(--line); }
|
||||||
.tabs button { position: relative; padding: 0 2px 9px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 13px; font-weight: 600; }
|
.tabs button { position: relative; padding: 0 2px 9px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 13px; font-weight: 600; }
|
||||||
.tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); }
|
.tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); }
|
||||||
.tabs button:hover { color: var(--text); }
|
.tabs button:hover { color: var(--text); }
|
||||||
.tabs button[data-state="active"] { color: var(--text); }
|
.tabs button[data-state="active"] { color: var(--text); }
|
||||||
.tabs button[data-state="active"]::after { transform: scaleX(1); }
|
.tabs button[data-state="active"]::after { transform: scaleX(1); }
|
||||||
.tooltip { z-index: 50; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--overlay); box-shadow: var(--shadow-8); font-size: 12px; }
|
.tooltip { z-index: 50; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--surface-acrylic); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); box-shadow: var(--shadow-8); font-size: 12px; }
|
||||||
.tooltip-arrow { fill: var(--overlay); }
|
.tooltip-arrow { fill: var(--overlay); }
|
||||||
|
|
||||||
/* Chat */
|
/* Chat */
|
||||||
.page { min-height: 0; flex: 1; animation: page-in .16s ease both; }
|
.page { min-height: 0; flex: 1; animation: page-in .16s ease both; }
|
||||||
.chat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
|
.chat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); padding-top: var(--topbar-h); }
|
||||||
.chat-layout.todo-open { grid-template-columns: 280px minmax(0, 1fr) 320px; }
|
.chat-layout.todo-open { grid-template-columns: 280px minmax(0, 1fr) 320px; }
|
||||||
.sessions-panel { overflow: auto; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--panel); }
|
.sessions-panel { overflow: auto; margin-top: calc(-1 * var(--topbar-h)); padding: 16px 12px; padding-top: calc(var(--topbar-h) + 16px); scroll-padding-top: calc(var(--topbar-h) + 16px); border-right: 1px solid var(--line); background: var(--panel); }
|
||||||
.sessions-panel > .search { margin-top: 12px; }
|
.sessions-panel > .search { margin-top: 12px; }
|
||||||
.session-list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 8px 7px; }
|
.session-list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 8px 7px; }
|
||||||
.session-count { color: var(--muted); font: 11px var(--font-mono); font-variant-numeric: tabular-nums; }
|
.session-count { color: var(--muted); font: 11px var(--font-mono); font-variant-numeric: tabular-nums; }
|
||||||
@ -335,7 +359,7 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.markdown-body h3 { font-size: 1.08em; }
|
.markdown-body h3 { font-size: 1.08em; }
|
||||||
.markdown-body a { color: var(--accent); text-underline-offset: 2px; }
|
.markdown-body a { color: var(--accent); text-underline-offset: 2px; }
|
||||||
.markdown-body blockquote { padding-left: 12px; border-left: 3px solid var(--accent); color: var(--muted); }
|
.markdown-body blockquote { padding-left: 12px; border-left: 3px solid var(--accent); color: var(--muted); }
|
||||||
.markdown-body code { padding: .12em .32em; border-radius: 3px; color: var(--text); background: var(--code-bg); font: .88em/1.5 var(--font-mono); }
|
.markdown-body code { padding: .12em .32em; border-radius: 4px; color: var(--text); background: var(--code-bg); font: .88em/1.5 var(--font-mono); }
|
||||||
.markdown-body pre { max-width: 100%; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--code-bg); }
|
.markdown-body pre { max-width: 100%; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--code-bg); }
|
||||||
.markdown-body pre code { padding: 0; border: 0; background: transparent; }
|
.markdown-body pre code { padding: 0; border: 0; background: transparent; }
|
||||||
.markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
|
.markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
|
||||||
@ -379,8 +403,8 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.pending-upload strong { font-size: 11px; }
|
.pending-upload strong { font-size: 11px; }
|
||||||
.pending-upload small { color: var(--muted); font-size: 10px; }
|
.pending-upload small { color: var(--muted); font-size: 10px; }
|
||||||
.pending-upload button { border: 0; color: var(--muted); background: none; cursor: pointer; }
|
.pending-upload button { border: 0; color: var(--muted); background: none; cursor: pointer; }
|
||||||
.command-menu { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 8px); left: 0; max-height: min(360px, 48vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--overlay); box-shadow: var(--shadow-16); }
|
.command-menu { position: absolute; z-index: 40; right: 0; bottom: calc(100% + 8px); left: 0; max-height: min(360px, 48vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-acrylic); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); box-shadow: var(--shadow-16); }
|
||||||
.command-menu-heading { position: sticky; z-index: 1; top: -6px; display: flex; justify-content: space-between; gap: 16px; padding: 8px 9px; color: var(--muted); background: var(--overlay); font-size: 11px; }
|
.command-menu-heading { position: sticky; z-index: 1; top: -6px; display: flex; justify-content: space-between; gap: 16px; padding: 8px 9px; color: var(--muted); background: var(--surface-acrylic); font-size: 11px; }
|
||||||
.command-menu-heading kbd { color: var(--muted); font: inherit; }
|
.command-menu-heading kbd { color: var(--muted); font: inherit; }
|
||||||
.command-menu button { width: 100%; display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 14px; padding: 8px 9px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
|
.command-menu button { width: 100%; display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 14px; padding: 8px 9px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
|
||||||
.command-menu button:hover, .command-menu button.selected { background: var(--accent-soft); }
|
.command-menu button:hover, .command-menu button.selected { background: var(--accent-soft); }
|
||||||
@ -411,13 +435,13 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.todo-item p { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; line-height: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
.todo-item p { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; line-height: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||||
|
|
||||||
/* Management pages */
|
/* Management pages */
|
||||||
.content-page { overflow: auto; padding: 24px 28px 40px; }
|
.content-page { overflow: auto; padding: calc(var(--topbar-h) + 24px) 28px 40px; scroll-padding-top: calc(var(--topbar-h) + 16px); }
|
||||||
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
|
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
|
||||||
.filters { align-items: center; }
|
.filters { align-items: center; }
|
||||||
.cards { display: grid; gap: 10px; }
|
.cards { display: grid; gap: 10px; }
|
||||||
.card, .panel, .metric { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-2); }
|
.card, .panel, .metric { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-2); }
|
||||||
.card { padding: 15px 17px; transition: border-color .1s ease; }
|
.card { padding: 15px 17px; transition: border-color .15s ease, box-shadow .15s ease; }
|
||||||
.card:hover { border-color: var(--line-strong); }
|
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-8); }
|
||||||
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
|
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
|
||||||
.card h3 { margin: 0 0 6px; font-size: 14px; }
|
.card h3 { margin: 0 0 6px; font-size: 14px; }
|
||||||
.card p { margin: 5px 0; color: var(--text-soft); font-size: 13px; line-height: 20px; white-space: pre-wrap; }
|
.card p { margin: 5px 0; color: var(--text-soft); font-size: 13px; line-height: 20px; white-space: pre-wrap; }
|
||||||
@ -449,7 +473,7 @@ button:disabled { cursor: not-allowed; opacity: .45; }
|
|||||||
.editor-head small { margin-top: 3px; color: var(--muted); font-size: 11px; }
|
.editor-head small { margin-top: 3px; color: var(--muted); font-size: 11px; }
|
||||||
.editor-card textarea { width: 100%; height: calc(100vh - 275px); min-height: 420px; display: block; resize: vertical; padding: 18px; border: 0; outline: 0; color: var(--text); background: var(--code-bg); font: 13px/1.65 var(--font-mono); tab-size: 2; }
|
.editor-card textarea { width: 100%; height: calc(100vh - 275px); min-height: 420px; display: block; resize: vertical; padding: 18px; border: 0; outline: 0; color: var(--text); background: var(--code-bg); font: 13px/1.65 var(--font-mono); tab-size: 2; }
|
||||||
.notice { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
|
.notice { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
|
||||||
.cap { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
|
.cap { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; }
|
||||||
.cap.signal { border: 1px solid var(--signal-border); color: var(--signal); background: var(--signal-soft); }
|
.cap.signal { border: 1px solid var(--signal-border); color: var(--signal); background: var(--signal-soft); }
|
||||||
.cap.accent { border: 1px solid var(--accent-border); color: var(--accent); background: var(--accent-soft); }
|
.cap.accent { border: 1px solid var(--accent-border); color: var(--accent); background: var(--accent-soft); }
|
||||||
.cap.danger { border: 1px solid var(--danger-border); color: var(--danger); background: var(--danger-soft); }
|
.cap.danger { border: 1px solid var(--danger-border); color: var(--danger); background: var(--danger-soft); }
|
||||||
@ -483,17 +507,18 @@ code { color: var(--accent); }
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 800px) {
|
@media (max-width: 800px) {
|
||||||
|
:root { --topbar-h: 62px; }
|
||||||
.shell { grid-template-columns: 1fr; }
|
.shell { grid-template-columns: 1fr; }
|
||||||
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; transform: translateX(-100%); transition: transform .16s ease; box-shadow: var(--shadow-16); }
|
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; transform: translateX(-100%); transition: transform .16s ease; box-shadow: var(--shadow-16); }
|
||||||
.sidebar.open { transform: none; }
|
.sidebar.open { transform: none; }
|
||||||
.nav-scrim { position: fixed; z-index: 25; inset: 0; display: block; border: 0; background: rgb(0 0 0 / 42%); }
|
.nav-scrim { position: fixed; z-index: 25; inset: 0; display: block; border: 0; background: rgb(0 0 0 / 42%); }
|
||||||
.topbar { min-height: 62px; flex-basis: 62px; padding: 0 14px; }
|
.topbar { padding: 0 14px; }
|
||||||
.topbar .menu { display: inline-grid; }
|
.topbar .menu { display: inline-grid; }
|
||||||
.page-heading p { display: none; }
|
.page-heading p { display: none; }
|
||||||
.chat-layout, .chat-layout.todo-open { grid-template-columns: 1fr; }
|
.chat-layout, .chat-layout.todo-open { grid-template-columns: 1fr; }
|
||||||
.sessions-panel { display: none; }
|
.sessions-panel { display: none; }
|
||||||
.todo-open .todo-panel { position: fixed; z-index: 20; top: 62px; right: 0; bottom: 0; width: min(340px, 92vw); box-shadow: var(--shadow-16); }
|
.todo-open .todo-panel { position: fixed; z-index: 20; top: var(--topbar-h); right: 0; bottom: 0; width: min(340px, 92vw); background: var(--surface-acrylic); backdrop-filter: var(--acrylic-blur); -webkit-backdrop-filter: var(--acrylic-blur); box-shadow: var(--shadow-16); }
|
||||||
.content-page { padding: 18px 16px 32px; }
|
.content-page { padding: calc(var(--topbar-h) + 18px) 16px 32px; }
|
||||||
.settings-grid { grid-template-columns: 1fr; }
|
.settings-grid { grid-template-columns: 1fr; }
|
||||||
.settings-nav { flex-direction: row; overflow-x: auto; }
|
.settings-nav { flex-direction: row; overflow-x: auto; }
|
||||||
.metrics { grid-template-columns: 1fr; }
|
.metrics { grid-template-columns: 1fr; }
|
||||||
@ -513,3 +538,10 @@ code { color: var(--accent); }
|
|||||||
.toolbar .tabs { width: 100%; overflow-x: auto; }
|
.toolbar .tabs { width: 100%; overflow-x: auto; }
|
||||||
.card-row { gap: 10px; }
|
.card-row { gap: 10px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-transparency: reduce) {
|
||||||
|
.sidebar { background: var(--sidebar); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
||||||
|
.topbar { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
||||||
|
.command-menu, .command-menu-heading, .tooltip { background: var(--overlay); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
||||||
|
.todo-open .todo-panel { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user