feat(web/claw): restyle the interface after Rhema Together
android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
The web client kept its own dark shell: an icon rail, neon jade accents, and rows that reported state with colored dots and pills. Rhema Together had since settled on a warmer, quieter language, and the two surfaces no longer looked like one product. The shell is now one 232px sidebar plus a view. Chat lists sessions in the sidebar and renders the transcript in a 760px column; settings moves its searchable nav into the same sidebar and its pages onto an 880px column. The palette, type scale, controls, cards, and markdown come from Together's light theme, with its dark values following the OS. FiraCode Nerd Font Mono sets code, and the product mark, logo, and lucide icons replace the glyph characters. Status is a word now: running, waiting, held, connected, live, snapshot. The rail, its dots, the duplicate consent deny action, and the session key tag are gone. The model backend moved into the chat topbar beside the stream state. The mobile shell keeps the composer fixed in chat and lets settings scroll as a document. README and component docs follow the new layout. nuxt typecheck and build pass; checked light and dark at 1280x800 and 390x844 against mock API data.
This commit is contained in:
1 parent
acda9cc537
commit
d17d8e2973
33 files changed
+1858
-1383
No files matched your search
+399
-142
@@ -1,35 +1,113 @@
|
||||
/*
|
||||
* The Jadeite tokens, dark theme — lifted token for token from
|
||||
* crates/rhema-code/src/palette.rs `DARK` so the web claw reads as the
|
||||
* same tool as the TUI. The ground is deliberately jade-tinted, not
|
||||
* slate; saturated color stays on the accent and the status set.
|
||||
*/
|
||||
:root {
|
||||
--ground: #0f1413;
|
||||
--surface: #171d1b;
|
||||
--elevated: #1f2624;
|
||||
--sunken: #0a0f0e;
|
||||
--border: #28312e;
|
||||
--border-strong: #3d4844;
|
||||
--text: #eef3f1;
|
||||
--text2: #b9c6c1;
|
||||
--text3: #87948f;
|
||||
--accent: #35a882;
|
||||
--accent-text: #64c9a3;
|
||||
--on-accent: #07110d;
|
||||
--running: #64c9a3;
|
||||
--ok: #4fbf94;
|
||||
--warn: #d9a643;
|
||||
--error: #e4687a;
|
||||
--info: #8fa6b8;
|
||||
|
||||
--sans: ui-sans-serif, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue',
|
||||
Arial, sans-serif;
|
||||
--mono: ui-monospace, 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo,
|
||||
Consolas, monospace;
|
||||
@font-face {
|
||||
font-family: "FiraCode Nerd Font Mono";
|
||||
src: url("../fonts/FiraCodeNerdFontMono-Regular.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
* {
|
||||
@font-face {
|
||||
font-family: "FiraCode Nerd Font Mono";
|
||||
src: url("../fonts/FiraCodeNerdFontMono-Bold.woff2") format("woff2");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/*
|
||||
* The same palette as Rhema Together: a warm paper ground, white cards,
|
||||
* one jade accent, and status color only where a state needs it. Light
|
||||
* is the default; the dark set follows the operating system.
|
||||
*/
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
|
||||
--bg: #f7f6f3;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #f1efe9;
|
||||
--border: #e4e0d8;
|
||||
--border-strong: #d3cec3;
|
||||
--text: #1f1d1a;
|
||||
--muted: #736d63;
|
||||
--faint: #9a9388;
|
||||
--accent: #2f6f5e;
|
||||
--accent-soft: #e7f1ed;
|
||||
--danger: #a33a2f;
|
||||
--warn: #8a6519;
|
||||
--ok: #2f6f5e;
|
||||
--info: #4f5f8f;
|
||||
--on-accent: #ffffff;
|
||||
--overlay: rgba(31, 29, 26, 0.4);
|
||||
|
||||
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--font-mono: "FiraCode Nerd Font Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
|
||||
Consolas, "Liberation Mono", monospace;
|
||||
|
||||
--fs-small: 12px;
|
||||
--fs-meta: 13px;
|
||||
--fs-ui: 14px;
|
||||
--fs-code: 13px;
|
||||
--fs-section: 16px;
|
||||
--fs-title: 20px;
|
||||
|
||||
--lh-body: 1.5;
|
||||
--lh-heading: 1.2;
|
||||
|
||||
--sp-1: 4px;
|
||||
--sp-2: 8px;
|
||||
--sp-3: 12px;
|
||||
--sp-4: 16px;
|
||||
--sp-5: 20px;
|
||||
--sp-6: 24px;
|
||||
--sp-8: 32px;
|
||||
--sp-10: 40px;
|
||||
--sp-12: 48px;
|
||||
|
||||
--r-card: 10px;
|
||||
--r-control: 8px;
|
||||
--r-avatar: 999px;
|
||||
|
||||
--sidebar-w: 232px;
|
||||
--topbar-h: 56px;
|
||||
|
||||
/* Names the components used before the redesign. They resolve to the
|
||||
same palette, so every existing rule keeps its meaning. */
|
||||
--ground: var(--bg);
|
||||
--elevated: var(--surface-2);
|
||||
--sunken: var(--surface-2);
|
||||
--text2: var(--text);
|
||||
--text3: var(--muted);
|
||||
--accent-text: var(--accent);
|
||||
--running: var(--accent);
|
||||
--error: var(--danger);
|
||||
--sans: var(--font-sans);
|
||||
--mono: var(--font-mono);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #12110f;
|
||||
--surface: #1a1917;
|
||||
--surface-2: #22201d;
|
||||
--border: #272521;
|
||||
--border-strong: #3a3733;
|
||||
--text: #f2f0ec;
|
||||
--muted: #a49d92;
|
||||
--faint: #7d766c;
|
||||
--accent: #58a58c;
|
||||
--accent-soft: #1e2f2a;
|
||||
--danger: #d07366;
|
||||
--warn: #c9a45c;
|
||||
--ok: #58a58c;
|
||||
--info: #8b9bd0;
|
||||
--on-accent: #12110f;
|
||||
--overlay: rgba(0, 0, 0, 0.62);
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -41,52 +119,91 @@ body,
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--ground);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--sans);
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--fs-ui);
|
||||
line-height: var(--lh-body);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-weight: 600;
|
||||
line-height: var(--lh-heading);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: var(--fs-title);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: var(--fs-section);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: var(--fs-ui);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Values, keys, and anything the claw itself says render mono; the UI
|
||||
chrome around them renders sans. */
|
||||
code,
|
||||
pre,
|
||||
.mono {
|
||||
font-family: var(--mono);
|
||||
font-size: 0.93em;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.94em;
|
||||
font-variant-ligatures: contextual common-ligatures;
|
||||
font-feature-settings: "calt" 1, "liga" 1;
|
||||
}
|
||||
|
||||
/* Section labels: the one repeated typographic voice across panels. */
|
||||
.label {
|
||||
font-family: var(--sans);
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.13em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text3);
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* --- controls ------------------------------------------------------- */
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
color: var(--text);
|
||||
background: var(--elevated);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--sp-2);
|
||||
min-height: 32px;
|
||||
padding: 0 var(--sp-3);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 6px;
|
||||
padding: 5px 14px;
|
||||
border-radius: var(--r-control);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font-size: var(--fs-ui);
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-text);
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.45;
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@@ -94,34 +211,45 @@ button.primary {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--on-accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
button.primary:hover:not(:disabled) {
|
||||
background: var(--accent-text);
|
||||
border-color: var(--accent-text);
|
||||
color: var(--on-accent);
|
||||
background: var(--accent);
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
button.ghost {
|
||||
background: none;
|
||||
border-color: transparent;
|
||||
color: var(--text3);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
button.ghost:hover:not(:disabled) {
|
||||
color: var(--accent-text);
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font: inherit;
|
||||
min-height: 36px;
|
||||
padding: var(--sp-2) var(--sp-3);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r-control);
|
||||
color: var(--text);
|
||||
background: var(--sunken);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 6px 10px;
|
||||
font-size: var(--fs-ui);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
line-height: var(--lh-body);
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
input:hover,
|
||||
@@ -130,50 +258,178 @@ textarea:hover {
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
|
||||
input:focus-visible,
|
||||
select:focus-visible,
|
||||
textarea:focus-visible,
|
||||
button:focus-visible {
|
||||
outline: 1px solid var(--accent);
|
||||
outline-offset: 0;
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--accent);
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
color: var(--text3);
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--accent-soft);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.file-input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.faint {
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
.meta {
|
||||
font-size: var(--fs-meta);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.label {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* --- controls ------------------------------------------------------- */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--sp-2);
|
||||
height: 32px;
|
||||
padding: 0 var(--sp-3);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r-control);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font-size: var(--fs-ui);
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn:hover:not(:disabled) {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
.btn-primary:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
color: var(--danger);
|
||||
border-color: var(--border-strong);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.btn-danger:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--danger) 8%, var(--surface));
|
||||
}
|
||||
|
||||
.btn-quiet {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.btn-quiet:hover:not(:disabled) {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
height: 28px;
|
||||
padding: 0 var(--sp-2);
|
||||
font-size: var(--fs-meta);
|
||||
gap: var(--sp-1);
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
min-height: 32px;
|
||||
padding: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--r-control);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.icon-btn:hover:not(:disabled) {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.icon-btn:disabled {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* --- surfaces ------------------------------------------------------- */
|
||||
|
||||
/* The one card: a titled container of setting rows or static facts. */
|
||||
.card {
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
/* A card holds its content. Inside the settings pages' scrolling
|
||||
column, the default flex shrink would clip the last row instead. */
|
||||
flex-shrink: 0;
|
||||
border-radius: var(--r-card);
|
||||
}
|
||||
|
||||
.card > .card-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
gap: var(--sp-3);
|
||||
padding: var(--sp-3) var(--sp-4);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card > .card-head .title {
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
font-size: var(--fs-ui);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.card > .card-head .meta {
|
||||
color: var(--text3);
|
||||
font-size: 12px;
|
||||
min-width: 0;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-small);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@@ -181,74 +437,73 @@ textarea::placeholder {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Rows inside a card body separate by hairline, not by gaps. */
|
||||
.card > .card-body > * + * {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card > .card-body.flush {
|
||||
padding: 8px 16px;
|
||||
padding: var(--sp-2) var(--sp-4);
|
||||
}
|
||||
|
||||
.card > .card-body.flush > * + * {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
/* --- badges ---------------------------------------------------------- */
|
||||
/* --- tags ----------------------------------------------------------- */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
gap: var(--sp-1);
|
||||
padding: 1px var(--sp-2);
|
||||
border: 1px solid var(--border-strong);
|
||||
color: var(--text3);
|
||||
border-radius: 6px;
|
||||
background: var(--surface-2);
|
||||
color: var(--muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
font-family: var(--mono);
|
||||
line-height: 1.6;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge.accent {
|
||||
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
|
||||
color: var(--accent-text);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.badge.ok {
|
||||
border-color: color-mix(in srgb, var(--ok) 55%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ok) 40%, var(--border));
|
||||
color: var(--ok);
|
||||
}
|
||||
|
||||
.badge.warn {
|
||||
border-color: color-mix(in srgb, var(--warn) 55%, transparent);
|
||||
border-color: color-mix(in srgb, var(--warn) 40%, var(--border));
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
.badge.error {
|
||||
border-color: color-mix(in srgb, var(--error) 55%, transparent);
|
||||
color: var(--error);
|
||||
border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
/* --- banners --------------------------------------------------------- */
|
||||
/* --- banners -------------------------------------------------------- */
|
||||
|
||||
/* Banners: the single inline error/notice surface. Never toasts, never
|
||||
console-only — claw down, 401, and stream drops all land here. */
|
||||
.banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
gap: var(--sp-2);
|
||||
padding: var(--sp-2) var(--sp-3);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-left: 3px solid var(--info);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--r-control);
|
||||
background: var(--surface);
|
||||
color: var(--text2);
|
||||
color: var(--text);
|
||||
font-size: var(--fs-meta);
|
||||
}
|
||||
|
||||
.banner.error {
|
||||
border-left-color: var(--error);
|
||||
color: var(--text);
|
||||
border-left-color: var(--danger);
|
||||
}
|
||||
|
||||
.banner.warn {
|
||||
@@ -261,11 +516,8 @@ textarea::placeholder {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* --- markdown -------------------------------------------------------- */
|
||||
/* --- markdown ------------------------------------------------------- */
|
||||
|
||||
/* Rendered agent replies (AppMarkdown): markdown-it output mounted with
|
||||
v-html, so only generated tags show up here. Blocks separate by small
|
||||
margins; headings stay close to body size, a chat reply not a page. */
|
||||
.md > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
@@ -280,12 +532,12 @@ textarea::placeholder {
|
||||
.md pre,
|
||||
.md blockquote,
|
||||
.md table {
|
||||
margin: 0 0 8px;
|
||||
margin: 0 0 var(--sp-2);
|
||||
}
|
||||
|
||||
.md ul,
|
||||
.md ol {
|
||||
padding-left: 20px;
|
||||
padding-left: var(--sp-5);
|
||||
}
|
||||
|
||||
.md li {
|
||||
@@ -303,60 +555,58 @@ textarea::placeholder {
|
||||
.md h4,
|
||||
.md h5,
|
||||
.md h6 {
|
||||
margin: 14px 0 6px;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
margin: var(--sp-3) 0 var(--sp-1);
|
||||
font-weight: 600;
|
||||
line-height: var(--lh-heading);
|
||||
}
|
||||
|
||||
.md h1 {
|
||||
font-size: 16px;
|
||||
font-size: var(--fs-section);
|
||||
}
|
||||
|
||||
.md h2 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.md h3 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.md h3,
|
||||
.md h4,
|
||||
.md h5,
|
||||
.md h6 {
|
||||
font-size: 13.5px;
|
||||
font-size: var(--fs-ui);
|
||||
}
|
||||
|
||||
.md a {
|
||||
color: var(--accent-text);
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.md code {
|
||||
background: var(--sunken);
|
||||
padding: 1px 5px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
.md pre {
|
||||
padding: 10px 12px;
|
||||
background: var(--sunken);
|
||||
padding: var(--sp-2) var(--sp-3);
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--r-control);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* The global code rule shrinks em-relative twice inside a pre; undo it. */
|
||||
.md pre code {
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.md blockquote {
|
||||
padding: 2px 12px;
|
||||
padding: 2px var(--sp-3);
|
||||
border-left: 3px solid var(--border-strong);
|
||||
color: var(--text2);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.md hr {
|
||||
@@ -370,24 +620,25 @@ textarea::placeholder {
|
||||
|
||||
.md th,
|
||||
.md td {
|
||||
padding: 3px var(--sp-2);
|
||||
border: 1px solid var(--border-strong);
|
||||
padding: 3px 10px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.md th {
|
||||
background: var(--surface);
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.md img {
|
||||
max-width: 100%;
|
||||
border-radius: var(--r-control);
|
||||
}
|
||||
|
||||
/* While the turn streams, the cursor rides the end of the last block. */
|
||||
.md.streaming > :last-child::after {
|
||||
content: '▊';
|
||||
margin-left: 1px;
|
||||
color: var(--accent-text);
|
||||
color: var(--accent);
|
||||
animation: md-blink 1.1s steps(1) infinite;
|
||||
}
|
||||
|
||||
@@ -396,3 +647,9 @@ textarea::placeholder {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.md.streaming > :last-child::after {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user