shell: the window follows a theme's corners and, for a bevelled theme, its edges
Every radius in the chrome and the panel scales with the theme's own radius (--wb-c-rs = radius / 12, 0 to 1.5): a square theme gets a square window, a round one a rounder window; themes that keep the site's colors keep wayBetter's own corners. A theme built from raised and sunken edges (ChromeTheme edges: 'bevel') gets frame/edges.css on html[data-wb-edges=bevel], also from the first frame: a face color under tabs, toolbar, menus and the panel, 98.css's four edge lines derived from that face, the active title bar's gradient across the tab row, tabs as a tab control, small raised caption buttons, a sunken address field, selected menu rows in the title bar's color, raised and default buttons, etched group boxes and classic scrollbars in the panel.
This commit is contained in:
parent
b3f6960dc3
commit
fc4fdf171a
18 changed files with 449 additions and 216 deletions
|
|
@ -46,6 +46,8 @@ import { frameless, isTauri, onMaximizedChange, os } from './windowBinding.ts';
|
||||||
import { loadWorkspaces, restoreWorkspace, workspaceList, workspaces } from './workspaces.ts';
|
import { loadWorkspaces, restoreWorkspace, workspaceList, workspaces } from './workspaces.ts';
|
||||||
import { stepZoom, zoomTarget } from './zoomStore.ts';
|
import { stepZoom, zoomTarget } from './zoomStore.ts';
|
||||||
import './shell.css';
|
import './shell.css';
|
||||||
|
// After shell.css: a bevelled theme's edges (html[data-wb-edges]).
|
||||||
|
import './edges.css';
|
||||||
|
|
||||||
type Placement = { referencePanel: string; direction: 'within' | 'right' | 'below' };
|
type Placement = { referencePanel: string; direction: 'within' | 'right' | 'below' };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,15 @@
|
||||||
.bt-acct-head .bt-kbd { height: 16px; min-width: 0; font: 500 10.5px/1 var(--bt-ui); }
|
.bt-acct-head .bt-kbd { height: 16px; min-width: 0; font: 500 10.5px/1 var(--bt-ui); }
|
||||||
|
|
||||||
/* One account: the whole row is the main action; "…" sits at the right edge. */
|
/* One account: the whole row is the main action; "…" sits at the right edge. */
|
||||||
.bt-acct-row { position: relative; display: flex; flex-direction: column; border-radius: 10px; }
|
.bt-acct-row { position: relative; display: flex; flex-direction: column; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-acct-line { position: relative; display: flex; align-items: center; }
|
.bt-acct-line { position: relative; display: flex; align-items: center; }
|
||||||
.bt-acct-row.is-focused { background: rgb(var(--bt-accent-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .22); }
|
.bt-acct-row.is-focused { background: rgb(var(--bt-accent-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .22); }
|
||||||
.bt-acct-row.is-focused::before {
|
.bt-acct-row.is-focused::before {
|
||||||
content: ''; position: absolute; inset-inline-start: -5px; top: 12px; height: 24px; width: 3px; border-start-start-radius: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; border-end-start-radius: 0; background: var(--bt-accent);
|
content: ''; position: absolute; inset-inline-start: -5px; top: 12px; height: 24px; width: 3px; border-start-start-radius: 0; border-start-end-radius: calc(3px * var(--bt-rs, 1)); border-end-end-radius: calc(3px * var(--bt-rs, 1)); border-end-start-radius: 0; background: var(--bt-accent);
|
||||||
}
|
}
|
||||||
.bt-acct-row.is-open { background: rgb(var(--bt-text-rgb) / .035); }
|
.bt-acct-row.is-open { background: rgb(var(--bt-text-rgb) / .035); }
|
||||||
|
|
||||||
.bt-menu .bt-acct-main { flex: 1; min-width: 0; height: auto; gap: 11px; padding-block: 8px; padding-inline: 8px 40px; border-radius: 10px; }
|
.bt-menu .bt-acct-main { flex: 1; min-width: 0; height: auto; gap: 11px; padding-block: 8px; padding-inline: 8px 40px; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-menu .bt-acct-main:focus-visible { box-shadow: var(--bt-ring); }
|
.bt-menu .bt-acct-main:focus-visible { box-shadow: var(--bt-ring); }
|
||||||
.bt-acct-avatar { position: relative; display: inline-grid; flex: none; }
|
.bt-acct-avatar { position: relative; display: inline-grid; flex: none; }
|
||||||
.bt-acct-avatar.is-signed-out .bt-avatar, .bt-acct-avatar.is-new .bt-avatar { filter: saturate(.35); opacity: .7; }
|
.bt-acct-avatar.is-signed-out .bt-avatar, .bt-acct-avatar.is-new .bt-avatar { filter: saturate(.35); opacity: .7; }
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
.bt-acct-meta.is-signed-out, .bt-acct-meta.is-new { color: #f0b14a; }
|
.bt-acct-meta.is-signed-out, .bt-acct-meta.is-new { color: #f0b14a; }
|
||||||
.bt-acct-count { color: var(--bt-muted); }
|
.bt-acct-count { color: var(--bt-muted); }
|
||||||
.bt-acct-badge {
|
.bt-acct-badge {
|
||||||
flex: none; padding: 2px 6px; border-radius: 999px; background: rgb(var(--bt-text-rgb) / .07); color: var(--bt-text-2);
|
flex: none; padding: 2px 6px; border-radius: calc(999px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .07); color: var(--bt-text-2);
|
||||||
font: 500 10.5px/1.2 var(--bt-ui); letter-spacing: .01em;
|
font: 500 10.5px/1.2 var(--bt-ui); letter-spacing: .01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
.bt-menu .bt-acct-danger > .bt-glyph { color: #ff8a80; }
|
.bt-menu .bt-acct-danger > .bt-glyph { color: #ff8a80; }
|
||||||
|
|
||||||
.bt-acct-confirm {
|
.bt-acct-confirm {
|
||||||
display: flex; flex-direction: column; gap: 10px; margin: 2px 6px 6px; padding: 10px 12px; border-radius: 9px;
|
display: flex; flex-direction: column; gap: 10px; margin: 2px 6px 6px; padding: 10px 12px; border-radius: calc(9px * var(--bt-rs, 1));
|
||||||
background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui);
|
background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui);
|
||||||
}
|
}
|
||||||
.bt-acct-confirm strong { color: var(--bt-text); font-weight: 600; }
|
.bt-acct-confirm strong { color: var(--bt-text); font-weight: 600; }
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
.bt-menu .bt-acct-remove:hover:not(:disabled), .bt-menu .bt-acct-remove:focus-visible { background: #d93d42; }
|
.bt-menu .bt-acct-remove:hover:not(:disabled), .bt-menu .bt-acct-remove:focus-visible { background: #d93d42; }
|
||||||
.bt-menu .bt-acct-cancel { background: var(--bt-hover); }
|
.bt-menu .bt-acct-cancel { background: var(--bt-hover); }
|
||||||
|
|
||||||
.bt-menu .bt-acct-add { height: auto; gap: 11px; padding: 8px; border-radius: 10px; }
|
.bt-menu .bt-acct-add { height: auto; gap: 11px; padding: 8px; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-menu .bt-acct-add:focus-visible { box-shadow: var(--bt-ring); }
|
.bt-menu .bt-acct-add:focus-visible { box-shadow: var(--bt-ring); }
|
||||||
.bt-acct-add .bt-acct-name { color: var(--bt-text-2); }
|
.bt-acct-add .bt-acct-name { color: var(--bt-text-2); }
|
||||||
.bt-acct-add-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--bt-line-strong); color: var(--bt-muted); }
|
.bt-acct-add-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--bt-line-strong); color: var(--bt-muted); }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
/* The button: the last thing before the caption buttons. */
|
/* The button: the last thing before the caption buttons. */
|
||||||
.bt-app-button {
|
.bt-app-button {
|
||||||
align-self: center; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; margin-right: 8px; padding: 0; box-sizing: border-box; /* rtl-ok: titlebar */
|
align-self: center; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; margin-right: 8px; padding: 0; box-sizing: border-box; /* rtl-ok: titlebar */
|
||||||
border: 1px solid transparent; border-radius: 15px; background: transparent; color: var(--bt-text-2); cursor: pointer;
|
border: 1px solid transparent; border-radius: calc(15px * var(--bt-rs, 1)); background: transparent; color: var(--bt-text-2); cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-app-button:hover { background: var(--bt-hover); border-color: var(--bt-line-soft); color: var(--bt-text); }
|
.bt-app-button:hover { background: var(--bt-hover); border-color: var(--bt-line-soft); color: var(--bt-text); }
|
||||||
|
|
@ -22,7 +22,7 @@ html:not(:has(.bt-app-button)) { --bt-tb-menu: 0px; }
|
||||||
img.bt-titlebar-logo { width: 20px; height: 20px; margin: 12px 14px 12px 16px; flex: 0 0 20px; -webkit-user-drag: none; } /* rtl-ok: titlebar */
|
img.bt-titlebar-logo { width: 20px; height: 20px; margin: 12px 14px 12px 16px; flex: 0 0 20px; -webkit-user-drag: none; } /* rtl-ok: titlebar */
|
||||||
button.bt-titlebar-logo {
|
button.bt-titlebar-logo {
|
||||||
align-self: center; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; margin: 0 9px 0 11px; padding: 0; box-sizing: border-box; /* rtl-ok: titlebar */
|
align-self: center; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; margin: 0 9px 0 11px; padding: 0; box-sizing: border-box; /* rtl-ok: titlebar */
|
||||||
border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; -webkit-user-drag: none;
|
border: 1px solid transparent; border-radius: calc(9px * var(--bt-rs, 1)); background: transparent; cursor: pointer; -webkit-user-drag: none;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
button.bt-titlebar-logo img { display: block; width: 20px; height: 20px; pointer-events: none; -webkit-user-drag: none; }
|
button.bt-titlebar-logo img { display: block; width: 20px; height: 20px; pointer-events: none; -webkit-user-drag: none; }
|
||||||
|
|
@ -76,14 +76,14 @@ button.bt-titlebar-logo:focus-visible { outline: 0; box-shadow: var(--bt-ring);
|
||||||
.bt-app-zoom { display: flex; align-items: center; gap: 10px; height: 36px; flex: none; padding-inline: 10px 3px; color: var(--bt-text); }
|
.bt-app-zoom { display: flex; align-items: center; gap: 10px; height: 36px; flex: none; padding-inline: 10px 3px; color: var(--bt-text); }
|
||||||
.bt-app-zoom > .bt-glyph { color: var(--bt-muted); }
|
.bt-app-zoom > .bt-glyph { color: var(--bt-muted); }
|
||||||
.bt-app-zoom.is-off > .bt-glyph, .bt-app-zoom.is-off .bt-menu-label, .bt-app-zoom.is-off .bt-app-zoom-value { color: var(--bt-faint); }
|
.bt-app-zoom.is-off > .bt-glyph, .bt-app-zoom.is-off .bt-menu-label, .bt-app-zoom.is-off .bt-app-zoom-value { color: var(--bt-faint); }
|
||||||
.bt-app-zoom-step { display: flex; align-items: center; flex: none; height: 28px; border-radius: 9px; direction: ltr; background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px var(--bt-line); }
|
.bt-app-zoom-step { display: flex; align-items: center; flex: none; height: 28px; border-radius: calc(9px * var(--bt-rs, 1)); direction: ltr; background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px var(--bt-line); }
|
||||||
.bt-app-menu .bt-app-zoom button { width: 30px; height: 28px; flex: none; padding: 0; justify-content: center; border-radius: 8px; color: var(--bt-text-2); }
|
.bt-app-menu .bt-app-zoom button { width: 30px; height: 28px; flex: none; padding: 0; justify-content: center; border-radius: calc(8px * var(--bt-rs, 1)); color: var(--bt-text-2); }
|
||||||
.bt-app-menu .bt-app-zoom button > .bt-glyph { width: 14px; height: 14px; color: inherit; }
|
.bt-app-menu .bt-app-zoom button > .bt-glyph { width: 14px; height: 14px; color: inherit; }
|
||||||
.bt-app-menu .bt-app-zoom button:focus { color: var(--bt-text); }
|
.bt-app-menu .bt-app-zoom button:focus { color: var(--bt-text); }
|
||||||
.bt-app-menu .bt-app-zoom button[aria-disabled=true] { color: var(--bt-faint); cursor: default; }
|
.bt-app-menu .bt-app-zoom button[aria-disabled=true] { color: var(--bt-faint); cursor: default; }
|
||||||
.bt-app-menu .bt-app-zoom button[aria-disabled=true]:active { background: var(--bt-hover); }
|
.bt-app-menu .bt-app-zoom button[aria-disabled=true]:active { background: var(--bt-hover); }
|
||||||
.bt-app-zoom-value { min-width: 50px; padding: 0 2px; text-align: center; color: var(--bt-text); font: 500 12px/1 var(--bt-mono); font-variant-numeric: tabular-nums; }
|
.bt-app-zoom-value { min-width: 50px; padding: 0 2px; text-align: center; color: var(--bt-text); font: 500 12px/1 var(--bt-mono); font-variant-numeric: tabular-nums; }
|
||||||
.bt-app-menu .bt-app-zoom .bt-app-zoom-reset { width: 28px; border-radius: 9px; }
|
.bt-app-menu .bt-app-zoom .bt-app-zoom-reset { width: 28px; border-radius: calc(9px * var(--bt-rs, 1)); }
|
||||||
|
|
||||||
/* Words that are not a choice: the mode question, an empty list, an error. */
|
/* Words that are not a choice: the mode question, an empty list, an error. */
|
||||||
.bt-app-note { display: flex; flex-direction: column; gap: 3px; max-width: 288px; padding: 8px 10px 7px; box-sizing: border-box; }
|
.bt-app-note { display: flex; flex-direction: column; gap: 3px; max-width: 288px; padding: 8px 10px 7px; box-sizing: border-box; }
|
||||||
|
|
@ -92,7 +92,7 @@ button.bt-titlebar-logo:focus-visible { outline: 0; box-shadow: var(--bt-ring);
|
||||||
.bt-app-note.is-error span { color: var(--bt-danger); }
|
.bt-app-note.is-error span { color: var(--bt-danger); }
|
||||||
|
|
||||||
/* The account menu's last row: the way here from where the account name is. */
|
/* The account menu's last row: the way here from where the account name is. */
|
||||||
.bt-menu .bt-acct-settings { flex: none; height: 34px; gap: 11px; padding: 0 8px; border-radius: 10px; color: var(--bt-text-2); }
|
.bt-menu .bt-acct-settings { flex: none; height: 34px; gap: 11px; padding: 0 8px; border-radius: calc(10px * var(--bt-rs, 1)); color: var(--bt-text-2); }
|
||||||
.bt-menu .bt-acct-settings > .bt-glyph { width: 32px; height: 15px; }
|
.bt-menu .bt-acct-settings > .bt-glyph { width: 32px; height: 15px; }
|
||||||
.bt-menu .bt-acct-settings:focus-visible { box-shadow: var(--bt-ring); }
|
.bt-menu .bt-acct-settings:focus-visible { box-shadow: var(--bt-ring); }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ export function bootScript(options: { label?: string } = {}): string {
|
||||||
for (const [name, value] of Object.entries(vars)) {
|
for (const [name, value] of Object.entries(vars)) {
|
||||||
if (/^--wb-[a-z]-[a-z0-9-]+$/.test(name) && typeof value === 'string' && value.length < 400) root.style.setProperty(name, value);
|
if (/^--wb-[a-z]-[a-z0-9-]+$/.test(name) && typeof value === 'string' && value.length < 400) root.style.setProperty(name, value);
|
||||||
}
|
}
|
||||||
|
// The edge style (frame/edges.css) from the first frame too, like chromeEdges() in themeStore.
|
||||||
|
if (vars['--wb-c-edges'] === 'bevel') root.dataset.wbEdges = 'bevel';
|
||||||
// shell.css (loaded with the shell's modules) paints the same ground; this rule only covers
|
// shell.css (loaded with the shell's modules) paints the same ground; this rule only covers
|
||||||
// the frames before it, and \`html.bt-raised\` (more specific) still clears it.
|
// the frames before it, and \`html.bt-raised\` (more specific) still clears it.
|
||||||
const style = document.createElement('style');
|
const style = document.createElement('style');
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,16 @@ export const SHELL_MONO_FONT = "'Geist Mono Variable', ui-monospace, monospace";
|
||||||
|
|
||||||
/** A theme as the chrome needs it: seven colors (none: the site's own colors) and two font stacks. */
|
/** A theme as the chrome needs it: seven colors (none: the site's own colors) and two font stacks. */
|
||||||
export type ChromeTheme = {
|
export type ChromeTheme = {
|
||||||
colors?: { bg: string; surface: string; elevated: string; border: string; text: string; muted: string; accent: string } | null;
|
/** `page`, `inverse` and `onInverse` are optional: a bevelled chrome builds its face and title bar from them. */
|
||||||
|
colors?: { bg: string; surface: string; elevated: string; border: string; text: string; muted: string; accent: string; page?: string; inverse?: string; onInverse?: string } | null;
|
||||||
|
/** The theme's corner radius in px: every chrome radius scales by radius / 12 (0 to 1.5, `--wb-c-rs`). Absent: wayBetter's own. */
|
||||||
|
radius?: number | null;
|
||||||
|
/**
|
||||||
|
* How the chrome's edges are drawn. `bevel`: raised and sunken edges after 98.css (MIT, Jordan
|
||||||
|
* Scales), square corners, a face color under tabs, menus and dialogs, a title-bar gradient
|
||||||
|
* (frame/edges.css, keyed on `html[data-wb-edges]`). Absent: wayBetter's own soft edges.
|
||||||
|
*/
|
||||||
|
edges?: 'bevel' | null;
|
||||||
/** The chrome's font stack when the theme sets one other than SHELL_UI_FONT. */
|
/** The chrome's font stack when the theme sets one other than SHELL_UI_FONT. */
|
||||||
chromeFont?: string | null;
|
chromeFont?: string | null;
|
||||||
/** The mono font stack when the theme sets one. */
|
/** The mono font stack when the theme sets one. */
|
||||||
|
|
@ -46,7 +55,8 @@ function legible(color: string, surface: string, ratio: number): string {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSS custom properties for the chrome in `theme`. A theme that keeps the site's colors changes
|
* CSS custom properties for the chrome in `theme`. A theme that keeps the site's colors changes
|
||||||
* only the fonts; `own` keeps wayBetter's own style entirely (empty result).
|
* only the fonts (and keeps wayBetter's own corners and edges); `own` keeps wayBetter's own style
|
||||||
|
* entirely (empty result).
|
||||||
*/
|
*/
|
||||||
export function chromeVars(theme: ChromeTheme, own = false): Record<string, string> {
|
export function chromeVars(theme: ChromeTheme, own = false): Record<string, string> {
|
||||||
if (own) return {};
|
if (own) return {};
|
||||||
|
|
@ -56,6 +66,10 @@ export function chromeVars(theme: ChromeTheme, own = false): Record<string, stri
|
||||||
if (theme.monoFont) vars['--wb-f-mono'] = theme.monoFont;
|
if (theme.monoFont) vars['--wb-f-mono'] = theme.monoFont;
|
||||||
const colors = theme.colors;
|
const colors = theme.colors;
|
||||||
if (!colors) return vars;
|
if (!colors) return vars;
|
||||||
|
// Radii follow the theme's own corners: square themes get a square chrome, round ones a rounder one.
|
||||||
|
if (typeof theme.radius === 'number' && Number.isFinite(theme.radius)) {
|
||||||
|
vars['--wb-c-rs'] = String(Math.round(Math.min(1.5, Math.max(0, theme.radius / 12)) * 100) / 100);
|
||||||
|
}
|
||||||
const { bg, surface, elevated, border, text, muted, accent } = colors;
|
const { bg, surface, elevated, border, text, muted, accent } = colors;
|
||||||
const dark = luminance(bg) < luminance(text);
|
const dark = luminance(bg) < luminance(text);
|
||||||
const ink = legible(mix(accent, text, 0.55), elevated, 4.5);
|
const ink = legible(mix(accent, text, 0.55), elevated, 4.5);
|
||||||
|
|
@ -76,11 +90,38 @@ export function chromeVars(theme: ChromeTheme, own = false): Record<string, stri
|
||||||
'--wb-p-text-rgb': channels(text), '--wb-p-popover': elevated, '--wb-p-thumb': `linear-gradient(180deg, ${mix(elevated, text, 0.08)}, ${elevated})`,
|
'--wb-p-text-rgb': channels(text), '--wb-p-popover': elevated, '--wb-p-thumb': `linear-gradient(180deg, ${mix(elevated, text, 0.08)}, ${elevated})`,
|
||||||
'--wb-p-track': mix(elevated, border, 0.5), '--wb-p-knob': mix(muted, text, 0.3),
|
'--wb-p-track': mix(elevated, border, 0.5), '--wb-p-knob': mix(muted, text, 0.3),
|
||||||
});
|
});
|
||||||
|
if (theme.edges === 'bevel') Object.assign(vars, bevelVars(colors));
|
||||||
return vars;
|
return vars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A bevelled chrome: the face every raised part is made of (the theme's `page`, else its raised
|
||||||
|
* surface), the four edge lines of 98.css derived from that face (white highlight, light, shadow,
|
||||||
|
* near-black), the field under text (the theme's background) and the active title bar (inverse to
|
||||||
|
* accent, its label readable on both ends).
|
||||||
|
*/
|
||||||
|
function bevelVars(colors: NonNullable<ChromeTheme['colors']>): Record<string, string> {
|
||||||
|
const face = colors.page ?? colors.elevated;
|
||||||
|
const from = colors.inverse ?? colors.accent;
|
||||||
|
const titleText = colors.onInverse && contrast(colors.onInverse, from) >= 4.5 && contrast(colors.onInverse, colors.accent) >= 3 ? colors.onInverse
|
||||||
|
: contrast('#ffffff', from) >= contrast('#000000', from) ? '#ffffff' : '#000000';
|
||||||
|
return {
|
||||||
|
'--wb-c-edges': 'bevel', '--wb-c-face': face, '--wb-c-face-text': legible(colors.text, face, 7),
|
||||||
|
'--wb-c-bevel-hi': mix(face, '#ffffff', 1), '--wb-c-bevel-lt': mix(face, '#ffffff', 0.49),
|
||||||
|
'--wb-c-bevel-sh': mix(face, '#000000', 0.335), '--wb-c-bevel-dk': mix(face, '#000000', 0.95),
|
||||||
|
'--wb-c-title-from': from, '--wb-c-title-to': colors.accent, '--wb-c-title-text': titleText,
|
||||||
|
// Selected rows (menus, lists): the title bar's own color, as in a 98 menu.
|
||||||
|
'--wb-c-select': from, '--wb-c-select-text': titleText,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/** Every variable chromeVars may set (to clear them when a pane returns to the global theme). */
|
/** Every variable chromeVars may set (to clear them when a pane returns to the global theme). */
|
||||||
export const CHROME_VAR_NAMES = Object.keys(chromeVars({
|
export const CHROME_VAR_NAMES = Object.keys(chromeVars({
|
||||||
colors: { bg: '#000000', surface: '#111111', elevated: '#222222', border: '#333333', text: '#ffffff', muted: '#999999', accent: '#1d9bf0' },
|
colors: { bg: '#000000', surface: '#111111', elevated: '#222222', border: '#333333', text: '#ffffff', muted: '#999999', accent: '#1d9bf0' },
|
||||||
chromeFont: 'A', monoFont: 'B',
|
chromeFont: 'A', monoFont: 'B', radius: 12, edges: 'bevel',
|
||||||
})).concat('--wb-c-shadow-pop');
|
})).concat('--wb-c-shadow-pop');
|
||||||
|
|
||||||
|
/** The edge style a set of chrome variables asks for (`html[data-wb-edges]`), or null. */
|
||||||
|
export function chromeEdges(vars: Record<string, string>): string | null {
|
||||||
|
return vars['--wb-c-edges'] === 'bevel' ? 'bevel' : null;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,25 +6,25 @@
|
||||||
.bt-deck { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bt-ground); color: var(--bt-text); overflow: hidden; }
|
.bt-deck { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bt-ground); color: var(--bt-text); overflow: hidden; }
|
||||||
|
|
||||||
/* The deck's dockview tab: unread total. */
|
/* The deck's dockview tab: unread total. */
|
||||||
.bt-tab-unread { flex: none; min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--bt-accent); color: #fff; font: 700 10px/16px var(--bt-mono); text-align: center; }
|
.bt-tab-unread { flex: none; min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-accent); color: #fff; font: 700 10px/16px var(--bt-mono); text-align: center; }
|
||||||
|
|
||||||
/* Deck bar ---------------------------------------------------------------------------------- */
|
/* Deck bar ---------------------------------------------------------------------------------- */
|
||||||
.bt-deck-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding-block: 0; padding-inline: 14px 10px; }
|
.bt-deck-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding-block: 0; padding-inline: 14px 10px; }
|
||||||
.bt-deck-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, rgba(79, 107, 255, .28), rgba(34, 211, 238, .18)); box-shadow: inset 0 0 0 1px rgba(159, 211, 255, .18); color: #bfe0ff; }
|
.bt-deck-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: calc(7px * var(--bt-rs, 1)); background: linear-gradient(135deg, rgba(79, 107, 255, .28), rgba(34, 211, 238, .18)); box-shadow: inset 0 0 0 1px rgba(159, 211, 255, .18); color: #bfe0ff; }
|
||||||
.bt-deck-mark .bt-glyph { width: 13px; height: 13px; }
|
.bt-deck-mark .bt-glyph { width: 13px; height: 13px; }
|
||||||
.bt-deck-name { font: 650 13.5px/1 var(--bt-ui); letter-spacing: -.01em; }
|
.bt-deck-name { font: 650 13.5px/1 var(--bt-ui); letter-spacing: -.01em; }
|
||||||
.bt-deck-count { color: var(--bt-faint); font: 500 11.5px/1 var(--bt-ui); }
|
.bt-deck-count { color: var(--bt-faint); font: 500 11.5px/1 var(--bt-ui); }
|
||||||
.bt-deck-total { padding: 4px 8px; border-radius: 999px; background: var(--bt-accent-soft); color: var(--bt-accent-ink); font: 600 11px/1 var(--bt-mono); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .28); }
|
.bt-deck-total { padding: 4px 8px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-accent-soft); color: var(--bt-accent-ink); font: 600 11px/1 var(--bt-mono); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .28); }
|
||||||
.bt-deck-fill { flex: 1; }
|
.bt-deck-fill { flex: 1; }
|
||||||
.bt-deck-pager { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line-soft); }
|
.bt-deck-pager { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line-soft); }
|
||||||
.bt-deck-pager .bt-icon { width: 24px; height: 24px; border-radius: 999px; }
|
.bt-deck-pager .bt-icon { width: 24px; height: 24px; border-radius: calc(999px * var(--bt-rs, 1)); }
|
||||||
.bt-deck-pager .bt-glyph { width: 13px; height: 13px; }
|
.bt-deck-pager .bt-glyph { width: 13px; height: 13px; }
|
||||||
.bt-deck-dot { width: 18px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
|
.bt-deck-dot { width: 18px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
|
||||||
.bt-deck-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 999px; background: var(--bt-line-strong); transition: width var(--bt-t2) var(--bt-ease-out), margin var(--bt-t2) var(--bt-ease-out), background-color var(--bt-t1) var(--bt-ease); }
|
.bt-deck-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-line-strong); transition: width var(--bt-t2) var(--bt-ease-out), margin var(--bt-t2) var(--bt-ease-out), background-color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-deck-dot:hover::after { background: var(--bt-muted); }
|
.bt-deck-dot:hover::after { background: var(--bt-muted); }
|
||||||
.bt-deck-dot.is-on::after { width: 14px; margin-left: -7px; background: var(--bt-accent); } /* rtl-ok: centred with left: 50% */
|
.bt-deck-dot.is-on::after { width: 14px; margin-left: -7px; background: var(--bt-accent); } /* rtl-ok: centred with left: 50% */
|
||||||
.bt-deck-memory { color: var(--bt-muted); font: 500 11px/1 var(--bt-mono); padding: 5px 8px; border-radius: 7px; background: rgba(238, 240, 247, .04); }
|
.bt-deck-memory { color: var(--bt-muted); font: 500 11px/1 var(--bt-mono); padding: 5px 8px; border-radius: calc(7px * var(--bt-rs, 1)); background: rgba(238, 240, 247, .04); }
|
||||||
.bt-deck-action { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-block: 0; padding-inline: 9px 11px; border: 0; border-radius: 8px; background: rgba(238, 240, 247, .05); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .06); color: var(--bt-text-2); font: 550 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-deck-action { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-block: 0; padding-inline: 9px 11px; border: 0; border-radius: calc(8px * var(--bt-rs, 1)); background: rgba(238, 240, 247, .05); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .06); color: var(--bt-text-2); font: 550 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-deck-action .bt-glyph { width: 14px; height: 14px; }
|
.bt-deck-action .bt-glyph { width: 14px; height: 14px; }
|
||||||
.bt-deck-action:hover { background: rgba(238, 240, 247, .09); color: var(--bt-text); }
|
.bt-deck-action:hover { background: rgba(238, 240, 247, .09); color: var(--bt-text); }
|
||||||
.bt-deck-action.is-on { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .38); color: var(--bt-accent-ink); }
|
.bt-deck-action.is-on { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .38); color: var(--bt-accent-ink); }
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
.bt-deck-row { position: relative; flex: 1; min-height: 0; margin: 0 8px; }
|
.bt-deck-row { position: relative; flex: 1; min-height: 0; margin: 0 8px; }
|
||||||
.bt-col, .bt-compose {
|
.bt-col, .bt-compose {
|
||||||
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box;
|
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box;
|
||||||
border-radius: 12px 12px 0 0; background: var(--bt-chrome); box-shadow: inset 0 0 0 1px var(--bt-line-soft);
|
border-radius: calc(12px * var(--bt-rs, 1)) calc(12px * var(--bt-rs, 1)) 0 0; background: var(--bt-chrome); box-shadow: inset 0 0 0 1px var(--bt-line-soft);
|
||||||
--bt-col-account: var(--bt-accent);
|
--bt-col-account: var(--bt-accent);
|
||||||
}
|
}
|
||||||
/* Motion never transforms a column's body: the webview is placed on the body's rectangle, so only
|
/* Motion never transforms a column's body: the webview is placed on the body's rectangle, so only
|
||||||
|
|
@ -50,12 +50,12 @@
|
||||||
|
|
||||||
.bt-col-head, .bt-compose-head {
|
.bt-col-head, .bt-compose-head {
|
||||||
position: relative; flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding-block: 0; padding-inline: 8px 6px;
|
position: relative; flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding-block: 0; padding-inline: 8px 6px;
|
||||||
border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--bt-line-soft);
|
border-radius: calc(12px * var(--bt-rs, 1)) calc(12px * var(--bt-rs, 1)) 0 0; border-bottom: 1px solid var(--bt-line-soft);
|
||||||
background: linear-gradient(180deg, rgba(238, 240, 247, .025), transparent);
|
background: linear-gradient(180deg, rgba(238, 240, 247, .025), transparent);
|
||||||
}
|
}
|
||||||
/* The focused column: an accent line on top and a lifted header. */
|
/* The focused column: an accent line on top and a lifted header. */
|
||||||
.bt-col-head::before, .bt-compose-head::before {
|
.bt-col-head::before, .bt-compose-head::before {
|
||||||
content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
|
content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 calc(2px * var(--bt-rs, 1)) calc(2px * var(--bt-rs, 1));
|
||||||
background: var(--bt-brush); opacity: 0; transform: scaleX(.6); transition: opacity var(--bt-t2) var(--bt-ease), transform var(--bt-t3) var(--bt-ease-out);
|
background: var(--bt-brush); opacity: 0; transform: scaleX(.6); transition: opacity var(--bt-t2) var(--bt-ease), transform var(--bt-t3) var(--bt-ease-out);
|
||||||
}
|
}
|
||||||
.bt-col.is-focused .bt-col-head::before, .bt-compose-head::before { opacity: 1; transform: none; }
|
.bt-col.is-focused .bt-col-head::before, .bt-compose-head::before { opacity: 1; transform: none; }
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
.bt-col.is-focused .bt-col-head { background: linear-gradient(180deg, rgba(29, 155, 240, .08), rgba(29, 155, 240, 0)); }
|
.bt-col.is-focused .bt-col-head { background: linear-gradient(180deg, rgba(29, 155, 240, .08), rgba(29, 155, 240, 0)); }
|
||||||
|
|
||||||
.bt-col-glyph {
|
.bt-col-glyph {
|
||||||
display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; padding: 0; border: 0;
|
display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: calc(8px * var(--bt-rs, 1)); padding: 0; border: 0;
|
||||||
background: color-mix(in srgb, var(--bt-col-account) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bt-col-account) 30%, transparent);
|
background: color-mix(in srgb, var(--bt-col-account) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bt-col-account) 30%, transparent);
|
||||||
color: color-mix(in srgb, var(--bt-col-account) 55%, #ffffff);
|
color: color-mix(in srgb, var(--bt-col-account) 55%, #ffffff);
|
||||||
}
|
}
|
||||||
|
|
@ -75,15 +75,15 @@
|
||||||
.bt-col-titles span { color: var(--bt-muted); font: 450 11.5px/1.1 var(--bt-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
.bt-col-titles span { color: var(--bt-muted); font: 450 11.5px/1.1 var(--bt-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.bt-col-fill { flex: 1; min-width: 4px; }
|
.bt-col-fill { flex: 1; min-width: 4px; }
|
||||||
.bt-col-unread {
|
.bt-col-unread {
|
||||||
flex: none; min-width: 22px; height: 20px; padding: 0 7px; box-sizing: border-box; border: 0; border-radius: 999px; cursor: pointer;
|
flex: none; min-width: 22px; height: 20px; padding: 0 7px; box-sizing: border-box; border: 0; border-radius: calc(999px * var(--bt-rs, 1)); cursor: pointer;
|
||||||
background: var(--bt-accent); color: #fff; font: 700 11px/20px var(--bt-mono); letter-spacing: -.02em;
|
background: var(--bt-accent); color: #fff; font: 700 11px/20px var(--bt-mono); letter-spacing: -.02em;
|
||||||
box-shadow: 0 0 0 3px rgba(29, 155, 240, .16), 0 4px 12px -4px rgba(29, 155, 240, .8);
|
box-shadow: 0 0 0 3px rgba(29, 155, 240, .16), 0 4px 12px -4px rgba(29, 155, 240, .8);
|
||||||
animation: bt-unread-in var(--bt-t3) var(--bt-ease-out);
|
animation: bt-unread-in var(--bt-t3) var(--bt-ease-out);
|
||||||
}
|
}
|
||||||
.bt-col-unread:hover { filter: brightness(1.12); }
|
.bt-col-unread:hover { filter: brightness(1.12); }
|
||||||
@keyframes bt-unread-in { from { transform: scale(.6); opacity: 0; } }
|
@keyframes bt-unread-in { from { transform: scale(.6); opacity: 0; } }
|
||||||
.bt-col-account { display: grid; place-items: center; flex: none; padding: 2px; border-radius: 999px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bt-col-account) 70%, transparent); }
|
.bt-col-account { display: grid; place-items: center; flex: none; padding: 2px; border-radius: calc(999px * var(--bt-rs, 1)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bt-col-account) 70%, transparent); }
|
||||||
.bt-col-btn { width: 28px; height: 28px; border-radius: 8px; color: var(--bt-muted); }
|
.bt-col-btn { width: 28px; height: 28px; border-radius: calc(8px * var(--bt-rs, 1)); color: var(--bt-muted); }
|
||||||
.bt-col-btn .bt-glyph { width: 15px; height: 15px; }
|
.bt-col-btn .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-col-btn:hover { color: var(--bt-text); }
|
.bt-col-btn:hover { color: var(--bt-text); }
|
||||||
.bt-col-btn.is-active { color: var(--bt-accent-ink); background: var(--bt-accent-soft); }
|
.bt-col-btn.is-active { color: var(--bt-accent-ink); background: var(--bt-accent-soft); }
|
||||||
|
|
@ -99,8 +99,8 @@
|
||||||
.bt-compose { right: 0; animation: bt-fade-in var(--bt-t3) var(--bt-ease-out) both; box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .28), -18px 0 40px -24px rgba(0, 0, 0, .8); }
|
.bt-compose { right: 0; animation: bt-fade-in var(--bt-t3) var(--bt-ease-out) both; box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .28), -18px 0 40px -24px rgba(0, 0, 0, .8); }
|
||||||
.bt-compose > .bt-compose-head { animation: bt-slide-in var(--bt-t3) var(--bt-ease-out) both; }
|
.bt-compose > .bt-compose-head { animation: bt-slide-in var(--bt-t3) var(--bt-ease-out) both; }
|
||||||
.bt-compose-glyph { --bt-col-account: var(--bt-accent); }
|
.bt-compose-glyph { --bt-col-account: var(--bt-accent); }
|
||||||
.bt-compose-accounts { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bt-field); }
|
.bt-compose-accounts { display: flex; gap: 2px; padding: 2px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-field); }
|
||||||
.bt-compose-accounts button { display: grid; place-items: center; padding: 2px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; opacity: .55; transition: opacity var(--bt-t1) var(--bt-ease); }
|
.bt-compose-accounts button { display: grid; place-items: center; padding: 2px; border: 0; border-radius: calc(999px * var(--bt-rs, 1)); background: transparent; cursor: pointer; opacity: .55; transition: opacity var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-compose-accounts button:hover { opacity: .9; }
|
.bt-compose-accounts button:hover { opacity: .9; }
|
||||||
.bt-compose-accounts button.is-on { opacity: 1; box-shadow: 0 0 0 1.5px var(--bt-accent); }
|
.bt-compose-accounts button.is-on { opacity: 1; box-shadow: 0 0 0 1.5px var(--bt-accent); }
|
||||||
|
|
||||||
|
|
@ -111,18 +111,18 @@
|
||||||
.bt-deck-pop-head strong { font: 650 13px/1 var(--bt-ui); }
|
.bt-deck-pop-head strong { font: 650 13px/1 var(--bt-ui); }
|
||||||
.bt-deck-pop-head span { margin-inline-start: auto; color: var(--bt-faint); font: 500 11.5px/1 var(--bt-ui); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
.bt-deck-pop-head span { margin-inline-start: auto; color: var(--bt-faint); font: 500 11.5px/1 var(--bt-ui); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.bt-deck-terms { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 6px; }
|
.bt-deck-terms { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 6px; }
|
||||||
.bt-deck-input { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line); color: var(--bt-text); font: 450 12.5px/1 var(--bt-mono); outline: none; user-select: text; }
|
.bt-deck-input { height: 32px; padding: 0 10px; border: 0; border-radius: calc(8px * var(--bt-rs, 1)); background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line); color: var(--bt-text); font: 450 12.5px/1 var(--bt-mono); outline: none; user-select: text; }
|
||||||
.bt-deck-input:focus { box-shadow: var(--bt-ring); }
|
.bt-deck-input:focus { box-shadow: var(--bt-ring); }
|
||||||
.bt-deck-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 120px; overflow-y: auto; scrollbar-width: thin; }
|
.bt-deck-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 120px; overflow-y: auto; scrollbar-width: thin; }
|
||||||
.bt-deck-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 24px; padding-block: 0; padding-inline: 9px 2px; border-radius: 999px; background: rgba(238, 240, 247, .06); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .07); font: 500 12px/1 var(--bt-ui); }
|
.bt-deck-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 24px; padding-block: 0; padding-inline: 9px 2px; border-radius: calc(999px * var(--bt-rs, 1)); background: rgba(238, 240, 247, .06); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .07); font: 500 12px/1 var(--bt-ui); }
|
||||||
.bt-deck-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
.bt-deck-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.bt-deck-chip.is-regex { font-family: var(--bt-mono); color: #d7c6ff; background: rgba(168, 85, 247, .12); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .25); }
|
.bt-deck-chip.is-regex { font-family: var(--bt-mono); color: #d7c6ff; background: rgba(168, 85, 247, .12); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .25); }
|
||||||
.bt-menu .bt-deck-chip button { width: 20px; height: 20px; padding: 0; justify-content: center; border-radius: 999px; }
|
.bt-menu .bt-deck-chip button { width: 20px; height: 20px; padding: 0; justify-content: center; border-radius: calc(999px * var(--bt-rs, 1)); }
|
||||||
.bt-deck-chip .bt-glyph { width: 11px; height: 11px; }
|
.bt-deck-chip .bt-glyph { width: 11px; height: 11px; }
|
||||||
.bt-deck-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
|
.bt-deck-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: calc(8px * var(--bt-rs, 1)); cursor: pointer; }
|
||||||
.bt-deck-check:hover { background: var(--bt-hover); }
|
.bt-deck-check:hover { background: var(--bt-hover); }
|
||||||
.bt-deck-check input { position: absolute; opacity: 0; pointer-events: none; }
|
.bt-deck-check input { position: absolute; opacity: 0; pointer-events: none; }
|
||||||
.bt-deck-check-box { display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--bt-line-strong); color: transparent; transition: background-color var(--bt-t1) var(--bt-ease); }
|
.bt-deck-check-box { display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: calc(5px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1.5px var(--bt-line-strong); color: transparent; transition: background-color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-deck-check-box .bt-glyph { width: 11px; height: 11px; stroke-width: 2.4; }
|
.bt-deck-check-box .bt-glyph { width: 11px; height: 11px; stroke-width: 2.4; }
|
||||||
.bt-deck-check input:checked + .bt-deck-check-box { background: var(--bt-accent); box-shadow: none; color: #fff; }
|
.bt-deck-check input:checked + .bt-deck-check-box { background: var(--bt-accent); box-shadow: none; color: #fff; }
|
||||||
.bt-deck-check input:focus-visible + .bt-deck-check-box { box-shadow: var(--bt-ring); }
|
.bt-deck-check input:focus-visible + .bt-deck-check-box { box-shadow: var(--bt-ring); }
|
||||||
|
|
@ -131,12 +131,12 @@
|
||||||
.bt-deck-check-text small { color: var(--bt-muted); font: 400 11.5px/1.2 var(--bt-ui); }
|
.bt-deck-check-text small { color: var(--bt-muted); font: 400 11.5px/1.2 var(--bt-ui); }
|
||||||
.bt-deck-widths { display: flex; align-items: center; gap: 2px; padding-block: 4px; padding-inline: 10px 6px; color: var(--bt-muted); font: 500 12px/1 var(--bt-ui); }
|
.bt-deck-widths { display: flex; align-items: center; gap: 2px; padding-block: 4px; padding-inline: 10px 6px; color: var(--bt-muted); font: 500 12px/1 var(--bt-ui); }
|
||||||
.bt-deck-widths > span { margin-inline-end: auto; }
|
.bt-deck-widths > span { margin-inline-end: auto; }
|
||||||
.bt-menu .bt-deck-widths button { height: 24px; padding: 0 6px; border-radius: 6px; color: var(--bt-muted); font: 500 11px/1 var(--bt-mono); }
|
.bt-menu .bt-deck-widths button { height: 24px; padding: 0 6px; border-radius: calc(6px * var(--bt-rs, 1)); color: var(--bt-muted); font: 500 11px/1 var(--bt-mono); }
|
||||||
.bt-menu .bt-deck-widths button.is-on { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
.bt-menu .bt-deck-widths button.is-on { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
||||||
|
|
||||||
/* Buttons ----------------------------------------------------------------------------------- */
|
/* Buttons ----------------------------------------------------------------------------------- */
|
||||||
.bt-deck-primary, .bt-deck-secondary {
|
.bt-deck-primary, .bt-deck-secondary {
|
||||||
display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer;
|
display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: calc(9px * var(--bt-rs, 1)); cursor: pointer;
|
||||||
font: 600 13px/1 var(--bt-ui); transition: filter var(--bt-t1) var(--bt-ease), background-color var(--bt-t1) var(--bt-ease);
|
font: 600 13px/1 var(--bt-ui); transition: filter var(--bt-t1) var(--bt-ease), background-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-deck-primary { background: var(--bt-accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(29, 155, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
|
.bt-deck-primary { background: var(--bt-accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(29, 155, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
|
||||||
|
|
@ -155,7 +155,7 @@
|
||||||
.bt-deck-empty-keys { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px !important; font-size: 12px !important; color: var(--bt-faint) !important; }
|
.bt-deck-empty-keys { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px !important; font-size: 12px !important; color: var(--bt-faint) !important; }
|
||||||
.bt-deck-empty-keys > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
.bt-deck-empty-keys > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
||||||
.bt-deck-empty-art { display: flex; gap: 6px; height: 64px; align-items: flex-end; }
|
.bt-deck-empty-art { display: flex; gap: 6px; height: 64px; align-items: flex-end; }
|
||||||
.bt-deck-empty-art span { width: 30px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, rgba(79, 107, 255, .5), rgba(34, 211, 238, .12)); box-shadow: inset 0 0 0 1px rgba(159, 211, 255, .2); animation: bt-rise var(--bt-t3) var(--bt-ease-out) both; }
|
.bt-deck-empty-art span { width: 30px; border-radius: calc(7px * var(--bt-rs, 1)) calc(7px * var(--bt-rs, 1)) calc(2px * var(--bt-rs, 1)) calc(2px * var(--bt-rs, 1)); background: linear-gradient(180deg, rgba(79, 107, 255, .5), rgba(34, 211, 238, .12)); box-shadow: inset 0 0 0 1px rgba(159, 211, 255, .2); animation: bt-rise var(--bt-t3) var(--bt-ease-out) both; }
|
||||||
.bt-deck-empty-art span:nth-child(1) { height: 64px; }
|
.bt-deck-empty-art span:nth-child(1) { height: 64px; }
|
||||||
.bt-deck-empty-art span:nth-child(2) { height: 52px; }
|
.bt-deck-empty-art span:nth-child(2) { height: 52px; }
|
||||||
.bt-deck-empty-art span:nth-child(3) { height: 58px; }
|
.bt-deck-empty-art span:nth-child(3) { height: 58px; }
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
.bt-addcol-head .bt-icon { margin-inline-start: auto; align-self: center; }
|
.bt-addcol-head .bt-icon { margin-inline-start: auto; align-self: center; }
|
||||||
.bt-addcol-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 16px 6px; }
|
.bt-addcol-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 16px 6px; }
|
||||||
.bt-addcol-type {
|
.bt-addcol-type {
|
||||||
display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 12px; border: 0; border-radius: 11px; cursor: pointer; text-align: start;
|
display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 12px; border: 0; border-radius: calc(11px * var(--bt-rs, 1)); cursor: pointer; text-align: start;
|
||||||
background: rgba(238, 240, 247, .035); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .06); color: var(--bt-text-2);
|
background: rgba(238, 240, 247, .035); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .06); color: var(--bt-text-2);
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), box-shadow var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out);
|
transition: background-color var(--bt-t1) var(--bt-ease), box-shadow var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out);
|
||||||
}
|
}
|
||||||
|
|
@ -178,24 +178,24 @@
|
||||||
.bt-addcol-type.is-on { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1.5px rgba(29, 155, 240, .6); color: var(--bt-text); }
|
.bt-addcol-type.is-on { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1.5px rgba(29, 155, 240, .6); color: var(--bt-text); }
|
||||||
.bt-addcol-type strong { font: 650 13.5px/1.1 var(--bt-ui); color: var(--bt-text); }
|
.bt-addcol-type strong { font: 650 13.5px/1.1 var(--bt-ui); color: var(--bt-text); }
|
||||||
.bt-addcol-type small { color: var(--bt-muted); font: 400 11.5px/1.35 var(--bt-ui); }
|
.bt-addcol-type small { color: var(--bt-muted); font: 400 11.5px/1.35 var(--bt-ui); }
|
||||||
.bt-addcol-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(238, 240, 247, .06); color: var(--bt-muted); }
|
.bt-addcol-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: calc(8px * var(--bt-rs, 1)); background: rgba(238, 240, 247, .06); color: var(--bt-muted); }
|
||||||
.bt-addcol-type.is-on .bt-addcol-icon { background: rgba(29, 155, 240, .22); color: #bfe0ff; }
|
.bt-addcol-type.is-on .bt-addcol-icon { background: rgba(29, 155, 240, .22); color: #bfe0ff; }
|
||||||
.bt-addcol-icon .bt-glyph { width: 15px; height: 15px; }
|
.bt-addcol-icon .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-addcol-value { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 4px; }
|
.bt-addcol-value { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 4px; }
|
||||||
.bt-addcol-value label, .bt-addcol-label { color: var(--bt-faint); font: 600 10.5px/1 var(--bt-ui); letter-spacing: .08em; text-transform: uppercase; }
|
.bt-addcol-value label, .bt-addcol-label { color: var(--bt-faint); font: 600 10.5px/1 var(--bt-ui); letter-spacing: .08em; text-transform: uppercase; }
|
||||||
.bt-addcol-field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line); }
|
.bt-addcol-field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: calc(10px * var(--bt-rs, 1)); background: var(--bt-field); box-shadow: inset 0 0 0 1px var(--bt-line); }
|
||||||
.bt-addcol-field:focus-within { box-shadow: var(--bt-ring); }
|
.bt-addcol-field:focus-within { box-shadow: var(--bt-ring); }
|
||||||
.bt-addcol-field.is-bad { box-shadow: 0 0 0 1px rgba(229, 72, 77, .7); }
|
.bt-addcol-field.is-bad { box-shadow: 0 0 0 1px rgba(229, 72, 77, .7); }
|
||||||
.bt-addcol-field .bt-glyph { color: var(--bt-muted); }
|
.bt-addcol-field .bt-glyph { color: var(--bt-muted); }
|
||||||
.bt-addcol-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bt-text); font: 500 14px/1 var(--bt-mono); outline: none; user-select: text; }
|
.bt-addcol-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bt-text); font: 500 14px/1 var(--bt-mono); outline: none; user-select: text; }
|
||||||
.bt-addcol-field input::placeholder { color: var(--bt-faint); }
|
.bt-addcol-field input::placeholder { color: var(--bt-faint); }
|
||||||
.bt-addcol-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
.bt-addcol-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||||
.bt-addcol-chips button { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(238, 240, 247, .06); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .08); color: var(--bt-text-2); font: 500 12px/1 var(--bt-mono); cursor: pointer; }
|
.bt-addcol-chips button { height: 26px; padding: 0 10px; border: 0; border-radius: calc(999px * var(--bt-rs, 1)); background: rgba(238, 240, 247, .06); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .08); color: var(--bt-text-2); font: 500 12px/1 var(--bt-mono); cursor: pointer; }
|
||||||
.bt-addcol-chips button[aria-selected=true] { background: var(--bt-accent-soft); color: var(--bt-accent-ink); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .35); }
|
.bt-addcol-chips button[aria-selected=true] { background: var(--bt-accent-soft); color: var(--bt-accent-ink); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .35); }
|
||||||
.bt-addcol-error { margin: 0; color: #ff9a9e; font-size: 12px; }
|
.bt-addcol-error { margin: 0; color: #ff9a9e; font-size: 12px; }
|
||||||
.bt-addcol-accounts { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 8px; }
|
.bt-addcol-accounts { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 8px; }
|
||||||
.bt-addcol-accounts > div { display: flex; flex-wrap: wrap; gap: 6px; }
|
.bt-addcol-accounts > div { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||||
.bt-addcol-account { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-block: 0; padding-inline: 6px 12px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(238, 240, 247, .04); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .07); color: var(--bt-text-2); font: 550 12.5px/1 var(--bt-ui); }
|
.bt-addcol-account { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-block: 0; padding-inline: 6px 12px; border: 0; border-radius: calc(999px * var(--bt-rs, 1)); cursor: pointer; background: rgba(238, 240, 247, .04); box-shadow: inset 0 0 0 1px rgba(238, 240, 247, .07); color: var(--bt-text-2); font: 550 12.5px/1 var(--bt-ui); }
|
||||||
.bt-addcol-account:hover { background: rgba(238, 240, 247, .08); }
|
.bt-addcol-account:hover { background: rgba(238, 240, 247, .08); }
|
||||||
.bt-addcol-account.is-on { box-shadow: inset 0 0 0 1.5px var(--bt-col-account); color: var(--bt-text); background: color-mix(in srgb, var(--bt-col-account) 12%, transparent); }
|
.bt-addcol-account.is-on { box-shadow: inset 0 0 0 1.5px var(--bt-col-account); color: var(--bt-text); background: color-mix(in srgb, var(--bt-col-account) 12%, transparent); }
|
||||||
.bt-addcol-account em { color: var(--bt-faint); font: italic 400 11px/1 var(--bt-ui); }
|
.bt-addcol-account em { color: var(--bt-faint); font: italic 400 11px/1 var(--bt-ui); }
|
||||||
|
|
|
||||||
154
packages/shell/src/frame/edges.css
Normal file
154
packages/shell/src/frame/edges.css
Normal file
|
|
@ -0,0 +1,154 @@
|
||||||
|
/*
|
||||||
|
* Bevelled chrome: the app's own window drawn like the theme it shows when that theme is built from
|
||||||
|
* raised and sunken edges (a Windows 98 theme). chromeVars() sets `--wb-c-edges: bevel` and the edge
|
||||||
|
* colors; themeStore (and boot.js on the first frame) mirror it on `html[data-wb-edges=bevel]`.
|
||||||
|
*
|
||||||
|
* The edges are 98.css's (MIT, (c) Jordan Scales, https://github.com/jdan/98.css): a raised part has a
|
||||||
|
* highlight and a light line on its top and left and a shadow and a near-black line on its bottom and
|
||||||
|
* right; a sunken field has the same four lines the other way round. Here they come from the theme's
|
||||||
|
* own face color (--wb-c-face, --wb-c-bevel-*), so any palette can be bevelled.
|
||||||
|
*
|
||||||
|
* Square corners come from the radius scale (the theme's radius 0 makes --bt-rs 0); this file only
|
||||||
|
* draws faces, edges, the title bar and selection. Global only: a pane with another theme keeps its
|
||||||
|
* colors, fonts and radii under these edges.
|
||||||
|
*/
|
||||||
|
html[data-wb-edges=bevel] {
|
||||||
|
--bt-bv-face: var(--wb-c-face, #c0c0c0); --bt-bv-text: var(--wb-c-face-text, #000000);
|
||||||
|
--bt-bv-hi: var(--wb-c-bevel-hi, #ffffff); --bt-bv-lt: var(--wb-c-bevel-lt, #dfdfdf); --bt-bv-sh: var(--wb-c-bevel-sh, #808080); --bt-bv-dk: var(--wb-c-bevel-dk, #0a0a0a);
|
||||||
|
--bt-bv-out: inset -1px -1px var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px -2px var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
|
--bt-bv-window: inset -1px -1px var(--bt-bv-dk), inset 1px 1px var(--bt-bv-lt), inset -2px -2px var(--bt-bv-sh), inset 2px 2px var(--bt-bv-hi);
|
||||||
|
--bt-bv-in: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-sh), inset -2px -2px var(--bt-bv-lt), inset 2px 2px var(--bt-bv-dk);
|
||||||
|
--bt-bv-pressed: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-dk), inset -2px -2px var(--bt-bv-lt), inset 2px 2px var(--bt-bv-sh);
|
||||||
|
--bt-bv-etched: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-sh), inset -2px -2px var(--bt-bv-sh), inset 2px 2px var(--bt-bv-hi);
|
||||||
|
--bt-bv-title: linear-gradient(90deg, var(--wb-c-title-from, #000080), var(--wb-c-title-to, #1084d0));
|
||||||
|
--bt-bv-title-text: var(--wb-c-title-text, #ffffff);
|
||||||
|
--bt-bv-select: var(--wb-c-select, #000080); --bt-bv-select-text: var(--wb-c-select-text, #ffffff);
|
||||||
|
/* The shell's surfaces become the face; text fields stay the theme's background. */
|
||||||
|
--bt-ground: var(--bt-bv-face); --bt-chrome: var(--bt-bv-face); --bt-field: var(--wb-c-ground, #ffffff); --bt-raised: var(--bt-bv-face); --bt-raised-2: var(--bt-bv-face);
|
||||||
|
--bt-text: var(--bt-bv-text); --bt-text-2: var(--bt-bv-text);
|
||||||
|
--bt-hover: transparent; --bt-press: transparent; --bt-shadow-pop: var(--bt-bv-window);
|
||||||
|
--bt-ring: 0 0 0 1px var(--bt-bv-dk);
|
||||||
|
}
|
||||||
|
html[data-wb-edges=bevel] :where(.bt-shell, .bt-menu, .bt-palette, .bt-media, .btp) :focus-visible { outline: 1px dotted var(--bt-bv-text); outline-offset: -4px; }
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* Title bar: the active window's gradient across the tab row; tabs are a tab control on its floor. */
|
||||||
|
html[data-wb-edges=bevel] .bt-shell { background: var(--bt-bv-title) top / 100% var(--bt-titlebar-h) no-repeat, var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell--empty .bt-titlebar { background: var(--bt-bv-title); }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar > .dv-tabs-and-actions-container { background: transparent; }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-and-actions-container { background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab {
|
||||||
|
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text);
|
||||||
|
height: 28px; margin: 8px 2px 0 0; box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
|
}
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-container .dv-tab { height: 30px; margin-top: 14px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-inactive-tab:hover { --bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); }
|
||||||
|
/* The selected tab stands 2px taller and runs into the toolbar under it, like a 98 tab control. */
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-active-tab,
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab {
|
||||||
|
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); z-index: 1; font-weight: 700;
|
||||||
|
box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
|
}
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-container .dv-tab.dv-active-tab { height: 32px; margin-top: 12px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-active-tab::after { display: none; }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab { font-weight: 400; }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab:has(.bt-tab--pinned) + .dv-tab:not(:has(.bt-tab--pinned))::before { background: var(--bt-bv-sh); }
|
||||||
|
html[data-wb-edges=bevel] .bt-tab-close { color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-tab-close:hover { background: transparent; box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .bt-tab-close:active { box-shadow: var(--bt-bv-pressed); }
|
||||||
|
/* Things drawn straight on the title bar take its label color. */
|
||||||
|
html[data-wb-edges=bevel] .bt-group--in-titlebar .bt-group-actions .bt-icon,
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-overflow-dropdown-default { color: var(--bt-bv-title-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-group--in-titlebar .bt-group-actions .bt-icon:hover { color: var(--bt-bv-text); background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
|
/* Caption buttons: three small raised buttons, the close one apart. */
|
||||||
|
html[data-wb-edges=bevel] .bt-captions { align-items: center; gap: 2px; padding-inline-end: 6px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-caption { width: 22px; height: 20px; color: var(--bt-bv-text); background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .bt-caption:hover { background: var(--bt-bv-face); color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-caption:active { box-shadow: var(--bt-bv-pressed); }
|
||||||
|
html[data-wb-edges=bevel] .bt-caption--close { margin-inline-start: 2px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-caption--close:hover, html[data-wb-edges=bevel] .bt-caption--close:active { background: var(--bt-bv-face); color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-shell .bt-caption svg { width: 8px; height: 8px; stroke-width: 2; }
|
||||||
|
/* Titlebar buttons (account switcher, update chip, workspaces) are raised buttons on the title bar. */
|
||||||
|
html[data-wb-edges=bevel] :is(.bt-profile-switcher, .bt-update-chip, .bt-ws-button) { border: 0; background: var(--bt-bv-face); color: var(--bt-bv-text); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] :is(.bt-profile-switcher, .bt-update-chip, .bt-ws-button):hover { background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] :is(.bt-profile-switcher[aria-expanded=true], .bt-update-chip:active, .bt-ws-button[aria-expanded=true]) { box-shadow: var(--bt-bv-pressed); }
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* Toolbar: flat buttons that rise under the pointer, a sunken address field, the wB button raised. */
|
||||||
|
html[data-wb-edges=bevel] .bt-addressbar { background: var(--bt-bv-face); border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .bt-icon { color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-icon:hover:not(:disabled) { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .bt-icon:active:not(:disabled) { box-shadow: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-sh); }
|
||||||
|
html[data-wb-edges=bevel] .bt-icon:disabled { color: var(--bt-bv-sh); }
|
||||||
|
html[data-wb-edges=bevel] .bt-omni { border: 0; background: var(--bt-field); box-shadow: var(--bt-bv-in); padding-inline: 6px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-omni:hover { box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .bt-omni:focus-within, html[data-wb-edges=bevel] .bt-omni:focus-visible { box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .bt-omni-progress { background: var(--bt-bv-select); }
|
||||||
|
html[data-wb-edges=bevel] .bt-brand-button { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .bt-brand-button:hover { border: 0; background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .bt-brand-button:active, html[data-wb-edges=bevel] .bt-pane-menu[aria-expanded=true] { background: var(--bt-bv-face); box-shadow: var(--bt-bv-pressed); }
|
||||||
|
html[data-wb-edges=bevel] .bt-brand-button:hover .bt-wb { transform: none; }
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* Menus, the palette, popovers: a window edge on the face; the row under the pointer is selected. */
|
||||||
|
html[data-wb-edges=bevel] :is(.bt-menu, .bt-palette) { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-window); color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu { padding: 3px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button { height: 26px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button:hover:not(:disabled), html[data-wb-edges=bevel] .bt-menu button:focus-visible,
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button[aria-expanded=true] { background: var(--bt-bv-select); color: var(--bt-bv-select-text); outline: 0; }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button:hover:not(:disabled) :is(.bt-glyph, .bt-menu-keys, small, svg),
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button:focus-visible :is(.bt-glyph, .bt-menu-keys, small, svg),
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button[aria-expanded=true] :is(.bt-glyph, .bt-menu-keys, small, svg) { color: var(--bt-bv-select-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button > .bt-glyph { color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu button:disabled { color: var(--bt-bv-sh); text-shadow: 1px 1px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu-keys { color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .bt-menu hr { border-top: 1px solid var(--bt-bv-sh); border-bottom: 1px solid var(--bt-bv-hi); margin: 3px 2px; }
|
||||||
|
html[data-wb-edges=bevel] .bt-palette::before { display: none; }
|
||||||
|
html[data-wb-edges=bevel] .bt-palette-field { border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .bt-palette-backdrop { background: transparent; }
|
||||||
|
html[data-wb-edges=bevel] .bt-kbd { background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); color: var(--bt-bv-text); }
|
||||||
|
/* Text fields and steppers inside menus are sunken. */
|
||||||
|
html[data-wb-edges=bevel] .bt-menu :is(input[type=text], input:not([type]), .bt-app-zoom-step, .bt-deck-input) { border: 0; background: var(--bt-field); box-shadow: var(--bt-bv-in); }
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* The settings panel: a dialog face, etched group boxes, raised buttons, sunken fields, a selected
|
||||||
|
* section in the title bar's color. */
|
||||||
|
html[data-wb-edges=bevel] .btp {
|
||||||
|
--c-ground: var(--bt-bv-face); --c-chrome: var(--bt-bv-face); --c-card: var(--bt-bv-face); --c-raise: var(--bt-bv-face); --c-popover: var(--bt-bv-face);
|
||||||
|
--c-text: var(--bt-bv-text); --c-line: var(--bt-bv-sh); --c-line-soft: var(--bt-bv-sh); --c-line-strong: var(--bt-bv-dk);
|
||||||
|
--c-accent: var(--bt-bv-select); --c-accent-ink: var(--bt-bv-select-text); --c-brush: var(--bt-bv-title);
|
||||||
|
letter-spacing: 0; -webkit-font-smoothing: auto;
|
||||||
|
}
|
||||||
|
html[data-wb-edges=bevel] .btp-head { background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .btp-head::after { opacity: 1; height: 2px; background: none; box-shadow: inset 0 1px var(--bt-bv-sh), inset 0 -1px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .btp-nav { border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .btp-nav button { color: var(--bt-bv-text); }
|
||||||
|
html[data-wb-edges=bevel] .btp-nav button:hover { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .btp-nav button.is-on { background: var(--bt-bv-select); color: var(--bt-bv-select-text); box-shadow: none; }
|
||||||
|
html[data-wb-edges=bevel] .btp-nav button.is-on svg { color: var(--bt-bv-select-text); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-card { border: 0; box-shadow: var(--bt-bv-etched); padding: 2px; }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button) { border: 0; background: var(--bt-bv-face); color: var(--bt-bv-text); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button):hover:not(:disabled) { border: 0; background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-stepper button, .bt-inputrow button):active:not(:disabled) { transform: none; box-shadow: var(--bt-bv-pressed); }
|
||||||
|
/* The default button carries the extra dark frame of a 98 dialog's default button. */
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-btn.is-primary { box-shadow: inset 0 0 0 1px var(--bt-bv-dk), inset -2px -2px var(--bt-bv-dk), inset 2px 2px var(--bt-bv-hi), inset -3px -3px var(--bt-bv-sh), inset 3px 3px var(--bt-bv-lt); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-btn.is-ghost { box-shadow: none; }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-btn.is-ghost:hover:not(:disabled) { box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-btn:disabled { opacity: 1; color: var(--bt-bv-sh); text-shadow: 1px 1px var(--bt-bv-hi); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-btn.is-danger { background: var(--bt-bv-face); color: var(--c-danger); }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search, .bt-hex, .bt-code, .wb-builder-name) { border: 0; background: var(--wb-c-ground, #ffffff); box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search):is(:focus, :focus-within) { box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-seg { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-seg-thumb { background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-toggle { box-shadow: var(--bt-bv-in); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-toggle-knob { box-shadow: var(--bt-bv-out); background: var(--bt-bv-face); }
|
||||||
|
html[data-wb-edges=bevel] .btp :is(.bt-select-list, .bt-popover) { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-window); }
|
||||||
|
html[data-wb-edges=bevel] .btp .bt-select-list li.is-active { background: var(--bt-bv-select); color: var(--bt-bv-select-text); }
|
||||||
|
|
||||||
|
/* Classic scrollbars: a dithered track, raised thumb and arrows. */
|
||||||
|
html[data-wb-edges=bevel] :is(.bt-shell, .bt-menu, .bt-palette, .btp) * { scrollbar-width: auto; scrollbar-color: auto; }
|
||||||
|
html[data-wb-edges=bevel] ::-webkit-scrollbar { width: 16px; height: 16px; }
|
||||||
|
html[data-wb-edges=bevel] ::-webkit-scrollbar-track { background: repeating-conic-gradient(var(--bt-bv-face) 0 25%, var(--bt-bv-hi) 0 50%) 0 0 / 2px 2px; }
|
||||||
|
html[data-wb-edges=bevel] ::-webkit-scrollbar-thumb { background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); border-radius: 0; }
|
||||||
|
html[data-wb-edges=bevel] ::-webkit-scrollbar-button:single-button { display: block; width: 16px; height: 16px; background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
|
html[data-wb-edges=bevel] ::-webkit-scrollbar-corner { background: var(--bt-bv-face); }
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* Theme swatches (page, text, accent) and the "Theme for this pane" menu. */
|
/* Theme swatches (page, text, accent) and the "Theme for this pane" menu. */
|
||||||
.wb-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 18px; padding: 0 5px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .28); }
|
.wb-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 18px; padding: 0 5px; border-radius: calc(6px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .28); }
|
||||||
.wb-dots i { width: 7px; height: 7px; border-radius: 50%; }
|
.wb-dots i { width: 7px; height: 7px; border-radius: 50%; }
|
||||||
.wb-pane-menu { width: 272px; }
|
.wb-pane-menu { width: 272px; }
|
||||||
.wb-pane-menu-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px 6px; color: var(--bt-muted); font: 600 11px/1 var(--bt-ui); letter-spacing: .04em; text-transform: uppercase; }
|
.wb-pane-menu-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px 6px; color: var(--bt-muted); font: 600 11px/1 var(--bt-ui); letter-spacing: .04em; text-transform: uppercase; }
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@
|
||||||
--bt-ring: 0 0 0 1px rgb(var(--bt-accent-rgb) / .55), 0 0 0 4px rgb(var(--bt-accent-rgb) / .16);
|
--bt-ring: 0 0 0 1px rgb(var(--bt-accent-rgb) / .55), 0 0 0 4px rgb(var(--bt-accent-rgb) / .16);
|
||||||
--bt-shadow-pop: var(--wb-c-shadow-pop, 0 18px 44px -14px rgba(0, 0, 0, .75), 0 3px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .035));
|
--bt-shadow-pop: var(--wb-c-shadow-pop, 0 18px 44px -14px rgba(0, 0, 0, .75), 0 3px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .035));
|
||||||
--bt-ui: var(--wb-f-chrome, 'Geist Variable', system-ui, sans-serif); --bt-mono: var(--wb-f-mono, 'Geist Mono Variable', ui-monospace, monospace);
|
--bt-ui: var(--wb-f-chrome, 'Geist Variable', system-ui, sans-serif); --bt-mono: var(--wb-f-mono, 'Geist Mono Variable', ui-monospace, monospace);
|
||||||
|
/* Radii scale with the theme's corners (chromeVars: --wb-c-rs, the theme radius / 12): every px
|
||||||
|
radius in the chrome is calc(<px> * var(--bt-rs, 1)), so a square theme gets a square window. */
|
||||||
|
--bt-rs: var(--wb-c-rs, 1);
|
||||||
|
--bt-r1: calc(6px * var(--bt-rs)); --bt-r2: calc(8px * var(--bt-rs)); --bt-r3: calc(10px * var(--bt-rs)); --bt-r4: calc(12px * var(--bt-rs)); --bt-r5: calc(14px * var(--bt-rs));
|
||||||
color-scheme: var(--wb-c-scheme, dark);
|
color-scheme: var(--wb-c-scheme, dark);
|
||||||
}
|
}
|
||||||
.wb-pane-theme { --bt-bg: var(--bt-ground); --bt-surface: var(--bt-chrome); --bt-surface-2: var(--bt-field); }
|
.wb-pane-theme { --bt-bg: var(--bt-ground); --bt-surface: var(--bt-chrome); --bt-surface-2: var(--bt-field); }
|
||||||
|
|
@ -27,7 +31,6 @@
|
||||||
--bt-danger: #e5484d;
|
--bt-danger: #e5484d;
|
||||||
--bt-brush: linear-gradient(90deg, #4f6bff, #22d3ee 55%, #a855f7);
|
--bt-brush: linear-gradient(90deg, #4f6bff, #22d3ee 55%, #a855f7);
|
||||||
--bt-s1: 4px; --bt-s2: 8px; --bt-s3: 12px; --bt-s4: 16px; --bt-s5: 24px; --bt-s6: 32px;
|
--bt-s1: 4px; --bt-s2: 8px; --bt-s3: 12px; --bt-s4: 16px; --bt-s5: 24px; --bt-s6: 32px;
|
||||||
--bt-r1: 6px; --bt-r2: 8px; --bt-r3: 10px; --bt-r4: 12px; --bt-r5: 14px;
|
|
||||||
--bt-ease: cubic-bezier(.2, .7, .2, 1); --bt-ease-out: cubic-bezier(.16, 1, .3, 1);
|
--bt-ease: cubic-bezier(.2, .7, .2, 1); --bt-ease-out: cubic-bezier(.16, 1, .3, 1);
|
||||||
--bt-t1: 120ms; --bt-t2: 180ms; --bt-t3: 320ms;
|
--bt-t1: 120ms; --bt-t2: 180ms; --bt-t3: 320ms;
|
||||||
--bt-titlebar-h: 44px; --bt-toolbar-h: 48px; --bt-resize-border: 5px;
|
--bt-titlebar-h: 44px; --bt-toolbar-h: 48px; --bt-resize-border: 5px;
|
||||||
|
|
@ -57,13 +60,13 @@ html, body, #root { height: 100%; margin: 0; overflow: hidden; background: var(-
|
||||||
:where(.bt-shell, .bt-menu, .bt-palette, .bt-media) :focus-visible { outline: 2px solid rgb(var(--bt-accent-rgb) / .8); outline-offset: 1px; }
|
:where(.bt-shell, .bt-menu, .bt-palette, .bt-media) :focus-visible { outline: 2px solid rgb(var(--bt-accent-rgb) / .8); outline-offset: 1px; }
|
||||||
:where(.bt-palette-list, .bt-profile-menu, .bt-start, .bt-media-body, .dv-tabs-overflow-container) { scrollbar-width: thin; scrollbar-color: var(--bt-line-strong) transparent; }
|
:where(.bt-palette-list, .bt-profile-menu, .bt-start, .bt-media-body, .dv-tabs-overflow-container) { scrollbar-width: thin; scrollbar-color: var(--bt-line-strong) transparent; }
|
||||||
|
|
||||||
.bt-kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 5px; background: rgb(var(--bt-text-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), inset 0 -1px 0 rgb(var(--bt-text-rgb) / .05); color: var(--bt-text-2); font: 500 10.5px/1 var(--bt-mono); }
|
.bt-kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: calc(5px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), inset 0 -1px 0 rgb(var(--bt-text-rgb) / .05); color: var(--bt-text-2); font: 500 10.5px/1 var(--bt-mono); }
|
||||||
.bt-kbd + .bt-kbd { margin-inline-start: 3px; }
|
.bt-kbd + .bt-kbd { margin-inline-start: 3px; }
|
||||||
|
|
||||||
.bt-avatar--image { overflow: hidden; position: relative; }
|
.bt-avatar--image { overflow: hidden; position: relative; }
|
||||||
.bt-avatar--image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
|
.bt-avatar--image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
|
||||||
.bt-avatar--image::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
|
.bt-avatar--image::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
|
||||||
.bt-profile-signin { margin-inline-start: auto; font: 600 12px/1 var(--bt-ui); color: var(--bt-accent); background: rgb(var(--bt-accent-rgb) / .12); border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
|
.bt-profile-signin { margin-inline-start: auto; font: 600 12px/1 var(--bt-ui); color: var(--bt-accent); background: rgb(var(--bt-accent-rgb) / .12); border: 0; border-radius: calc(999px * var(--bt-rs, 1)); padding: 6px 10px; cursor: pointer; }
|
||||||
.bt-profile-signin:hover { background: rgb(var(--bt-accent-rgb) / .2); }
|
.bt-profile-signin:hover { background: rgb(var(--bt-accent-rgb) / .2); }
|
||||||
.bt-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--bt-ui); font-weight: 650; line-height: 1; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -6px 10px -6px rgba(0, 0, 0, .25); user-select: none; }
|
.bt-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--bt-ui); font-weight: 650; line-height: 1; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -6px 10px -6px rgba(0, 0, 0, .25); user-select: none; }
|
||||||
|
|
||||||
|
|
@ -111,7 +114,7 @@ html[data-update] { --bt-tb-right: calc(138px + 48px + 184px + 184px + var(--bt-
|
||||||
html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + var(--bt-tb-menu) + var(--bt-tb-extra, 0px)); }
|
html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + var(--bt-tb-menu) + var(--bt-tb-extra, 0px)); }
|
||||||
.bt-update-chip {
|
.bt-update-chip {
|
||||||
align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 28px; margin-right: 8px; padding: 0 12px 0 10px; /* rtl-ok: titlebar */
|
align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 28px; margin-right: 8px; padding: 0 12px 0 10px; /* rtl-ok: titlebar */
|
||||||
border: 1px solid transparent; border-radius: 14px; color: var(--bt-text); font: 500 12px/1 var(--bt-ui); white-space: nowrap; cursor: pointer;
|
border: 1px solid transparent; border-radius: calc(14px * var(--bt-rs, 1)); color: var(--bt-text); font: 500 12px/1 var(--bt-ui); white-space: nowrap; cursor: pointer;
|
||||||
background: linear-gradient(var(--bt-field), var(--bt-field)) padding-box, var(--bt-brush) border-box;
|
background: linear-gradient(var(--bt-field), var(--bt-field)) padding-box, var(--bt-brush) border-box;
|
||||||
transition: background var(--bt-t1) var(--bt-ease);
|
transition: background var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
|
|
@ -127,7 +130,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
/* Account switcher (titlebar). Width is reserved in --bt-tb-right. */
|
/* Account switcher (titlebar). Width is reserved in --bt-tb-right. */
|
||||||
.bt-profile-switcher {
|
.bt-profile-switcher {
|
||||||
align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 176px; height: 30px; margin-right: 8px; padding: 0 9px 0 4px; box-sizing: border-box; /* rtl-ok: titlebar */
|
align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 176px; height: 30px; margin-right: 8px; padding: 0 9px 0 4px; box-sizing: border-box; /* rtl-ok: titlebar */
|
||||||
border: 1px solid var(--bt-line-soft); border-radius: 15px; background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
border: 1px solid var(--bt-line-soft); border-radius: calc(15px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-profile-switcher:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); }
|
.bt-profile-switcher:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); }
|
||||||
|
|
@ -191,7 +194,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
* Tabs: floating pills. They shrink to 52px (favicon only), then the strip scrolls and dockview adds its "N more" list. */
|
* Tabs: floating pills. They shrink to 52px (favicon only), then the strip scrolls and dockview adds its "N more" list. */
|
||||||
.bt-shell .dv-tabs-container .dv-tab {
|
.bt-shell .dv-tabs-container .dv-tab {
|
||||||
--bt-tab-bg: var(--bt-ground); --bt-tab-fg: var(--bt-muted);
|
--bt-tab-bg: var(--bt-ground); --bt-tab-fg: var(--bt-muted);
|
||||||
height: 30px; margin: 5px 2px 0 0; padding: 0; border-radius: 9px; box-sizing: border-box;
|
height: 30px; margin: 5px 2px 0 0; padding: 0; border-radius: calc(9px * var(--bt-rs, 1)); box-sizing: border-box;
|
||||||
width: 224px; min-width: 52px; flex: 0 1 auto;
|
width: 224px; min-width: 52px; flex: 0 1 auto;
|
||||||
/* Dockview colors tabs with higher-specificity rules; the pill states below only set these two variables. */
|
/* Dockview colors tabs with higher-specificity rules; the pill states below only set these two variables. */
|
||||||
color: var(--bt-tab-fg) !important; background-color: var(--bt-tab-bg) !important; box-shadow: none;
|
color: var(--bt-tab-fg) !important; background-color: var(--bt-tab-bg) !important; box-shadow: none;
|
||||||
|
|
@ -205,7 +208,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
}
|
}
|
||||||
/* The brush marks the focused pane's tab; other panes keep a plain raised pill. */
|
/* The brush marks the focused pane's tab; other panes keep a plain raised pill. */
|
||||||
.bt-shell .dv-tabs-container .dv-tab.dv-active-tab::after {
|
.bt-shell .dv-tabs-container .dv-tab.dv-active-tab::after {
|
||||||
content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
|
content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: calc(2px * var(--bt-rs, 1)) calc(2px * var(--bt-rs, 1)) 0 0;
|
||||||
background: var(--bt-brush); opacity: .95; pointer-events: none;
|
background: var(--bt-brush); opacity: .95; pointer-events: none;
|
||||||
}
|
}
|
||||||
.bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab { --bt-tab-bg: var(--bt-field); --bt-tab-fg: var(--bt-text-2); }
|
.bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab { --bt-tab-bg: var(--bt-field); --bt-tab-fg: var(--bt-text-2); }
|
||||||
|
|
@ -223,13 +226,13 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
.bt-tab { container-type: inline-size; height: 100%; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding-block: 0; padding-inline: 10px 5px; min-width: 0; user-select: none; font: 500 12.5px/1 var(--bt-ui); letter-spacing: .005em; }
|
.bt-tab { container-type: inline-size; height: 100%; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding-block: 0; padding-inline: 10px 5px; min-width: 0; user-select: none; font: 500 12.5px/1 var(--bt-ui); letter-spacing: .005em; }
|
||||||
.bt-tab--pinned { justify-content: center; padding: 0; }
|
.bt-tab--pinned { justify-content: center; padding: 0; }
|
||||||
.bt-tab-icon { position: relative; display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; }
|
.bt-tab-icon { position: relative; display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; }
|
||||||
.bt-favicon { width: 16px !important; height: 16px !important; flex: 0 0 16px; border-radius: 4px; color: var(--bt-muted); }
|
.bt-favicon { width: 16px !important; height: 16px !important; flex: 0 0 16px; border-radius: calc(4px * var(--bt-rs, 1)); color: var(--bt-muted); }
|
||||||
.bt-favicon--img { animation: bt-fade-in var(--bt-t2) var(--bt-ease); }
|
.bt-favicon--img { animation: bt-fade-in var(--bt-t2) var(--bt-ease); }
|
||||||
.bt-shell .bt-favicon--glyph { width: 15px !important; height: 15px !important; }
|
.bt-shell .bt-favicon--glyph { width: 15px !important; height: 15px !important; }
|
||||||
.bt-tab-account { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bt-tab-bg, var(--bt-raised)); transition: box-shadow var(--bt-t1) var(--bt-ease); }
|
.bt-tab-account { position: absolute; inset-inline-end: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bt-tab-bg, var(--bt-raised)); transition: box-shadow var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-tab-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
|
.bt-tab-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
|
||||||
.bt-tab--loading .bt-tab-title { color: var(--bt-text-2); }
|
.bt-tab--loading .bt-tab-title { color: var(--bt-text-2); }
|
||||||
.bt-tab-close { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--bt-muted); cursor: pointer; opacity: 0; transition: opacity var(--bt-t1) var(--bt-ease), background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-tab-close { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: calc(6px * var(--bt-rs, 1)); background: transparent; color: var(--bt-muted); cursor: pointer; opacity: 0; transition: opacity var(--bt-t1) var(--bt-ease), background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-shell .bt-tab-close svg { width: 13px; height: 13px; stroke-width: 2; }
|
.bt-shell .bt-tab-close svg { width: 13px; height: 13px; stroke-width: 2; }
|
||||||
.dv-tab:hover .bt-tab-close, .dv-active-tab .bt-tab-close, .bt-tab-close:focus-visible { opacity: 1; }
|
.dv-tab:hover .bt-tab-close, .dv-active-tab .bt-tab-close, .bt-tab-close:focus-visible { opacity: 1; }
|
||||||
.dv-inactive-tab .bt-tab-close { color: var(--bt-faint); }
|
.dv-inactive-tab .bt-tab-close { color: var(--bt-faint); }
|
||||||
|
|
@ -253,7 +256,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
|
|
||||||
.bt-group-actions { height: 100%; display: flex; align-items: center; padding: 0 4px 0 2px; }
|
.bt-group-actions { height: 100%; display: flex; align-items: center; padding: 0 4px 0 2px; }
|
||||||
.bt-group--in-titlebar .bt-group-actions { padding-top: 0; }
|
.bt-group--in-titlebar .bt-group-actions { padding-top: 0; }
|
||||||
.bt-group-actions .bt-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
|
.bt-group-actions .bt-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: calc(8px * var(--bt-rs, 1)); }
|
||||||
.bt-group--in-titlebar .bt-group-actions .bt-icon { margin-top: 0; }
|
.bt-group--in-titlebar .bt-group-actions .bt-icon { margin-top: 0; }
|
||||||
.bt-shell .bt-newtab svg { width: 15px; height: 15px; }
|
.bt-shell .bt-newtab svg { width: 15px; height: 15px; }
|
||||||
|
|
||||||
|
|
@ -263,7 +266,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
}
|
}
|
||||||
.bt-shell .dv-tabs-overflow-dropdown-root { display: flex; align-items: center; height: 100%; }
|
.bt-shell .dv-tabs-overflow-dropdown-root { display: flex; align-items: center; height: 100%; }
|
||||||
.bt-shell .dv-tabs-overflow-dropdown-default {
|
.bt-shell .dv-tabs-overflow-dropdown-default {
|
||||||
height: 26px; margin: 0 2px 0 4px; padding: 0 8px 0 6px; gap: 2px; box-sizing: border-box; border-radius: 8px;
|
height: 26px; margin: 0 2px 0 4px; padding: 0 8px 0 6px; gap: 2px; box-sizing: border-box; border-radius: calc(8px * var(--bt-rs, 1));
|
||||||
background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px var(--bt-line); color: var(--bt-text-2);
|
background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px var(--bt-line); color: var(--bt-text-2);
|
||||||
font: 500 11.5px/1 var(--bt-mono); font-variant-numeric: tabular-nums; transition: background-color var(--bt-t1) var(--bt-ease);
|
font: 500 11.5px/1 var(--bt-mono); font-variant-numeric: tabular-nums; transition: background-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
|
|
@ -306,14 +309,14 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
.bt-omni--edit { padding-inline-start: 10px; gap: 8px; }
|
.bt-omni--edit { padding-inline-start: 10px; gap: 8px; }
|
||||||
.bt-shell .bt-omni-lead { width: 15px; height: 15px; color: var(--bt-muted); }
|
.bt-shell .bt-omni-lead { width: 15px; height: 15px; color: var(--bt-muted); }
|
||||||
.bt-chip-site {
|
.bt-chip-site {
|
||||||
display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-block: 0; padding-inline: 6px 8px; margin-inline-end: 2px; flex: 0 0 auto; border: 0; border-radius: 7px;
|
display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-block: 0; padding-inline: 6px 8px; margin-inline-end: 2px; flex: 0 0 auto; border: 0; border-radius: calc(7px * var(--bt-rs, 1));
|
||||||
background: var(--bt-accent-soft); color: var(--bt-accent-ink); font: 600 12.5px/1 var(--bt-ui); letter-spacing: .005em; cursor: pointer;
|
background: var(--bt-accent-soft); color: var(--bt-accent-ink); font: 600 12.5px/1 var(--bt-ui); letter-spacing: .005em; cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-chip-site:hover { background: rgb(var(--bt-accent-rgb) / .22); }
|
.bt-chip-site:hover { background: rgb(var(--bt-accent-rgb) / .22); }
|
||||||
.bt-chip-site img { width: 14px; height: 14px; border-radius: 3px; }
|
.bt-chip-site img { width: 14px; height: 14px; border-radius: calc(3px * var(--bt-rs, 1)); }
|
||||||
.bt-chip-insecure { display: inline-flex; align-items: center; flex: 0 0 auto; height: 22px; margin-inline-end: 2px; padding: 0 8px; border-radius: 6px; background: rgba(245, 158, 11, .12); color: #fbbf24; font: 600 11.5px/1 var(--bt-ui); }
|
.bt-chip-insecure { display: inline-flex; align-items: center; flex: 0 0 auto; height: 22px; margin-inline-end: 2px; padding: 0 8px; border-radius: calc(6px * var(--bt-rs, 1)); background: rgba(245, 158, 11, .12); color: #fbbf24; font: 600 11.5px/1 var(--bt-ui); }
|
||||||
.bt-seg { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; border: 0; background: transparent; color: var(--bt-text-2); font: 500 13px/1 var(--bt-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-seg { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border-radius: calc(6px * var(--bt-rs, 1)); border: 0; background: transparent; color: var(--bt-text-2); font: 500 13px/1 var(--bt-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-seg:hover { background: var(--bt-hover); color: var(--bt-text); }
|
.bt-seg:hover { background: var(--bt-hover); color: var(--bt-text); }
|
||||||
.bt-seg[aria-current] { cursor: text; background: none; color: var(--bt-text); font-weight: 600; }
|
.bt-seg[aria-current] { cursor: text; background: none; color: var(--bt-text); font-weight: 600; }
|
||||||
.bt-seg--mono { font: 500 12.5px/1 var(--bt-mono); color: var(--bt-text-2); }
|
.bt-seg--mono { font: 500 12.5px/1 var(--bt-mono); color: var(--bt-text-2); }
|
||||||
|
|
@ -321,7 +324,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
.bt-sep { flex: 0 0 auto; color: var(--bt-faint); font: 400 14px/1 var(--bt-ui); padding: 0 1px; opacity: .8; }
|
.bt-sep { flex: 0 0 auto; color: var(--bt-faint); font: 400 14px/1 var(--bt-ui); padding: 0 1px; opacity: .8; }
|
||||||
.bt-omni-raw { flex: 1; min-width: 0; padding-inline-start: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12.5px var(--bt-mono); color: var(--bt-muted); }
|
.bt-omni-raw { flex: 1; min-width: 0; padding-inline-start: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12.5px var(--bt-mono); color: var(--bt-muted); }
|
||||||
.bt-omni-fill { flex: 1; min-width: 8px; align-self: stretch; }
|
.bt-omni-fill { flex: 1; min-width: 8px; align-self: stretch; }
|
||||||
.bt-omni-action { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--bt-faint); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-omni-action { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: calc(7px * var(--bt-rs, 1)); background: transparent; color: var(--bt-faint); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-omni:hover .bt-omni-action { color: var(--bt-muted); }
|
.bt-omni:hover .bt-omni-action { color: var(--bt-muted); }
|
||||||
.bt-omni-action:hover { background: var(--bt-hover); color: var(--bt-text) !important; }
|
.bt-omni-action:hover { background: var(--bt-hover); color: var(--bt-text) !important; }
|
||||||
.bt-shell .bt-omni-action svg { width: 14px; height: 14px; }
|
.bt-shell .bt-omni-action svg { width: 14px; height: 14px; }
|
||||||
|
|
@ -329,22 +332,22 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
.bt-omni input:focus-visible { outline: 0; }
|
.bt-omni input:focus-visible { outline: 0; }
|
||||||
.bt-omni input::selection { background: rgb(var(--bt-accent-rgb) / .35); }
|
.bt-omni input::selection { background: rgb(var(--bt-accent-rgb) / .35); }
|
||||||
.bt-omni-ops { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
|
.bt-omni-ops { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
|
||||||
.bt-omni-op { flex: 0 0 auto; height: 22px; padding: 0 8px; border: 1px solid var(--bt-line); border-radius: 6px; background: var(--bt-chrome); color: var(--bt-muted); font: 500 11.5px var(--bt-mono); cursor: pointer; }
|
.bt-omni-op { flex: 0 0 auto; height: 22px; padding: 0 8px; border: 1px solid var(--bt-line); border-radius: calc(6px * var(--bt-rs, 1)); background: var(--bt-chrome); color: var(--bt-muted); font: 500 11.5px var(--bt-mono); cursor: pointer; }
|
||||||
.bt-omni-op[aria-selected=true] { color: var(--bt-accent-ink); border-color: rgb(var(--bt-accent-rgb) / .5); background: var(--bt-accent-soft); }
|
.bt-omni-op[aria-selected=true] { color: var(--bt-accent-ink); border-color: rgb(var(--bt-accent-rgb) / .5); background: var(--bt-accent-soft); }
|
||||||
.bt-omni-op:hover { color: var(--bt-text); border-color: var(--bt-accent); }
|
.bt-omni-op:hover { color: var(--bt-text); border-color: var(--bt-accent); }
|
||||||
.bt-omni-progress { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px; background: var(--bt-brush); transform-origin: left; animation: bt-load 1.2s ease-in-out infinite; pointer-events: none; }
|
.bt-omni-progress { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: calc(2px * var(--bt-rs, 1)); background: var(--bt-brush); transform-origin: left; animation: bt-load 1.2s ease-in-out infinite; pointer-events: none; }
|
||||||
@keyframes bt-load { 0% { transform: scaleX(.05); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.95); opacity: .3; } }
|
@keyframes bt-load { 0% { transform: scaleX(.05); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.95); opacity: .3; } }
|
||||||
@media (prefers-reduced-motion: reduce) { .bt-omni-progress { animation: none; transform: scaleX(.6); } }
|
@media (prefers-reduced-motion: reduce) { .bt-omni-progress { animation: none; transform: scaleX(.6); } }
|
||||||
|
|
||||||
/* split + wayBetter buttons */
|
/* split + wayBetter buttons */
|
||||||
.bt-split { position: relative; display: flex; align-items: center; }
|
.bt-split { position: relative; display: flex; align-items: center; }
|
||||||
.bt-split .bt-split-main { border-start-start-radius: 8px; border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: 8px; }
|
.bt-split .bt-split-main { border-start-start-radius: calc(8px * var(--bt-rs, 1)); border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: calc(8px * var(--bt-rs, 1)); }
|
||||||
.bt-split .bt-split-more { width: 18px; flex-basis: 18px; border-start-start-radius: 0; border-start-end-radius: 8px; border-end-end-radius: 8px; border-end-start-radius: 0; }
|
.bt-split .bt-split-more { width: 18px; flex-basis: 18px; border-start-start-radius: 0; border-start-end-radius: calc(8px * var(--bt-rs, 1)); border-end-end-radius: calc(8px * var(--bt-rs, 1)); border-end-start-radius: 0; }
|
||||||
.bt-shell .bt-split-more svg { width: 12px; height: 12px; }
|
.bt-shell .bt-split-more svg { width: 12px; height: 12px; }
|
||||||
.bt-menu.bt-split-menu { position: absolute; top: 40px; inset-inline-end: 0; z-index: 20; min-width: 200px; }
|
.bt-menu.bt-split-menu { position: absolute; top: 40px; inset-inline-end: 0; z-index: 20; min-width: 200px; }
|
||||||
.bt-brand-button {
|
.bt-brand-button {
|
||||||
display: inline-flex; align-items: center; gap: 7px; height: 32px; margin-inline-start: 6px; padding-block: 0; padding-inline: 9px 12px; flex: 0 0 auto;
|
display: inline-flex; align-items: center; gap: 7px; height: 32px; margin-inline-start: 6px; padding-block: 0; padding-inline: 9px 12px; flex: 0 0 auto;
|
||||||
border: 1px solid var(--bt-line); border-radius: 9px; background: rgb(var(--bt-text-rgb) / .02); color: var(--bt-text); font: 600 12.5px/1 var(--bt-ui); cursor: pointer;
|
border: 1px solid var(--bt-line); border-radius: calc(9px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .02); color: var(--bt-text); font: 600 12.5px/1 var(--bt-ui); cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-brand-button:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); }
|
.bt-brand-button:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); }
|
||||||
|
|
@ -357,7 +360,7 @@ html[data-os=macos][data-update] { --bt-tb-right: calc(48px + 184px + 184px + va
|
||||||
@container pane (max-width: 640px) {
|
@container pane (max-width: 640px) {
|
||||||
.bt-brand-button { padding: 0; width: 36px; min-width: 36px; }
|
.bt-brand-button { padding: 0; width: 36px; min-width: 36px; }
|
||||||
.bt-split .bt-split-more { display: none; }
|
.bt-split .bt-split-more { display: none; }
|
||||||
.bt-split .bt-split-main { border-radius: 8px; }
|
.bt-split .bt-split-main { border-radius: calc(8px * var(--bt-rs, 1)); }
|
||||||
}
|
}
|
||||||
@container pane (max-width: 420px) {
|
@container pane (max-width: 420px) {
|
||||||
.bt-addressbar > .bt-icon[aria-label=Forward], .bt-split { display: none; }
|
.bt-addressbar > .bt-icon[aria-label=Forward], .bt-split { display: none; }
|
||||||
|
|
@ -405,7 +408,7 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
border-radius: var(--bt-r4); background: var(--bt-raised); border: 1px solid var(--bt-line-strong); box-shadow: var(--bt-shadow-pop);
|
border-radius: var(--bt-r4); background: var(--bt-raised); border: 1px solid var(--bt-line-strong); box-shadow: var(--bt-shadow-pop);
|
||||||
color: var(--bt-text); font: 500 13px/1.3 var(--bt-ui); user-select: none;
|
color: var(--bt-text); font: 500 13px/1.3 var(--bt-ui); user-select: none;
|
||||||
}
|
}
|
||||||
.bt-menu button { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--bt-text); font: inherit; text-align: start; cursor: pointer; transition: background-color 80ms var(--bt-ease); }
|
.bt-menu button { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: calc(7px * var(--bt-rs, 1)); background: transparent; color: var(--bt-text); font: inherit; text-align: start; cursor: pointer; transition: background-color 80ms var(--bt-ease); }
|
||||||
.bt-menu button:hover:not(:disabled), .bt-menu button:focus-visible { background: var(--bt-hover); outline: 0; }
|
.bt-menu button:hover:not(:disabled), .bt-menu button:focus-visible { background: var(--bt-hover); outline: 0; }
|
||||||
.bt-menu button:active:not(:disabled) { background: var(--bt-press); }
|
.bt-menu button:active:not(:disabled) { background: var(--bt-press); }
|
||||||
.bt-menu button:disabled { color: var(--bt-faint); cursor: default; }
|
.bt-menu button:disabled { color: var(--bt-faint); cursor: default; }
|
||||||
|
|
@ -421,9 +424,9 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-profile-menu-head { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; }
|
.bt-profile-menu-head { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; }
|
||||||
.bt-profile-menu-head strong { font: 600 13px/1.2 var(--bt-ui); color: var(--bt-text); }
|
.bt-profile-menu-head strong { font: 600 13px/1.2 var(--bt-ui); color: var(--bt-text); }
|
||||||
.bt-profile-menu-head span { font: 400 12px/1.3 var(--bt-ui); color: var(--bt-muted); }
|
.bt-profile-menu-head span { font: 400 12px/1.3 var(--bt-ui); color: var(--bt-muted); }
|
||||||
.bt-profile-row { position: relative; display: flex; align-items: center; border-radius: 9px; }
|
.bt-profile-row { position: relative; display: flex; align-items: center; border-radius: calc(9px * var(--bt-rs, 1)); }
|
||||||
.bt-profile-row.is-active { background: rgb(var(--bt-text-rgb) / .035); }
|
.bt-profile-row.is-active { background: rgb(var(--bt-text-rgb) / .035); }
|
||||||
.bt-menu .bt-profile-pick { flex: 1; min-width: 0; height: auto; gap: 11px; padding: 7px 8px; border-radius: 9px; }
|
.bt-menu .bt-profile-pick { flex: 1; min-width: 0; height: auto; gap: 11px; padding: 7px 8px; border-radius: calc(9px * var(--bt-rs, 1)); }
|
||||||
.bt-profile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
.bt-profile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
||||||
.bt-profile-name { font: 600 13.5px/1.15 var(--bt-ui); color: var(--bt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-profile-name { font: 600 13.5px/1.15 var(--bt-ui); color: var(--bt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-profile-meta { font: 400 12px/1.2 var(--bt-ui); color: var(--bt-muted); font-variant-numeric: tabular-nums; }
|
.bt-profile-meta { font: 400 12px/1.2 var(--bt-ui); color: var(--bt-muted); font-variant-numeric: tabular-nums; }
|
||||||
|
|
@ -437,9 +440,9 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-menu .bt-profile-action { width: 28px; height: 28px; padding: 0; justify-content: center; color: var(--bt-muted); }
|
.bt-menu .bt-profile-action { width: 28px; height: 28px; padding: 0; justify-content: center; color: var(--bt-muted); }
|
||||||
.bt-menu .bt-profile-action:hover:not(:disabled) { color: var(--bt-text); background: var(--bt-press); }
|
.bt-menu .bt-profile-action:hover:not(:disabled) { color: var(--bt-text); background: var(--bt-press); }
|
||||||
.bt-profile-action .bt-glyph { width: 15px; height: 15px; }
|
.bt-profile-action .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-profile-edit { display: flex; flex-direction: column; gap: 10px; padding: 7px 8px 9px; border-radius: 9px; background: rgb(var(--bt-text-rgb) / .035); }
|
.bt-profile-edit { display: flex; flex-direction: column; gap: 10px; padding: 7px 8px 9px; border-radius: calc(9px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .035); }
|
||||||
.bt-profile-edit-row { display: flex; align-items: center; gap: 11px; }
|
.bt-profile-edit-row { display: flex; align-items: center; gap: 11px; }
|
||||||
.bt-profile-name-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 8px; background: var(--bt-field); box-shadow: var(--bt-ring); color: var(--bt-text); font: 500 13.5px/1 var(--bt-ui); outline: none; user-select: text; }
|
.bt-profile-name-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: calc(8px * var(--bt-rs, 1)); background: var(--bt-field); box-shadow: var(--bt-ring); color: var(--bt-text); font: 500 13.5px/1 var(--bt-ui); outline: none; user-select: text; }
|
||||||
.bt-profile-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 41px; }
|
.bt-profile-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 41px; }
|
||||||
.bt-menu .bt-profile-swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform var(--bt-t1) var(--bt-ease); }
|
.bt-menu .bt-profile-swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-menu .bt-profile-swatch:hover { transform: scale(1.12); background-color: revert; }
|
.bt-menu .bt-profile-swatch:hover { transform: scale(1.12); background-color: revert; }
|
||||||
|
|
@ -449,7 +452,7 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-profile-add-icon .bt-glyph { width: 14px; height: 14px; }
|
.bt-profile-add-icon .bt-glyph { width: 14px; height: 14px; }
|
||||||
.bt-menu .bt-profile-add:hover .bt-profile-add-icon { box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .6); color: var(--bt-accent-ink); }
|
.bt-menu .bt-profile-add:hover .bt-profile-add-icon { box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .6); color: var(--bt-accent-ink); }
|
||||||
.bt-profile-foot { margin: 2px 10px 6px; color: var(--bt-faint); font: 400 11.5px/1.4 var(--bt-ui); }
|
.bt-profile-foot { margin: 2px 10px 6px; color: var(--bt-faint); font: 400 11.5px/1.4 var(--bt-ui); }
|
||||||
.bt-profile-confirm { display: flex; flex-direction: column; gap: 10px; margin: 1px 0; padding: 10px 12px; border-radius: 9px; background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui); }
|
.bt-profile-confirm { display: flex; flex-direction: column; gap: 10px; margin: 1px 0; padding: 10px 12px; border-radius: calc(9px * var(--bt-rs, 1)); background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui); }
|
||||||
.bt-profile-confirm strong { color: var(--bt-text); font-weight: 600; }
|
.bt-profile-confirm strong { color: var(--bt-text); font-weight: 600; }
|
||||||
.bt-profile-confirm div { display: flex; gap: 6px; }
|
.bt-profile-confirm div { display: flex; gap: 6px; }
|
||||||
.bt-menu .bt-profile-confirm button { height: 28px; padding: 0 12px; font-weight: 600; font-size: 12.5px; }
|
.bt-menu .bt-profile-confirm button { height: 28px; padding: 0 12px; font-weight: 600; font-size: 12.5px; }
|
||||||
|
|
@ -475,15 +478,15 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-palette-list { flex: 1; overflow-y: auto; padding: 6px; }
|
.bt-palette-list { flex: 1; overflow-y: auto; padding: 6px; }
|
||||||
.bt-palette-group { padding: 12px 10px 6px; color: var(--bt-faint); font: 600 10.5px/1 var(--bt-ui); letter-spacing: .08em; text-transform: uppercase; }
|
.bt-palette-group { padding: 12px 10px 6px; color: var(--bt-faint); font: 600 10.5px/1 var(--bt-ui); letter-spacing: .08em; text-transform: uppercase; }
|
||||||
.bt-palette-group:first-child { padding-top: 6px; }
|
.bt-palette-group:first-child { padding-top: 6px; }
|
||||||
.bt-palette-item { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; box-sizing: border-box; border-radius: 9px; cursor: pointer; color: var(--bt-text-2); }
|
.bt-palette-item { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; box-sizing: border-box; border-radius: calc(9px * var(--bt-rs, 1)); cursor: pointer; color: var(--bt-text-2); }
|
||||||
.bt-palette-item[aria-selected=true] { background: rgb(var(--bt-text-rgb) / .055); color: var(--bt-text); }
|
.bt-palette-item[aria-selected=true] { background: rgb(var(--bt-text-rgb) / .055); color: var(--bt-text); }
|
||||||
.bt-palette-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .05); color: var(--bt-muted); transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-palette-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: calc(7px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .04); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .05); color: var(--bt-muted); transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-palette-icon img { width: 16px; height: 16px; border-radius: 4px; }
|
.bt-palette-icon img { width: 16px; height: 16px; border-radius: calc(4px * var(--bt-rs, 1)); }
|
||||||
.bt-palette-icon .bt-glyph { width: 15px; height: 15px; }
|
.bt-palette-icon .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-palette-item[aria-selected=true] .bt-palette-icon { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .3); color: var(--bt-accent-ink); }
|
.bt-palette-item[aria-selected=true] .bt-palette-icon { background: var(--bt-accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .3); color: var(--bt-accent-ink); }
|
||||||
.bt-palette-label { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
.bt-palette-label { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
||||||
.bt-palette-hint { margin-inline-start: auto; color: var(--bt-faint); font: 400 11.5px/1.2 var(--bt-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; flex-shrink: 0; }
|
.bt-palette-hint { margin-inline-start: auto; color: var(--bt-faint); font: 400 11.5px/1.2 var(--bt-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; flex-shrink: 0; }
|
||||||
.bt-palette-hint--tag { padding: 3px 7px; border-radius: 6px; background: rgb(var(--bt-text-rgb) / .06); color: var(--bt-muted); font: 500 11px/1.2 var(--bt-ui); }
|
.bt-palette-hint--tag { padding: 3px 7px; border-radius: calc(6px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .06); color: var(--bt-muted); font: 500 11px/1.2 var(--bt-ui); }
|
||||||
.bt-palette-hint--tag.is-match { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
.bt-palette-hint--tag.is-match { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
||||||
.bt-palette-enter { width: 14px; flex: none; color: var(--bt-muted); font: 500 12px/1 var(--bt-mono); opacity: 0; }
|
.bt-palette-enter { width: 14px; flex: none; color: var(--bt-muted); font: 500 12px/1 var(--bt-mono); opacity: 0; }
|
||||||
.bt-palette-item[aria-selected=true] .bt-palette-enter { opacity: .8; }
|
.bt-palette-item[aria-selected=true] .bt-palette-enter { opacity: .8; }
|
||||||
|
|
@ -503,11 +506,11 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
var(--bt-ground);
|
var(--bt-ground);
|
||||||
}
|
}
|
||||||
.bt-start-inner { max-width: 660px; margin: 0 auto; padding: clamp(40px, 13vh, 132px) 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
|
.bt-start-inner { max-width: 660px; margin: 0 auto; padding: clamp(40px, 13vh, 132px) 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
|
||||||
.bt-start-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(180deg, var(--bt-raised-2), var(--bt-chrome)); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), inset 0 1px 0 rgb(var(--bt-text-rgb) / .06), 0 24px 60px -24px rgba(79, 107, 255, .65); }
|
.bt-start-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: calc(18px * var(--bt-rs, 1)); background: linear-gradient(180deg, var(--bt-raised-2), var(--bt-chrome)); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), inset 0 1px 0 rgb(var(--bt-text-rgb) / .06), 0 24px 60px -24px rgba(79, 107, 255, .65); }
|
||||||
.bt-start-mark img { border-radius: 9px; -webkit-user-drag: none; }
|
.bt-start-mark img { border-radius: calc(9px * var(--bt-rs, 1)); -webkit-user-drag: none; }
|
||||||
.bt-start-search {
|
.bt-start-search {
|
||||||
width: 100%; height: 52px; display: flex; align-items: center; gap: 12px; padding-block: 0; padding-inline: 17px 12px; box-sizing: border-box;
|
width: 100%; height: 52px; display: flex; align-items: center; gap: 12px; padding-block: 0; padding-inline: 17px 12px; box-sizing: border-box;
|
||||||
border-radius: 14px; background: var(--bt-chrome); border: 1px solid var(--bt-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9);
|
border-radius: calc(14px * var(--bt-rs, 1)); background: var(--bt-chrome); border: 1px solid var(--bt-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9);
|
||||||
transition: border-color var(--bt-t1) var(--bt-ease), box-shadow var(--bt-t2) var(--bt-ease);
|
transition: border-color var(--bt-t1) var(--bt-ease), box-shadow var(--bt-t2) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-start-search:hover { border-color: var(--bt-line-strong); }
|
.bt-start-search:hover { border-color: var(--bt-line-strong); }
|
||||||
|
|
@ -523,7 +526,7 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-start-accounts .bt-start-label { margin-inline-end: 6px; }
|
.bt-start-accounts .bt-start-label { margin-inline-end: 6px; }
|
||||||
.bt-start-account {
|
.bt-start-account {
|
||||||
display: inline-flex; align-items: center; gap: 7px; height: 30px; padding-block: 0; padding-inline: 5px 12px; box-sizing: border-box;
|
display: inline-flex; align-items: center; gap: 7px; height: 30px; padding-block: 0; padding-inline: 5px 12px; box-sizing: border-box;
|
||||||
border: 1px solid var(--bt-line-soft); border-radius: 15px; background: transparent; color: var(--bt-muted); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
border: 1px solid var(--bt-line-soft); border-radius: calc(15px * var(--bt-rs, 1)); background: transparent; color: var(--bt-muted); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-start-account:hover { background: var(--bt-hover); color: var(--bt-text-2); }
|
.bt-start-account:hover { background: var(--bt-hover); color: var(--bt-text-2); }
|
||||||
|
|
@ -537,16 +540,16 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r4); background: rgb(var(--bt-text-rgb) / .02); color: var(--bt-text-2); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r4); background: rgb(var(--bt-text-rgb) / .02); color: var(--bt-text-2); font: 500 12.5px/1 var(--bt-ui); cursor: pointer;
|
||||||
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out);
|
transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out);
|
||||||
}
|
}
|
||||||
.bt-start-link-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--bt-field); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .05); color: var(--bt-muted); transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-start-link-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: calc(11px * var(--bt-rs, 1)); background: var(--bt-field); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .05); color: var(--bt-muted); transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-start-link-icon .bt-glyph { width: 18px; height: 18px; }
|
.bt-start-link-icon .bt-glyph { width: 18px; height: 18px; }
|
||||||
.bt-start-link-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-start-link-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-start-link:hover { background: rgb(var(--bt-text-rgb) / .045); border-color: var(--bt-line); color: var(--bt-text); transform: translateY(-1px); }
|
.bt-start-link:hover { background: rgb(var(--bt-text-rgb) / .045); border-color: var(--bt-line); color: var(--bt-text); transform: translateY(-1px); }
|
||||||
.bt-start-link:hover .bt-start-link-icon { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
.bt-start-link:hover .bt-start-link-icon { background: var(--bt-accent-soft); color: var(--bt-accent-ink); }
|
||||||
.bt-start-link:active { transform: translateY(0) scale(.985); }
|
.bt-start-link:active { transform: translateY(0) scale(.985); }
|
||||||
.bt-start-recent { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r4); background: rgb(var(--bt-text-rgb) / .015); }
|
.bt-start-recent { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r4); background: rgb(var(--bt-text-rgb) / .015); }
|
||||||
.bt-start-row { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 8px; background: transparent; color: var(--bt-text-2); font: 500 13px/1 var(--bt-ui); text-align: start; cursor: pointer; transition: background-color 80ms var(--bt-ease), color 80ms var(--bt-ease); }
|
.bt-start-row { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 10px; box-sizing: border-box; border: 0; border-radius: calc(8px * var(--bt-rs, 1)); background: transparent; color: var(--bt-text-2); font: 500 13px/1 var(--bt-ui); text-align: start; cursor: pointer; transition: background-color 80ms var(--bt-ease), color 80ms var(--bt-ease); }
|
||||||
.bt-start-row:hover { background: var(--bt-hover); color: var(--bt-text); }
|
.bt-start-row:hover { background: var(--bt-hover); color: var(--bt-text); }
|
||||||
.bt-start-row-icon { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 4px; color: var(--bt-muted); }
|
.bt-start-row-icon { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: calc(4px * var(--bt-rs, 1)); color: var(--bt-muted); }
|
||||||
.bt-start-row-icon .bt-glyph { width: 15px; height: 15px; }
|
.bt-start-row-icon .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-start-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-start-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-start-row-host { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bt-faint); font: 400 11.5px/1 var(--bt-mono); }
|
.bt-start-row-host { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bt-faint); font: 400 11.5px/1 var(--bt-mono); }
|
||||||
|
|
@ -561,8 +564,8 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-media { width: min(380px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bt-raised); border-inline-start: 1px solid var(--bt-line); box-shadow: -24px 0 60px rgba(0, 0, 0, .45); font: 14px/1.3 var(--bt-ui); color: var(--bt-text); animation: bt-slide-in var(--bt-t2) var(--bt-ease-out); }
|
.bt-media { width: min(380px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bt-raised); border-inline-start: 1px solid var(--bt-line); box-shadow: -24px 0 60px rgba(0, 0, 0, .45); font: 14px/1.3 var(--bt-ui); color: var(--bt-text); animation: bt-slide-in var(--bt-t2) var(--bt-ease-out); }
|
||||||
[dir="rtl"] .bt-media { box-shadow: 24px 0 60px rgba(0, 0, 0, .45); animation-name: bt-slide-in-rtl; }
|
[dir="rtl"] .bt-media { box-shadow: 24px 0 60px rgba(0, 0, 0, .45); animation-name: bt-slide-in-rtl; }
|
||||||
.bt-media-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding-block: 0; padding-inline: 12px 10px; box-sizing: border-box; border-bottom: 1px solid var(--bt-line); }
|
.bt-media-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding-block: 0; padding-inline: 12px 10px; box-sizing: border-box; border-bottom: 1px solid var(--bt-line); }
|
||||||
.bt-media-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgb(var(--bt-text-rgb) / .045); }
|
.bt-media-tabs { display: flex; gap: 2px; padding: 3px; border-radius: calc(10px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .045); }
|
||||||
.bt-media-tabs button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--bt-muted); font: 500 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
.bt-media-tabs button { height: 28px; padding: 0 12px; border: 0; border-radius: calc(7px * var(--bt-rs, 1)); background: transparent; color: var(--bt-muted); font: 500 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-media-tabs button:hover { color: var(--bt-text-2); }
|
.bt-media-tabs button:hover { color: var(--bt-text-2); }
|
||||||
.bt-media-tabs button.active { color: var(--bt-text); background: var(--bt-raised-2); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), 0 1px 2px rgba(0, 0, 0, .4); }
|
.bt-media-tabs button.active { color: var(--bt-text); background: var(--bt-raised-2); box-shadow: inset 0 0 0 1px rgb(var(--bt-text-rgb) / .07), 0 1px 2px rgba(0, 0, 0, .4); }
|
||||||
.bt-media .bt-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
|
.bt-media .bt-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
|
||||||
|
|
@ -571,33 +574,33 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-media-empty { color: var(--bt-muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 2px; }
|
.bt-media-empty { color: var(--bt-muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 2px; }
|
||||||
.bt-media-empty p { margin: 0; }
|
.bt-media-empty p { margin: 0; }
|
||||||
.bt-media-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
|
.bt-media-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
|
||||||
.bt-media-link { border: 0; background: transparent; color: var(--bt-muted); cursor: pointer; font: 600 12px/1 var(--bt-ui); padding: 4px 6px; border-radius: 6px; }
|
.bt-media-link { border: 0; background: transparent; color: var(--bt-muted); cursor: pointer; font: 600 12px/1 var(--bt-ui); padding: 4px 6px; border-radius: calc(6px * var(--bt-rs, 1)); }
|
||||||
.bt-media-link:hover { color: var(--bt-text); background: var(--bt-hover); }
|
.bt-media-link:hover { color: var(--bt-text); background: var(--bt-hover); }
|
||||||
.bt-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
|
.bt-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
|
||||||
.bt-media-tile { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r2); overflow: hidden; background: rgb(var(--bt-text-rgb) / .03); cursor: pointer; transition: border-color var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out); }
|
.bt-media-tile { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--bt-line-soft); border-radius: var(--bt-r2); overflow: hidden; background: rgb(var(--bt-text-rgb) / .03); cursor: pointer; transition: border-color var(--bt-t1) var(--bt-ease), transform var(--bt-t2) var(--bt-ease-out); }
|
||||||
.bt-media-tile:hover, .bt-media-tile:focus-visible { border-color: rgb(var(--bt-text-rgb) / .5); outline: none; transform: scale(1.02); }
|
.bt-media-tile:hover, .bt-media-tile:focus-visible { border-color: rgb(var(--bt-text-rgb) / .5); outline: none; transform: scale(1.02); }
|
||||||
.bt-media-tile img, .bt-media-clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
.bt-media-tile img, .bt-media-clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||||
.bt-media-thumb-empty { display: block; width: 100%; height: 100%; }
|
.bt-media-thumb-empty { display: block; width: 100%; height: 100%; }
|
||||||
.bt-media-caption { position: absolute; inset-inline-end: 4px; bottom: 4px; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .62); color: #fff; font: 500 10.5px/1.3 var(--bt-mono); }
|
.bt-media-caption { position: absolute; inset-inline-end: 4px; bottom: 4px; padding: 2px 5px; border-radius: calc(5px * var(--bt-rs, 1)); background: rgba(0, 0, 0, .62); color: #fff; font: 500 10.5px/1.3 var(--bt-mono); }
|
||||||
.bt-media-clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
.bt-media-clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
||||||
.bt-media-clip { display: flex; align-items: center; gap: 4px; }
|
.bt-media-clip { display: flex; align-items: center; gap: 4px; }
|
||||||
.bt-media-clip-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--bt-r2); background: transparent; color: var(--bt-text); text-align: start; cursor: pointer; font: inherit; font-size: 13px; }
|
.bt-media-clip-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--bt-r2); background: transparent; color: var(--bt-text); text-align: start; cursor: pointer; font: inherit; font-size: 13px; }
|
||||||
.bt-media-clip-main:hover, .bt-media-clip-main:focus-visible { background: var(--bt-hover); outline: none; }
|
.bt-media-clip-main:hover, .bt-media-clip-main:focus-visible { background: var(--bt-hover); outline: none; }
|
||||||
.bt-media-clip-main small { margin-inline-start: auto; color: var(--bt-faint); font: 500 11px/1 var(--bt-mono); }
|
.bt-media-clip-main small { margin-inline-start: auto; color: var(--bt-faint); font: 500 11px/1 var(--bt-mono); }
|
||||||
.bt-media-clip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-media-clip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-media-clip-thumb { width: 48px; height: 48px; flex: none; border-radius: 7px; overflow: hidden; }
|
.bt-media-clip-thumb { width: 48px; height: 48px; flex: none; border-radius: calc(7px * var(--bt-rs, 1)); overflow: hidden; }
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Link drag (a link dragged out of a tab, or in from another app): drop zones with labels. */
|
* Link drag (a link dragged out of a tab, or in from another app): drop zones with labels. */
|
||||||
.bt-shell--link-drag .dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection,
|
.bt-shell--link-drag .dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection,
|
||||||
.bt-shell--link-drag .dv-drop-target-container .dv-drop-target-anchor {
|
.bt-shell--link-drag .dv-drop-target-container .dv-drop-target-anchor {
|
||||||
display: grid; place-items: center; overflow: hidden; box-sizing: border-box;
|
display: grid; place-items: center; overflow: hidden; box-sizing: border-box;
|
||||||
background: rgb(var(--bt-accent-rgb) / .1); border: 1.5px solid rgb(var(--bt-accent-rgb) / .85); border-radius: 12px;
|
background: rgb(var(--bt-accent-rgb) / .1); border: 1.5px solid rgb(var(--bt-accent-rgb) / .85); border-radius: calc(12px * var(--bt-rs, 1));
|
||||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 0 60px rgb(var(--bt-accent-rgb) / .12);
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 0 60px rgb(var(--bt-accent-rgb) / .12);
|
||||||
}
|
}
|
||||||
.bt-shell--link-drag .dv-drop-target-selection::after,
|
.bt-shell--link-drag .dv-drop-target-selection::after,
|
||||||
.bt-shell--link-drag .dv-drop-target-anchor::after {
|
.bt-shell--link-drag .dv-drop-target-anchor::after {
|
||||||
content: 'Open as tab'; padding: 8px 13px; border-radius: 999px; background: var(--bt-raised); color: var(--bt-text);
|
content: 'Open as tab'; padding: 8px 13px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--bt-raised); color: var(--bt-text);
|
||||||
font: 600 12px/1 var(--bt-ui); letter-spacing: .01em; white-space: nowrap;
|
font: 600 12px/1 var(--bt-ui); letter-spacing: .01em; white-space: nowrap;
|
||||||
box-shadow: inset 0 0 0 1px var(--bt-line-strong), 0 10px 30px -10px rgba(0, 0, 0, .8);
|
box-shadow: inset 0 0 0 1px var(--bt-line-strong), 0 10px 30px -10px rgba(0, 0, 0, .8);
|
||||||
animation: bt-pop-in var(--bt-t2) var(--bt-ease-out);
|
animation: bt-pop-in var(--bt-t2) var(--bt-ease-out);
|
||||||
|
|
@ -607,7 +610,7 @@ html.bt-raised .bt-deck :is(.bt-col-head, .bt-compose-head) { background-color:
|
||||||
.bt-shell--link-drag .dv-drop-target-selection.dv-drop-target-top::after, .bt-shell--link-drag .dv-drop-target-anchor.dv-drop-target-top::after { content: '\2191 Split up'; }
|
.bt-shell--link-drag .dv-drop-target-selection.dv-drop-target-top::after, .bt-shell--link-drag .dv-drop-target-anchor.dv-drop-target-top::after { content: '\2191 Split up'; }
|
||||||
.bt-shell--link-drag .dv-drop-target-selection.dv-drop-target-bottom::after, .bt-shell--link-drag .dv-drop-target-anchor.dv-drop-target-bottom::after { content: '\2193 Split down'; }
|
.bt-shell--link-drag .dv-drop-target-selection.dv-drop-target-bottom::after, .bt-shell--link-drag .dv-drop-target-anchor.dv-drop-target-bottom::after { content: '\2193 Split down'; }
|
||||||
/* Tab strip and the empty titlebar part of it: a new tab in that group. */
|
/* Tab strip and the empty titlebar part of it: a new tab in that group. */
|
||||||
.bt-shell--link-drag .dv-tabs-and-actions-container .dv-drop-target-selection { border-radius: 8px; }
|
.bt-shell--link-drag .dv-tabs-and-actions-container .dv-drop-target-selection { border-radius: calc(8px * var(--bt-rs, 1)); }
|
||||||
.bt-shell--link-drag .dv-tabs-and-actions-container .dv-drop-target-selection::after { content: '+ New tab'; padding: 4px 9px; font-size: 11px; }
|
.bt-shell--link-drag .dv-tabs-and-actions-container .dv-drop-target-selection::after { content: '+ New tab'; padding: 4px 9px; font-size: 11px; }
|
||||||
.bt-shell--link-drag .dv-drop-target-small-vertical::after,
|
.bt-shell--link-drag .dv-drop-target-small-vertical::after,
|
||||||
.bt-shell--link-drag .dv-drop-target-small-horizontal::after { content: none; }
|
.bt-shell--link-drag .dv-drop-target-small-horizontal::after { content: none; }
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { setChromeIconPack } from './iconPack.tsx';
|
||||||
import type { DockviewApi } from 'dockview';
|
import type { DockviewApi } from 'dockview';
|
||||||
import { BOOT_CACHE_KEY } from './boot.ts';
|
import { BOOT_CACHE_KEY } from './boot.ts';
|
||||||
import { invoke } from './bridge.ts';
|
import { invoke } from './bridge.ts';
|
||||||
import { CHROME_VAR_NAMES, chromeVars, type ChromeTheme } from './chromeTheme.ts';
|
import { CHROME_VAR_NAMES, chromeEdges, chromeVars, type ChromeTheme } from './chromeTheme.ts';
|
||||||
import { SCOPES_DEFAULT, normalizeScopes, prunePanes, themeIdFor, type ScopeSource, type ThemeScopes } from './themeScopes.ts';
|
import { SCOPES_DEFAULT, normalizeScopes, prunePanes, themeIdFor, type ScopeSource, type ThemeScopes } from './themeScopes.ts';
|
||||||
import { safe } from './safeStore.ts';
|
import { safe } from './safeStore.ts';
|
||||||
import { shell, type TabParams } from './state.ts';
|
import { shell, type TabParams } from './state.ts';
|
||||||
|
|
@ -192,6 +192,12 @@ export function createThemeStore<Choice, Spec extends ThemeDoc>(adapter: ThemeAd
|
||||||
for (const [name, value] of Object.entries(vars)) element.style.setProperty(name, value);
|
for (const [name, value] of Object.entries(vars)) element.style.setProperty(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The window's edge style (frame/edges.css). Global only: a pane theme brings its colors, fonts and radii, not its edges. */
|
||||||
|
function setEdges(edges: string | null) {
|
||||||
|
if (edges) document.documentElement.dataset.wbEdges = edges;
|
||||||
|
else delete document.documentElement.dataset.wbEdges;
|
||||||
|
}
|
||||||
|
|
||||||
function chromeFontsFor(theme: Spec) {
|
function chromeFontsFor(theme: Spec) {
|
||||||
for (const family of adapter.googleFonts(theme, ['chrome', 'mono'])) if (isInstalled(family)) void ensureShellFont(family);
|
for (const family of adapter.googleFonts(theme, ['chrome', 'mono'])) if (isInstalled(family)) void ensureShellFont(family);
|
||||||
}
|
}
|
||||||
|
|
@ -201,13 +207,14 @@ export function createThemeStore<Choice, Spec extends ThemeDoc>(adapter: ThemeAd
|
||||||
if (typeof document === 'undefined') return;
|
if (typeof document === 'undefined') return;
|
||||||
// Safe mode: the frame's own look, whatever the theme (a theme may be what broke the chrome). The
|
// Safe mode: the frame's own look, whatever the theme (a theme may be what broke the chrome). The
|
||||||
// first-frame cache is left alone, so the next normal start paints the owner's theme again.
|
// first-frame cache is left alone, so the next normal start paints the owner's theme again.
|
||||||
if (safe.active) { setVars(document.documentElement, {}); syncGroups(); return; }
|
if (safe.active) { setVars(document.documentElement, {}); setEdges(null); syncGroups(); return; }
|
||||||
if (!state.ready) return;
|
if (!state.ready) return;
|
||||||
const own = state.scopes.chrome === 'own';
|
const own = state.scopes.chrome === 'own';
|
||||||
const global = state.preview ?? adapter.resolve(state.choice);
|
const global = state.preview ?? adapter.resolve(state.choice);
|
||||||
chromeFontsFor(global);
|
chromeFontsFor(global);
|
||||||
const vars = chromeVars(adapter.chrome(global), own);
|
const vars = chromeVars(adapter.chrome(global), own);
|
||||||
setVars(document.documentElement, vars);
|
setVars(document.documentElement, vars);
|
||||||
|
setEdges(chromeEdges(vars));
|
||||||
try { setChromeIconPack(own ? null : adapter.iconPack?.(global, state.choice) ?? null); } catch { setChromeIconPack(null); }
|
try { setChromeIconPack(own ? null : adapter.iconPack?.(global, state.choice) ?? null); } catch { setChromeIconPack(null); }
|
||||||
// The next start paints these from its first frame (boot.ts); an editor's draft is not kept.
|
// The next start paints these from its first frame (boot.ts); an editor's draft is not kept.
|
||||||
if (!state.preview) { try { localStorage.setItem(BOOT_CACHE_KEY, JSON.stringify(vars)); } catch { /* Best effort. */ } }
|
if (!state.preview) { try { localStorage.setItem(BOOT_CACHE_KEY, JSON.stringify(vars)); } catch { /* Best effort. */ } }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
.bt-ws-button {
|
.bt-ws-button {
|
||||||
display: inline-flex; align-items: center; gap: 7px; height: 30px; max-width: 170px; padding-block: 0; padding-inline: 8px 10px; box-sizing: border-box;
|
display: inline-flex; align-items: center; gap: 7px; height: 30px; max-width: 170px; padding-block: 0; padding-inline: 8px 10px; box-sizing: border-box;
|
||||||
border: 1px solid var(--bt-line-soft); border-radius: 15px; background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text-2);
|
border: 1px solid var(--bt-line-soft); border-radius: calc(15px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text-2);
|
||||||
font: 500 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
font: 500 12.5px/1 var(--bt-ui); cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease), color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-ws-button:not(:has(.bt-ws-button-name)) { width: 30px; padding: 0; justify-content: center; }
|
.bt-ws-button:not(:has(.bt-ws-button-name)) { width: 30px; padding: 0; justify-content: center; }
|
||||||
|
|
@ -19,16 +19,16 @@
|
||||||
.bt-ws-head { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; }
|
.bt-ws-head { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; }
|
||||||
.bt-ws-head strong { font: 600 13px/1.2 var(--bt-ui); color: var(--bt-text); }
|
.bt-ws-head strong { font: 600 13px/1.2 var(--bt-ui); color: var(--bt-text); }
|
||||||
.bt-ws-head span { font: 400 12px/1.35 var(--bt-ui); color: var(--bt-muted); }
|
.bt-ws-head span { font: 400 12px/1.35 var(--bt-ui); color: var(--bt-muted); }
|
||||||
.bt-ws-empty { margin: 2px 6px 6px; padding: 10px 12px; border-radius: 9px; background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-muted); font: 400 12.5px/1.45 var(--bt-ui); }
|
.bt-ws-empty { margin: 2px 6px 6px; padding: 10px 12px; border-radius: calc(9px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-muted); font: 400 12.5px/1.45 var(--bt-ui); }
|
||||||
|
|
||||||
.bt-ws-row { position: relative; display: flex; align-items: center; border-radius: 10px; }
|
.bt-ws-row { position: relative; display: flex; align-items: center; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-ws-row.is-active { background: rgb(var(--bt-accent-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .22); }
|
.bt-ws-row.is-active { background: rgb(var(--bt-accent-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .22); }
|
||||||
.bt-ws-row.is-active::before { content: ''; position: absolute; inset-inline-start: -5px; top: 10px; height: 22px; width: 3px; border-start-start-radius: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; border-end-start-radius: 0; background: var(--bt-accent); }
|
.bt-ws-row.is-active::before { content: ''; position: absolute; inset-inline-start: -5px; top: 10px; height: 22px; width: 3px; border-start-start-radius: 0; border-start-end-radius: calc(3px * var(--bt-rs, 1)); border-end-end-radius: calc(3px * var(--bt-rs, 1)); border-end-start-radius: 0; background: var(--bt-accent); }
|
||||||
.bt-menu .bt-ws-main { flex: 1; min-width: 0; height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; border-radius: 10px; }
|
.bt-menu .bt-ws-main { flex: 1; min-width: 0; height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-menu .bt-ws-main:focus-visible, .bt-menu .bt-ws-save:focus-visible { box-shadow: var(--bt-ring); }
|
.bt-menu .bt-ws-main:focus-visible, .bt-menu .bt-ws-save:focus-visible { box-shadow: var(--bt-ring); }
|
||||||
.bt-ws-name { display: flex; align-items: center; gap: 6px; max-width: 100%; font: 600 13.5px/1.15 var(--bt-ui); color: var(--bt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-ws-name { display: flex; align-items: center; gap: 6px; max-width: 100%; font: 600 13.5px/1.15 var(--bt-ui); color: var(--bt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-ws-meta { font: 400 12px/1.2 var(--bt-ui); color: var(--bt-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
.bt-ws-meta { font: 400 12px/1.2 var(--bt-ui); color: var(--bt-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
||||||
.bt-ws-badge { flex: none; padding: 2px 6px; border-radius: 999px; background: rgb(var(--bt-accent-rgb) / .14); color: var(--bt-accent-ink); font: 500 10.5px/1.2 var(--bt-ui); }
|
.bt-ws-badge { flex: none; padding: 2px 6px; border-radius: calc(999px * var(--bt-rs, 1)); background: rgb(var(--bt-accent-rgb) / .14); color: var(--bt-accent-ink); font: 500 10.5px/1.2 var(--bt-ui); }
|
||||||
|
|
||||||
.bt-ws-actions { display: flex; gap: 1px; padding-inline-end: 4px; opacity: 0; transition: opacity var(--bt-t1) var(--bt-ease); }
|
.bt-ws-actions { display: flex; gap: 1px; padding-inline-end: 4px; opacity: 0; transition: opacity var(--bt-t1) var(--bt-ease); }
|
||||||
.bt-ws-row:hover .bt-ws-actions, .bt-ws-row:focus-within .bt-ws-actions, .bt-ws-row.is-active .bt-ws-actions { opacity: 1; }
|
.bt-ws-row:hover .bt-ws-actions, .bt-ws-row:focus-within .bt-ws-actions, .bt-ws-row.is-active .bt-ws-actions { opacity: 1; }
|
||||||
|
|
@ -36,8 +36,8 @@
|
||||||
.bt-menu .bt-ws-icon .bt-glyph { width: 14px; height: 14px; }
|
.bt-menu .bt-ws-icon .bt-glyph { width: 14px; height: 14px; }
|
||||||
.bt-menu .bt-ws-icon[aria-pressed=true] { color: var(--bt-accent-ink); }
|
.bt-menu .bt-ws-icon[aria-pressed=true] { color: var(--bt-accent-ink); }
|
||||||
|
|
||||||
.bt-menu .bt-ws-save { height: auto; gap: 11px; padding: 8px; border-radius: 10px; }
|
.bt-menu .bt-ws-save { height: auto; gap: 11px; padding: 8px; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bt-ws-save-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--bt-line-strong); color: var(--bt-muted); }
|
.bt-ws-save-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: calc(9px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px var(--bt-line-strong); color: var(--bt-muted); }
|
||||||
.bt-ws-save-icon .bt-glyph { width: 15px; height: 15px; }
|
.bt-ws-save-icon .bt-glyph { width: 15px; height: 15px; }
|
||||||
.bt-menu .bt-ws-save:hover .bt-ws-save-icon { box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .6); color: var(--bt-accent-ink); }
|
.bt-menu .bt-ws-save:hover .bt-ws-save-icon { box-shadow: inset 0 0 0 1px rgb(var(--bt-accent-rgb) / .6); color: var(--bt-accent-ink); }
|
||||||
.bt-ws-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
.bt-ws-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
.bt-ws-form { display: flex; gap: 6px; padding: 6px; }
|
.bt-ws-form { display: flex; gap: 6px; padding: 6px; }
|
||||||
.bt-ws-input {
|
.bt-ws-input {
|
||||||
flex: 1; min-width: 0; height: 30px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--bt-line-strong); border-radius: 8px;
|
flex: 1; min-width: 0; height: 30px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--bt-line-strong); border-radius: calc(8px * var(--bt-rs, 1));
|
||||||
background: var(--bt-field); color: var(--bt-text); font: 500 13px/1 var(--bt-ui); outline: 0;
|
background: var(--bt-field); color: var(--bt-text); font: 500 13px/1 var(--bt-ui); outline: 0;
|
||||||
}
|
}
|
||||||
.bt-ws-input:focus { border-color: rgb(var(--bt-accent-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--bt-accent-rgb) / .14); }
|
.bt-ws-input:focus { border-color: rgb(var(--bt-accent-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--bt-accent-rgb) / .14); }
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
.bt-menu .bt-ws-primary:disabled { background: var(--bt-hover); color: var(--bt-faint); }
|
.bt-menu .bt-ws-primary:disabled { background: var(--bt-hover); color: var(--bt-faint); }
|
||||||
|
|
||||||
.bt-ws-confirm {
|
.bt-ws-confirm {
|
||||||
display: flex; flex-direction: column; gap: 10px; margin: 2px 6px 6px; padding: 10px 12px; border-radius: 9px;
|
display: flex; flex-direction: column; gap: 10px; margin: 2px 6px 6px; padding: 10px 12px; border-radius: calc(9px * var(--bt-rs, 1));
|
||||||
background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui);
|
background: rgba(229, 72, 77, .08); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25); color: var(--bt-text-2); font: 400 12.5px/1.45 var(--bt-ui);
|
||||||
}
|
}
|
||||||
.bt-ws-confirm strong { color: var(--bt-text); font-weight: 600; }
|
.bt-ws-confirm strong { color: var(--bt-text); font-weight: 600; }
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
/* Quiet chips: only while there is something to say. */
|
/* Quiet chips: only while there is something to say. */
|
||||||
.bt-tb-chip {
|
.bt-tb-chip {
|
||||||
display: inline-flex; align-items: center; gap: 7px; height: 28px; max-width: 220px; padding-block: 0; padding-inline: 9px 11px; box-sizing: border-box;
|
display: inline-flex; align-items: center; gap: 7px; height: 28px; max-width: 220px; padding-block: 0; padding-inline: 9px 11px; box-sizing: border-box;
|
||||||
border: 1px solid var(--bt-line-soft); border-radius: 14px; background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text-2);
|
border: 1px solid var(--bt-line-soft); border-radius: calc(14px * var(--bt-rs, 1)); background: rgb(var(--bt-text-rgb) / .035); color: var(--bt-text-2);
|
||||||
font: 500 12px/1 var(--bt-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
font: 500 12px/1 var(--bt-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--bt-t1) var(--bt-ease), border-color var(--bt-t1) var(--bt-ease);
|
||||||
}
|
}
|
||||||
.bt-tb-chip:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); color: var(--bt-text); }
|
.bt-tb-chip:hover { background: var(--bt-hover); border-color: var(--bt-line-strong); color: var(--bt-text); }
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
.btb-pass .bt-input { width: 200px; }
|
.btb-pass .bt-input { width: 200px; }
|
||||||
.btb-error { color: #ff8a80; font-size: 12px; }
|
.btb-error { color: #ff8a80; font-size: 12px; }
|
||||||
.btb-snapshots { display: flex; flex-direction: column; gap: 6px; width: 100%; }
|
.btb-snapshots { display: flex; flex-direction: column; gap: 6px; width: 100%; }
|
||||||
.btb-snapshot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(127, 127, 127, .06); }
|
.btb-snapshot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: calc(9px * var(--bt-rs, 1)); background: rgba(127, 127, 127, .06); }
|
||||||
.btb-snapshot.is-fresh { background: rgb(var(--c-accent-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-accent-rgb) / .3); }
|
.btb-snapshot.is-fresh { background: rgb(var(--c-accent-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-accent-rgb) / .3); }
|
||||||
.btb-snapshot-device { font-weight: 600; font-size: 12.5px; }
|
.btb-snapshot-device { font-weight: 600; font-size: 12.5px; }
|
||||||
.btb-snapshot-when { flex: 1; color: var(--c-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
.btb-snapshot-when { flex: 1; color: var(--c-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,16 @@
|
||||||
.btp-page:has(.wb-builder) { max-width: 1320px; }
|
.btp-page:has(.wb-builder) { max-width: 1320px; }
|
||||||
.wb-builder-bar {
|
.wb-builder-bar {
|
||||||
position: sticky; top: -18px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
|
position: sticky; top: -18px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
|
||||||
margin: 0 -4px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 14px;
|
margin: 0 -4px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: calc(14px * var(--bt-rs, 1));
|
||||||
background: color-mix(in srgb, var(--c-card) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2);
|
background: color-mix(in srgb, var(--c-card) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2);
|
||||||
box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
|
box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
|
||||||
}
|
}
|
||||||
.wb-builder-name { flex: 1 1 200px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--c-text); font: 650 17px/1 var(--f-ui); letter-spacing: -.02em; }
|
.wb-builder-name { flex: 1 1 200px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: calc(9px * var(--bt-rs, 1)); background: transparent; color: var(--c-text); font: 650 17px/1 var(--f-ui); letter-spacing: -.02em; }
|
||||||
.wb-builder-name:hover { border-color: var(--c-line); }
|
.wb-builder-name:hover { border-color: var(--c-line); }
|
||||||
.wb-builder-name:focus { outline: none; border-color: var(--c-accent); background: var(--c-field); }
|
.wb-builder-name:focus { outline: none; border-color: var(--c-accent); background: var(--c-field); }
|
||||||
.wb-builder-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
.wb-builder-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
||||||
.wb-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--c-line); }
|
.wb-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--c-line); }
|
||||||
.wb-icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-text); cursor: pointer; transition: background-color .15s, border-color .15s; }
|
.wb-icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); cursor: pointer; transition: background-color .15s, border-color .15s; }
|
||||||
.wb-icon-button:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
.wb-icon-button:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
||||||
.wb-icon-button:disabled { opacity: .38; cursor: default; }
|
.wb-icon-button:disabled { opacity: .38; cursor: default; }
|
||||||
.wb-live { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 4px; color: var(--c-muted); font-size: 12px; font-weight: 520; }
|
.wb-live { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 4px; color: var(--c-muted); font-size: 12px; font-weight: 520; }
|
||||||
|
|
@ -30,11 +30,11 @@
|
||||||
.wb-builder-preview { order: 0; position: sticky; top: 52px; }
|
.wb-builder-preview { order: 0; position: sticky; top: 52px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.wb-card { padding: 16px 16px 14px; border: 1px solid var(--c-line-soft); border-radius: 14px; background: var(--c-card); }
|
.wb-card { padding: 16px 16px 14px; border: 1px solid var(--c-line-soft); border-radius: calc(14px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.wb-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
|
.wb-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
|
||||||
.wb-card h3 { margin: 0; font-size: 14px; font-weight: 640; letter-spacing: -.01em; }
|
.wb-card h3 { margin: 0; font-size: 14px; font-weight: 640; letter-spacing: -.01em; }
|
||||||
.wb-card header p { margin: 3px 0 0; max-width: 62ch; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
.wb-card header p { margin: 3px 0 0; max-width: 62ch; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
||||||
.wb-ok { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
|
.wb-ok { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: calc(999px * var(--bt-rs, 1)); background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
|
||||||
|
|
||||||
.wb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 18px; margin-top: 14px; }
|
.wb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 18px; margin-top: 14px; }
|
||||||
.wb-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
|
.wb-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
|
||||||
|
|
@ -43,37 +43,37 @@
|
||||||
|
|
||||||
/* Base colors */
|
/* Base colors */
|
||||||
.wb-base { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
|
.wb-base { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
|
||||||
.wb-base-item { display: flex; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-ground); }
|
.wb-base-item { display: flex; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-ground); }
|
||||||
.wb-base-swatch { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 62px; padding: 10px 11px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .22); }
|
.wb-base-swatch { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 62px; padding: 10px 11px; border-radius: calc(9px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .22); }
|
||||||
.wb-base-swatch span { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
|
.wb-base-swatch span { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
|
||||||
.wb-base-swatch code { padding: 2px 6px; border: 0; border-radius: 6px; background: rgb(0 0 0 / .32); color: #fff; font: 500 11px/1.4 var(--f-mono); }
|
.wb-base-swatch code { padding: 2px 6px; border: 0; border-radius: calc(6px * var(--bt-rs, 1)); background: rgb(0 0 0 / .32); color: #fff; font: 500 11px/1.4 var(--f-mono); }
|
||||||
.wb-base-item .bt-color { flex-wrap: wrap; gap: 6px; }
|
.wb-base-item .bt-color { flex-wrap: wrap; gap: 6px; }
|
||||||
.wb-base-item .bt-swatch { width: 22px; height: 22px; }
|
.wb-base-item .bt-swatch { width: 22px; height: 22px; }
|
||||||
|
|
||||||
/* Derived palette */
|
/* Derived palette */
|
||||||
.wb-palette { margin-top: 12px; }
|
.wb-palette { margin-top: 12px; }
|
||||||
.wb-palette-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
|
.wb-palette-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
|
||||||
.wb-chip { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 9px; border: 1px solid var(--c-line-soft); border-radius: 10px; background: var(--c-ground); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
.wb-chip { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 9px; border: 1px solid var(--c-line-soft); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-ground); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
||||||
.wb-chip:hover { border-color: var(--c-line-strong); }
|
.wb-chip:hover { border-color: var(--c-line-strong); }
|
||||||
.wb-chip.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
.wb-chip.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
||||||
.wb-chip-swatch { flex: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .3); }
|
.wb-chip-swatch { flex: none; width: 22px; height: 22px; border-radius: calc(6px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .3); }
|
||||||
.wb-chip-copy { display: flex; flex-direction: column; min-width: 0; }
|
.wb-chip-copy { display: flex; flex-direction: column; min-width: 0; }
|
||||||
.wb-chip-copy b { font-size: 12px; font-weight: 600; }
|
.wb-chip-copy b { font-size: 12px; font-weight: 600; }
|
||||||
.wb-chip-copy small { overflow: hidden; color: var(--c-muted); font: 10.5px/1.4 var(--f-mono); white-space: nowrap; text-overflow: ellipsis; }
|
.wb-chip-copy small { overflow: hidden; color: var(--c-muted); font: 10.5px/1.4 var(--f-mono); white-space: nowrap; text-overflow: ellipsis; }
|
||||||
.wb-palette-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--c-field); }
|
.wb-palette-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-field); }
|
||||||
.wb-palette-edit > span { font-size: 12px; font-weight: 600; }
|
.wb-palette-edit > span { font-size: 12px; font-weight: 600; }
|
||||||
|
|
||||||
/* Contrast */
|
/* Contrast */
|
||||||
.wb-contrast { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
.wb-contrast { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
||||||
.wb-contrast li { display: grid; grid-template-columns: 40px 1fr auto auto 76px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 9px; }
|
.wb-contrast li { display: grid; grid-template-columns: 40px 1fr auto auto 76px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: calc(9px * var(--bt-rs, 1)); }
|
||||||
.wb-contrast li:hover { background: var(--c-field); }
|
.wb-contrast li:hover { background: var(--c-field); }
|
||||||
.wb-contrast li.is-fail { background: color-mix(in srgb, var(--c-danger) 7%, transparent); }
|
.wb-contrast li.is-fail { background: color-mix(in srgb, var(--c-danger) 7%, transparent); }
|
||||||
.wb-contrast-sample { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .25); font-size: 14px; font-weight: 700; }
|
.wb-contrast-sample { display: grid; place-items: center; width: 40px; height: 28px; border-radius: calc(7px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .25); font-size: 14px; font-weight: 700; }
|
||||||
.wb-contrast-label { font-size: 12.5px; }
|
.wb-contrast-label { font-size: 12.5px; }
|
||||||
.wb-contrast-ratio { font: 12px/1 var(--f-mono); color: var(--c-muted); }
|
.wb-contrast-ratio { font: 12px/1 var(--f-mono); color: var(--c-muted); }
|
||||||
.wb-contrast-ratio b { color: var(--c-text); font-weight: 600; }
|
.wb-contrast-ratio b { color: var(--c-text); font-weight: 600; }
|
||||||
.wb-contrast-need { color: var(--c-faint); font-size: 11.5px; }
|
.wb-contrast-need { color: var(--c-faint); font-size: 11.5px; }
|
||||||
.wb-contrast-badge { justify-self: end; padding: 3px 7px; border-radius: 6px; font: 600 10.5px/1.2 var(--f-mono); text-align: center; }
|
.wb-contrast-badge { justify-self: end; padding: 3px 7px; border-radius: calc(6px * var(--bt-rs, 1)); font: 600 10.5px/1.2 var(--f-mono); text-align: center; }
|
||||||
.wb-contrast-badge.is-pass { background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); }
|
.wb-contrast-badge.is-pass { background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); }
|
||||||
.wb-contrast-badge.is-fail { background: color-mix(in srgb, var(--c-danger) 16%, transparent); color: var(--c-danger); }
|
.wb-contrast-badge.is-fail { background: color-mix(in srgb, var(--c-danger) 16%, transparent); color: var(--c-danger); }
|
||||||
@container panel (max-width: 560px) {
|
@container panel (max-width: 560px) {
|
||||||
|
|
@ -85,48 +85,48 @@
|
||||||
.wb-bg .bt-seg { margin-bottom: 2px; }
|
.wb-bg .bt-seg { margin-bottom: 2px; }
|
||||||
|
|
||||||
/* Preview column */
|
/* Preview column */
|
||||||
.wb-preview-frame { overflow: hidden; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-ground); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
|
.wb-preview-frame { overflow: hidden; border: 1px solid var(--c-line); border-radius: calc(14px * var(--bt-rs, 1)); background: var(--c-ground); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
|
||||||
.wb-preview-frame .tp { border-radius: 0; }
|
.wb-preview-frame .tp { border-radius: 0; }
|
||||||
.wb-preview-note { display: flex; align-items: center; gap: 8px; margin: 0 2px; color: var(--c-muted); font-size: 12px; line-height: 1.4; }
|
.wb-preview-note { display: flex; align-items: center; gap: 8px; margin: 0 2px; color: var(--c-muted); font-size: 12px; line-height: 1.4; }
|
||||||
.wb-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ok) 22%, transparent); animation: wb-pulse 2.4s ease-in-out infinite; }
|
.wb-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ok) 22%, transparent); animation: wb-pulse 2.4s ease-in-out infinite; }
|
||||||
@keyframes wb-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-ok) 0%, transparent); } }
|
@keyframes wb-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-ok) 0%, transparent); } }
|
||||||
@media (prefers-reduced-motion: reduce) { .wb-live-dot { animation: none; } }
|
@media (prefers-reduced-motion: reduce) { .wb-live-dot { animation: none; } }
|
||||||
.wb-meta { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-card); }
|
.wb-meta { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.wb-meta label { display: flex; flex-direction: column; gap: 5px; }
|
.wb-meta label { display: flex; flex-direction: column; gap: 5px; }
|
||||||
.wb-meta span { color: var(--c-muted); font-size: 11.5px; font-weight: 560; }
|
.wb-meta span { color: var(--c-muted); font-size: 11.5px; font-weight: 560; }
|
||||||
.wb-meta input, .wb-meta textarea { padding: 7px 9px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-field); color: var(--c-text); font: 13px/1.4 var(--f-ui); resize: vertical; }
|
.wb-meta input, .wb-meta textarea { padding: 7px 9px; border: 1px solid var(--c-line); border-radius: calc(8px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font: 13px/1.4 var(--f-ui); resize: vertical; }
|
||||||
.wb-meta input:focus, .wb-meta textarea:focus { outline: none; border-color: var(--c-accent); }
|
.wb-meta input:focus, .wb-meta textarea:focus { outline: none; border-color: var(--c-accent); }
|
||||||
|
|
||||||
/* The chrome in the draft (tokens straight from chromeVars, Night Ink fallbacks). */
|
/* The chrome in the draft (tokens straight from chromeVars, Night Ink fallbacks). */
|
||||||
.wb-chrome-preview { padding: 7px 8px 0; background: var(--wb-c-ground, #07080c); font-family: var(--wb-f-chrome, 'Geist Variable', system-ui, sans-serif); }
|
.wb-chrome-preview { --bt-rs: var(--wb-c-rs, 1); padding: 7px 8px 0; background: var(--wb-c-ground, #07080c); font-family: var(--wb-f-chrome, 'Geist Variable', system-ui, sans-serif); }
|
||||||
.wb-cp-tabs { display: flex; gap: 4px; }
|
.wb-cp-tabs { display: flex; gap: 4px; }
|
||||||
.wb-cp-tab { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 8px 8px 0 0; color: var(--wb-c-muted, #8a90a6); font-size: 11.5px; font-weight: 520; }
|
.wb-cp-tab { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: calc(8px * var(--bt-rs, 1)) calc(8px * var(--bt-rs, 1)) 0 0; color: var(--wb-c-muted, #8a90a6); font-size: 11.5px; font-weight: 520; }
|
||||||
.wb-cp-tab i { width: 10px; height: 10px; border-radius: 3px; background: var(--wb-c-line-strong, #2a3044); }
|
.wb-cp-tab i { width: 10px; height: 10px; border-radius: calc(3px * var(--bt-rs, 1)); background: var(--wb-c-line-strong, #2a3044); }
|
||||||
.wb-cp-tab.is-on { background: var(--wb-c-chrome, #0d1017); color: var(--wb-c-text, #eef0f7); }
|
.wb-cp-tab.is-on { background: var(--wb-c-chrome, #0d1017); color: var(--wb-c-text, #eef0f7); }
|
||||||
.wb-cp-tab.is-on i { background: var(--wb-c-accent, #1d9bf0); }
|
.wb-cp-tab.is-on i { background: var(--wb-c-accent, #1d9bf0); }
|
||||||
.wb-cp-bar { display: flex; align-items: center; gap: 8px; margin: 0 -8px; padding: 7px 10px; background: var(--wb-c-chrome, #0d1017); border-bottom: 1px solid var(--wb-c-line-soft, #161a26); }
|
.wb-cp-bar { display: flex; align-items: center; gap: 8px; margin: 0 -8px; padding: 7px 10px; background: var(--wb-c-chrome, #0d1017); border-bottom: 1px solid var(--wb-c-line-soft, #161a26); }
|
||||||
.wb-cp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--wb-c-raised, #141823); }
|
.wb-cp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--wb-c-raised, #141823); }
|
||||||
.wb-cp-omni { flex: 1; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--wb-c-field, #11141c); color: var(--wb-c-text, #eef0f7); font-size: 11.5px; }
|
.wb-cp-omni { flex: 1; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: calc(7px * var(--bt-rs, 1)); background: var(--wb-c-field, #11141c); color: var(--wb-c-text, #eef0f7); font-size: 11.5px; }
|
||||||
.wb-cp-omni b { padding: 2px 7px; border-radius: 5px; background: rgb(var(--wb-c-accent-rgb, 29 155 240) / .16); color: var(--wb-c-accent-ink, #cfe6ff); font-weight: 600; }
|
.wb-cp-omni b { padding: 2px 7px; border-radius: calc(5px * var(--bt-rs, 1)); background: rgb(var(--wb-c-accent-rgb, 29 155 240) / .16); color: var(--wb-c-accent-ink, #cfe6ff); font-weight: 600; }
|
||||||
.wb-cp-omni em { color: var(--wb-c-faint, #5d6379); font-style: normal; }
|
.wb-cp-omni em { color: var(--wb-c-faint, #5d6379); font-style: normal; }
|
||||||
.wb-cp-brand { width: 26px; height: 16px; border-radius: 5px; background: linear-gradient(90deg, #4f6bff, #22d3ee 55%, #a855f7); opacity: .85; }
|
.wb-cp-brand { width: 26px; height: 16px; border-radius: calc(5px * var(--bt-rs, 1)); background: linear-gradient(90deg, #4f6bff, #22d3ee 55%, #a855f7); opacity: .85; }
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------------------------
|
||||||
* Font roles */
|
* Font roles */
|
||||||
.wb-roles { display: flex; flex-direction: column; border: 1px solid var(--c-line-soft); border-radius: 12px; overflow: hidden; }
|
.wb-roles { display: flex; flex-direction: column; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); overflow: hidden; }
|
||||||
.wb-role + .wb-role { border-top: 1px solid var(--c-line-soft); }
|
.wb-role + .wb-role { border-top: 1px solid var(--c-line-soft); }
|
||||||
.wb-role-main { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; padding-block: 9px; padding-inline: 14px 10px; }
|
.wb-role-main { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; padding-block: 9px; padding-inline: 14px 10px; }
|
||||||
.wb-role-copy { display: flex; flex-direction: column; min-width: 0; }
|
.wb-role-copy { display: flex; flex-direction: column; min-width: 0; }
|
||||||
.wb-role-copy strong { font-size: 13px; font-weight: 600; }
|
.wb-role-copy strong { font-size: 13px; font-weight: 600; }
|
||||||
.wb-role-copy small { color: var(--c-muted); font-size: 11.5px; line-height: 1.35; }
|
.wb-role-copy small { color: var(--c-muted); font-size: 11.5px; line-height: 1.35; }
|
||||||
.wb-role-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 7px 11px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-field); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
.wb-role-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 7px 11px; border: 1px solid var(--c-line); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
||||||
.wb-role-font:hover { border-color: var(--c-line-strong); background: var(--c-raise); }
|
.wb-role-font:hover { border-color: var(--c-line-strong); background: var(--c-raise); }
|
||||||
.wb-role-font.is-inherited { border-style: dashed; background: transparent; }
|
.wb-role-font.is-inherited { border-style: dashed; background: transparent; }
|
||||||
.wb-role-sample { max-width: 100%; overflow: hidden; font-size: 17px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
|
.wb-role-sample { max-width: 100%; overflow: hidden; font-size: 17px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
|
||||||
.wb-role-name { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 11px; }
|
.wb-role-name { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 11px; }
|
||||||
.wb-role-name em { padding: 1px 5px; border-radius: 4px; background: var(--c-accent-soft); color: var(--c-accent); font: 600 9.5px/1.3 var(--f-mono); font-style: normal; letter-spacing: .02em; text-transform: uppercase; }
|
.wb-role-name em { padding: 1px 5px; border-radius: calc(4px * var(--bt-rs, 1)); background: var(--c-accent-soft); color: var(--c-accent); font: 600 9.5px/1.3 var(--f-mono); font-style: normal; letter-spacing: .02em; text-transform: uppercase; }
|
||||||
.wb-role-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 96px; }
|
.wb-role-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 96px; }
|
||||||
.wb-role-tune { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--c-muted); cursor: pointer; }
|
.wb-role-tune { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: calc(8px * var(--bt-rs, 1)); background: transparent; color: var(--c-muted); cursor: pointer; }
|
||||||
.wb-role-tune:hover, .wb-role-tune[aria-expanded=true] { border-color: var(--c-line); background: var(--c-field); color: var(--c-text); }
|
.wb-role-tune:hover, .wb-role-tune[aria-expanded=true] { border-color: var(--c-line); background: var(--c-field); color: var(--c-text); }
|
||||||
.wb-role-tune.is-tuned { color: var(--c-accent); }
|
.wb-role-tune.is-tuned { color: var(--c-accent); }
|
||||||
.wb-role-tuning { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; padding: 4px 14px 14px; }
|
.wb-role-tuning { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; padding: 4px 14px 14px; }
|
||||||
|
|
@ -142,21 +142,21 @@
|
||||||
/* ---------------------------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------------------------
|
||||||
* Sheets (font browser): cover the panel, not the window (X panes are native webviews). */
|
* Sheets (font browser): cover the panel, not the window (X panes are native webviews). */
|
||||||
.wb-sheet-backdrop { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); animation: bt-pop .16s var(--ease); }
|
.wb-sheet-backdrop { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); animation: bt-pop .16s var(--ease); }
|
||||||
.wb-sheet { display: flex; flex-direction: column; width: min(1040px, 100%); height: min(720px, 100%); overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: 16px; background: var(--c-card); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgb(0 0 0 / .3); }
|
.wb-sheet { display: flex; flex-direction: column; width: min(1040px, 100%); height: min(720px, 100%); overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: calc(16px * var(--bt-rs, 1)); background: var(--c-card); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgb(0 0 0 / .3); }
|
||||||
.wb-sheet-head { display: flex; align-items: center; gap: 14px; padding-block: 16px 12px; padding-inline: 20px 16px; border-bottom: 1px solid var(--c-line-soft); }
|
.wb-sheet-head { display: flex; align-items: center; gap: 14px; padding-block: 16px 12px; padding-inline: 20px 16px; border-bottom: 1px solid var(--c-line-soft); }
|
||||||
.wb-sheet-head > div:first-child { flex: 1; min-width: 0; }
|
.wb-sheet-head > div:first-child { flex: 1; min-width: 0; }
|
||||||
.wb-sheet-head .bt-seg { flex: none; }
|
.wb-sheet-head .bt-seg { flex: none; }
|
||||||
.wb-sheet-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
|
.wb-sheet-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
|
||||||
.wb-sheet-head h2 span { color: var(--c-muted); font-weight: 450; }
|
.wb-sheet-head h2 span { color: var(--c-muted); font-weight: 450; }
|
||||||
.wb-sheet-head p { margin: 3px 0 0; color: var(--c-muted); font-size: 12px; }
|
.wb-sheet-head p { margin: 3px 0 0; color: var(--c-muted); font-size: 12px; }
|
||||||
.wb-sheet-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-muted); cursor: pointer; }
|
.wb-sheet-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); cursor: pointer; }
|
||||||
.wb-sheet-close:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
.wb-sheet-close:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
||||||
.wb-sheet-foot { padding: 10px 20px 12px; border-top: 1px solid var(--c-line-soft); color: var(--c-faint); font-size: 11px; line-height: 1.5; }
|
.wb-sheet-foot { padding: 10px 20px 12px; border-top: 1px solid var(--c-line-soft); color: var(--c-faint); font-size: 11px; line-height: 1.5; }
|
||||||
|
|
||||||
.wb-fb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 20px; }
|
.wb-fb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 20px; }
|
||||||
.wb-fb-search { flex: 1 1 260px; }
|
.wb-fb-search { flex: 1 1 260px; }
|
||||||
.wb-fb-cats { display: flex; flex-wrap: wrap; gap: 4px; }
|
.wb-fb-cats { display: flex; flex-wrap: wrap; gap: 4px; }
|
||||||
.wb-fb-cats button { height: 28px; padding: 0 11px; border: 1px solid var(--c-line); border-radius: 999px; background: transparent; color: var(--c-muted); font-size: 12px; font-weight: 540; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
|
.wb-fb-cats button { height: 28px; padding: 0 11px; border: 1px solid var(--c-line); border-radius: calc(999px * var(--bt-rs, 1)); background: transparent; color: var(--c-muted); font-size: 12px; font-weight: 540; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
|
||||||
.wb-fb-cats button:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
.wb-fb-cats button:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
||||||
.wb-fb-cats button.is-on { background: var(--c-text); border-color: var(--c-text); color: var(--c-ground); }
|
.wb-fb-cats button.is-on { background: var(--c-text); border-color: var(--c-text); color: var(--c-ground); }
|
||||||
.wb-fb-cats .wb-fb-installed { margin-inline-start: 6px; }
|
.wb-fb-cats .wb-fb-installed { margin-inline-start: 6px; }
|
||||||
|
|
@ -166,13 +166,13 @@
|
||||||
@container panel (max-width: 760px) { .wb-fb-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .wb-fb-detail { max-height: 50%; border-inline-start: 0 !important; border-top: 1px solid var(--c-line-soft); } }
|
@container panel (max-width: 760px) { .wb-fb-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .wb-fb-detail { max-height: 50%; border-inline-start: 0 !important; border-top: 1px solid var(--c-line-soft); } }
|
||||||
.wb-fb-list { margin: 0; padding: 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; outline: none; }
|
.wb-fb-list { margin: 0; padding: 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; outline: none; }
|
||||||
.wb-fb-list:focus-visible { box-shadow: inset 0 0 0 2px var(--c-accent); }
|
.wb-fb-list:focus-visible { box-shadow: inset 0 0 0 2px var(--c-accent); }
|
||||||
.wb-fb-list li[role=option] { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name tags' 'meta tags'; align-items: center; column-gap: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
|
.wb-fb-list li[role=option] { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name tags' 'meta tags'; align-items: center; column-gap: 10px; padding: 8px 12px; border-radius: calc(10px * var(--bt-rs, 1)); cursor: pointer; }
|
||||||
.wb-fb-list li.is-active { background: var(--c-field); }
|
.wb-fb-list li.is-active { background: var(--c-field); }
|
||||||
.wb-fb-list li.is-on { background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--c-accent-rgb) / .45); }
|
.wb-fb-list li.is-on { background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px rgb(var(--c-accent-rgb) / .45); }
|
||||||
.wb-fb-name { grid-area: name; overflow: hidden; font-size: 21px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; transition: opacity .2s; }
|
.wb-fb-name { grid-area: name; overflow: hidden; font-size: 21px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; transition: opacity .2s; }
|
||||||
.wb-fb-name.is-loading { opacity: .45; }
|
.wb-fb-name.is-loading { opacity: .45; }
|
||||||
.wb-fb-meta { grid-area: meta; color: var(--c-muted); font-size: 11px; }
|
.wb-fb-meta { grid-area: meta; color: var(--c-muted); font-size: 11px; }
|
||||||
.wb-fb-tag { grid-area: tags; justify-self: end; padding: 2px 7px; border-radius: 6px; background: var(--c-field); color: var(--c-muted); font: 600 10px/1.4 var(--f-mono); letter-spacing: .02em; }
|
.wb-fb-tag { grid-area: tags; justify-self: end; padding: 2px 7px; border-radius: calc(6px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); font: 600 10px/1.4 var(--f-mono); letter-spacing: .02em; }
|
||||||
.wb-fb-tag.is-accent { background: var(--c-accent-soft); color: var(--c-accent); }
|
.wb-fb-tag.is-accent { background: var(--c-accent-soft); color: var(--c-accent); }
|
||||||
.wb-fb-tag + .wb-fb-tag { grid-row: 2; }
|
.wb-fb-tag + .wb-fb-tag { grid-row: 2; }
|
||||||
.wb-fb-empty { padding: 30px 14px; color: var(--c-muted); text-align: center; }
|
.wb-fb-empty { padding: 30px 14px; color: var(--c-muted); text-align: center; }
|
||||||
|
|
@ -183,34 +183,34 @@
|
||||||
.wb-fb-hero { display: flex; flex-direction: column; gap: 4px; }
|
.wb-fb-hero { display: flex; flex-direction: column; gap: 4px; }
|
||||||
.wb-fb-hero-name { font-size: 40px; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
|
.wb-fb-hero-name { font-size: 40px; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
|
||||||
.wb-fb-hero-meta { color: var(--c-muted); font-size: 12px; }
|
.wb-fb-hero-meta { color: var(--c-muted); font-size: 12px; }
|
||||||
.wb-fb-sample { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-card); }
|
.wb-fb-sample { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.wb-fb-sample-text { min-height: 2.6em; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
|
.wb-fb-sample-text { min-height: 2.6em; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
|
||||||
.wb-fb-sample textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-field); color: var(--c-text); font: 12.5px/1.45 var(--f-ui); resize: none; }
|
.wb-fb-sample textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--c-line); border-radius: calc(8px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font: 12.5px/1.45 var(--f-ui); resize: none; }
|
||||||
.wb-fb-sample textarea:focus { outline: none; border-color: var(--c-accent); }
|
.wb-fb-sample textarea:focus { outline: none; border-color: var(--c-accent); }
|
||||||
.wb-fb-samples { display: flex; flex-wrap: wrap; gap: 4px; }
|
.wb-fb-samples { display: flex; flex-wrap: wrap; gap: 4px; }
|
||||||
.wb-fb-samples button { height: 24px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: 999px; background: transparent; color: var(--c-muted); font-size: 11px; cursor: pointer; }
|
.wb-fb-samples button { height: 24px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: calc(999px * var(--bt-rs, 1)); background: transparent; color: var(--c-muted); font-size: 11px; cursor: pointer; }
|
||||||
.wb-fb-samples button.is-on, .wb-fb-samples button:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
.wb-fb-samples button.is-on, .wb-fb-samples button:hover { color: var(--c-text); border-color: var(--c-line-strong); }
|
||||||
.wb-fb-field { display: flex; flex-direction: column; gap: 8px; }
|
.wb-fb-field { display: flex; flex-direction: column; gap: 8px; }
|
||||||
.wb-fb-field > span { color: var(--c-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
|
.wb-fb-field > span { color: var(--c-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
|
||||||
.wb-fb-field > small { color: var(--c-faint); font-size: 11.5px; line-height: 1.45; }
|
.wb-fb-field > small { color: var(--c-faint); font-size: 11.5px; line-height: 1.45; }
|
||||||
.wb-fb-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
.wb-fb-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||||
.wb-fb-weights { display: flex; flex-wrap: wrap; gap: 4px; }
|
.wb-fb-weights { display: flex; flex-wrap: wrap; gap: 4px; }
|
||||||
.wb-fb-weights button { min-width: 44px; height: 28px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-field); color: var(--c-muted); font: 500 11.5px/1 var(--f-mono); cursor: pointer; }
|
.wb-fb-weights button { min-width: 44px; height: 28px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: calc(8px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); font: 500 11.5px/1 var(--f-mono); cursor: pointer; }
|
||||||
.wb-fb-weights button.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-text); }
|
.wb-fb-weights button.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-text); }
|
||||||
.wb-fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
|
.wb-fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
|
||||||
.wb-fb-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c-danger) 12%, transparent); color: var(--c-danger); font-size: 12px; }
|
.wb-fb-error { margin: 0; padding: 8px 10px; border-radius: calc(8px * var(--bt-rs, 1)); background: color-mix(in srgb, var(--c-danger) 12%, transparent); color: var(--c-danger); font-size: 12px; }
|
||||||
|
|
||||||
.wb-fb-system { flex: 1; overflow-y: auto; padding: 16px 20px; }
|
.wb-fb-system { flex: 1; overflow-y: auto; padding: 16px 20px; }
|
||||||
.wb-fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
|
.wb-fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
|
||||||
.wb-fb-grid button { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-ground); color: var(--c-text); text-align: start; cursor: pointer; }
|
.wb-fb-grid button { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-ground); color: var(--c-text); text-align: start; cursor: pointer; }
|
||||||
.wb-fb-grid button:hover { border-color: var(--c-line-strong); }
|
.wb-fb-grid button:hover { border-color: var(--c-line-strong); }
|
||||||
.wb-fb-grid button.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
.wb-fb-grid button.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
||||||
.wb-fb-grid span { font-size: 18px; }
|
.wb-fb-grid span { font-size: 18px; }
|
||||||
.wb-fb-grid small { color: var(--c-muted); font-size: 12px; }
|
.wb-fb-grid small { color: var(--c-muted); font-size: 12px; }
|
||||||
.wb-fb-custom { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border: 1px dashed var(--c-line-strong); border-radius: 12px; }
|
.wb-fb-custom { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border: 1px dashed var(--c-line-strong); border-radius: calc(12px * var(--bt-rs, 1)); }
|
||||||
.wb-fb-custom label { flex: 1; display: flex; flex-direction: column; gap: 6px; }
|
.wb-fb-custom label { flex: 1; display: flex; flex-direction: column; gap: 6px; }
|
||||||
.wb-fb-custom label span { color: var(--c-muted); font-size: 12px; }
|
.wb-fb-custom label span { color: var(--c-muted); font-size: 12px; }
|
||||||
.wb-fb-custom input { height: 34px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-text); font-size: 15px; }
|
.wb-fb-custom input { height: 34px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font-size: 15px; }
|
||||||
.wb-fb-custom input:focus { outline: none; border-color: var(--c-accent); }
|
.wb-fb-custom input:focus { outline: none; border-color: var(--c-accent); }
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------
|
/* ---------------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
.bmk-intro p { margin: 0 0 10px; max-width: 70ch; line-height: 1.55; }
|
.bmk-intro p { margin: 0 0 10px; max-width: 70ch; line-height: 1.55; }
|
||||||
.bmk-muted, .bmk-intro .bmk-muted { color: var(--c-muted); font-size: 12px; }
|
.bmk-muted, .bmk-intro .bmk-muted { color: var(--c-muted); font-size: 12px; }
|
||||||
.bmk-commands { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
|
.bmk-commands { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
|
||||||
.bmk-commands li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 12px 6px; border: 1px solid var(--c-line-soft); border-radius: 10px; background: var(--c-card); }
|
.bmk-commands li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 12px 6px; border: 1px solid var(--c-line-soft); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.bmk-commands li > span { color: var(--c-muted); font-size: 12px; }
|
.bmk-commands li > span { color: var(--c-muted); font-size: 12px; }
|
||||||
.bmk-commands li > code { overflow-x: auto; white-space: nowrap; background: transparent; border: 0; padding: 0; color: var(--c-text); scrollbar-width: none; }
|
.bmk-commands li > code { overflow-x: auto; white-space: nowrap; background: transparent; border: 0; padding: 0; color: var(--c-text); scrollbar-width: none; }
|
||||||
@container panel (max-width: 560px) { .bmk-commands li { grid-template-columns: 1fr auto; } .bmk-commands li > span { grid-column: 1 / -1; } }
|
@container panel (max-width: 560px) { .bmk-commands li { grid-template-columns: 1fr auto; } .bmk-commands li > span { grid-column: 1 / -1; } }
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
/* Example picker + editor */
|
/* Example picker + editor */
|
||||||
.bmk-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 10px; }
|
.bmk-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 10px; }
|
||||||
.bmk-example { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--c-line-soft); border-radius: 10px; background: var(--c-field); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
.bmk-example { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--c-line-soft); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-field); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
||||||
.bmk-example strong { font-size: 12.5px; font-weight: 620; }
|
.bmk-example strong { font-size: 12.5px; font-weight: 620; }
|
||||||
.bmk-example span { color: var(--c-muted); font-size: 11.5px; line-height: 1.45; }
|
.bmk-example span { color: var(--c-muted); font-size: 11.5px; line-height: 1.45; }
|
||||||
.bmk-example:hover { border-color: var(--c-line-strong); }
|
.bmk-example:hover { border-color: var(--c-line-strong); }
|
||||||
|
|
@ -40,9 +40,9 @@
|
||||||
.bmk-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 14px; color: var(--c-text-2); font: 11.5px var(--f-mono); }
|
.bmk-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 14px; color: var(--c-text-2); font: 11.5px var(--f-mono); }
|
||||||
.bmk-facts b { color: var(--c-muted); font-weight: 500; margin-inline-end: 4px; }
|
.bmk-facts b { color: var(--c-muted); font-weight: 500; margin-inline-end: 4px; }
|
||||||
.bmk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 0 10px 12px; }
|
.bmk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 0 10px 12px; }
|
||||||
.bmk-swatch { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--c-line-soft); border-radius: 10px; background: var(--c-field); text-align: start; cursor: copy; }
|
.bmk-swatch { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--c-line-soft); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-field); text-align: start; cursor: copy; }
|
||||||
.bmk-swatch:hover { border-color: var(--c-line-strong); }
|
.bmk-swatch:hover { border-color: var(--c-line-strong); }
|
||||||
.bmk-chip { flex: 0 0 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .25); }
|
.bmk-chip { flex: 0 0 30px; height: 30px; border-radius: calc(8px * var(--bt-rs, 1)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .25); }
|
||||||
.bmk-swatch-text { display: flex; flex-direction: column; min-width: 0; }
|
.bmk-swatch-text { display: flex; flex-direction: column; min-width: 0; }
|
||||||
.bmk-swatch-text b { font-size: 12px; font-weight: 600; }
|
.bmk-swatch-text b { font-size: 12px; font-weight: 600; }
|
||||||
.bmk-swatch-text code { align-self: flex-start; margin: 2px 0; }
|
.bmk-swatch-text code { align-self: flex-start; margin: 2px 0; }
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
.bmk-doc ul, .bmk-doc ol { padding-inline-start: 20px; }
|
.bmk-doc ul, .bmk-doc ol { padding-inline-start: 20px; }
|
||||||
.bmk-doc li + li { margin-top: 4px; }
|
.bmk-doc li + li { margin-top: 4px; }
|
||||||
.bmk-doc .bt-snippet { margin: 8px 0 14px; }
|
.bmk-doc .bt-snippet { margin: 8px 0 14px; }
|
||||||
.bmk-doc-table { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--c-line-soft); border-radius: 10px; }
|
.bmk-doc-table { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--c-line-soft); border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
.bmk-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
.bmk-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
||||||
.bmk-doc th, .bmk-doc td { padding: 7px 10px; text-align: start; vertical-align: top; border-top: 1px solid var(--c-line-soft); }
|
.bmk-doc th, .bmk-doc td { padding: 7px 10px; text-align: start; vertical-align: top; border-top: 1px solid var(--c-line-soft); }
|
||||||
.bmk-doc th { border-top: 0; background: var(--c-chrome); color: var(--c-text); font-weight: 600; }
|
.bmk-doc th { border-top: 0; background: var(--c-chrome); color: var(--c-text); font-weight: 600; }
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@
|
||||||
.btp-root { position: absolute; inset: 0; container-type: inline-size; container-name: panel; }
|
.btp-root { position: absolute; inset: 0; container-type: inline-size; container-name: panel; }
|
||||||
.btp *, .btp *::before, .btp *::after { box-sizing: border-box; }
|
.btp *, .btp *::before, .btp *::after { box-sizing: border-box; }
|
||||||
.btp button { font: inherit; color: inherit; }
|
.btp button { font: inherit; color: inherit; }
|
||||||
.btp code { padding: 1px 5px; border-radius: 5px; background: var(--c-field); border: 1px solid var(--c-line-soft); font: 11.5px var(--f-mono); color: var(--c-text-2); }
|
.btp code { padding: 1px 5px; border-radius: calc(5px * var(--bt-rs, 1)); background: var(--c-field); border: 1px solid var(--c-line-soft); font: 11.5px var(--f-mono); color: var(--c-text-2); }
|
||||||
.btp mark { background: var(--c-accent-soft); color: var(--c-text); border-radius: 3px; box-shadow: 0 0 0 1px rgb(var(--c-accent-rgb) / .35); }
|
.btp mark { background: var(--c-accent-soft); color: var(--c-text); border-radius: calc(3px * var(--bt-rs, 1)); box-shadow: 0 0 0 1px rgb(var(--c-accent-rgb) / .35); }
|
||||||
.btp :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
|
.btp :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
|
||||||
.btp :is(.bt-search, .bt-inputrow) input:focus-visible, .btp .bt-hex:focus-visible, .btp .bt-code textarea:focus-visible, .btp .btp-input:focus-visible, .btp .bt-input:focus-visible { outline: none; }
|
.btp :is(.bt-search, .bt-inputrow) input:focus-visible, .btp .bt-hex:focus-visible, .btp .bt-code textarea:focus-visible, .btp .btp-input:focus-visible, .btp .bt-input:focus-visible { outline: none; }
|
||||||
|
|
||||||
|
|
@ -28,14 +28,14 @@
|
||||||
.btp-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
|
.btp-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
|
||||||
.btp-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-brush); opacity: .38; }
|
.btp-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-brush); opacity: .38; }
|
||||||
.btp-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
|
.btp-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
|
||||||
.btp-brand img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
|
.btp-brand img { border-radius: calc(6px * var(--bt-rs, 1)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
|
||||||
.btp-brand strong { font-size: 13.5px; font-weight: 650; letter-spacing: -.015em; }
|
.btp-brand strong { font-size: 13.5px; font-weight: 650; letter-spacing: -.015em; }
|
||||||
.btp-head .bt-search { margin-inline-start: auto; width: min(320px, 100%); }
|
.btp-head .bt-search { margin-inline-start: auto; width: min(320px, 100%); }
|
||||||
|
|
||||||
/* Section nav: a scrolling strip in a narrow pane, a rail in a wide one */
|
/* Section nav: a scrolling strip in a narrow pane, a rail in a wide one */
|
||||||
.btp-nav { display: flex; gap: 2px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line-soft); background: var(--c-chrome); }
|
.btp-nav { display: flex; gap: 2px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line-soft); background: var(--c-chrome); }
|
||||||
.btp-nav::-webkit-scrollbar { display: none; }
|
.btp-nav::-webkit-scrollbar { display: none; }
|
||||||
.btp-nav button { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--c-muted); font-weight: 520; cursor: pointer; transition: color .15s, background-color .15s; }
|
.btp-nav button { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 0; border-radius: calc(8px * var(--bt-rs, 1)); background: transparent; color: var(--c-muted); font-weight: 520; cursor: pointer; transition: color .15s, background-color .15s; }
|
||||||
.btp-nav button svg { flex: none; opacity: .8; }
|
.btp-nav button svg { flex: none; opacity: .8; }
|
||||||
.btp-nav button:hover { color: var(--c-text); background: var(--c-field); }
|
.btp-nav button:hover { color: var(--c-text); background: var(--c-field); }
|
||||||
.btp-nav button.is-on { color: var(--c-text); background: var(--c-raise); }
|
.btp-nav button.is-on { color: var(--c-text); background: var(--c-raise); }
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
.btp-head { grid-column: 1 / -1; padding: 12px 20px; }
|
.btp-head { grid-column: 1 / -1; padding: 12px 20px; }
|
||||||
.btp-nav { flex-direction: column; gap: 1px; padding: 14px 10px; border-bottom: 0; border-inline-end: 1px solid var(--c-line-soft); overflow: visible; }
|
.btp-nav { flex-direction: column; gap: 1px; padding: 14px 10px; border-bottom: 0; border-inline-end: 1px solid var(--c-line-soft); overflow: visible; }
|
||||||
.btp-nav button { height: auto; min-height: 32px; padding: 6px 10px; text-align: start; line-height: 1.25; }
|
.btp-nav button { height: auto; min-height: 32px; padding: 6px 10px; text-align: start; line-height: 1.25; }
|
||||||
.btp-nav button.is-on::before { content: ''; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 2px; border-start-start-radius: 0; border-start-end-radius: 2px; border-end-end-radius: 2px; border-end-start-radius: 0; background: var(--c-accent); }
|
.btp-nav button.is-on::before { content: ''; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 2px; border-start-start-radius: 0; border-start-end-radius: calc(2px * var(--bt-rs, 1)); border-end-end-radius: calc(2px * var(--bt-rs, 1)); border-end-start-radius: 0; background: var(--c-accent); }
|
||||||
.btp-page { padding: 26px 32px 72px; }
|
.btp-page { padding: 26px 32px 72px; }
|
||||||
.btp-title { font-size: 22px; margin-bottom: 18px; }
|
.btp-title { font-size: 22px; margin-bottom: 18px; }
|
||||||
}
|
}
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
.bt-section-head h2 { margin: 0; font-size: 13px; font-weight: 620; letter-spacing: -.005em; }
|
.bt-section-head h2 { margin: 0; font-size: 13px; font-weight: 620; letter-spacing: -.005em; }
|
||||||
.bt-section-head p { margin: 2px 0 0; color: var(--c-muted); font-size: 12px; line-height: 1.45; max-width: 62ch; }
|
.bt-section-head p { margin: 2px 0 0; color: var(--c-muted); font-size: 12px; line-height: 1.45; max-width: 62ch; }
|
||||||
.bt-section-action { flex: 0 0 auto; }
|
.bt-section-action { flex: 0 0 auto; }
|
||||||
.bt-card { border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-card); box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
|
.bt-card { border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-card); box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
|
||||||
.bt-card:empty { display: none; }
|
.bt-card:empty { display: none; }
|
||||||
.bt-card > .bt-gallery, .bt-card > .bt-import { padding: 12px; }
|
.bt-card > .bt-gallery, .bt-card > .bt-import { padding: 12px; }
|
||||||
|
|
||||||
|
|
@ -85,15 +85,15 @@
|
||||||
|
|
||||||
.bt-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
.bt-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
||||||
.bt-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
|
.bt-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
|
||||||
.bt-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--c-field); border: 1px solid var(--c-line-soft); color: var(--c-muted); font: 500 10.5px/1 var(--f-mono); letter-spacing: 0; }
|
.bt-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: calc(5px * var(--bt-rs, 1)); background: var(--c-field); border: 1px solid var(--c-line-soft); color: var(--c-muted); font: 500 10.5px/1 var(--f-mono); letter-spacing: 0; }
|
||||||
.bt-badge.is-accent { color: var(--c-accent); border-color: rgb(var(--c-accent-rgb) / .3); background: var(--c-accent-soft); }
|
.bt-badge.is-accent { color: var(--c-accent); border-color: rgb(var(--c-accent-rgb) / .3); background: var(--c-accent-soft); }
|
||||||
.bt-status { color: var(--c-muted); font: 11.5px var(--f-mono); }
|
.bt-status { color: var(--c-muted); font: 11.5px var(--f-mono); }
|
||||||
.bt-status.is-warn { color: var(--c-warn); }
|
.bt-status.is-warn { color: var(--c-warn); }
|
||||||
.bt-alert { margin: 12px; padding: 10px 12px; border: 1px solid rgba(255, 92, 108, .35); border-radius: 10px; background: rgba(255, 92, 108, .08); font-size: 12px; }
|
.bt-alert { margin: 12px; padding: 10px 12px; border: 1px solid rgba(255, 92, 108, .35); border-radius: calc(10px * var(--bt-rs, 1)); background: rgba(255, 92, 108, .08); font-size: 12px; }
|
||||||
|
|
||||||
/* Buttons */
|
/* Buttons */
|
||||||
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-text); font-weight: 540; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
|
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font-weight: 540; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
|
||||||
.bt-btn.is-sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
|
.bt-btn.is-sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: calc(8px * var(--bt-rs, 1)); }
|
||||||
.bt-btn:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
.bt-btn:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
||||||
.bt-btn:active:not(:disabled) { transform: translateY(.5px); }
|
.bt-btn:active:not(:disabled) { transform: translateY(.5px); }
|
||||||
.bt-btn:disabled { opacity: .42; cursor: default; }
|
.bt-btn:disabled { opacity: .42; cursor: default; }
|
||||||
|
|
@ -104,16 +104,16 @@
|
||||||
.bt-btn.is-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
|
.bt-btn.is-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
|
||||||
|
|
||||||
/* Toggle */
|
/* Toggle */
|
||||||
.bt-toggle { position: relative; flex: 0 0 auto; width: 36px; height: 21px; padding: 0; border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-track); cursor: pointer; transition: background-color .18s var(--ease), border-color .18s; }
|
.bt-toggle { position: relative; flex: 0 0 auto; width: 36px; height: 21px; padding: 0; border: 1px solid var(--c-line-strong); border-radius: calc(999px * var(--bt-rs, 1)); background: var(--c-track); cursor: pointer; transition: background-color .18s var(--ease), border-color .18s; }
|
||||||
.bt-toggle-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--c-knob); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); transition: transform .2s var(--ease), background-color .18s; }
|
.bt-toggle-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--c-knob); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); transition: transform .2s var(--ease), background-color .18s; }
|
||||||
.bt-toggle.is-on { background: var(--c-accent); border-color: var(--c-accent); }
|
.bt-toggle.is-on { background: var(--c-accent); border-color: var(--c-accent); }
|
||||||
.bt-toggle.is-on .bt-toggle-knob { transform: translateX(15px); background: #fff; }
|
.bt-toggle.is-on .bt-toggle-knob { transform: translateX(15px); background: #fff; }
|
||||||
.bt-toggle:disabled { opacity: .45; cursor: default; }
|
.bt-toggle:disabled { opacity: .45; cursor: default; }
|
||||||
|
|
||||||
/* Segmented */
|
/* Segmented */
|
||||||
.bt-seg { position: relative; display: inline-flex; flex-wrap: nowrap; max-width: 100%; padding: 3px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-ground); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); isolation: isolate; }
|
.bt-seg { position: relative; display: inline-flex; flex-wrap: nowrap; max-width: 100%; padding: 3px; border: 1px solid var(--c-line); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-ground); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); isolation: isolate; }
|
||||||
.bt-seg-thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; border-radius: 7px; background: var(--c-thumb); box-shadow: 0 0 0 1px var(--c-line-strong), 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s var(--ease), width .22s var(--ease), opacity .15s; }
|
.bt-seg-thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; border-radius: calc(7px * var(--bt-rs, 1)); background: var(--c-thumb); box-shadow: 0 0 0 1px var(--c-line-strong), 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s var(--ease), width .22s var(--ease), opacity .15s; }
|
||||||
.bt-seg button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--c-muted); font-weight: 520; white-space: nowrap; cursor: pointer; transition: color .15s; }
|
.bt-seg button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 12px; border: 0; border-radius: calc(7px * var(--bt-rs, 1)); background: transparent; color: var(--c-muted); font-weight: 520; white-space: nowrap; cursor: pointer; transition: color .15s; }
|
||||||
.bt-seg.is-sm button { padding: 0 10px; font-size: 12.5px; }
|
.bt-seg.is-sm button { padding: 0 10px; font-size: 12.5px; }
|
||||||
.bt-seg button:hover { color: var(--c-text); }
|
.bt-seg button:hover { color: var(--c-text); }
|
||||||
.bt-seg button.is-on { color: var(--c-text); }
|
.bt-seg button.is-on { color: var(--c-text); }
|
||||||
|
|
@ -121,13 +121,13 @@
|
||||||
|
|
||||||
/* Select */
|
/* Select */
|
||||||
.bt-select { position: relative; min-width: 150px; }
|
.bt-select { position: relative; min-width: 150px; }
|
||||||
.bt-select-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 32px; padding-block: 0; padding-inline: 11px 10px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); text-align: start; cursor: pointer; transition: border-color .15s; }
|
.bt-select-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 32px; padding-block: 0; padding-inline: 11px 10px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); text-align: start; cursor: pointer; transition: border-color .15s; }
|
||||||
.bt-select-button:hover, .bt-select.is-open .bt-select-button { border-color: var(--c-line-strong); }
|
.bt-select-button:hover, .bt-select.is-open .bt-select-button { border-color: var(--c-line-strong); }
|
||||||
.bt-select-button svg { flex: 0 0 auto; color: var(--c-muted); transition: transform .18s var(--ease); }
|
.bt-select-button svg { flex: 0 0 auto; color: var(--c-muted); transition: transform .18s var(--ease); }
|
||||||
.bt-select.is-open .bt-select-button svg { transform: rotate(180deg); }
|
.bt-select.is-open .bt-select-button svg { transform: rotate(180deg); }
|
||||||
.bt-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-select-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-end: 0; min-width: 100%; width: max-content; max-width: 300px; max-height: 300px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid var(--c-line-strong); border-radius: 11px; background: var(--c-popover); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); animation: bt-pop .14s var(--ease); scrollbar-width: thin; }
|
.bt-select-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-end: 0; min-width: 100%; width: max-content; max-width: 300px; max-height: 300px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid var(--c-line-strong); border-radius: calc(11px * var(--bt-rs, 1)); background: var(--c-popover); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); animation: bt-pop .14s var(--ease); scrollbar-width: thin; }
|
||||||
.bt-select-list li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 32px; padding-block: 5px; padding-inline: 9px 28px; border-radius: 7px; cursor: pointer; }
|
.bt-select-list li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 32px; padding-block: 5px; padding-inline: 9px 28px; border-radius: calc(7px * var(--bt-rs, 1)); cursor: pointer; }
|
||||||
.bt-select-list li.bt-select-group { min-height: 0; margin-top: 4px; padding-block: 7px 3px; color: var(--c-muted); font-size: 11px; font-weight: 600; cursor: default; pointer-events: none; }
|
.bt-select-list li.bt-select-group { min-height: 0; margin-top: 4px; padding-block: 7px 3px; color: var(--c-muted); font-size: 11px; font-weight: 600; cursor: default; pointer-events: none; }
|
||||||
.bt-select-list li.bt-select-group:first-child { margin-top: 0; }
|
.bt-select-list li.bt-select-group:first-child { margin-top: 0; }
|
||||||
.bt-select-list li.is-active { background: var(--c-raise); }
|
.bt-select-list li.is-active { background: var(--c-raise); }
|
||||||
|
|
@ -140,32 +140,32 @@
|
||||||
/* Slider */
|
/* Slider */
|
||||||
.bt-slider { display: flex; align-items: center; gap: 12px; width: min(260px, 100%); }
|
.bt-slider { display: flex; align-items: center; gap: 12px; width: min(260px, 100%); }
|
||||||
.bt-slider input { --pct: 50%; flex: 1; min-width: 0; height: 20px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
|
.bt-slider input { --pct: 50%; flex: 1; min-width: 0; height: 20px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
|
||||||
.bt-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c-accent) var(--pct), var(--c-line) var(--pct)); }
|
.bt-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: calc(4px * var(--bt-rs, 1)); background: linear-gradient(90deg, var(--c-accent) var(--pct), var(--c-line) var(--pct)); }
|
||||||
.bt-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .22), 0 1px 3px rgba(0, 0, 0, .5); transition: box-shadow .15s; }
|
.bt-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .22), 0 1px 3px rgba(0, 0, 0, .5); transition: box-shadow .15s; }
|
||||||
.bt-slider input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgb(var(--c-accent-rgb) / .25), 0 1px 3px rgba(0, 0, 0, .5); }
|
.bt-slider input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgb(var(--c-accent-rgb) / .25), 0 1px 3px rgba(0, 0, 0, .5); }
|
||||||
.bt-slider input::-moz-range-track { height: 4px; border-radius: 4px; background: var(--c-line); }
|
.bt-slider input::-moz-range-track { height: 4px; border-radius: calc(4px * var(--bt-rs, 1)); background: var(--c-line); }
|
||||||
.bt-slider input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--c-accent); }
|
.bt-slider input::-moz-range-progress { height: 4px; border-radius: calc(4px * var(--bt-rs, 1)); background: var(--c-accent); }
|
||||||
.bt-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
|
.bt-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
|
||||||
.bt-slider output { flex: 0 0 auto; min-width: 54px; padding: 3px 6px; border: 1px solid var(--c-line-soft); border-radius: 6px; background: var(--c-chrome); color: var(--c-text); font: 500 11.5px var(--f-mono); text-align: center; }
|
.bt-slider output { flex: 0 0 auto; min-width: 54px; padding: 3px 6px; border: 1px solid var(--c-line-soft); border-radius: calc(6px * var(--bt-rs, 1)); background: var(--c-chrome); color: var(--c-text); font: 500 11.5px var(--f-mono); text-align: center; }
|
||||||
|
|
||||||
/* Color */
|
/* Color */
|
||||||
.bt-color { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
|
.bt-color { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
|
||||||
.bt-swatch { position: relative; flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
|
.bt-swatch { position: relative; flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
|
||||||
.bt-swatch:hover { transform: scale(1.08); }
|
.bt-swatch:hover { transform: scale(1.08); }
|
||||||
.bt-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2px var(--c-card), 0 0 0 4px var(--c-text); }
|
.bt-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2px var(--c-card), 0 0 0 4px var(--c-text); }
|
||||||
.bt-swatch.is-auto { width: auto; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--c-field); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-muted); font-size: 12px; font-weight: 540; }
|
.bt-swatch.is-auto { width: auto; height: 26px; padding: 0 11px; border-radius: calc(999px * var(--bt-rs, 1)); background: var(--c-field); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-muted); font-size: 12px; font-weight: 540; }
|
||||||
.bt-swatch.is-auto.is-on { color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line-strong), 0 0 0 2px var(--c-card), 0 0 0 4px var(--c-text); }
|
.bt-swatch.is-auto.is-on { color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line-strong), 0 0 0 2px var(--c-card), 0 0 0 4px var(--c-text); }
|
||||||
.bt-swatch.is-picker { display: inline-grid; place-items: center; overflow: hidden; background: conic-gradient(from 90deg, #ff5f6d, #ffd400, #3ddc97, #1d9bf0, #7856ff, #f91880, #ff5f6d); }
|
.bt-swatch.is-picker { display: inline-grid; place-items: center; overflow: hidden; background: conic-gradient(from 90deg, #ff5f6d, #ffd400, #3ddc97, #1d9bf0, #7856ff, #f91880, #ff5f6d); }
|
||||||
.bt-swatch.is-picker.is-on { background: var(--sw); }
|
.bt-swatch.is-picker.is-on { background: var(--sw); }
|
||||||
.bt-swatch.is-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
.bt-swatch.is-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
||||||
.bt-hex { width: 84px; height: 28px; margin-inline-start: 2px; padding: 0 8px; border: 1px solid var(--c-line); border-radius: 7px; background: var(--c-field); color: var(--c-text); font: 12px var(--f-mono); outline: none; }
|
.bt-hex { width: 84px; height: 28px; margin-inline-start: 2px; padding: 0 8px; border: 1px solid var(--c-line); border-radius: calc(7px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font: 12px var(--f-mono); outline: none; }
|
||||||
.bt-hex:focus { border-color: var(--c-accent); }
|
.bt-hex:focus { border-color: var(--c-accent); }
|
||||||
|
|
||||||
/* Inputs */
|
/* Inputs */
|
||||||
.bt-input, .btp-input { width: 100%; height: 32px; padding: 0 11px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
|
.bt-input, .btp-input { width: 100%; height: 32px; padding: 0 11px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
|
||||||
.bt-input.is-mono { font-family: var(--f-mono); font-size: 12px; }
|
.bt-input.is-mono { font-family: var(--f-mono); font-size: 12px; }
|
||||||
.bt-input:focus, .btp-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
|
.bt-input:focus, .btp-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
|
||||||
.bt-inputrow { display: flex; width: min(420px, 100%); border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
|
.bt-inputrow { display: flex; width: min(420px, 100%); border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
|
||||||
.bt-inputrow:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
|
.bt-inputrow:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
|
||||||
.bt-inputrow input { flex: 1; min-width: 0; height: 32px; padding: 0 11px; border: 0; background: transparent; color: var(--c-text); font: inherit; outline: none; }
|
.bt-inputrow input { flex: 1; min-width: 0; height: 32px; padding: 0 11px; border: 0; background: transparent; color: var(--c-text); font: inherit; outline: none; }
|
||||||
.bt-inputrow input.is-mono { font: 12px var(--f-mono); }
|
.bt-inputrow input.is-mono { font: 12px var(--f-mono); }
|
||||||
|
|
@ -173,23 +173,23 @@
|
||||||
.bt-inputrow button:hover:not(:disabled) { background: var(--c-raise); }
|
.bt-inputrow button:hover:not(:disabled) { background: var(--c-raise); }
|
||||||
.bt-inputrow button:disabled { color: var(--c-faint); cursor: default; }
|
.bt-inputrow button:disabled { color: var(--c-faint); cursor: default; }
|
||||||
|
|
||||||
.bt-search { position: relative; display: flex; align-items: center; height: 30px; padding-block: 0; padding-inline: 10px 8px; gap: 7px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); color: var(--c-muted); transition: border-color .15s, box-shadow .15s; }
|
.bt-search { position: relative; display: flex; align-items: center; height: 30px; padding-block: 0; padding-inline: 10px 8px; gap: 7px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); transition: border-color .15s, box-shadow .15s; }
|
||||||
.bt-search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); color: var(--c-text); }
|
.bt-search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); color: var(--c-text); }
|
||||||
.bt-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--c-text); font: inherit; outline: none; }
|
.bt-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--c-text); font: inherit; outline: none; }
|
||||||
.bt-search input::-webkit-search-cancel-button { display: none; }
|
.bt-search input::-webkit-search-cancel-button { display: none; }
|
||||||
.bt-search input::placeholder { color: var(--c-faint); }
|
.bt-search input::placeholder { color: var(--c-faint); }
|
||||||
.bt-search button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: var(--c-raise); color: var(--c-muted); line-height: 1; cursor: pointer; }
|
.bt-search button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: calc(5px * var(--bt-rs, 1)); background: var(--c-raise); color: var(--c-muted); line-height: 1; cursor: pointer; }
|
||||||
|
|
||||||
/* Chips */
|
/* Chips */
|
||||||
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
||||||
.bt-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding-block: 0; padding-inline: 10px 4px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-field); font-size: 12.5px; animation: bt-pop .16s var(--ease); }
|
.bt-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding-block: 0; padding-inline: 10px 4px; border: 1px solid var(--c-line); border-radius: calc(999px * var(--bt-rs, 1)); background: var(--c-field); font-size: 12.5px; animation: bt-pop .16s var(--ease); }
|
||||||
.bt-chip > svg { flex: 0 0 auto; color: var(--c-muted); }
|
.bt-chip > svg { flex: 0 0 auto; color: var(--c-muted); }
|
||||||
.bt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.bt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
.bt-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); cursor: pointer; }
|
.bt-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); cursor: pointer; }
|
||||||
.bt-chip button:hover { background: rgba(255, 92, 108, .16); color: var(--c-danger); }
|
.bt-chip button:hover { background: rgba(255, 92, 108, .16); color: var(--c-danger); }
|
||||||
.bt-chips-empty { margin: 0; color: var(--c-faint); font-size: 12px; }
|
.bt-chips-empty { margin: 0; color: var(--c-faint); font-size: 12px; }
|
||||||
|
|
||||||
.bt-stepper { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-field); overflow: hidden; }
|
.bt-stepper { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--c-line); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-field); overflow: hidden; }
|
||||||
.bt-stepper button { width: 30px; height: 100%; border: 0; background: transparent; color: var(--c-muted); font-size: 15px; cursor: pointer; }
|
.bt-stepper button { width: 30px; height: 100%; border: 0; background: transparent; color: var(--c-muted); font-size: 15px; cursor: pointer; }
|
||||||
.bt-stepper button:hover:not(:disabled) { background: var(--c-raise); color: var(--c-text); }
|
.bt-stepper button:hover:not(:disabled) { background: var(--c-raise); color: var(--c-text); }
|
||||||
.bt-stepper button:disabled { opacity: .35; cursor: default; }
|
.bt-stepper button:disabled { opacity: .35; cursor: default; }
|
||||||
|
|
@ -198,25 +198,25 @@
|
||||||
|
|
||||||
/* Empty state */
|
/* Empty state */
|
||||||
.bt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 28px; text-align: center; }
|
.bt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 28px; text-align: center; }
|
||||||
.bt-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border: 1px solid var(--c-line); border-radius: 13px; background: linear-gradient(180deg, var(--c-raise), var(--c-field)); color: var(--c-muted); }
|
.bt-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border: 1px solid var(--c-line); border-radius: calc(13px * var(--bt-rs, 1)); background: linear-gradient(180deg, var(--c-raise), var(--c-field)); color: var(--c-muted); }
|
||||||
.bt-empty strong { font-size: 13.5px; font-weight: 600; }
|
.bt-empty strong { font-size: 13.5px; font-weight: 600; }
|
||||||
.bt-empty p { max-width: 44ch; margin: 0; color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
|
.bt-empty p { max-width: 44ch; margin: 0; color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
|
||||||
.bt-empty-action { margin-top: 10px; }
|
.bt-empty-action { margin-top: 10px; }
|
||||||
.bt-snippet { margin: 8px 0 2px; padding: 10px 14px; border: 1px solid var(--c-line-soft); border-radius: 9px; background: var(--c-ground); color: var(--c-text-2); font: 11.5px/1.6 var(--f-mono); text-align: start; white-space: pre; overflow-x: auto; max-width: 100%; }
|
.bt-snippet { margin: 8px 0 2px; padding: 10px 14px; border: 1px solid var(--c-line-soft); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-ground); color: var(--c-text-2); font: 11.5px/1.6 var(--f-mono); text-align: start; white-space: pre; overflow-x: auto; max-width: 100%; }
|
||||||
|
|
||||||
/* Code editor (Custom CSS, theme JSON) */
|
/* Code editor (Custom CSS, theme JSON) */
|
||||||
.bt-code { display: flex; flex-direction: column; }
|
.bt-code { display: flex; flex-direction: column; }
|
||||||
.bt-code textarea { width: 100%; min-height: 200px; padding: 14px 16px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: var(--c-text-2); font: 12px/1.65 var(--f-mono); resize: vertical; outline: none; tab-size: 2; }
|
.bt-code textarea { width: 100%; min-height: 200px; padding: 14px 16px; border: 0; border-radius: calc(12px * var(--bt-rs, 1)) calc(12px * var(--bt-rs, 1)) 0 0; background: transparent; color: var(--c-text-2); font: 12px/1.65 var(--f-mono); resize: vertical; outline: none; tab-size: 2; }
|
||||||
.bt-code.is-compact textarea { min-height: 110px; border: 1px solid var(--c-line); border-bottom: 0; background: var(--c-chrome); }
|
.bt-code.is-compact textarea { min-height: 110px; border: 1px solid var(--c-line); border-bottom: 0; background: var(--c-chrome); }
|
||||||
.bt-code-bar { display: flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 16px 10px; border-top: 1px solid var(--c-line-soft); }
|
.bt-code-bar { display: flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 16px 10px; border-top: 1px solid var(--c-line-soft); }
|
||||||
.bt-code.is-compact .bt-code-bar { border: 1px solid var(--c-line); border-radius: 0 0 10px 10px; background: var(--c-chrome); }
|
.bt-code.is-compact .bt-code-bar { border: 1px solid var(--c-line); border-radius: 0 0 calc(10px * var(--bt-rs, 1)) calc(10px * var(--bt-rs, 1)); background: var(--c-chrome); }
|
||||||
.bt-code-bar small { margin-inline-end: auto; color: var(--c-faint); font-size: 11.5px; }
|
.bt-code-bar small { margin-inline-end: auto; color: var(--c-faint); font-size: 11.5px; }
|
||||||
.bt-code-bar small.is-error { color: var(--c-danger); font-family: var(--f-ui); font-size: 12px; }
|
.bt-code-bar small.is-error { color: var(--c-danger); font-family: var(--f-ui); font-size: 12px; }
|
||||||
|
|
||||||
/* Theme gallery */
|
/* Theme gallery */
|
||||||
.bt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
|
.bt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
|
||||||
.bt-theme { position: relative; }
|
.bt-theme { position: relative; }
|
||||||
.bt-theme-hit { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 13px; background: var(--c-chrome); text-align: start; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
|
.bt-theme-hit { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: calc(13px * var(--bt-rs, 1)); background: var(--c-chrome); text-align: start; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
|
||||||
.bt-theme-hit:hover { border-color: var(--c-line-strong); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
.bt-theme-hit:hover { border-color: var(--c-line-strong); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
|
||||||
.bt-theme.is-on .bt-theme-hit { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent), 0 12px 36px rgba(59, 90, 200, .22); }
|
.bt-theme.is-on .bt-theme-hit { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent), 0 12px 36px rgba(59, 90, 200, .22); }
|
||||||
.bt-theme-hit .tp { border-bottom: 1px solid var(--c-line-soft); }
|
.bt-theme-hit .tp { border-bottom: 1px solid var(--c-line-soft); }
|
||||||
|
|
@ -226,14 +226,14 @@
|
||||||
.bt-theme-check { display: grid; place-items: center; width: 18px; height: 18px; margin-inline-start: auto; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); }
|
.bt-theme-check { display: grid; place-items: center; width: 18px; height: 18px; margin-inline-start: auto; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); }
|
||||||
.bt-theme-info small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-muted); font-size: 12px; line-height: 1.4; }
|
.bt-theme-info small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-muted); font-size: 12px; line-height: 1.4; }
|
||||||
.bt-theme-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
|
.bt-theme-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
|
||||||
.bt-theme-tags em { padding: 1px 6px; border-radius: 5px; background: var(--c-field); color: var(--c-muted); font: normal 500 10.5px/16px var(--f-mono); }
|
.bt-theme-tags em { padding: 1px 6px; border-radius: calc(5px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); font: normal 500 10.5px/16px var(--f-mono); }
|
||||||
.bt-theme-tags em.is-accent { color: var(--c-accent); background: var(--c-accent-soft); }
|
.bt-theme-tags em.is-accent { color: var(--c-accent); background: var(--c-accent-soft); }
|
||||||
.bt-theme-remove { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(7, 8, 12, .72); color: #fff; backdrop-filter: blur(6px); opacity: 0; cursor: pointer; transition: opacity .15s; }
|
.bt-theme-remove { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: calc(8px * var(--bt-rs, 1)); background: rgba(7, 8, 12, .72); color: #fff; backdrop-filter: blur(6px); opacity: 0; cursor: pointer; transition: opacity .15s; }
|
||||||
.bt-theme:hover .bt-theme-remove, .bt-theme-remove:focus-visible { opacity: 1; }
|
.bt-theme:hover .bt-theme-remove, .bt-theme-remove:focus-visible { opacity: 1; }
|
||||||
.bt-theme-remove:hover { background: var(--c-danger); border-color: var(--c-danger); }
|
.bt-theme-remove:hover { background: var(--c-danger); border-color: var(--c-danger); }
|
||||||
|
|
||||||
.bt-import { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--c-line-soft); }
|
.bt-import { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--c-line-soft); }
|
||||||
.bt-import-drop { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px dashed var(--c-line-strong); border-radius: 11px; background: repeating-linear-gradient(135deg, rgba(123, 156, 255, .03) 0 8px, transparent 8px 16px); }
|
.bt-import-drop { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px dashed var(--c-line-strong); border-radius: calc(11px * var(--bt-rs, 1)); background: repeating-linear-gradient(135deg, rgba(123, 156, 255, .03) 0 8px, transparent 8px 16px); }
|
||||||
.bt-import-drop strong { font-size: 13px; font-weight: 600; }
|
.bt-import-drop strong { font-size: 13px; font-weight: 600; }
|
||||||
.bt-import-drop p { margin: 0 0 6px; color: var(--c-muted); font-size: 12px; line-height: 1.5; }
|
.bt-import-drop p { margin: 0 0 6px; color: var(--c-muted); font-size: 12px; line-height: 1.5; }
|
||||||
@container panel (min-width: 620px) { .bt-import { grid-template-columns: 1fr 1fr; } }
|
@container panel (min-width: 620px) { .bt-import { grid-template-columns: 1fr 1fr; } }
|
||||||
|
|
@ -253,7 +253,7 @@
|
||||||
.tp-tabs { display: flex; margin-top: 10px; }
|
.tp-tabs { display: flex; margin-top: 10px; }
|
||||||
.tp-tabs span { flex: 1; padding: 12px 0 14px; color: var(--tp-muted); text-align: center; font-weight: 500; }
|
.tp-tabs span { flex: 1; padding: 12px 0 14px; color: var(--tp-muted); text-align: center; font-weight: 500; }
|
||||||
.tp-tabs span.is-on { position: relative; color: var(--tp-text); font-weight: var(--tp-bold); }
|
.tp-tabs span.is-on { position: relative; color: var(--tp-text); font-weight: var(--tp-bold); }
|
||||||
.tp-tabs span.is-on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: var(--tp-accent); } /* rtl-ok: centred with left: 50% */
|
.tp-tabs span.is-on::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: calc(4px * var(--bt-rs, 1)); background: var(--tp-accent); } /* rtl-ok: centred with left: 50% */
|
||||||
.tp-feed.is-cards { padding: 6px 0; }
|
.tp-feed.is-cards { padding: 6px 0; }
|
||||||
.tp-post { display: flex; gap: 12px; padding: var(--tp-pad) 16px; border-bottom: 1px solid var(--tp-border); }
|
.tp-post { display: flex; gap: 12px; padding: var(--tp-pad) 16px; border-bottom: 1px solid var(--tp-border); }
|
||||||
.tp-feed.is-cards .tp-post { margin: calc(var(--tp-pad) / 2 + 2px) 12px; border: 1px solid var(--tp-border); border-radius: var(--tp-r); background: var(--tp-surface); }
|
.tp-feed.is-cards .tp-post { margin: calc(var(--tp-pad) / 2 + 2px) 12px; border: 1px solid var(--tp-border); border-radius: var(--tp-r); background: var(--tp-surface); }
|
||||||
|
|
@ -285,7 +285,7 @@
|
||||||
.btp-results .bt-section:first-child { margin-top: 0; }
|
.btp-results .bt-section:first-child { margin-top: 0; }
|
||||||
|
|
||||||
/* Toast */
|
/* Toast */
|
||||||
.btp-toast { position: absolute; left: 50%; bottom: 18px; z-index: 40; max-width: min(520px, calc(100% - 32px)); padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: 11px; background: #141824; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); font-size: 12.5px; cursor: pointer; transform: translateX(-50%); animation: bt-toast .22s var(--ease); }
|
.btp-toast { position: absolute; left: 50%; bottom: 18px; z-index: 40; max-width: min(520px, calc(100% - 32px)); padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: calc(11px * var(--bt-rs, 1)); background: #141824; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); font-size: 12.5px; cursor: pointer; transform: translateX(-50%); animation: bt-toast .22s var(--ease); }
|
||||||
.btp-toast.is-error { border-color: rgba(255, 92, 108, .55); background: color-mix(in srgb, var(--c-danger) 12%, var(--c-card)); }
|
.btp-toast.is-error { border-color: rgba(255, 92, 108, .55); background: color-mix(in srgb, var(--c-danger) 12%, var(--c-card)); }
|
||||||
@keyframes bt-toast { from { opacity: 0; transform: translate(-50%, 8px); } }
|
@keyframes bt-toast { from { opacity: 0; transform: translate(-50%, 8px); } }
|
||||||
|
|
||||||
|
|
@ -298,25 +298,25 @@
|
||||||
.btp-group-head h2 { margin: 0; font-size: 13px; font-weight: 620; }
|
.btp-group-head h2 { margin: 0; font-size: 13px; font-weight: 620; }
|
||||||
.btp-group-head p { margin: 2px 0 0; color: var(--c-muted); font-size: 12px; }
|
.btp-group-head p { margin: 2px 0 0; color: var(--c-muted); font-size: 12px; }
|
||||||
.btp-muted { color: var(--c-muted); font-size: 12px; margin-inline-end: auto; }
|
.btp-muted { color: var(--c-muted); font-size: 12px; margin-inline-end: auto; }
|
||||||
.btp-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-field); cursor: pointer; font-weight: 540; white-space: nowrap; transition: border-color .15s, background-color .15s; }
|
.btp-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: calc(8px * var(--bt-rs, 1)); background: var(--c-field); cursor: pointer; font-weight: 540; white-space: nowrap; transition: border-color .15s, background-color .15s; }
|
||||||
.btp-btn:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
.btp-btn:hover:not(:disabled) { border-color: var(--c-line-strong); background: var(--c-raise); }
|
||||||
.btp-btn:disabled { opacity: .42; cursor: default; }
|
.btp-btn:disabled { opacity: .42; cursor: default; }
|
||||||
.btp-btn.is-primary { background: var(--c-text); border-color: var(--c-text); color: var(--c-ground); }
|
.btp-btn.is-primary { background: var(--c-text); border-color: var(--c-text); color: var(--c-ground); }
|
||||||
.btp-btn.is-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
|
.btp-btn.is-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
|
||||||
.btp-link { border: 0; background: none; padding: 6px 0; color: var(--c-accent); cursor: pointer; font-weight: 540; }
|
.btp-link { border: 0; background: none; padding: 6px 0; color: var(--c-accent); cursor: pointer; font-weight: 540; }
|
||||||
.btp-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
|
.btp-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
|
||||||
.btp-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(255, 92, 108, .35); border-radius: 10px; background: rgba(255, 92, 108, .08); font-size: 12px; }
|
.btp-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(255, 92, 108, .35); border-radius: calc(10px * var(--bt-rs, 1)); background: rgba(255, 92, 108, .08); font-size: 12px; }
|
||||||
.btp-alert .btp-btn { margin-inline-start: auto; }
|
.btp-alert .btp-btn { margin-inline-start: auto; }
|
||||||
.btp-toolbar { display: flex; gap: 8px; }
|
.btp-toolbar { display: flex; gap: 8px; }
|
||||||
.btp-seg { display: inline-flex; gap: 2px; margin: 12px 0 8px; padding: 3px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-chrome); }
|
.btp-seg { display: inline-flex; gap: 2px; margin: 12px 0 8px; padding: 3px; border: 1px solid var(--c-line); border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-chrome); }
|
||||||
.btp-seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--c-muted); cursor: pointer; font-weight: 520; }
|
.btp-seg button { height: 26px; padding: 0 11px; border: 0; border-radius: calc(7px * var(--bt-rs, 1)); background: none; color: var(--c-muted); cursor: pointer; font-weight: 520; }
|
||||||
.btp-seg button.is-on { background: var(--c-raise); color: var(--c-text); box-shadow: 0 0 0 1px var(--c-line-strong); }
|
.btp-seg button.is-on { background: var(--c-raise); color: var(--c-text); box-shadow: 0 0 0 1px var(--c-line-strong); }
|
||||||
.btp-seg span { margin-inline-start: 5px; font: 11px var(--f-mono); opacity: .7; }
|
.btp-seg span { margin-inline-start: 5px; font: 11px var(--f-mono); opacity: .7; }
|
||||||
.btp-list { display: flex; flex-direction: column; gap: 6px; }
|
.btp-list { display: flex; flex-direction: column; gap: 6px; }
|
||||||
.btp-list-head { margin: 16px 2px 4px; color: var(--c-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
|
.btp-list-head { margin: 16px 2px 4px; color: var(--c-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
|
||||||
.btp-list-head span { font-family: var(--f-mono); }
|
.btp-list-head span { font-family: var(--f-mono); }
|
||||||
.btp-empty { margin: 0; padding: 26px 16px; border: 1px dashed var(--c-line); border-radius: 12px; color: var(--c-muted); font-size: 12.5px; text-align: center; }
|
.btp-empty { margin: 0; padding: 26px 16px; border: 1px dashed var(--c-line); border-radius: calc(12px * var(--bt-rs, 1)); color: var(--c-muted); font-size: 12.5px; text-align: center; }
|
||||||
.btp-item { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 11px 13px; border: 1px solid var(--c-line-soft); border-radius: 11px; background: var(--c-card); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
.btp-item { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 11px 13px; border: 1px solid var(--c-line-soft); border-radius: calc(11px * var(--bt-rs, 1)); background: var(--c-card); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
|
||||||
.btp-item:hover { border-color: var(--c-line); background: var(--c-field); }
|
.btp-item:hover { border-color: var(--c-line); background: var(--c-field); }
|
||||||
.btp-item.is-on { border-color: var(--c-accent); }
|
.btp-item.is-on { border-color: var(--c-accent); }
|
||||||
.btp-item-top { display: flex; align-items: baseline; gap: 8px; }
|
.btp-item-top { display: flex; align-items: baseline; gap: 8px; }
|
||||||
|
|
@ -324,7 +324,7 @@
|
||||||
.btp-item-top small { flex: 0 0 auto; color: var(--c-muted); font: 11px var(--f-mono); }
|
.btp-item-top small { flex: 0 0 auto; color: var(--c-muted); font: 11px var(--f-mono); }
|
||||||
.btp-item-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-muted); font-size: 12px; white-space: pre-wrap; }
|
.btp-item-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-muted); font-size: 12px; white-space: pre-wrap; }
|
||||||
.btp-item-meta { display: flex; gap: 6px; margin-top: 3px; }
|
.btp-item-meta { display: flex; gap: 6px; margin-top: 3px; }
|
||||||
.btp-item-meta em { padding: 0 6px; border-radius: 5px; background: var(--c-field); color: var(--c-muted); font: normal 10.5px/17px var(--f-mono); }
|
.btp-item-meta em { padding: 0 6px; border-radius: calc(5px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); font: normal 10.5px/17px var(--f-mono); }
|
||||||
.btp-item-meta em.is-warn { color: var(--c-warn); }
|
.btp-item-meta em.is-warn { color: var(--c-warn); }
|
||||||
.btp-draft { padding-top: 2px; }
|
.btp-draft { padding-top: 2px; }
|
||||||
.btp-draft-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
|
.btp-draft-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
|
||||||
|
|
@ -333,11 +333,11 @@
|
||||||
.btp-save.is-error, .btp-save.is-conflict { color: var(--c-danger); }
|
.btp-save.is-error, .btp-save.is-conflict { color: var(--c-danger); }
|
||||||
.btp-draft-title { margin-bottom: 8px; font-weight: 600; }
|
.btp-draft-title { margin-bottom: 8px; font-weight: 600; }
|
||||||
.btp-draft-text { height: auto; min-height: 200px; padding: 12px; resize: vertical; line-height: 1.55; }
|
.btp-draft-text { height: auto; min-height: 200px; padding: 12px; resize: vertical; line-height: 1.55; }
|
||||||
.btp-diff pre { margin: 6px 0 0; padding: 8px 10px; max-height: 180px; overflow: auto; border: 1px solid var(--c-line-soft); border-radius: 9px; background: var(--c-card); font: 11.5px/1.5 var(--f-mono); white-space: pre-wrap; }
|
.btp-diff pre { margin: 6px 0 0; padding: 8px 10px; max-height: 180px; overflow: auto; border: 1px solid var(--c-line-soft); border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-card); font: 11.5px/1.5 var(--f-mono); white-space: pre-wrap; }
|
||||||
.btp-diff pre span { display: block; }
|
.btp-diff pre span { display: block; }
|
||||||
.btp-diff .is-del { background: rgba(255, 92, 108, .14); }
|
.btp-diff .is-del { background: rgba(255, 92, 108, .14); }
|
||||||
.btp-diff .is-add { background: rgba(61, 220, 151, .14); }
|
.btp-diff .is-add { background: rgba(61, 220, 151, .14); }
|
||||||
.btp-account { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line-soft); border-radius: 11px; background: var(--c-card); }
|
.btp-account { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line-soft); border-radius: calc(11px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.btp-account.is-on { border-color: var(--c-line-strong); }
|
.btp-account.is-on { border-color: var(--c-line-strong); }
|
||||||
.btp-account .btp-input { flex: 1; }
|
.btp-account .btp-input { flex: 1; }
|
||||||
.btp-dot { flex: 0 0 auto; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 3px var(--c-card), 0 0 0 4px var(--c-line); }
|
.btp-dot { flex: 0 0 auto; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 3px var(--c-card), 0 0 0 4px var(--c-line); }
|
||||||
|
|
@ -345,36 +345,36 @@
|
||||||
.btp-account-name strong { font-weight: 600; }
|
.btp-account-name strong { font-weight: 600; }
|
||||||
.btp-account-name small { color: var(--c-muted); font-size: 11.5px; }
|
.btp-account-name small { color: var(--c-muted); font-size: 11.5px; }
|
||||||
.btp-account.is-on .btp-account-name small { color: var(--c-accent); }
|
.btp-account.is-on .btp-account-name small { color: var(--c-accent); }
|
||||||
.btp-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-card); }
|
.btp-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-card); }
|
||||||
.btp-card > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
|
.btp-card > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
|
||||||
.btp-card small { color: var(--c-muted); font-size: 12px; }
|
.btp-card small { color: var(--c-muted); font-size: 12px; }
|
||||||
.btp-notes { margin: 6px 0 0; color: var(--c-muted); font-size: 12px; white-space: pre-wrap; }
|
.btp-notes { margin: 6px 0 0; color: var(--c-muted); font-size: 12px; white-space: pre-wrap; }
|
||||||
|
|
||||||
/* Home: the wayBetter hero, highlights and About */
|
/* Home: the wayBetter hero, highlights and About */
|
||||||
.btp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 30px 24px 26px; border: 1px solid var(--c-line); border-radius: 18px; background: radial-gradient(120% 90% at 0% 0%, rgba(79, 107, 255, .16), transparent 60%), radial-gradient(90% 80% at 100% 10%, rgba(168, 85, 247, .14), transparent 60%), var(--c-card); }
|
.btp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 30px 24px 26px; border: 1px solid var(--c-line); border-radius: calc(18px * var(--bt-rs, 1)); background: radial-gradient(120% 90% at 0% 0%, rgba(79, 107, 255, .16), transparent 60%), radial-gradient(90% 80% at 100% 10%, rgba(168, 85, 247, .14), transparent 60%), var(--c-card); }
|
||||||
.btp-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-brush); opacity: .9; }
|
.btp-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-brush); opacity: .9; }
|
||||||
.btp-hero-glow { position: absolute; z-index: -1; inset-inline-end: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 70%); filter: blur(8px); }
|
.btp-hero-glow { position: absolute; z-index: -1; inset-inline-end: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 70%); filter: blur(8px); }
|
||||||
.btp-hero-mark { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -12px rgba(79, 107, 255, .55); }
|
.btp-hero-mark { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 18px; border-radius: calc(20px * var(--bt-rs, 1)); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -12px rgba(79, 107, 255, .55); }
|
||||||
.btp-hero-mark img { border-radius: 14px; }
|
.btp-hero-mark img { border-radius: calc(14px * var(--bt-rs, 1)); }
|
||||||
.btp-hero-kicker { margin: 0 0 6px; color: var(--c-muted); font-size: 12.5px; font-weight: 560; letter-spacing: .01em; }
|
.btp-hero-kicker { margin: 0 0 6px; color: var(--c-muted); font-size: 12.5px; font-weight: 560; letter-spacing: .01em; }
|
||||||
.btp-hero-name { background: var(--c-brush); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 720; }
|
.btp-hero-name { background: var(--c-brush); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 720; }
|
||||||
.btp-hero-title { margin: 0; font-size: clamp(24px, 6cqi, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
|
.btp-hero-title { margin: 0; font-size: clamp(24px, 6cqi, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
|
||||||
.btp-hero-title em { font-style: normal; background: var(--c-brush); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
.btp-hero-title em { font-style: normal; background: var(--c-brush); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
||||||
.btp-hero-lede { max-width: 54ch; margin: 12px 0 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.55; }
|
.btp-hero-lede { max-width: 54ch; margin: 12px 0 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.55; }
|
||||||
.btp-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
|
.btp-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
|
||||||
.btp-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--c-text); font-size: 11.5px; font-weight: 560; font-variant-numeric: tabular-nums; }
|
.btp-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--c-line-strong); border-radius: calc(999px * var(--bt-rs, 1)); background: rgba(255, 255, 255, .03); color: var(--c-text); font-size: 11.5px; font-weight: 560; font-variant-numeric: tabular-nums; }
|
||||||
.btp-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
|
.btp-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
|
||||||
.btp-hero-actions .btp-btn { height: 34px; padding: 0 16px; border-radius: 10px; }
|
.btp-hero-actions .btp-btn { height: 34px; padding: 0 16px; border-radius: calc(10px * var(--bt-rs, 1)); }
|
||||||
|
|
||||||
.btp-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0 26px; }
|
.btp-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0 26px; }
|
||||||
.btp-highlight { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 3px; align-items: center; padding: 13px 14px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-card); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
|
.btp-highlight { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 3px; align-items: center; padding: 13px 14px; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); background: var(--c-card); color: var(--c-text); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
|
||||||
.btp-highlight:hover { border-color: var(--c-line-strong); background: var(--c-field); transform: translateY(-1px); }
|
.btp-highlight:hover { border-color: var(--c-line-strong); background: var(--c-field); transform: translateY(-1px); }
|
||||||
.btp-highlight svg { color: var(--c-accent); }
|
.btp-highlight svg { color: var(--c-accent); }
|
||||||
.btp-highlight strong { font-size: 13px; font-weight: 640; }
|
.btp-highlight strong { font-size: 13px; font-weight: 640; }
|
||||||
.btp-highlight span { grid-column: 1 / -1; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
.btp-highlight span { grid-column: 1 / -1; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
||||||
|
|
||||||
.btp-about .btp-group-head p { max-width: 64ch; line-height: 1.55; font-size: 12.5px; margin-top: 4px; }
|
.btp-about .btp-group-head p { max-width: 64ch; line-height: 1.55; font-size: 12.5px; margin-top: 4px; }
|
||||||
.btp-layers { display: grid; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--c-line-soft); border-radius: 12px; overflow: hidden; background: var(--c-line-soft); }
|
.btp-layers { display: grid; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--c-line-soft); border-radius: calc(12px * var(--bt-rs, 1)); overflow: hidden; background: var(--c-line-soft); }
|
||||||
.btp-layers li { display: flex; gap: 14px; align-items: baseline; padding: 13px 16px; background: var(--c-card); }
|
.btp-layers li { display: flex; gap: 14px; align-items: baseline; padding: 13px 16px; background: var(--c-card); }
|
||||||
.btp-layers li div { display: grid; gap: 2px; }
|
.btp-layers li div { display: grid; gap: 2px; }
|
||||||
.btp-layers strong { font-size: 13px; font-weight: 640; }
|
.btp-layers strong { font-size: 13px; font-weight: 640; }
|
||||||
|
|
@ -393,7 +393,7 @@
|
||||||
.wb-pack-facts dt { color: var(--c-text-2, inherit); opacity: .75; }
|
.wb-pack-facts dt { color: var(--c-text-2, inherit); opacity: .75; }
|
||||||
.wb-pack-facts dd { margin: 0; overflow-wrap: anywhere; }
|
.wb-pack-facts dd { margin: 0; overflow-wrap: anywhere; }
|
||||||
.wb-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 6px; padding: 8px 0; }
|
.wb-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 6px; padding: 8px 0; }
|
||||||
.wb-pack-grid span { display: grid; place-items: center; height: 32px; border-radius: 8px; background: rgba(127, 127, 127, .08); }
|
.wb-pack-grid span { display: grid; place-items: center; height: 32px; border-radius: calc(8px * var(--bt-rs, 1)); background: rgba(127, 127, 127, .08); }
|
||||||
.wb-pack-grid .bt-glyph { width: 20px; height: 20px; }
|
.wb-pack-grid .bt-glyph { width: 20px; height: 20px; }
|
||||||
.wb-pack-warning { color: var(--c-warn, #d9a441); font-size: 12px; }
|
.wb-pack-warning { color: var(--c-warn, #d9a441); font-size: 12px; }
|
||||||
.wb-pack-list { flex-wrap: wrap; margin-top: 6px; }
|
.wb-pack-list { flex-wrap: wrap; margin-top: 6px; }
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
/* Plugins list: permission and source badges (Extensions.tsx). */
|
/* Plugins list: permission and source badges (Extensions.tsx). */
|
||||||
.wbx-perms { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-inline-start: 6px; vertical-align: middle; }
|
.wbx-perms { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-inline-start: 6px; vertical-align: middle; }
|
||||||
.wbx-perms span { padding: 0 6px; height: 18px; display: inline-flex; align-items: center; border-radius: 5px; font: 500 10.5px/1 var(--f-mono, ui-monospace, monospace); color: var(--c-muted); background: var(--c-field); border: 1px solid var(--c-line-soft); }
|
.wbx-perms span { padding: 0 6px; height: 18px; display: inline-flex; align-items: center; border-radius: calc(5px * var(--bt-rs, 1)); font: 500 10.5px/1 var(--f-mono, ui-monospace, monospace); color: var(--c-muted); background: var(--c-field); border: 1px solid var(--c-line-soft); }
|
||||||
.wbx-perms span.is-warn { color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 35%, transparent); }
|
.wbx-perms span.is-warn { color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 35%, transparent); }
|
||||||
.wbx-perms span.is-ok { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
|
.wbx-perms span.is-ok { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
|
||||||
.wbx-perms span.is-source { color: var(--c-accent); border-color: rgb(var(--c-accent-rgb) / .3); }
|
.wbx-perms span.is-source { color: var(--c-accent); border-color: rgb(var(--c-accent-rgb) / .3); }
|
||||||
|
|
@ -20,12 +20,12 @@
|
||||||
/* Area plugins (PluginFeatures.tsx): one card per area, its features inside. */
|
/* Area plugins (PluginFeatures.tsx): one card per area, its features inside. */
|
||||||
.wbf-area + .wbf-area { border-top: 1px solid var(--c-line-soft); }
|
.wbf-area + .wbf-area { border-top: 1px solid var(--c-line-soft); }
|
||||||
.wbf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
|
.wbf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
|
||||||
.wbf-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c-accent-soft); color: var(--c-accent); }
|
.wbf-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: calc(9px * var(--bt-rs, 1)); background: var(--c-accent-soft); color: var(--c-accent); }
|
||||||
.wbf-area.is-off .wbf-icon { background: var(--c-field); color: var(--c-muted); }
|
.wbf-area.is-off .wbf-icon { background: var(--c-field); color: var(--c-muted); }
|
||||||
.wbf-title { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
|
.wbf-title { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
|
||||||
.wbf-title strong { font-size: 14px; font-weight: 620; }
|
.wbf-title strong { font-size: 14px; font-weight: 620; }
|
||||||
.wbf-title small { grid-column: 1 / -1; margin-top: 2px; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
.wbf-title small { grid-column: 1 / -1; margin-top: 2px; color: var(--c-muted); font-size: 12px; line-height: 1.45; }
|
||||||
.wbf-title:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 6px; }
|
.wbf-title:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: calc(6px * var(--bt-rs, 1)); }
|
||||||
.wbf-title:disabled { cursor: default; }
|
.wbf-title:disabled { cursor: default; }
|
||||||
.wbf-caret { flex: none; display: grid; color: var(--c-muted); transition: transform .14s var(--ease, ease); }
|
.wbf-caret { flex: none; display: grid; color: var(--c-muted); transition: transform .14s var(--ease, ease); }
|
||||||
.wbf-caret.is-open { transform: rotate(180deg); }
|
.wbf-caret.is-open { transform: rotate(180deg); }
|
||||||
|
|
@ -45,13 +45,13 @@
|
||||||
.wbm-onboarding h1 { margin: 8px 0 0; font-size: 24px; font-weight: 680; letter-spacing: -.01em; text-wrap: balance; }
|
.wbm-onboarding h1 { margin: 8px 0 0; font-size: 24px; font-weight: 680; letter-spacing: -.01em; text-wrap: balance; }
|
||||||
.wbm-onboarding > p { margin: 0; max-width: 58ch; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
|
.wbm-onboarding > p { margin: 0; max-width: 58ch; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
|
||||||
.wbm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; width: 100%; margin: 18px 0 6px; }
|
.wbm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; width: 100%; margin: 18px 0 6px; }
|
||||||
.wbm-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--c-line-soft); border-radius: 14px; background: var(--c-card); color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .12s var(--ease, ease), box-shadow .12s var(--ease, ease); }
|
.wbm-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--c-line-soft); border-radius: calc(14px * var(--bt-rs, 1)); background: var(--c-card); color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .12s var(--ease, ease), box-shadow .12s var(--ease, ease); }
|
||||||
.wbm-card:hover { border-color: var(--c-line-strong); }
|
.wbm-card:hover { border-color: var(--c-line-strong); }
|
||||||
.wbm-card.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
.wbm-card.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
|
||||||
.wbm-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
|
.wbm-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
|
||||||
.wbm-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 640; }
|
.wbm-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 640; }
|
||||||
.wbm-card > span:last-child { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
|
.wbm-card > span:last-child { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
|
||||||
.wbm-art { display: grid; place-items: center; height: 72px; border-radius: 10px; background: var(--c-field); color: var(--c-muted); }
|
.wbm-art { display: grid; place-items: center; height: 72px; border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-field); color: var(--c-muted); }
|
||||||
.wbm-card.is-on .wbm-art { color: var(--c-accent); }
|
.wbm-card.is-on .wbm-art { color: var(--c-accent); }
|
||||||
/* The shell's base glyph rule (16px icons) must not shrink a card's picture to a few dots. */
|
/* The shell's base glyph rule (16px icons) must not shrink a card's picture to a few dots. */
|
||||||
.wbm-art svg { width: 96px; height: 40px; }
|
.wbm-art svg { width: 96px; height: 40px; }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* The Languages section (StringPacks.tsx): one row per installed string pack. */
|
/* The Languages section (StringPacks.tsx): one row per installed string pack. */
|
||||||
.btp-strings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
|
.btp-strings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
|
||||||
.btp-strings-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--c-surface-2, var(--c-surface)); }
|
.btp-strings-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: calc(10px * var(--bt-rs, 1)); background: var(--c-surface-2, var(--c-surface)); }
|
||||||
.btp-strings-row.is-on { box-shadow: inset 0 0 0 1px var(--c-accent); }
|
.btp-strings-row.is-on { box-shadow: inset 0 0 0 1px var(--c-accent); }
|
||||||
.btp-strings-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
.btp-strings-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
||||||
.btp-strings-text small { color: var(--c-text-2, var(--c-muted)); overflow-wrap: anywhere; }
|
.btp-strings-text small { color: var(--c-text-2, var(--c-muted)); overflow-wrap: anywhere; }
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import test from 'node:test';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { accountAction, accountStartUrl, tabsByAccount, type PaneInfo } from '../src/frame/accountModel.ts';
|
import { accountAction, accountStartUrl, tabsByAccount, type PaneInfo } from '../src/frame/accountModel.ts';
|
||||||
import { BOOT_CACHE_KEY, bootScript } from '../src/frame/boot.ts';
|
import { BOOT_CACHE_KEY, bootScript } from '../src/frame/boot.ts';
|
||||||
import { CHROME_VAR_NAMES, chromeVars } from '../src/frame/chromeTheme.ts';
|
import { CHROME_VAR_NAMES, chromeEdges, chromeVars } from '../src/frame/chromeTheme.ts';
|
||||||
import { defaultDeckSettings, normalizeDeckSettings } from '../src/frame/deckStore.ts';
|
import { defaultDeckSettings, normalizeDeckSettings } from '../src/frame/deckStore.ts';
|
||||||
import { FRAME_MESSAGES } from '../src/frame/frameMessages.ts';
|
import { FRAME_MESSAGES } from '../src/frame/frameMessages.ts';
|
||||||
import { attachTarget } from '../src/frame/mediaModel.ts';
|
import { attachTarget } from '../src/frame/mediaModel.ts';
|
||||||
|
|
@ -111,6 +111,30 @@ test('chrome variables: none for the own style, fonts only without colors, every
|
||||||
for (const name of Object.keys(vars)) assert.ok(CHROME_VAR_NAMES.includes(name), name);
|
for (const name of Object.keys(vars)) assert.ok(CHROME_VAR_NAMES.includes(name), name);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('chrome variables: radii scale with the theme, a bevelled theme gets 98-style edges from its own face', () => {
|
||||||
|
const colors = { bg: '#ffffff', surface: '#f4f4f4', elevated: '#dfdfdf', border: '#808080', text: '#000000', muted: '#3c3c3c', accent: '#0000a8', page: '#c0c0c0', inverse: '#000080', onInverse: '#ffffff' };
|
||||||
|
assert.equal(chromeVars({ colors, radius: 0 })['--wb-c-rs'], '0');
|
||||||
|
assert.equal(chromeVars({ colors, radius: 12 })['--wb-c-rs'], '1');
|
||||||
|
assert.equal(chromeVars({ colors, radius: 40 })['--wb-c-rs'], '1.5');
|
||||||
|
// A theme that keeps the site's colors keeps wayBetter's own corners and edges.
|
||||||
|
assert.deepEqual(chromeVars({ colors: null, radius: 0, edges: 'bevel' }), {});
|
||||||
|
const flat = chromeVars({ colors, radius: 0 });
|
||||||
|
assert.equal(chromeEdges(flat), null);
|
||||||
|
assert.equal(flat['--wb-c-face'], undefined);
|
||||||
|
const bevel = chromeVars({ colors, radius: 0, edges: 'bevel' });
|
||||||
|
assert.equal(chromeEdges(bevel), 'bevel');
|
||||||
|
// 98.css's four edge lines, from the theme's silver.
|
||||||
|
assert.equal(bevel['--wb-c-face'], '#c0c0c0');
|
||||||
|
assert.equal(bevel['--wb-c-bevel-hi'], '#ffffff');
|
||||||
|
assert.equal(bevel['--wb-c-bevel-sh'], '#808080');
|
||||||
|
assert.equal(bevel['--wb-c-bevel-dk'], '#0a0a0a');
|
||||||
|
assert.equal(bevel['--wb-c-title-from'], '#000080');
|
||||||
|
assert.equal(bevel['--wb-c-title-text'], '#ffffff');
|
||||||
|
for (const name of Object.keys(bevel)) assert.ok(CHROME_VAR_NAMES.includes(name), name);
|
||||||
|
// The first frame paints the edges too.
|
||||||
|
assert.ok(bootScript().includes("root.dataset.wbEdges = 'bevel'"));
|
||||||
|
});
|
||||||
|
|
||||||
test('account switcher: a visible pane on the site first, else the feed or sign-in beside', () => {
|
test('account switcher: a visible pane on the site first, else the feed or sign-in beside', () => {
|
||||||
const settings = normalizeProfiles({ active: 'default', profiles: [
|
const settings = normalizeProfiles({ active: 'default', profiles: [
|
||||||
{ id: 'default', name: 'Main', color: '#1d9bf0', account: { handle: 'me', name: 'Me', signedIn: true } },
|
{ id: 'default', name: 'Main', color: '#1d9bf0', account: { handle: 'me', name: 'Me', signedIn: true } },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue