- tool_use renders per-tool (Read /path, Bash $ cmd, send → operator: ...) - tool_result with >120 chars collapses into <details>; short ones inline - session_init / result / rate_limit dropped from the panel - thinking content shown inline if present, fallback indicator otherwise - TurnStart carries unread count → header badge "· 3 unread" - per-tool [status] line dropped from envelope; lives in wake prompt + UI - send form moved below the live panel - live panel themed as a terminal (crust bg, inset shadow, monospace)
207 lines
5.9 KiB
CSS
207 lines
5.9 KiB
CSS
:root {
|
|
/* Catppuccin Mocha — mirrors the dashboard palette. */
|
|
--bg: #1e1e2e; /* base */
|
|
--bg-elev: #181825; /* mantle */
|
|
--fg: #cdd6f4; /* text */
|
|
--muted: #7f849c; /* overlay1 */
|
|
--purple: #cba6f7; /* mauve */
|
|
--purple-dim: #45475a; /* surface1 */
|
|
--cyan: #89dceb; /* sky */
|
|
--amber: #fab387; /* peach */
|
|
--green: #a6e3a1; /* green */
|
|
--red: #f38ba8; /* red */
|
|
}
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
|
|
max-width: 70em;
|
|
margin: 1.5em auto;
|
|
padding: 0 1.5em;
|
|
line-height: 1.6;
|
|
}
|
|
.banner {
|
|
color: var(--purple);
|
|
text-align: center;
|
|
margin: 0 0 1em 0;
|
|
font-size: 0.95em;
|
|
text-shadow: 0 0 6px rgba(203, 166, 247, 0.55), 0 0 14px rgba(203, 166, 247, 0.25);
|
|
overflow-x: auto;
|
|
}
|
|
h2, h3 {
|
|
color: var(--purple);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.15em;
|
|
text-shadow: 0 0 8px rgba(203, 166, 247, 0.4);
|
|
}
|
|
.divider {
|
|
color: var(--purple-dim);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
.meta { color: var(--muted); font-size: 0.85em; }
|
|
.status-online { color: var(--green); text-shadow: 0 0 6px rgba(166, 227, 161, 0.55); }
|
|
.status-needs-login { color: var(--amber); text-shadow: 0 0 6px rgba(250, 179, 135, 0.55); }
|
|
code { background: rgba(203, 166, 247, 0.12); padding: 0.05em 0.3em; border-radius: 2px; }
|
|
a {
|
|
color: var(--cyan);
|
|
text-shadow: 0 0 4px rgba(137, 220, 235, 0.5);
|
|
}
|
|
a:hover { color: var(--fg); text-shadow: 0 0 12px rgba(137, 220, 235, 0.9); }
|
|
.btn {
|
|
font-family: inherit;
|
|
font-size: 1em;
|
|
background: var(--bg);
|
|
border: 1px solid var(--purple);
|
|
color: var(--purple);
|
|
padding: 0.25em 0.8em;
|
|
cursor: pointer;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
.btn {
|
|
text-shadow: 0 0 4px currentColor;
|
|
transition: box-shadow 0.15s ease, text-shadow 0.15s ease;
|
|
}
|
|
.btn:hover {
|
|
background: rgba(205, 214, 244, 0.06);
|
|
text-shadow: 0 0 10px currentColor;
|
|
box-shadow: 0 0 10px -2px currentColor;
|
|
}
|
|
.btn-login { color: var(--amber); border-color: var(--amber); }
|
|
.btn-cancel { color: var(--red); border-color: var(--red); font-size: 0.85em; padding: 0.15em 0.6em; }
|
|
.btn-rebuild {
|
|
color: var(--amber);
|
|
border: 1px solid var(--amber);
|
|
padding: 0.15em 0.6em;
|
|
font-size: 0.55em;
|
|
font-family: inherit;
|
|
text-decoration: none;
|
|
letter-spacing: 0.1em;
|
|
margin-left: 0.6em;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
}
|
|
.btn-rebuild:hover { background: rgba(250, 179, 135, 0.1); }
|
|
.btn-send { color: var(--green); border-color: var(--green); }
|
|
.sendform { display: flex; gap: 0.6em; margin-top: 0.5em; }
|
|
.sendform input {
|
|
font-family: inherit; font-size: 1em;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--fg);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
flex: 1;
|
|
}
|
|
.sendform input:focus { outline: 1px solid var(--purple); }
|
|
.loginform { display: flex; gap: 0.6em; margin-top: 0.5em; }
|
|
.loginform input {
|
|
font-family: inherit; font-size: 1em;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--fg);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
flex: 1;
|
|
}
|
|
.loginform input:focus { outline: 1px solid var(--purple); }
|
|
pre.diff {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.6em 0.8em;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
max-height: 30em;
|
|
}
|
|
/* Terminal-ish look for the live panel. Crust as bg (almost-black),
|
|
slightly inset, mauve phosphor glow. */
|
|
.live.terminal {
|
|
background: #11111b;
|
|
border: 1px solid var(--purple-dim);
|
|
box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
|
|
border-radius: 4px;
|
|
padding: 0.8em 1em;
|
|
overflow-y: auto;
|
|
max-height: 32em;
|
|
font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
|
|
font-size: 0.92em;
|
|
color: #cdd6f4;
|
|
}
|
|
.live {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
overflow-y: auto;
|
|
max-height: 32em;
|
|
font-family: inherit;
|
|
}
|
|
.live .unread-badge {
|
|
color: var(--amber);
|
|
font-weight: normal;
|
|
margin-left: 0.6em;
|
|
font-size: 0.85em;
|
|
text-shadow: 0 0 6px rgba(250, 179, 135, 0.55);
|
|
}
|
|
details.row {
|
|
white-space: normal;
|
|
padding-left: 0.5em;
|
|
}
|
|
details.row > summary {
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
list-style: none;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
details.row > summary::before {
|
|
content: '▸ ';
|
|
color: var(--muted);
|
|
display: inline-block;
|
|
width: 1em;
|
|
}
|
|
details.row[open] > summary::before { content: '▾ '; }
|
|
details.row.tool-result-block > summary { color: var(--muted); }
|
|
details.row > pre.tool-body {
|
|
margin: 0.3em 0 0.4em 1.2em;
|
|
padding: 0.4em 0.6em;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-left: 2px solid var(--purple-dim);
|
|
color: var(--fg);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 22em;
|
|
overflow-y: auto;
|
|
}
|
|
.live .row {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
padding: 0.05em 0;
|
|
line-height: 1.45;
|
|
border-left: 2px solid transparent;
|
|
padding-left: 0.5em;
|
|
margin: 0.1em 0;
|
|
}
|
|
.live .row + .row { border-top: 0; }
|
|
.live .turn-start {
|
|
color: var(--amber);
|
|
font-weight: bold;
|
|
margin-top: 1em;
|
|
border-left-color: var(--amber);
|
|
padding-top: 0.3em;
|
|
}
|
|
.live .turn-start:first-child { margin-top: 0; }
|
|
.live .turn-body {
|
|
color: var(--fg);
|
|
font-weight: normal;
|
|
margin-top: 0.15em;
|
|
padding-left: 1.2em;
|
|
opacity: 0.85;
|
|
}
|
|
.live .turn-end-ok { color: var(--green); border-left-color: var(--green); margin-bottom: 0.4em; }
|
|
.live .turn-end-fail { color: var(--red); border-left-color: var(--red); margin-bottom: 0.4em; }
|
|
.live .text { color: var(--fg); padding-left: 1.2em; }
|
|
.live .thinking { color: var(--muted); font-style: italic; padding-left: 1.2em; }
|
|
.live .tool-use { color: var(--cyan); padding-left: 1.2em; }
|
|
.live .tool-result { color: var(--muted); padding-left: 1.2em; }
|
|
.live .result { color: var(--green); padding-left: 0.5em; }
|
|
.live .sys, .live .note { color: var(--muted); }
|