trebol 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/cli.js +17097 -12238
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/dist/fonts/inter-cyrillic.woff2 +0 -0
- package/dist/fonts/inter-greek-ext.woff2 +0 -0
- package/dist/fonts/inter-greek.woff2 +0 -0
- package/dist/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/fonts/inter-latin.woff2 +0 -0
- package/dist/fonts/inter-vietnamese.woff2 +0 -0
- package/dist/lib/core/boot.js +12 -8
- package/dist/lib/core/eval.js +2 -2
- package/dist/lib/core/func.d.ts +4 -0
- package/dist/lib/core/machine/checks.d.ts +1 -0
- package/dist/lib/core/machine/checks.js +250 -0
- package/dist/lib/core/machine/events.d.ts +1 -0
- package/dist/lib/core/machine/events.js +365 -0
- package/dist/lib/core/machine/running.d.ts +1 -0
- package/dist/lib/core/machine/running.js +180 -0
- package/dist/lib/core/machine/shared.d.ts +1 -0
- package/dist/lib/core/machine/shared.js +123 -0
- package/dist/lib/core/machine/snapshot.d.ts +1 -0
- package/dist/lib/core/machine/snapshot.js +244 -0
- package/dist/lib/core/machine/spec.d.ts +1 -0
- package/dist/lib/core/machine/spec.js +274 -0
- package/dist/lib/core/machine/words.d.ts +1 -0
- package/dist/lib/core/machine/words.js +98 -0
- package/dist/lib/core/machine.d.ts +1 -0
- package/dist/lib/core/machine.js +17 -0
- package/dist/lib/core/mezz.js +31 -0
- package/dist/lib/core/natives/control.js +2 -2
- package/dist/lib/core/natives/data.js +6 -1
- package/dist/lib/core/natives/series.js +59 -9
- package/dist/lib/core/natives/text.js +3 -1
- package/dist/lib/host/browser/calendar.d.ts +34 -0
- package/dist/lib/host/browser/calendar.js +268 -0
- package/dist/lib/host/browser/count.d.ts +15 -0
- package/dist/lib/host/browser/count.js +48 -0
- package/dist/lib/host/browser/dialogs.d.ts +39 -0
- package/dist/lib/host/browser/dialogs.js +443 -0
- package/dist/lib/host/browser/drag.d.ts +70 -0
- package/dist/lib/host/browser/drag.js +268 -0
- package/dist/lib/host/browser/drawings.d.ts +30 -0
- package/dist/lib/host/browser/drawings.js +176 -0
- package/dist/lib/host/browser/events.d.ts +16 -0
- package/dist/lib/host/browser/events.js +125 -0
- package/dist/lib/host/browser/faces.d.ts +35 -0
- package/dist/lib/host/browser/faces.js +131 -0
- package/dist/lib/host/browser/fields.d.ts +16 -0
- package/dist/lib/host/browser/fields.js +322 -0
- package/dist/lib/host/browser/keys.d.ts +29 -0
- package/dist/lib/host/browser/keys.js +151 -0
- package/dist/lib/host/browser/lookup.d.ts +25 -0
- package/dist/lib/host/browser/lookup.js +275 -0
- package/dist/lib/host/browser/menus.d.ts +20 -0
- package/dist/lib/host/browser/menus.js +149 -0
- package/dist/lib/host/browser/mount.d.ts +92 -0
- package/dist/lib/host/browser/mount.js +448 -0
- package/dist/lib/host/browser/orbits.d.ts +90 -0
- package/dist/lib/host/browser/orbits.js +379 -0
- package/dist/lib/host/browser/page.d.ts +13 -0
- package/dist/lib/host/browser/page.js +35 -0
- package/dist/lib/host/browser/richtext.d.ts +19 -0
- package/dist/lib/host/browser/richtext.js +379 -0
- package/dist/lib/host/browser/row-faces.d.ts +5 -0
- package/dist/lib/host/browser/row-faces.js +74 -0
- package/dist/lib/host/browser/screens.d.ts +37 -0
- package/dist/lib/host/browser/screens.js +140 -0
- package/dist/lib/host/browser/swipe.d.ts +31 -0
- package/dist/lib/host/browser/swipe.js +178 -0
- package/dist/lib/host/browser/sync.d.ts +24 -0
- package/dist/lib/host/browser/sync.js +450 -0
- package/dist/lib/host/browser/tables.d.ts +65 -0
- package/dist/lib/host/browser/tables.js +505 -0
- package/dist/lib/host/browser/times.d.ts +14 -0
- package/dist/lib/host/browser/times.js +114 -0
- package/dist/lib/host/browser/toolbars.d.ts +17 -0
- package/dist/lib/host/browser/toolbars.js +129 -0
- package/dist/lib/host/browser/trees.d.ts +20 -0
- package/dist/lib/host/browser/trees.js +235 -0
- package/dist/lib/host/browser/uploads.d.ts +29 -0
- package/dist/lib/host/browser/uploads.js +370 -0
- package/dist/lib/host/browser/widget.d.ts +13 -0
- package/dist/lib/host/browser/widget.js +105 -0
- package/dist/lib/host/browser.d.ts +25 -0
- package/dist/lib/host/browser.js +129 -3964
- package/dist/lib/host/devlog.d.ts +11 -0
- package/dist/lib/host/devlog.js +13 -0
- package/dist/lib/host/devtools/console.d.ts +9 -0
- package/dist/lib/host/devtools/console.js +104 -0
- package/dist/lib/host/devtools/faces.d.ts +25 -0
- package/dist/lib/host/devtools/faces.js +169 -0
- package/dist/lib/host/devtools/log.d.ts +3 -0
- package/dist/lib/host/devtools/log.js +32 -0
- package/dist/lib/host/devtools/machines.d.ts +34 -0
- package/dist/lib/host/devtools/machines.js +212 -0
- package/dist/lib/host/devtools/read.d.ts +13 -0
- package/dist/lib/host/devtools/read.js +52 -0
- package/dist/lib/host/devtools/state.d.ts +90 -0
- package/dist/lib/host/devtools/state.js +123 -0
- package/dist/lib/host/devtools.d.ts +19 -0
- package/dist/lib/host/devtools.js +238 -0
- package/dist/lib/host/fonts/OFL.txt +93 -0
- package/dist/lib/host/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/dist/lib/host/fonts/inter-cyrillic.woff2 +0 -0
- package/dist/lib/host/fonts/inter-greek-ext.woff2 +0 -0
- package/dist/lib/host/fonts/inter-greek.woff2 +0 -0
- package/dist/lib/host/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/lib/host/fonts/inter-latin.woff2 +0 -0
- package/dist/lib/host/fonts/inter-vietnamese.woff2 +0 -0
- package/dist/lib/host/fonts.d.ts +11 -0
- package/dist/lib/host/fonts.js +30 -0
- package/dist/lib/host/icons.js +4 -0
- package/dist/lib/host/index.d.ts +5 -1
- package/dist/lib/host/index.js +110 -5
- package/dist/lib/host/js.d.ts +5 -0
- package/dist/lib/host/js.js +130 -0
- package/dist/lib/host/locale.d.ts +18 -0
- package/dist/lib/host/locale.js +75 -5
- package/dist/lib/host/markdown.d.ts +6 -0
- package/dist/lib/host/markdown.js +18 -0
- package/dist/lib/host/modules.d.ts +4 -0
- package/dist/lib/host/modules.js +157 -20
- package/dist/lib/host/motion.d.ts +32 -0
- package/dist/lib/host/motion.js +190 -0
- package/dist/lib/host/net.js +14 -3
- package/dist/lib/host/orbit.d.ts +121 -0
- package/dist/lib/host/orbit.js +374 -0
- package/dist/lib/host/palette.d.ts +17 -0
- package/dist/lib/host/palette.js +131 -0
- package/dist/lib/host/rows.d.ts +14 -0
- package/dist/lib/host/rows.js +29 -0
- package/dist/lib/host/scheduler.d.ts +8 -0
- package/dist/lib/host/scheduler.js +64 -36
- package/dist/lib/host/share.d.ts +31 -0
- package/dist/lib/host/share.js +134 -0
- package/dist/lib/host/theme/classic.d.ts +1 -0
- package/dist/lib/host/theme/classic.js +120 -0
- package/dist/lib/host/theme/cupertino.d.ts +1 -0
- package/dist/lib/host/theme/cupertino.js +65 -0
- package/dist/lib/host/theme/data.d.ts +1 -0
- package/dist/lib/host/theme/data.js +109 -0
- package/dist/lib/host/theme/devtools.d.ts +1 -0
- package/dist/lib/host/theme/devtools.js +166 -0
- package/dist/lib/host/theme/dialogs.d.ts +1 -0
- package/dist/lib/host/theme/dialogs.js +63 -0
- package/dist/lib/host/theme/fluent.d.ts +1 -0
- package/dist/lib/host/theme/fluent.js +64 -0
- package/dist/lib/host/theme/forms.d.ts +1 -0
- package/dist/lib/host/theme/forms.js +239 -0
- package/dist/lib/host/theme/fusion.d.ts +1 -0
- package/dist/lib/host/theme/fusion.js +66 -0
- package/dist/lib/host/theme/layout.d.ts +1 -0
- package/dist/lib/host/theme/layout.js +166 -0
- package/dist/lib/host/theme/media.d.ts +1 -0
- package/dist/lib/host/theme/media.js +106 -0
- package/dist/lib/host/theme/navigation.d.ts +1 -0
- package/dist/lib/host/theme/navigation.js +36 -0
- package/dist/lib/host/theme/panes.d.ts +1 -0
- package/dist/lib/host/theme/panes.js +99 -0
- package/dist/lib/host/theme/popups.d.ts +1 -0
- package/dist/lib/host/theme/popups.js +149 -0
- package/dist/lib/host/theme/responsive.d.ts +1 -0
- package/dist/lib/host/theme/responsive.js +103 -0
- package/dist/lib/host/theme/toasts.d.ts +1 -0
- package/dist/lib/host/theme/toasts.js +62 -0
- package/dist/lib/host/theme.js +19 -1179
- package/dist/lib/ui/dialect/events.trb +276 -0
- package/dist/lib/ui/dialect/faces.trb +135 -0
- package/dist/lib/ui/dialect/layout.trb +283 -0
- package/dist/lib/ui/dialect/palette.trb +87 -0
- package/dist/lib/ui/dialect/problems.trb +174 -0
- package/dist/lib/ui/dialect/reactions.trb +198 -0
- package/dist/lib/ui/dialect/rows.trb +208 -0
- package/dist/lib/ui/dialect/screens.trb +293 -0
- package/dist/lib/ui/dialect/steps.trb +203 -0
- package/dist/lib/ui/dialect/validation.trb +137 -0
- package/dist/lib/ui/dialect/view.trb +110 -0
- package/dist/lib/ui/dialect/walking.trb +98 -0
- package/dist/lib/ui/dialect/words.trb +70 -0
- package/dist/lib/ui/i18n.trb +23 -0
- package/dist/lib/ui/test.trb +12 -0
- package/dist/lib/ui/testing/actions.trb +421 -0
- package/dist/lib/ui/testing/faces.trb +148 -0
- package/dist/lib/ui/testing/server.trb +73 -0
- package/dist/lib/ui/ui.trb +25 -1234
- package/dist/trebol.js +4882 -1088
- package/editors/vscode/README.md +15 -0
- package/editors/vscode/language-configuration.json +28 -0
- package/editors/vscode/package.json +42 -0
- package/editors/vscode/syntaxes/trebol.tmLanguage.json +237 -0
- package/package.json +7 -3
- package/src/core/boot.ts +10 -7
- package/src/core/eval.ts +2 -2
- package/src/core/func.ts +4 -0
- package/src/core/machine/checks.ts +251 -0
- package/src/core/machine/events.ts +366 -0
- package/src/core/machine/running.ts +181 -0
- package/src/core/machine/shared.ts +124 -0
- package/src/core/machine/snapshot.ts +245 -0
- package/src/core/machine/spec.ts +275 -0
- package/src/core/machine/words.ts +99 -0
- package/src/core/machine.ts +20 -0
- package/src/core/mezz.ts +31 -0
- package/src/core/natives/control.ts +2 -2
- package/src/core/natives/data.ts +6 -1
- package/src/core/natives/parse.ts +1 -1
- package/src/core/natives/series.ts +55 -11
- package/src/core/natives/text.ts +2 -1
- package/src/host/browser/calendar.ts +264 -0
- package/src/host/browser/count.ts +48 -0
- package/src/host/browser/dialogs.ts +439 -0
- package/src/host/browser/drag.ts +278 -0
- package/src/host/browser/drawings.ts +178 -0
- package/src/host/browser/events.ts +117 -0
- package/src/host/browser/faces.ts +143 -0
- package/src/host/browser/fields.ts +315 -0
- package/src/host/browser/keys.ts +145 -0
- package/src/host/browser/lookup.ts +262 -0
- package/src/host/browser/menus.ts +146 -0
- package/src/host/browser/mount.ts +420 -0
- package/src/host/browser/orbits.ts +418 -0
- package/src/host/browser/page.ts +43 -0
- package/src/host/browser/richtext.ts +346 -0
- package/src/host/browser/row-faces.ts +75 -0
- package/src/host/browser/screens.ts +142 -0
- package/src/host/browser/swipe.ts +168 -0
- package/src/host/browser/sync.ts +354 -0
- package/src/host/browser/tables.ts +461 -0
- package/src/host/browser/times.ts +115 -0
- package/src/host/browser/toolbars.ts +126 -0
- package/src/host/browser/trees.ts +205 -0
- package/src/host/browser/uploads.ts +367 -0
- package/src/host/browser/widget.ts +103 -0
- package/src/host/browser.ts +128 -3747
- package/src/host/devlog.ts +16 -0
- package/src/host/devtools/console.ts +102 -0
- package/src/host/devtools/faces.ts +160 -0
- package/src/host/devtools/log.ts +34 -0
- package/src/host/devtools/machines.ts +208 -0
- package/src/host/devtools/read.ts +58 -0
- package/src/host/devtools/state.ts +148 -0
- package/src/host/devtools.ts +238 -0
- package/src/host/fonts/OFL.txt +93 -0
- package/src/host/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/src/host/fonts/inter-cyrillic.woff2 +0 -0
- package/src/host/fonts/inter-greek-ext.woff2 +0 -0
- package/src/host/fonts/inter-greek.woff2 +0 -0
- package/src/host/fonts/inter-latin-ext.woff2 +0 -0
- package/src/host/fonts/inter-latin.woff2 +0 -0
- package/src/host/fonts/inter-vietnamese.woff2 +0 -0
- package/src/host/fonts.ts +40 -0
- package/src/host/icons.ts +4 -0
- package/src/host/index.ts +110 -5
- package/src/host/js.ts +127 -0
- package/src/host/locale.ts +71 -5
- package/src/host/markdown.ts +18 -0
- package/src/host/modules.ts +150 -22
- package/src/host/motion.ts +204 -0
- package/src/host/net.ts +13 -3
- package/src/host/orbit.ts +432 -0
- package/src/host/palette.ts +139 -0
- package/src/host/rows.ts +30 -0
- package/src/host/scheduler.ts +67 -36
- package/src/host/share.ts +168 -0
- package/src/host/theme/classic.ts +121 -0
- package/src/host/theme/cupertino.ts +66 -0
- package/src/host/theme/data.ts +110 -0
- package/src/host/theme/devtools.ts +167 -0
- package/src/host/theme/dialogs.ts +64 -0
- package/src/host/theme/fluent.ts +65 -0
- package/src/host/theme/forms.ts +240 -0
- package/src/host/theme/fusion.ts +67 -0
- package/src/host/theme/layout.ts +167 -0
- package/src/host/theme/media.ts +107 -0
- package/src/host/theme/navigation.ts +37 -0
- package/src/host/theme/panes.ts +100 -0
- package/src/host/theme/popups.ts +150 -0
- package/src/host/theme/responsive.ts +104 -0
- package/src/host/theme/toasts.ts +63 -0
- package/src/host/theme.ts +19 -1179
- package/src/ui/dialect/events.trb +276 -0
- package/src/ui/dialect/faces.trb +135 -0
- package/src/ui/dialect/layout.trb +283 -0
- package/src/ui/dialect/palette.trb +87 -0
- package/src/ui/dialect/problems.trb +174 -0
- package/src/ui/dialect/reactions.trb +198 -0
- package/src/ui/dialect/rows.trb +208 -0
- package/src/ui/dialect/screens.trb +293 -0
- package/src/ui/dialect/steps.trb +203 -0
- package/src/ui/dialect/validation.trb +137 -0
- package/src/ui/dialect/view.trb +110 -0
- package/src/ui/dialect/walking.trb +98 -0
- package/src/ui/dialect/words.trb +70 -0
- package/src/ui/i18n.trb +23 -0
- package/src/ui/test.trb +12 -0
- package/src/ui/testing/actions.trb +421 -0
- package/src/ui/testing/faces.trb +148 -0
- package/src/ui/testing/server.trb +73 -0
- package/src/ui/ui.trb +25 -1234
package/dist/lib/host/theme.js
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
// comes from the theme (`base`, `accent`, `neutral`). `contrast()` checks it
|
|
7
7
|
// and the tests run it over every hue.
|
|
8
8
|
import { DRAW_COLORS } from "./draw.js";
|
|
9
|
+
import { LAYOUT } from "./theme/layout.js";
|
|
10
|
+
import { FORMS } from "./theme/forms.js";
|
|
11
|
+
import { NAVIGATION } from "./theme/navigation.js";
|
|
12
|
+
import { MEDIA } from "./theme/media.js";
|
|
13
|
+
import { DATA } from "./theme/data.js";
|
|
14
|
+
import { DIALOGS } from "./theme/dialogs.js";
|
|
15
|
+
import { PANES } from "./theme/panes.js";
|
|
16
|
+
import { POPUPS } from "./theme/popups.js";
|
|
17
|
+
import { TOASTS } from "./theme/toasts.js";
|
|
18
|
+
import { DEVTOOLS } from "./theme/devtools.js";
|
|
19
|
+
import { RESPONSIVE } from "./theme/responsive.js";
|
|
20
|
+
import { CLASSIC } from "./theme/classic.js";
|
|
21
|
+
import { CUPERTINO } from "./theme/cupertino.js";
|
|
22
|
+
import { FUSION } from "./theme/fusion.js";
|
|
23
|
+
import { FLUENT } from "./theme/fluent.js";
|
|
9
24
|
export const DEFAULT_THEME = {
|
|
10
25
|
base: 250, accent: 30, neutral: 'neutral', density: 'normal', radius: 'soft', font: 'inter', headings: null, mode: 'auto',
|
|
11
26
|
color: 1, line: 1, depth: 'soft', icons: 'round', skin: 'modern',
|
|
@@ -264,7 +279,7 @@ function sizeVars(t) {
|
|
|
264
279
|
lines.push(` --tb-line: ${t.line}px;`);
|
|
265
280
|
const icon = ICONS[t.icons];
|
|
266
281
|
lines.push(` --tb-icon-stroke: ${icon.stroke};`, ` --tb-icon-cap: ${icon.cap};`, ` --tb-icon-join: ${icon.join};`);
|
|
267
|
-
lines.push(' --tb-ease: cubic-bezier(0.2, 0, 0, 1);', ' --tb-fast: 150ms;');
|
|
282
|
+
lines.push(' --tb-ease: cubic-bezier(0.2, 0, 0, 1);', ' --tb-fast: 150ms;', ' --tb-move: 240ms;');
|
|
268
283
|
return lines.join('\n');
|
|
269
284
|
}
|
|
270
285
|
/** The full stylesheet for a theme: tokens, then the fixed component rules. */
|
|
@@ -281,1182 +296,7 @@ export function themeCss(t) {
|
|
|
281
296
|
colors = `:root {\n${light}\n}\n@media (prefers-color-scheme: dark) {\n:root:not([data-tb-scheme="light"]) {\n${dark}\n}\n}\n:root[data-tb-scheme="dark"] {\n${dark}\n}`;
|
|
282
297
|
return `:root {\n${sizeVars(t)}\n}\n${colors}\n${COMPONENTS}${SKINS[t.skin]}`;
|
|
283
298
|
}
|
|
284
|
-
/** Component rules
|
|
285
|
-
const COMPONENTS =
|
|
286
|
-
*, *::before, *::after { box-sizing: border-box; }
|
|
287
|
-
html, body { margin: 0; }
|
|
288
|
-
body {
|
|
289
|
-
background: var(--tb-bg);
|
|
290
|
-
color: var(--tb-text);
|
|
291
|
-
font-family: var(--tb-font);
|
|
292
|
-
font-size: 15px;
|
|
293
|
-
line-height: 1.5;
|
|
294
|
-
font-variant-numeric: tabular-nums;
|
|
295
|
-
-webkit-font-smoothing: antialiased;
|
|
296
|
-
text-rendering: optimizeLegibility;
|
|
297
|
-
}
|
|
298
|
-
.tb-view {
|
|
299
|
-
max-width: 720px;
|
|
300
|
-
margin: 0 auto;
|
|
301
|
-
padding: var(--tb-space-7) var(--tb-space-5);
|
|
302
|
-
display: flex;
|
|
303
|
-
flex-direction: column;
|
|
304
|
-
gap: var(--tb-space-5);
|
|
305
|
-
}
|
|
306
|
-
.tb-view:has(> .tb-split) { max-width: 1120px; }
|
|
307
|
-
.tb-view.tb-small { max-width: 480px; font-size: inherit; }
|
|
308
|
-
.tb-view.tb-large { max-width: 1120px; }
|
|
309
|
-
.tb-view.tb-fill { max-width: none; }
|
|
310
|
-
.tb-column { display: flex; flex-direction: column; gap: var(--tb-space-4); min-width: 0; }
|
|
311
|
-
.tb-screens, .tb-screen { display: flex; flex-direction: column; gap: var(--tb-space-4); min-width: 0; }
|
|
312
|
-
.tb-screen:focus { outline: none; }
|
|
313
|
-
/* entering a screen focuses its title for screen readers; it is not a control, so no ring */
|
|
314
|
-
.tb-screen :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
|
|
315
|
-
.tb-screens[aria-busy] { cursor: progress; }
|
|
316
|
-
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tb-space-3); }
|
|
317
|
-
.tb-row:where(:not(.tb-top, .tb-middle, .tb-bottom)):has(> .tb-field) { align-items: flex-end; }
|
|
318
|
-
/* with fields, a text beside them sits on the line of the controls, not on their labels */
|
|
319
|
-
.tb-row:where(:not(.tb-top, .tb-middle, .tb-bottom)):has(> .tb-field) > :is(.tb-text, .tb-heading) { margin-bottom: max(0px, calc((var(--tb-control) - 1lh) / 2)); }
|
|
320
|
-
.tb-row.tb-top { align-items: flex-start; }
|
|
321
|
-
.tb-row.tb-middle { align-items: center; }
|
|
322
|
-
.tb-row.tb-bottom { align-items: flex-end; }
|
|
323
|
-
.tb-row.tb-center { justify-content: center; }
|
|
324
|
-
.tb-row.tb-right { justify-content: flex-end; }
|
|
325
|
-
.tb-row.tb-spread { justify-content: space-between; }
|
|
326
|
-
.tb-fill { flex: 1 1 0; min-width: 0; }
|
|
327
|
-
.tb-view:has(.tb-desktop) { min-height: 100dvh; box-sizing: border-box; }
|
|
328
|
-
.tb-view:has(.tb-desktop) .tb-screens, .tb-screen:has(> .tb-desktop) { flex: 1 1 auto; }
|
|
329
|
-
.tb-view:has(.tb-fit) .tb-screens, .tb-screen:has(> .tb-fit) { flex: 1 1 auto; min-height: 0; }
|
|
330
|
-
.tb-view:has(.tb-fit) { height: 100dvh; box-sizing: border-box; }
|
|
331
|
-
.tb-fit { flex: 1 1 auto; min-height: 0; }
|
|
332
|
-
.tb-fit > * { min-height: 0; overflow: auto; }
|
|
333
|
-
.tb-fit > * > * { flex-shrink: 0; }
|
|
334
|
-
.tb-desktop {
|
|
335
|
-
flex: 1 1 auto;
|
|
336
|
-
min-height: 240px;
|
|
337
|
-
display: flex;
|
|
338
|
-
flex-wrap: wrap;
|
|
339
|
-
align-content: flex-start;
|
|
340
|
-
gap: var(--tb-space-3);
|
|
341
|
-
padding: var(--tb-space-5);
|
|
342
|
-
border-radius: var(--tb-radius);
|
|
343
|
-
background-color: color-mix(in oklch, var(--tb-primary) 9%, var(--tb-bg));
|
|
344
|
-
background-size: cover;
|
|
345
|
-
background-position: center;
|
|
346
|
-
}
|
|
347
|
-
/* an image behind what holds it, under a veil that keeps text on it AA; muted text needs the text's color there */
|
|
348
|
-
:has(> .tb-backdrop) { position: relative; isolation: isolate; --tb-muted: var(--tb-text); }
|
|
349
|
-
.tb-backdrop { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-size: cover; background-position: center; pointer-events: none; }
|
|
350
|
-
.tb-backdrop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tb-scrim); }
|
|
351
|
-
/* the backdrop of the view or of a screen is the window's */
|
|
352
|
-
:is(.tb-view, .tb-screen) > .tb-backdrop { position: fixed; border-radius: 0; }
|
|
353
|
-
.tb-tile {
|
|
354
|
-
font: inherit;
|
|
355
|
-
font-size: 13px;
|
|
356
|
-
width: 112px;
|
|
357
|
-
min-height: 96px;
|
|
358
|
-
padding: var(--tb-space-3) var(--tb-space-2);
|
|
359
|
-
border: 1px solid transparent;
|
|
360
|
-
border-radius: var(--tb-radius);
|
|
361
|
-
background: transparent;
|
|
362
|
-
color: var(--tb-text);
|
|
363
|
-
cursor: pointer;
|
|
364
|
-
display: flex;
|
|
365
|
-
flex-direction: column;
|
|
366
|
-
align-items: center;
|
|
367
|
-
gap: var(--tb-space-2);
|
|
368
|
-
text-align: center;
|
|
369
|
-
overflow-wrap: anywhere;
|
|
370
|
-
transition: background var(--tb-fast) var(--tb-ease), border-color var(--tb-fast) var(--tb-ease);
|
|
371
|
-
}
|
|
372
|
-
.tb-tile:hover { background: var(--tb-surface); border-color: var(--tb-border); }
|
|
373
|
-
.tb-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
374
|
-
.tb-tile > svg { flex: none; width: 36px; height: 36px; color: var(--tb-primary); }
|
|
375
|
-
.tb-tile-linked { position: relative; }
|
|
376
|
-
.tb-tile-linked::after {
|
|
377
|
-
content: '';
|
|
378
|
-
position: absolute;
|
|
379
|
-
top: calc(var(--tb-space-3) + 21px);
|
|
380
|
-
left: calc(50% - 22px);
|
|
381
|
-
width: 16px;
|
|
382
|
-
height: 16px;
|
|
383
|
-
border-radius: 3px;
|
|
384
|
-
background: var(--tb-text);
|
|
385
|
-
outline: 2px solid var(--tb-bg);
|
|
386
|
-
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 0h16v16H0z M6 4v2h2.6L4 10.6 5.4 12 10 7.4V10h2V4z' fill-rule='evenodd'/%3E%3C/svg%3E");
|
|
387
|
-
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 0h16v16H0z M6 4v2h2.6L4 10.6 5.4 12 10 7.4V10h2V4z' fill-rule='evenodd'/%3E%3C/svg%3E");
|
|
388
|
-
}
|
|
389
|
-
.tb-grid { --tb-tracks: initial; --tb-cols: 2; display: grid; gap: var(--tb-space-4); grid-template-columns: var(--tb-tracks, repeat(var(--tb-cols), minmax(0, 1fr))); }
|
|
390
|
-
.tb-panel {
|
|
391
|
-
background: var(--tb-raised);
|
|
392
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
393
|
-
border-radius: var(--tb-radius-lg);
|
|
394
|
-
box-shadow: var(--tb-shadow-1);
|
|
395
|
-
padding: var(--tb-space-6);
|
|
396
|
-
display: flex;
|
|
397
|
-
flex-direction: column;
|
|
398
|
-
gap: var(--tb-space-5);
|
|
399
|
-
}
|
|
400
|
-
.tb-panel.tb-small { width: 100%; max-width: 420px; font-size: inherit; }
|
|
401
|
-
.tb-panel.tb-primary { border-color: var(--tb-primary); box-shadow: inset 0 0 0 1px var(--tb-primary), var(--tb-shadow-1); }
|
|
402
|
-
.tb-panel.tb-accent { border-color: var(--tb-accent); }
|
|
403
|
-
.tb-panel.tb-danger { border-color: var(--tb-danger); }
|
|
404
|
-
.tb-panel.tb-success { border-color: var(--tb-success); }
|
|
405
|
-
.tb-panel.tb-warning { border-color: var(--tb-warning); }
|
|
406
|
-
.tb-panel:focus-visible, .tb-column:focus-visible, .tb-row:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
407
|
-
.tb-panel.tb-primary:focus-visible { box-shadow: inset 0 0 0 1px var(--tb-primary), 0 0 0 3px var(--tb-focus-ring); }
|
|
408
|
-
.tb-panel > .tb-panel-title { margin: 0; font-family: var(--tb-headings); font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
|
|
409
|
-
.tb-divider { border: 0; border-top: var(--tb-line) solid var(--tb-border); margin: var(--tb-space-2) 0; width: 100%; }
|
|
410
|
-
|
|
411
|
-
.tb-title { margin: 0; font-family: var(--tb-headings); font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
|
|
412
|
-
.tb-heading { margin: 0; font-family: var(--tb-headings); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
|
|
413
|
-
.tb-text { margin: 0; }
|
|
414
|
-
.tb-small { font-size: 13px; }
|
|
415
|
-
.tb-muted { color: var(--tb-muted); }
|
|
416
|
-
.tb-text.tb-danger { color: var(--tb-danger); }
|
|
417
|
-
.tb-text.tb-success { color: var(--tb-success); }
|
|
418
|
-
.tb-text.tb-primary { color: var(--tb-primary); }
|
|
419
|
-
|
|
420
|
-
/* forms: labels and controls aligned in two columns */
|
|
421
|
-
.tb-form {
|
|
422
|
-
display: grid;
|
|
423
|
-
grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
|
|
424
|
-
column-gap: var(--tb-space-5);
|
|
425
|
-
row-gap: var(--tb-space-4);
|
|
426
|
-
align-items: start;
|
|
427
|
-
/* a narrow form (in a grid cell, beside another panel) stacks like one on a phone; see @container below */
|
|
428
|
-
container-type: inline-size;
|
|
429
|
-
contain-intrinsic-inline-size: 30rem;
|
|
430
|
-
}
|
|
431
|
-
/* a panel in a form (a section) keeps the form's two columns */
|
|
432
|
-
.tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel { display: grid; grid-template-columns: subgrid; row-gap: var(--tb-space-4); align-items: start; }
|
|
433
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > * { grid-column: 1 / -1; }
|
|
434
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field { display: contents; }
|
|
435
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-label { grid-column: 1; padding-top: calc((var(--tb-control) - 1.5em) / 2); }
|
|
436
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-control { grid-column: 2; }
|
|
437
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-actions, :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-check-row { grid-column: 2; }
|
|
438
|
-
.tb-field { display: flex; flex-direction: column; gap: var(--tb-space-2); min-width: 0; }
|
|
439
|
-
@container (max-width: 420px) {
|
|
440
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field { display: flex; }
|
|
441
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-label, :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-control,
|
|
442
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-actions, :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-check-row { grid-column: 1 / -1; padding-top: 0; }
|
|
443
|
-
}
|
|
444
|
-
.tb-rows { display: flex; flex-direction: column; gap: var(--tb-space-3); align-items: stretch; }
|
|
445
|
-
.tb-rows > .tb-button { align-self: flex-start; }
|
|
446
|
-
.tb-entry { display: flex; gap: var(--tb-space-3); align-items: flex-start; }
|
|
447
|
-
.tb-entry > * { flex: 1 1 0; min-width: 0; }
|
|
448
|
-
.tb-entry > .tb-button { flex: none; }
|
|
449
|
-
/* the labels of the first row are the headers of the others */
|
|
450
|
-
.tb-entry:not(:first-child) .tb-field > .tb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
451
|
-
.tb-entry:first-child:has(.tb-label:not(:empty)) > .tb-button { margin-top: calc(14px * 1.5 + var(--tb-space-2)); }
|
|
452
|
-
.tb-rich { display: flex; flex-direction: column; gap: var(--tb-space-1); }
|
|
453
|
-
.tb-rich-tools { display: flex; flex-wrap: wrap; gap: var(--tb-space-1); }
|
|
454
|
-
.tb-rich-tools[hidden], .tb-rich-link[hidden] { display: none; }
|
|
455
|
-
.tb-rich-tool { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--tb-radius); background: transparent; color: var(--tb-muted); cursor: pointer; }
|
|
456
|
-
.tb-rich-tool:hover { background: var(--tb-primary-soft); color: var(--tb-text); }
|
|
457
|
-
.tb-rich-tool:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 1px; }
|
|
458
|
-
.tb-rich-tool .tb-icon { width: 18px; height: 18px; }
|
|
459
|
-
.tb-rich-link { display: flex; gap: var(--tb-space-2); align-items: center; }
|
|
460
|
-
.tb-input.tb-rich-box { padding: var(--tb-space-2) var(--tb-space-3); min-height: calc(var(--tb-control) * 2.5); overflow-wrap: anywhere; cursor: text; }
|
|
461
|
-
.tb-input.tb-rich-box[aria-readonly="true"] { background: color-mix(in srgb, var(--tb-muted) 12%, transparent); border-color: transparent; cursor: default; }
|
|
462
|
-
.tb-input.tb-rich-box[aria-disabled="true"] { opacity: 0.45; }
|
|
463
|
-
.tb-rich-box:focus { outline: none; border-color: var(--tb-primary); box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
464
|
-
.tb-rich-box > :first-child { margin-top: 0; }
|
|
465
|
-
.tb-rich-box > :last-child { margin-bottom: 0; }
|
|
466
|
-
.tb-rich-box p, .tb-rich-box ul, .tb-rich-box ol { margin: 0 0 var(--tb-space-2); }
|
|
467
|
-
.tb-rich-box ul, .tb-rich-box ol { padding-left: var(--tb-space-5); }
|
|
468
|
-
.tb-rich-box h1, .tb-rich-box h2, .tb-rich-box h3 { margin: var(--tb-space-3) 0 var(--tb-space-2); line-height: 1.3; font-weight: 600; }
|
|
469
|
-
.tb-rich-box h1 { font-size: 22px; }
|
|
470
|
-
.tb-rich-box h2 { font-size: 18px; }
|
|
471
|
-
.tb-rich-box h3 { font-size: 16px; }
|
|
472
|
-
.tb-rich-box a { color: var(--tb-primary); }
|
|
473
|
-
.tb-control { display: flex; flex-direction: column; gap: var(--tb-space-1); min-width: 0; }
|
|
474
|
-
.tb-label { font-weight: 550; font-size: 14px; color: var(--tb-text); }
|
|
475
|
-
.tb-required::after { content: " *"; color: var(--tb-muted); font-weight: 400; }
|
|
476
|
-
.tb-input {
|
|
477
|
-
font: inherit;
|
|
478
|
-
color: var(--tb-text);
|
|
479
|
-
background: var(--tb-surface);
|
|
480
|
-
border: var(--tb-line) solid var(--tb-border-strong);
|
|
481
|
-
border-radius: var(--tb-radius);
|
|
482
|
-
min-height: var(--tb-control);
|
|
483
|
-
padding: 0 var(--tb-space-3);
|
|
484
|
-
width: 100%;
|
|
485
|
-
transition: border-color var(--tb-fast) var(--tb-ease), box-shadow var(--tb-fast) var(--tb-ease);
|
|
486
|
-
}
|
|
487
|
-
textarea.tb-input { padding: var(--tb-space-2) var(--tb-space-3); min-height: calc(var(--tb-control) * 2.5); resize: vertical; }
|
|
488
|
-
select.tb-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tb-muted) 50%), linear-gradient(135deg, var(--tb-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--tb-space-6); }
|
|
489
|
-
.tb-input::placeholder { color: var(--tb-muted); opacity: 0.8; }
|
|
490
|
-
.tb-input:hover { border-color: var(--tb-muted); }
|
|
491
|
-
.tb-input:focus { outline: none; border-color: var(--tb-primary); box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
492
|
-
.tb-input[readonly] { background: color-mix(in srgb, var(--tb-muted) 12%, transparent); border-color: transparent; color: var(--tb-muted); cursor: default; }
|
|
493
|
-
.tb-input[readonly]:focus { border-color: var(--tb-muted); box-shadow: none; }
|
|
494
|
-
.tb-invalid .tb-input { border-color: var(--tb-danger); }
|
|
495
|
-
.tb-invalid .tb-input:focus { box-shadow: 0 0 0 3px var(--tb-danger-soft); }
|
|
496
|
-
.tb-error { color: var(--tb-danger); font-size: 13px; min-height: 0; }
|
|
497
|
-
.tb-error:empty { display: none; }
|
|
498
|
-
.tb-hint { color: var(--tb-muted); font-size: 13px; }
|
|
499
|
-
.tb-pending .tb-input { background-image: linear-gradient(90deg, transparent, var(--tb-primary-soft), transparent); background-size: 200% 100%; animation: tb-pending 1.2s linear infinite; }
|
|
500
|
-
@keyframes tb-pending { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
501
|
-
|
|
502
|
-
.tb-check-row { display: flex; }
|
|
503
|
-
.tb-check { display: inline-flex; align-items: center; gap: var(--tb-space-3); min-height: var(--tb-control); cursor: pointer; }
|
|
504
|
-
.tb-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--tb-primary); cursor: pointer; }
|
|
505
|
-
.tb-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); border-radius: 4px; }
|
|
506
|
-
.tb-check input[type="radio"]:focus-visible { border-radius: 50%; }
|
|
507
|
-
.tb-radios { display: flex; flex-wrap: wrap; column-gap: var(--tb-space-5); }
|
|
508
|
-
.tb-radio-group { flex-basis: 100%; }
|
|
509
|
-
.tb-radio-title { display: block; margin-top: var(--tb-space-2); font-size: 13px; font-weight: 600; color: var(--tb-muted); }
|
|
510
|
-
.tb-switch input {
|
|
511
|
-
appearance: none;
|
|
512
|
-
width: 36px;
|
|
513
|
-
height: 20px;
|
|
514
|
-
flex: none;
|
|
515
|
-
border-radius: 10px;
|
|
516
|
-
background: var(--tb-muted);
|
|
517
|
-
position: relative;
|
|
518
|
-
transition: background var(--tb-fast) var(--tb-ease);
|
|
519
|
-
}
|
|
520
|
-
.tb-switch input::before {
|
|
521
|
-
content: "";
|
|
522
|
-
position: absolute;
|
|
523
|
-
top: 2px;
|
|
524
|
-
left: 2px;
|
|
525
|
-
width: 16px;
|
|
526
|
-
height: 16px;
|
|
527
|
-
border-radius: 50%;
|
|
528
|
-
background: var(--tb-surface);
|
|
529
|
-
box-shadow: var(--tb-shadow-1);
|
|
530
|
-
transition: transform var(--tb-fast) var(--tb-ease);
|
|
531
|
-
}
|
|
532
|
-
.tb-switch input:checked { background: var(--tb-primary); }
|
|
533
|
-
.tb-switch input:checked::before { transform: translateX(16px); }
|
|
534
|
-
.tb-switch input:focus-visible { border-radius: 10px; }
|
|
535
|
-
.tb-check input:disabled, .tb-check input:disabled + span { opacity: 0.45; cursor: not-allowed; }
|
|
536
|
-
|
|
537
|
-
.tb-actions { display: flex; flex-wrap: wrap; gap: var(--tb-space-3); padding-top: var(--tb-space-2); }
|
|
538
|
-
.tb-button {
|
|
539
|
-
font: inherit;
|
|
540
|
-
font-weight: 600;
|
|
541
|
-
font-size: 14px;
|
|
542
|
-
min-height: var(--tb-control);
|
|
543
|
-
padding: 0 var(--tb-space-5);
|
|
544
|
-
border-radius: var(--tb-radius);
|
|
545
|
-
border: var(--tb-line) solid var(--tb-border-strong);
|
|
546
|
-
background: var(--tb-surface);
|
|
547
|
-
color: var(--tb-text);
|
|
548
|
-
cursor: pointer;
|
|
549
|
-
display: inline-flex;
|
|
550
|
-
align-items: center;
|
|
551
|
-
justify-content: center;
|
|
552
|
-
gap: var(--tb-space-2);
|
|
553
|
-
transition: background var(--tb-fast) var(--tb-ease), border-color var(--tb-fast) var(--tb-ease), box-shadow var(--tb-fast) var(--tb-ease), opacity var(--tb-fast) var(--tb-ease);
|
|
554
|
-
}
|
|
555
|
-
.tb-button.tb-small { font-size: 13px; padding: 0 var(--tb-space-3); gap: var(--tb-space-1); }
|
|
556
|
-
.tb-button:hover { background: var(--tb-bg); border-color: var(--tb-muted); }
|
|
557
|
-
.tb-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
558
|
-
.tb-button.tb-primary { background: var(--tb-primary); border-color: var(--tb-primary); color: var(--tb-on-primary); box-shadow: var(--tb-shadow-1); }
|
|
559
|
-
.tb-button.tb-primary:hover { background: var(--tb-primary-hover); border-color: var(--tb-primary-hover); }
|
|
560
|
-
.tb-button.tb-accent { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-on-accent); }
|
|
561
|
-
.tb-button.tb-danger { background: var(--tb-danger); border-color: var(--tb-danger); color: var(--tb-on-danger); }
|
|
562
|
-
.tb-button:disabled, .tb-button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
|
|
563
|
-
.tb-button.tb-primary[aria-disabled="true"]:hover { background: var(--tb-primary); border-color: var(--tb-primary); }
|
|
564
|
-
.tb-button.tb-has-icon:not(:has(> span:not(:empty))) { padding: 0; width: var(--tb-control); }
|
|
565
|
-
/* a button that opens a menu: a chevron after its text, or alone after its icon */
|
|
566
|
-
.tb-menu-chevron { transition: transform var(--tb-fast) var(--tb-ease); }
|
|
567
|
-
.tb-button .tb-menu-chevron { width: 16px; height: 16px; margin-inline-end: calc(var(--tb-space-1) * -1); }
|
|
568
|
-
[aria-expanded="true"] > .tb-menu-chevron { transform: rotate(180deg); }
|
|
569
|
-
.tb-button.tb-has-icon[aria-haspopup]:not(:has(> span:not(:empty))) { width: auto; padding: 0 var(--tb-space-2); gap: 2px; }
|
|
570
|
-
|
|
571
|
-
.tb-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: var(--tb-icon-stroke); stroke-linecap: var(--tb-icon-cap); stroke-linejoin: var(--tb-icon-join); }
|
|
572
|
-
.tb-button .tb-icon { width: 18px; height: 18px; }
|
|
573
|
-
.tb-icon-face { display: inline-flex; align-self: flex-start; color: var(--tb-text); }
|
|
574
|
-
.tb-icon-face .tb-icon { width: 24px; height: 24px; }
|
|
575
|
-
.tb-icon-face.tb-small .tb-icon { width: 18px; height: 18px; }
|
|
576
|
-
.tb-icon-face.tb-large .tb-icon { width: 32px; height: 32px; }
|
|
577
|
-
.tb-icon-face.tb-muted { color: var(--tb-muted); }
|
|
578
|
-
.tb-icon-face.tb-primary { color: var(--tb-primary); }
|
|
579
|
-
.tb-icon-face.tb-accent { color: var(--tb-accent); }
|
|
580
|
-
.tb-icon-face.tb-danger { color: var(--tb-danger); }
|
|
581
|
-
.tb-icon-face.tb-success { color: var(--tb-success); }
|
|
582
|
-
.tb-icon-face.tb-warning { color: var(--tb-warning); }
|
|
583
|
-
.tb-input-icon { position: relative; display: flex; }
|
|
584
|
-
.tb-input-icon > .tb-icon { position: absolute; left: var(--tb-space-3); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tb-muted); pointer-events: none; }
|
|
585
|
-
.tb-input-icon > .tb-input { padding-left: calc(var(--tb-space-3) + 26px); }
|
|
586
|
-
.tb-upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tb-space-3); padding: var(--tb-space-3); border: 1px dashed var(--tb-border-strong); border-radius: var(--tb-radius); background: var(--tb-surface); transition: border-color var(--tb-fast) var(--tb-ease), background var(--tb-fast) var(--tb-ease); }
|
|
587
|
-
.tb-upload.tb-drop-over { border-color: var(--tb-primary); background: var(--tb-primary-soft); }
|
|
588
|
-
.tb-invalid .tb-upload { border-color: var(--tb-danger); }
|
|
589
|
-
.tb-upload-hint { color: var(--tb-muted); font-size: 0.9em; }
|
|
590
|
-
.tb-upload[hidden] { display: none; }
|
|
591
|
-
.tb-upload[hidden] + .tb-upload-list { margin-top: 0; }
|
|
592
|
-
.tb-upload-list { list-style: none; margin: var(--tb-space-2) 0 0; padding: 0; display: grid; gap: var(--tb-space-1); }
|
|
593
|
-
.tb-upload-list li { display: flex; align-items: center; gap: var(--tb-space-2); min-height: 36px; padding: 0 var(--tb-space-1) 0 var(--tb-space-3); border: var(--tb-line) solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface); }
|
|
594
|
-
.tb-upload-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
595
|
-
a.tb-upload-name { color: var(--tb-primary); text-decoration: none; }
|
|
596
|
-
a.tb-upload-name:hover { text-decoration: underline; }
|
|
597
|
-
.tb-upload-thumb { width: 32px; height: 32px; margin: var(--tb-space-1) 0; object-fit: cover; border-radius: var(--tb-radius); flex: none; }
|
|
598
|
-
.tb-upload-size { color: var(--tb-muted); font-size: 0.9em; font-variant-numeric: tabular-nums; }
|
|
599
|
-
.tb-upload-remove { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--tb-radius); background: transparent; color: var(--tb-muted); cursor: pointer; }
|
|
600
|
-
.tb-upload-remove:hover:not(:disabled) { background: var(--tb-danger-soft); color: var(--tb-danger); }
|
|
601
|
-
.tb-upload-remove:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
602
|
-
.tb-upload-remove .tb-icon { width: 16px; height: 16px; }
|
|
603
|
-
.tb-date { position: relative; display: flex; }
|
|
604
|
-
.tb-date > .tb-input { padding-right: calc(var(--tb-control) + var(--tb-space-1)); }
|
|
605
|
-
.tb-date-button { position: absolute; right: 1px; top: 1px; bottom: 1px; width: var(--tb-control); display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--tb-radius); background: transparent; color: var(--tb-muted); cursor: pointer; }
|
|
606
|
-
.tb-date-button:hover:not(:disabled) { color: var(--tb-text); }
|
|
607
|
-
.tb-date-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
608
|
-
.tb-date-button:disabled { cursor: default; opacity: 0.5; }
|
|
609
|
-
.tb-date-button .tb-icon { width: 18px; height: 18px; }
|
|
610
|
-
.tb-tree-wrap { min-width: 0; }
|
|
611
|
-
.tb-tree, .tb-tree ul { list-style: none; margin: 0; padding: 0; }
|
|
612
|
-
.tb-tree li { outline: none; }
|
|
613
|
-
.tb-tree-row {
|
|
614
|
-
display: flex;
|
|
615
|
-
align-items: center;
|
|
616
|
-
gap: var(--tb-space-1);
|
|
617
|
-
min-height: calc(var(--tb-control) - 8px);
|
|
618
|
-
padding: 0 var(--tb-space-2) 0 calc(var(--tb-level, 0) * 20px + var(--tb-space-1));
|
|
619
|
-
border-radius: var(--tb-radius);
|
|
620
|
-
cursor: pointer;
|
|
621
|
-
user-select: none;
|
|
622
|
-
transition: background var(--tb-fast) var(--tb-ease);
|
|
623
|
-
}
|
|
624
|
-
.tb-tree-row:hover { background: var(--tb-bg); }
|
|
625
|
-
.tb-tree li:focus-visible > .tb-tree-row { box-shadow: inset 0 0 0 2px var(--tb-focus); }
|
|
626
|
-
.tb-tree li.tb-selected > .tb-tree-row { background: var(--tb-primary-soft); font-weight: 550; }
|
|
627
|
-
.tb-tree-toggle { display: inline-flex; flex: none; width: 20px; height: 20px; align-items: center; justify-content: center; color: var(--tb-muted); border-radius: var(--tb-radius); }
|
|
628
|
-
.tb-tree-toggle .tb-icon { width: 16px; height: 16px; transition: transform var(--tb-fast) var(--tb-ease); }
|
|
629
|
-
.tb-tree li:not([aria-expanded]) > .tb-tree-row > .tb-tree-toggle { visibility: hidden; }
|
|
630
|
-
.tb-tree li[aria-expanded="true"] > .tb-tree-row > .tb-tree-toggle .tb-icon { transform: rotate(90deg); }
|
|
631
|
-
.tb-tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
632
|
-
.tb-tree-row.tb-drop-over { box-shadow: inset 0 0 0 2px var(--tb-primary); }
|
|
633
|
-
|
|
634
|
-
.tb-toolbar {
|
|
635
|
-
display: flex;
|
|
636
|
-
flex-wrap: wrap;
|
|
637
|
-
align-items: center;
|
|
638
|
-
gap: var(--tb-space-1);
|
|
639
|
-
padding: var(--tb-space-1);
|
|
640
|
-
background: var(--tb-surface);
|
|
641
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
642
|
-
border-radius: var(--tb-radius-lg);
|
|
643
|
-
}
|
|
644
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger) { border-color: transparent; background: transparent; }
|
|
645
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):hover { background: var(--tb-bg); }
|
|
646
|
-
.tb-toolbar > .tb-button { padding: 0 var(--tb-space-3); }
|
|
647
|
-
.tb-toolbar > .tb-divider { width: 0; height: calc(var(--tb-control) - 12px); margin: 0 var(--tb-space-1); border-top: 0; border-left: var(--tb-line) solid var(--tb-border); }
|
|
648
|
-
|
|
649
|
-
.tb-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tb-space-1); margin: 0; padding: 0; list-style: none; font-size: 14px; }
|
|
650
|
-
.tb-breadcrumb li { display: inline-flex; align-items: center; gap: var(--tb-space-1); min-width: 0; }
|
|
651
|
-
.tb-breadcrumb li + li::before { content: "›" / ""; color: var(--tb-muted); padding: 0 var(--tb-space-1); }
|
|
652
|
-
.tb-crumb { font: inherit; color: var(--tb-muted); background: none; border: 0; padding: var(--tb-space-1); border-radius: var(--tb-radius); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
|
|
653
|
-
button.tb-crumb { cursor: pointer; }
|
|
654
|
-
button.tb-crumb:hover { color: var(--tb-text); text-decoration: underline; text-underline-offset: 3px; }
|
|
655
|
-
button.tb-crumb:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
656
|
-
.tb-crumb[aria-current] { color: var(--tb-text); font-weight: 600; }
|
|
657
|
-
.tb-crumb-more { display: none !important; }
|
|
658
|
-
|
|
659
|
-
.tb-link { display: inline-flex; align-items: center; gap: var(--tb-space-1); color: var(--tb-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
|
|
660
|
-
|
|
661
|
-
.tb-hidden { display: none !important; }
|
|
662
|
-
/* read by screen readers, not shown */
|
|
663
|
-
.tb-sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
664
|
-
@media (min-width: 641px) { .tb-narrow-only { display: none !important; } }
|
|
665
|
-
|
|
666
|
-
.tb-scroll {
|
|
667
|
-
display: flex;
|
|
668
|
-
flex-direction: column;
|
|
669
|
-
gap: var(--tb-space-4);
|
|
670
|
-
min-width: 0;
|
|
671
|
-
max-height: 400px;
|
|
672
|
-
overflow: auto;
|
|
673
|
-
overscroll-behavior: contain;
|
|
674
|
-
padding: var(--tb-space-3);
|
|
675
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
676
|
-
border-radius: var(--tb-radius);
|
|
677
|
-
}
|
|
678
|
-
.tb-scroll.tb-small { max-height: 240px; font-size: inherit; }
|
|
679
|
-
.tb-scroll.tb-large { max-height: 640px; }
|
|
680
|
-
.tb-scroll:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
681
|
-
|
|
682
|
-
.tb-image { display: block; max-width: 100%; height: auto; border-radius: var(--tb-radius); object-fit: cover; }
|
|
683
|
-
.tb-image.tb-round { aspect-ratio: 1; border-radius: 50%; }
|
|
684
|
-
.tb-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto 16 / 9; border-radius: var(--tb-radius); }
|
|
685
|
-
.tb-audio { display: block; width: 100%; max-width: 480px; }
|
|
686
|
-
:is(.tb-video, .tb-audio).tb-small { width: 320px; }
|
|
687
|
-
:is(.tb-video, .tb-audio).tb-medium { width: 480px; }
|
|
688
|
-
.tb-video.tb-large { width: 720px; }
|
|
689
|
-
:is(.tb-video, .tb-audio).tb-fill { max-width: none; }
|
|
690
|
-
:is(.tb-video, .tb-audio):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
691
|
-
.tb-canvas { display: block; max-width: 100%; }
|
|
692
|
-
.tb-canvas > svg { display: block; max-width: 100%; height: auto; overflow: visible; }
|
|
693
|
-
.tb-canvas.tb-fill > svg { width: 100%; }
|
|
694
|
-
.tb-chart { display: flex; flex-direction: column; gap: var(--tb-space-2); align-self: stretch; width: 100%; margin: 0; min-width: 0; }
|
|
695
|
-
.tb-chart-caption { font-weight: 600; }
|
|
696
|
-
.tb-chart-plot { width: 100%; min-width: 0; }
|
|
697
|
-
.tb-chart-plot > svg { display: block; width: 100%; height: auto; overflow: visible; }
|
|
698
|
-
.tb-chart-legend { display: flex; flex-wrap: wrap; gap: var(--tb-space-1) var(--tb-space-4); margin: 0; padding: 0; list-style: none; color: var(--tb-muted); font-size: 13px; }
|
|
699
|
-
.tb-chart-key { display: inline-flex; align-items: center; gap: var(--tb-space-2); }
|
|
700
|
-
.tb-chart-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--tb-swatch); }
|
|
701
|
-
.tb-chart-empty { margin: 0; color: var(--tb-muted); }
|
|
702
|
-
.tb-chart-caption[hidden], .tb-chart-plot[hidden], .tb-chart-legend[hidden], .tb-chart-empty[hidden] { display: none; }
|
|
703
|
-
.tb-image.tb-small { width: 96px; }
|
|
704
|
-
.tb-image.tb-medium { width: 240px; }
|
|
705
|
-
.tb-image.tb-large { width: 480px; }
|
|
706
|
-
.tb-image.tb-fill { width: 100%; }
|
|
707
|
-
|
|
708
|
-
.tb-progress-wrap { display: flex; flex-direction: column; gap: var(--tb-space-2); min-width: 0; }
|
|
709
|
-
.tb-progress-label { font-size: 14px; font-weight: 550; }
|
|
710
|
-
.tb-progress-label[hidden] { display: none; }
|
|
711
|
-
.tb-progress { height: 8px; border-radius: 4px; background: var(--tb-border); overflow: hidden; }
|
|
712
|
-
.tb-upload-progress { height: 6px; }
|
|
713
|
-
.tb-photo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tb-space-4); margin: calc(-1 * var(--tb-space-2)); padding: var(--tb-space-2); border: 1px dashed transparent; border-radius: var(--tb-radius-lg); transition: border-color var(--tb-fast) var(--tb-ease), background var(--tb-fast) var(--tb-ease); }
|
|
714
|
-
.tb-photo.tb-drop-over { border-color: var(--tb-primary); background: var(--tb-primary-soft); }
|
|
715
|
-
.tb-photo-frame { flex: none; width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; border: var(--tb-line) solid var(--tb-border); border-radius: var(--tb-radius-lg); background: var(--tb-bg); color: var(--tb-muted); }
|
|
716
|
-
.tb-photo-frame.tb-photo-pick { cursor: pointer; }
|
|
717
|
-
.tb-photo-frame.tb-round { border-radius: 50%; }
|
|
718
|
-
.tb-photo-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
719
|
-
.tb-photo-frame > .tb-icon { width: 32px; height: 32px; }
|
|
720
|
-
.tb-invalid .tb-photo-frame { border-color: var(--tb-danger); }
|
|
721
|
-
.tb-photo-actions { display: flex; flex-wrap: wrap; gap: var(--tb-space-2); }
|
|
722
|
-
.tb-photo-actions[hidden], .tb-photo-remove[hidden] { display: none; }
|
|
723
|
-
.tb-upload-progress[hidden] { display: none; }
|
|
724
|
-
.tb-progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--tb-primary); transition: width 300ms var(--tb-ease); }
|
|
725
|
-
.tb-success .tb-progress-bar { background: var(--tb-success); }
|
|
726
|
-
.tb-warning .tb-progress-bar { background: var(--tb-warning); }
|
|
727
|
-
.tb-danger .tb-progress-bar { background: var(--tb-danger); }
|
|
728
|
-
.tb-accent .tb-progress-bar { background: var(--tb-accent); }
|
|
729
|
-
.tb-indeterminate .tb-progress-bar { width: 35%; animation: tb-indeterminate 1.4s var(--tb-ease) infinite; }
|
|
730
|
-
@keyframes tb-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
|
|
731
|
-
|
|
732
|
-
/* tables: rows become cards on narrow screens */
|
|
733
|
-
.tb-table-wrap, .tb-list-wrap { min-width: 0; }
|
|
734
|
-
.tb-table-wrap {
|
|
735
|
-
overflow-x: auto;
|
|
736
|
-
background: var(--tb-surface);
|
|
737
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
738
|
-
border-radius: var(--tb-radius-lg);
|
|
739
|
-
box-shadow: var(--tb-shadow-1);
|
|
740
|
-
}
|
|
741
|
-
.tb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
|
742
|
-
.tb-table th {
|
|
743
|
-
text-align: left;
|
|
744
|
-
font-size: 13px;
|
|
745
|
-
font-weight: 600;
|
|
746
|
-
color: var(--tb-muted);
|
|
747
|
-
white-space: nowrap;
|
|
748
|
-
padding: var(--tb-space-3) var(--tb-space-4);
|
|
749
|
-
background: var(--tb-bg);
|
|
750
|
-
border-bottom: var(--tb-line) solid var(--tb-border);
|
|
751
|
-
}
|
|
752
|
-
.tb-table td { padding: var(--tb-space-3) var(--tb-space-4); border-bottom: var(--tb-line) solid var(--tb-border); height: var(--tb-control); }
|
|
753
|
-
.tb-table tbody tr:last-child td { border-bottom: 0; }
|
|
754
|
-
.tb-table .tb-num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
755
|
-
.tb-table-wrap:has(tbody:empty) thead { display: none; }
|
|
756
|
-
.tb-table th:has(> .tb-sort) { padding: 0; }
|
|
757
|
-
.tb-sort {
|
|
758
|
-
display: flex;
|
|
759
|
-
align-items: center;
|
|
760
|
-
gap: var(--tb-space-1);
|
|
761
|
-
width: 100%;
|
|
762
|
-
padding: var(--tb-space-3) var(--tb-space-4);
|
|
763
|
-
border: 0;
|
|
764
|
-
background: none;
|
|
765
|
-
font: inherit;
|
|
766
|
-
color: inherit;
|
|
767
|
-
text-align: inherit;
|
|
768
|
-
cursor: pointer;
|
|
769
|
-
border-radius: 0;
|
|
770
|
-
}
|
|
771
|
-
.tb-sort:hover, th[aria-sort] > .tb-sort { color: var(--tb-text); }
|
|
772
|
-
.tb-sort:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tb-focus); }
|
|
773
|
-
.tb-sort svg { width: 14px; height: 14px; flex: none; }
|
|
774
|
-
.tb-sort .tb-sort-idle { opacity: 0; transition: opacity var(--tb-fast) var(--tb-ease); }
|
|
775
|
-
.tb-sort:hover .tb-sort-idle, .tb-sort:focus-visible .tb-sort-idle { opacity: 0.5; }
|
|
776
|
-
.tb-table tfoot[hidden] { display: none !important; }
|
|
777
|
-
.tb-table tfoot td {
|
|
778
|
-
font-weight: 600;
|
|
779
|
-
background: var(--tb-bg);
|
|
780
|
-
border-top: var(--tb-line) solid var(--tb-border);
|
|
781
|
-
border-bottom: 0;
|
|
782
|
-
}
|
|
783
|
-
.tb-selectable tbody tr:not(.tb-group-head, .tb-group-foot), .tb-selectable .tb-list > li:not(.tb-group-head, .tb-group-foot) { cursor: pointer; transition: background var(--tb-fast) var(--tb-ease); }
|
|
784
|
-
.tb-selectable tbody tr:not(.tb-group-head, .tb-group-foot):hover, .tb-selectable .tb-list > li:not(.tb-group-head, .tb-group-foot):hover { background: var(--tb-bg); }
|
|
785
|
-
.tb-selectable tbody tr:focus-visible, .tb-selectable .tb-list > li:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tb-focus); }
|
|
786
|
-
.tb-table tr.tb-selected, .tb-list > li.tb-selected { background: var(--tb-primary-soft); }
|
|
787
|
-
/* the head and foot of a group in the rows: a title the width of the row, and its subtotals */
|
|
788
|
-
.tb-table .tb-group-head > th { font-size: 14px; color: var(--tb-text); white-space: normal; background: var(--tb-bg); border-top: var(--tb-line) solid var(--tb-border); }
|
|
789
|
-
.tb-table .tb-group-head.tb-level-2 > th { font-weight: 500; background: var(--tb-surface); }
|
|
790
|
-
.tb-table .tb-group-foot > td { font-weight: 600; background: var(--tb-bg); }
|
|
791
|
-
.tb-table .tb-level-2 > :first-child, .tb-list > .tb-level-2 { padding-left: calc(var(--tb-space-4) + var(--tb-space-5)); }
|
|
792
|
-
.tb-list > li.tb-group-head { font-weight: 600; background: var(--tb-bg); }
|
|
793
|
-
.tb-list > li.tb-group-foot { font-weight: 600; }
|
|
794
|
-
.tb-empty { margin: 0; padding: var(--tb-space-6) var(--tb-space-4); text-align: center; color: var(--tb-muted); }
|
|
795
|
-
.tb-empty[hidden] { display: none; }
|
|
796
|
-
|
|
797
|
-
.tb-list {
|
|
798
|
-
list-style: none;
|
|
799
|
-
margin: 0;
|
|
800
|
-
padding: 0;
|
|
801
|
-
background: var(--tb-surface);
|
|
802
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
803
|
-
border-radius: var(--tb-radius-lg);
|
|
804
|
-
box-shadow: var(--tb-shadow-1);
|
|
805
|
-
overflow: hidden;
|
|
806
|
-
}
|
|
807
|
-
.tb-list:empty { display: none; }
|
|
808
|
-
.tb-list > li {
|
|
809
|
-
display: flex;
|
|
810
|
-
align-items: center;
|
|
811
|
-
gap: var(--tb-space-3);
|
|
812
|
-
min-height: var(--tb-control);
|
|
813
|
-
padding: var(--tb-space-3) var(--tb-space-4);
|
|
814
|
-
border-bottom: var(--tb-line) solid var(--tb-border);
|
|
815
|
-
}
|
|
816
|
-
.tb-list > li:last-child { border-bottom: 0; }
|
|
817
|
-
.tb-list-texts { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
|
|
818
|
-
.tb-list-primary { font-weight: 550; }
|
|
819
|
-
/* the picture of a row, in a column of images or at the start of a list's item */
|
|
820
|
-
.tb-thumb { display: block; flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: var(--tb-radius); background: var(--tb-bg); }
|
|
821
|
-
.tb-thumb.tb-round { border-radius: 50%; }
|
|
822
|
-
.tb-table td.tb-thumb-cell { width: 1%; padding-top: var(--tb-space-1); padding-bottom: var(--tb-space-1); }
|
|
823
|
-
.tb-list-secondary { color: var(--tb-muted); font-size: 13px; }
|
|
824
|
-
.tb-list-secondary:empty { display: none; }
|
|
825
|
-
|
|
826
|
-
/* dialogs: centered window, full screen when narrow */
|
|
827
|
-
.tb-dialog {
|
|
828
|
-
border: 0;
|
|
829
|
-
padding: 0;
|
|
830
|
-
width: min(560px, calc(100vw - 32px));
|
|
831
|
-
max-height: calc(100vh - 64px);
|
|
832
|
-
background: var(--tb-raised);
|
|
833
|
-
color: var(--tb-text);
|
|
834
|
-
border-radius: var(--tb-radius-lg);
|
|
835
|
-
box-shadow: var(--tb-shadow-3);
|
|
836
|
-
}
|
|
837
|
-
.tb-dialog[open] { display: flex; flex-direction: column; animation: tb-rise 180ms var(--tb-ease); }
|
|
838
|
-
.tb-dialog::backdrop { background: var(--tb-overlay); }
|
|
839
|
-
.tb-dialog-head {
|
|
840
|
-
display: flex;
|
|
841
|
-
align-items: center;
|
|
842
|
-
justify-content: space-between;
|
|
843
|
-
gap: var(--tb-space-3);
|
|
844
|
-
padding: var(--tb-space-4) var(--tb-space-4) 0 var(--tb-space-6);
|
|
845
|
-
}
|
|
846
|
-
.tb-dialog-title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
|
|
847
|
-
.tb-dialog-close {
|
|
848
|
-
font: inherit;
|
|
849
|
-
font-size: 22px;
|
|
850
|
-
line-height: 1;
|
|
851
|
-
width: var(--tb-control);
|
|
852
|
-
height: var(--tb-control);
|
|
853
|
-
flex: none;
|
|
854
|
-
border: 0;
|
|
855
|
-
border-radius: var(--tb-radius);
|
|
856
|
-
background: transparent;
|
|
857
|
-
color: var(--tb-muted);
|
|
858
|
-
cursor: pointer;
|
|
859
|
-
}
|
|
860
|
-
.tb-dialog-close:hover { background: var(--tb-bg); color: var(--tb-text); }
|
|
861
|
-
.tb-dialog-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
862
|
-
.tb-dialog-body {
|
|
863
|
-
display: flex;
|
|
864
|
-
flex-direction: column;
|
|
865
|
-
gap: var(--tb-space-4);
|
|
866
|
-
padding: var(--tb-space-4) var(--tb-space-6) var(--tb-space-6);
|
|
867
|
-
overflow: auto;
|
|
868
|
-
}
|
|
869
|
-
.tb-dialog.tb-confirm { width: min(420px, calc(100vw - 32px)); }
|
|
870
|
-
.tb-dialog.tb-confirm > .tb-dialog-body { padding-top: var(--tb-space-6); gap: var(--tb-space-6); }
|
|
871
|
-
.tb-confirm-question { margin: 0; font-size: 15px; line-height: 1.5; }
|
|
872
|
-
@keyframes tb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
873
|
-
|
|
874
|
-
/* tabs */
|
|
875
|
-
.tb-tabs { display: flex; flex-direction: column; gap: var(--tb-space-5); min-width: 0; }
|
|
876
|
-
.tb-tablist { display: flex; gap: var(--tb-space-1); box-shadow: inset 0 -1px 0 var(--tb-border); overflow-x: auto; scrollbar-width: none; }
|
|
877
|
-
.tb-tab {
|
|
878
|
-
font: inherit;
|
|
879
|
-
font-size: 14px;
|
|
880
|
-
font-weight: 550;
|
|
881
|
-
min-height: var(--tb-control);
|
|
882
|
-
padding: 0 var(--tb-space-4);
|
|
883
|
-
border: 0;
|
|
884
|
-
border-bottom: 2px solid transparent;
|
|
885
|
-
background: transparent;
|
|
886
|
-
color: var(--tb-muted);
|
|
887
|
-
cursor: pointer;
|
|
888
|
-
white-space: nowrap;
|
|
889
|
-
transition: color var(--tb-fast) var(--tb-ease), border-color var(--tb-fast) var(--tb-ease);
|
|
890
|
-
}
|
|
891
|
-
.tb-tab:hover { color: var(--tb-text); }
|
|
892
|
-
.tb-tab[aria-selected="true"] { color: var(--tb-primary); border-bottom-color: var(--tb-primary); }
|
|
893
|
-
.tb-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tb-focus-ring); border-radius: var(--tb-radius) var(--tb-radius) 0 0; }
|
|
894
|
-
.tb-tab-panel { display: flex; flex-direction: column; gap: var(--tb-space-4); min-width: 0; }
|
|
895
|
-
.tb-tab-panel[hidden] { display: none; }
|
|
896
|
-
|
|
897
|
-
/* split: two panes and a handle; one pane at a time when narrow */
|
|
898
|
-
.tb-split { display: grid; grid-template-columns: minmax(0, var(--tb-split, 40%)) auto minmax(0, 1fr); align-items: start; }
|
|
899
|
-
.tb-split-pane { display: flex; flex-direction: column; gap: var(--tb-space-4); min-width: 0; }
|
|
900
|
-
.tb-split-pane:focus { outline: none; }
|
|
901
|
-
.tb-split-handle {
|
|
902
|
-
align-self: stretch;
|
|
903
|
-
width: var(--tb-space-5);
|
|
904
|
-
cursor: col-resize;
|
|
905
|
-
touch-action: none;
|
|
906
|
-
display: flex;
|
|
907
|
-
justify-content: center;
|
|
908
|
-
border-radius: var(--tb-radius);
|
|
909
|
-
}
|
|
910
|
-
.tb-split-handle::before { content: ""; width: 1px; background: var(--tb-border); transition: background var(--tb-fast) var(--tb-ease), width var(--tb-fast) var(--tb-ease); }
|
|
911
|
-
.tb-split-handle:hover::before { width: 3px; background: var(--tb-border-strong); }
|
|
912
|
-
.tb-split-handle:focus-visible { outline: none; }
|
|
913
|
-
.tb-split-handle:focus-visible::before { width: 3px; background: var(--tb-focus); }
|
|
914
|
-
.tb-split-back { display: none; }
|
|
915
|
-
|
|
916
|
-
/* the calendar of a date field: in the top layer, placed by the host */
|
|
917
|
-
.tb-calendar {
|
|
918
|
-
position: fixed;
|
|
919
|
-
inset: auto;
|
|
920
|
-
margin: 0;
|
|
921
|
-
padding: var(--tb-space-3);
|
|
922
|
-
background: var(--tb-raised);
|
|
923
|
-
color: var(--tb-text);
|
|
924
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
925
|
-
border-radius: var(--tb-radius-lg);
|
|
926
|
-
box-shadow: var(--tb-shadow-3);
|
|
927
|
-
animation: tb-pop 120ms var(--tb-ease);
|
|
928
|
-
}
|
|
929
|
-
.tb-calendar-head { display: flex; align-items: center; gap: var(--tb-space-2); margin-bottom: var(--tb-space-2); }
|
|
930
|
-
.tb-calendar-month { flex: 1; margin: 0; font-size: 1em; font-weight: 600; text-align: center; }
|
|
931
|
-
.tb-calendar-month::first-letter { text-transform: uppercase; }
|
|
932
|
-
.tb-calendar-step { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--tb-radius); background: transparent; color: var(--tb-muted); cursor: pointer; }
|
|
933
|
-
.tb-calendar-step:hover { background: var(--tb-bg); color: var(--tb-text); }
|
|
934
|
-
.tb-calendar-step:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
935
|
-
.tb-calendar-step .tb-icon { width: 18px; height: 18px; }
|
|
936
|
-
.tb-calendar-grid { border-collapse: collapse; }
|
|
937
|
-
.tb-calendar-grid th { width: 36px; height: 28px; font-size: 0.8em; font-weight: 500; color: var(--tb-muted); text-transform: uppercase; }
|
|
938
|
-
.tb-calendar-day { width: 36px; height: 36px; padding: 0; text-align: center; border-radius: var(--tb-radius); cursor: pointer; font-variant-numeric: tabular-nums; transition: background var(--tb-fast) var(--tb-ease); }
|
|
939
|
-
.tb-calendar-day:hover { background: var(--tb-bg); }
|
|
940
|
-
.tb-calendar-day:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tb-focus); }
|
|
941
|
-
.tb-calendar-other { color: var(--tb-muted); }
|
|
942
|
-
.tb-calendar-day[aria-current="date"] { font-weight: 700; color: var(--tb-primary); }
|
|
943
|
-
.tb-calendar-day[aria-selected="true"] { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
944
|
-
.tb-calendar-day[aria-disabled="true"] { color: var(--tb-border-strong); background: transparent; cursor: default; text-decoration: line-through; }
|
|
945
|
-
|
|
946
|
-
/* menus: in the top layer, placed by the host */
|
|
947
|
-
.tb-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tb-space-1); }
|
|
948
|
-
.tb-lookup .tb-input { flex: 1; min-width: 8em; width: auto; }
|
|
949
|
-
.tb-lookup-chosen { list-style: none; margin: 0; padding: 0; display: contents; }
|
|
950
|
-
.tb-lookup-chip { display: inline-flex; align-items: center; gap: var(--tb-space-1); min-height: 32px; padding: 0 var(--tb-space-1) 0 var(--tb-space-3); border: var(--tb-line) solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface); }
|
|
951
|
-
.tb-lookup-chip:not(:has(button)) { padding-right: var(--tb-space-3); }
|
|
952
|
-
.tb-lookup-list {
|
|
953
|
-
position: fixed;
|
|
954
|
-
inset: auto;
|
|
955
|
-
margin: 0;
|
|
956
|
-
padding: var(--tb-space-1);
|
|
957
|
-
list-style: none;
|
|
958
|
-
max-height: 280px;
|
|
959
|
-
overflow-y: auto;
|
|
960
|
-
color: var(--tb-text);
|
|
961
|
-
background: var(--tb-raised);
|
|
962
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
963
|
-
border-radius: var(--tb-radius-lg);
|
|
964
|
-
box-shadow: var(--tb-shadow-3);
|
|
965
|
-
}
|
|
966
|
-
.tb-lookup-option { padding: var(--tb-space-2) var(--tb-space-3); border-radius: var(--tb-radius); cursor: pointer; }
|
|
967
|
-
.tb-lookup-option:hover, .tb-lookup-option[aria-selected="true"] { background: var(--tb-primary-soft); }
|
|
968
|
-
.tb-lookup-none { padding: var(--tb-space-2) var(--tb-space-3); color: var(--tb-muted); }
|
|
969
|
-
|
|
970
|
-
.tb-menu {
|
|
971
|
-
position: fixed;
|
|
972
|
-
inset: auto;
|
|
973
|
-
margin: 0;
|
|
974
|
-
min-width: 180px;
|
|
975
|
-
max-width: min(320px, calc(100vw - 16px));
|
|
976
|
-
max-height: calc(100vh - 16px);
|
|
977
|
-
overflow-y: auto;
|
|
978
|
-
padding: var(--tb-space-1);
|
|
979
|
-
background: var(--tb-raised);
|
|
980
|
-
color: var(--tb-text);
|
|
981
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
982
|
-
border-radius: var(--tb-radius);
|
|
983
|
-
box-shadow: var(--tb-shadow-3);
|
|
984
|
-
animation: tb-pop 120ms var(--tb-ease);
|
|
985
|
-
}
|
|
986
|
-
.tb-menu-item {
|
|
987
|
-
display: flex;
|
|
988
|
-
align-items: center;
|
|
989
|
-
gap: var(--tb-space-3);
|
|
990
|
-
width: 100%;
|
|
991
|
-
min-height: 36px;
|
|
992
|
-
padding: 0 var(--tb-space-3);
|
|
993
|
-
border: 0;
|
|
994
|
-
border-radius: calc(var(--tb-radius) - 2px);
|
|
995
|
-
background: transparent;
|
|
996
|
-
color: inherit;
|
|
997
|
-
font: inherit;
|
|
998
|
-
font-size: 14px;
|
|
999
|
-
text-align: left;
|
|
1000
|
-
cursor: pointer;
|
|
1001
|
-
}
|
|
1002
|
-
.tb-menu-item > span:not(.tb-menu-gap) { flex: 1; }
|
|
1003
|
-
.tb-menu-item svg { width: 16px; height: 16px; flex: none; color: var(--tb-muted); }
|
|
1004
|
-
.tb-menu-gap { width: 16px; flex: none; }
|
|
1005
|
-
.tb-menu-item:focus { outline: none; background: var(--tb-primary-soft); }
|
|
1006
|
-
.tb-menu-item[aria-expanded="true"] { background: var(--tb-bg); }
|
|
1007
|
-
.tb-menu-divider { height: 1px; margin: var(--tb-space-1) calc(-1 * var(--tb-space-1)); background: var(--tb-border); }
|
|
1008
|
-
@keyframes tb-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
|
|
1009
|
-
|
|
1010
|
-
/* drag and drop */
|
|
1011
|
-
.tb-drag-active, .tb-drag-active * { user-select: none; cursor: grabbing !important; }
|
|
1012
|
-
.tb-dragging { opacity: 0.4; }
|
|
1013
|
-
.tb-drop-zone { min-height: var(--tb-control); }
|
|
1014
|
-
.tb-drop-over { outline: 2px dashed var(--tb-focus-ring); outline-offset: 4px; border-radius: var(--tb-radius); }
|
|
1015
|
-
.tb-drop-line {
|
|
1016
|
-
position: fixed;
|
|
1017
|
-
height: 2px;
|
|
1018
|
-
border-radius: 1px;
|
|
1019
|
-
background: var(--tb-primary);
|
|
1020
|
-
pointer-events: none;
|
|
1021
|
-
z-index: 2147483647;
|
|
1022
|
-
}
|
|
1023
|
-
.tb-drop-line.tb-across { width: 2px; }
|
|
1024
|
-
.tb-drag-ghost {
|
|
1025
|
-
position: fixed;
|
|
1026
|
-
left: 0;
|
|
1027
|
-
top: 0;
|
|
1028
|
-
max-width: 240px;
|
|
1029
|
-
overflow: hidden;
|
|
1030
|
-
text-overflow: ellipsis;
|
|
1031
|
-
white-space: nowrap;
|
|
1032
|
-
padding: var(--tb-space-2) var(--tb-space-3);
|
|
1033
|
-
background: var(--tb-raised);
|
|
1034
|
-
color: var(--tb-text);
|
|
1035
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
1036
|
-
border-radius: var(--tb-radius);
|
|
1037
|
-
box-shadow: var(--tb-shadow-3);
|
|
1038
|
-
font-size: 14px;
|
|
1039
|
-
font-weight: 500;
|
|
1040
|
-
pointer-events: none;
|
|
1041
|
-
z-index: 2147483647;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/* toasts */
|
|
1045
|
-
.tb-toasts {
|
|
1046
|
-
position: fixed;
|
|
1047
|
-
inset: auto 0 var(--tb-space-5) 0;
|
|
1048
|
-
margin: 0 auto;
|
|
1049
|
-
width: max-content;
|
|
1050
|
-
max-width: calc(100vw - 32px);
|
|
1051
|
-
padding: 0;
|
|
1052
|
-
border: 0;
|
|
1053
|
-
background: transparent;
|
|
1054
|
-
overflow: visible;
|
|
1055
|
-
display: flex;
|
|
1056
|
-
flex-direction: column;
|
|
1057
|
-
align-items: center;
|
|
1058
|
-
gap: var(--tb-space-2);
|
|
1059
|
-
}
|
|
1060
|
-
.tb-toast {
|
|
1061
|
-
display: flex;
|
|
1062
|
-
align-items: center;
|
|
1063
|
-
gap: var(--tb-space-3);
|
|
1064
|
-
padding: var(--tb-space-3) var(--tb-space-5);
|
|
1065
|
-
min-height: var(--tb-control);
|
|
1066
|
-
background: var(--tb-text);
|
|
1067
|
-
color: var(--tb-bg);
|
|
1068
|
-
border-radius: var(--tb-radius);
|
|
1069
|
-
box-shadow: var(--tb-shadow-3);
|
|
1070
|
-
font-size: 14px;
|
|
1071
|
-
font-weight: 500;
|
|
1072
|
-
cursor: pointer;
|
|
1073
|
-
animation: tb-rise 180ms var(--tb-ease);
|
|
1074
|
-
}
|
|
1075
|
-
.tb-toast.tb-success::before, .tb-toast.tb-warning::before, .tb-toast.tb-primary::before {
|
|
1076
|
-
content: "";
|
|
1077
|
-
width: 8px;
|
|
1078
|
-
height: 8px;
|
|
1079
|
-
border-radius: 50%;
|
|
1080
|
-
flex: none;
|
|
1081
|
-
background: var(--tb-primary);
|
|
1082
|
-
}
|
|
1083
|
-
.tb-toast.tb-success::before { background: var(--tb-success); }
|
|
1084
|
-
.tb-toast.tb-warning::before { background: var(--tb-warning); }
|
|
1085
|
-
.tb-toast.tb-danger { background: var(--tb-danger); color: var(--tb-on-danger); }
|
|
1086
|
-
|
|
1087
|
-
@media (max-width: 640px) {
|
|
1088
|
-
.tb-wide-only { display: none !important; }
|
|
1089
|
-
.tb-view:has(.tb-fit) { height: auto; }
|
|
1090
|
-
.tb-fit > * { overflow: visible; }
|
|
1091
|
-
.tb-split { display: block; }
|
|
1092
|
-
.tb-split-handle { display: none; }
|
|
1093
|
-
.tb-split[data-pane="1"] > .tb-split-pane:last-child, .tb-split[data-pane="2"] > .tb-split-pane:first-child { display: none; }
|
|
1094
|
-
.tb-split-back { display: inline-flex; align-self: flex-start; padding: 0 var(--tb-space-3); border: 0; background: transparent; color: var(--tb-primary); }
|
|
1095
|
-
.tb-view { padding: var(--tb-space-5) var(--tb-space-4); }
|
|
1096
|
-
.tb-form { grid-template-columns: minmax(0, 1fr); }
|
|
1097
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field { display: flex; }
|
|
1098
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-label, :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-control,
|
|
1099
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-actions, :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-check-row { grid-column: 1; padding-top: 0; }
|
|
1100
|
-
.tb-row:has(> .tb-field) { flex-direction: column; align-items: stretch; }
|
|
1101
|
-
.tb-row:has(> .tb-field) > :is(.tb-text, .tb-heading) { margin-bottom: 0; }
|
|
1102
|
-
.tb-entry { flex-direction: column; align-items: stretch; padding: var(--tb-space-3); border: var(--tb-line) solid var(--tb-border); border-radius: var(--tb-radius); }
|
|
1103
|
-
.tb-entry > * { flex: none; }
|
|
1104
|
-
.tb-entry:not(:first-child) .tb-field > .tb-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
|
|
1105
|
-
.tb-entry > .tb-button, .tb-entry:first-child:has(.tb-label:not(:empty)) > .tb-button { align-self: flex-end; margin-top: 0; }
|
|
1106
|
-
.tb-grid { grid-template-columns: minmax(0, 1fr); }
|
|
1107
|
-
.tb-actions > .tb-button { flex: 1 1 auto; }
|
|
1108
|
-
.tb-table-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
|
|
1109
|
-
.tb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
1110
|
-
.tb-table, .tb-table tbody, .tb-table tfoot, .tb-table tr, .tb-table td { display: block; }
|
|
1111
|
-
.tb-table tfoot { margin-top: var(--tb-space-3); }
|
|
1112
|
-
.tb-table tfoot tr { background: var(--tb-bg); }
|
|
1113
|
-
.tb-table tfoot td { background: none; }
|
|
1114
|
-
.tb-table tfoot td:empty { display: none; }
|
|
1115
|
-
.tb-table tbody { display: flex; flex-direction: column; gap: var(--tb-space-3); }
|
|
1116
|
-
.tb-table tr {
|
|
1117
|
-
padding: var(--tb-space-3) var(--tb-space-4);
|
|
1118
|
-
background: var(--tb-surface);
|
|
1119
|
-
border: var(--tb-line) solid var(--tb-border);
|
|
1120
|
-
border-radius: var(--tb-radius-lg);
|
|
1121
|
-
box-shadow: var(--tb-shadow-1);
|
|
1122
|
-
}
|
|
1123
|
-
.tb-table td, .tb-table tbody tr:last-child td, .tb-table tfoot td {
|
|
1124
|
-
display: flex;
|
|
1125
|
-
justify-content: space-between;
|
|
1126
|
-
gap: var(--tb-space-4);
|
|
1127
|
-
height: auto;
|
|
1128
|
-
padding: var(--tb-space-1) 0;
|
|
1129
|
-
border: 0;
|
|
1130
|
-
text-align: right;
|
|
1131
|
-
}
|
|
1132
|
-
.tb-table td::before { content: attr(data-label); color: var(--tb-muted); font-weight: 500; text-align: left; }
|
|
1133
|
-
.tb-table td.tb-thumb-cell { width: auto; justify-content: flex-start; }
|
|
1134
|
-
.tb-table td.tb-thumb-cell::before { content: none; }
|
|
1135
|
-
.tb-table tr.tb-group-head { padding: var(--tb-space-3) 0 0; background: none; border: 0; box-shadow: none; }
|
|
1136
|
-
.tb-table .tb-group-head > th, .tb-table .tb-group-head.tb-level-2 > th { display: block; padding: 0; background: none; border: 0; }
|
|
1137
|
-
.tb-table .tb-level-2 > :first-child { padding-left: 0; }
|
|
1138
|
-
.tb-table tr.tb-group-head.tb-level-2, .tb-table tr.tb-group-foot.tb-level-2 { margin-left: var(--tb-space-4); }
|
|
1139
|
-
.tb-table tr.tb-group-foot { background: var(--tb-bg); }
|
|
1140
|
-
.tb-table .tb-group-foot > td { background: none; }
|
|
1141
|
-
.tb-table .tb-group-foot > td:empty { display: none; }
|
|
1142
|
-
.tb-toolbar > .tb-button.tb-has-icon { padding: 0; width: var(--tb-control); }
|
|
1143
|
-
.tb-toolbar > .tb-button.tb-has-icon > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1144
|
-
.tb-crumb-middle { display: none !important; }
|
|
1145
|
-
.tb-crumb-more { display: inline-flex !important; }
|
|
1146
|
-
.tb-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
|
|
1147
|
-
.tb-dialog.tb-confirm { width: calc(100vw - 32px); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; border-radius: var(--tb-radius-lg); }
|
|
1148
|
-
}
|
|
1149
|
-
@media print {
|
|
1150
|
-
.tb-toasts, .tb-dialog:not([open]) { display: none !important; }
|
|
1151
|
-
/* print-page/only: the face alone, at the top of the page, with what holds it out of sight */
|
|
1152
|
-
.tb-print-only body * { visibility: hidden; }
|
|
1153
|
-
.tb-print-only .tb-print-target, .tb-print-only .tb-print-target * { visibility: visible; }
|
|
1154
|
-
.tb-print-only .tb-print-target { position: absolute; inset: 0 0 auto 0; margin: 0; box-shadow: none; }
|
|
1155
|
-
}
|
|
1156
|
-
@media (pointer: coarse) { :root { --tb-control: 44px; } }
|
|
1157
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1158
|
-
* { transition: none !important; animation: none !important; }
|
|
1159
|
-
.tb-indeterminate .tb-progress-bar { width: 100%; opacity: 0.35; }
|
|
1160
|
-
}
|
|
1161
|
-
`;
|
|
299
|
+
/** Component rules, one file per kind of face under theme/. Only token variables appear there, never raw values of color. */
|
|
300
|
+
const COMPONENTS = `\n${[LAYOUT, FORMS, NAVIGATION, MEDIA, DATA, DIALOGS, PANES, POPUPS, TOASTS, DEVTOOLS, RESPONSIVE].map(part => part.slice(1)).join('')}`;
|
|
1162
301
|
/** What a skin changes on top of the component rules: '' for the modern one. */
|
|
1163
|
-
const SKINS = {
|
|
1164
|
-
modern: '',
|
|
1165
|
-
classic: String.raw `
|
|
1166
|
-
/* classic: controls in relief on a grey window, sunken wells for what is typed, title bars on dialogs */
|
|
1167
|
-
:root {
|
|
1168
|
-
--tb-raise: inset 1px 1px 0 var(--tb-bevel-hi), inset -1px -1px 0 var(--tb-bevel-lo);
|
|
1169
|
-
--tb-sink: inset 1px 1px 0 var(--tb-bevel-lo), inset -1px -1px 0 var(--tb-bevel-hi);
|
|
1170
|
-
--tb-drop: 3px 3px 0 color-mix(in oklch, var(--tb-bevel-lo) 60%, transparent);
|
|
1171
|
-
--tb-ring: 0 0 0 2px var(--tb-focus);
|
|
1172
|
-
--tb-face: linear-gradient(var(--tb-face-hi), var(--tb-face-lo));
|
|
1173
|
-
}
|
|
1174
|
-
body { font-size: 14px; -webkit-font-smoothing: auto; }
|
|
1175
|
-
.tb-title { font-weight: 700; letter-spacing: 0; color: var(--tb-primary); text-shadow: 1px 1px 0 var(--tb-bevel-hi); }
|
|
1176
|
-
.tb-heading, .tb-panel > .tb-panel-title, .tb-dialog-title { font-weight: 700; letter-spacing: 0; }
|
|
1177
|
-
.tb-label { font-weight: 700; font-size: 13px; }
|
|
1178
|
-
.tb-divider { border-top: 1px solid var(--tb-bevel-lo); border-bottom: 1px solid var(--tb-bevel-hi); }
|
|
1179
|
-
|
|
1180
|
-
.tb-panel { border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); box-shadow: var(--tb-raise); padding: var(--tb-space-5); }
|
|
1181
|
-
.tb-panel.tb-primary { box-shadow: var(--tb-raise); }
|
|
1182
|
-
.tb-panel:focus-visible, .tb-panel.tb-primary:focus-visible { box-shadow: var(--tb-raise), var(--tb-ring); }
|
|
1183
|
-
.tb-tile:hover { background: var(--tb-face); border-color: var(--tb-border-strong); box-shadow: var(--tb-raise); }
|
|
1184
|
-
|
|
1185
|
-
/* buttons: a face lit from the top left; pressed, it sinks */
|
|
1186
|
-
.tb-button { font-size: 13px; font-weight: 700; padding: 0 var(--tb-space-4); border: 1px solid var(--tb-border-strong); background: var(--tb-face); box-shadow: var(--tb-raise); transition: none; }
|
|
1187
|
-
.tb-button:hover { background: linear-gradient(var(--tb-bevel-hi), var(--tb-face-hi)); border-color: var(--tb-border-strong); }
|
|
1188
|
-
.tb-button:active:not(:disabled, [aria-disabled="true"]) { background: linear-gradient(var(--tb-face-lo), var(--tb-face-hi)); box-shadow: var(--tb-sink); }
|
|
1189
|
-
.tb-button:focus-visible { box-shadow: var(--tb-raise), var(--tb-ring); }
|
|
1190
|
-
.tb-button:disabled, .tb-button[aria-disabled="true"] { box-shadow: var(--tb-raise); }
|
|
1191
|
-
.tb-button.tb-primary { --tb-tint: var(--tb-primary); }
|
|
1192
|
-
.tb-button.tb-accent { --tb-tint: var(--tb-accent); }
|
|
1193
|
-
.tb-button.tb-danger { --tb-tint: var(--tb-danger); }
|
|
1194
|
-
.tb-button:is(.tb-primary, .tb-accent, .tb-danger), .tb-button:is(.tb-primary, .tb-accent, .tb-danger):hover, .tb-button.tb-primary[aria-disabled="true"]:hover {
|
|
1195
|
-
background: linear-gradient(color-mix(in oklch, var(--tb-tint) 85%, var(--tb-bevel-hi)), var(--tb-tint));
|
|
1196
|
-
border-color: color-mix(in oklch, var(--tb-tint) 50%, var(--tb-border-strong));
|
|
1197
|
-
box-shadow: inset 1px 1px 0 color-mix(in oklch, var(--tb-bevel-hi) 45%, transparent), inset -1px -1px 0 color-mix(in oklch, var(--tb-bevel-lo) 60%, transparent);
|
|
1198
|
-
}
|
|
1199
|
-
.tb-button:is(.tb-primary, .tb-accent, .tb-danger):hover:not(:disabled, [aria-disabled="true"]) { filter: brightness(1.08); }
|
|
1200
|
-
.tb-button:is(.tb-primary, .tb-accent, .tb-danger):active:not(:disabled, [aria-disabled="true"]) { background: var(--tb-tint); box-shadow: inset 1px 1px 0 color-mix(in oklch, var(--tb-bevel-lo) 60%, transparent); }
|
|
1201
|
-
.tb-button:is(.tb-primary, .tb-accent, .tb-danger):focus-visible { box-shadow: var(--tb-raise), var(--tb-ring); }
|
|
1202
|
-
.tb-toolbar { background: var(--tb-face); border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); box-shadow: var(--tb-raise); }
|
|
1203
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger) { box-shadow: none; }
|
|
1204
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):hover { background: var(--tb-face); border-color: var(--tb-border-strong); box-shadow: var(--tb-raise); }
|
|
1205
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):focus-visible { box-shadow: var(--tb-ring); }
|
|
1206
|
-
.tb-toolbar > .tb-divider { border-left-color: var(--tb-bevel-lo); border-right: 1px solid var(--tb-bevel-hi); border-bottom: 0; }
|
|
1207
|
-
.tb-rich-tool:hover { background: var(--tb-face); box-shadow: var(--tb-raise); color: var(--tb-text); }
|
|
1208
|
-
|
|
1209
|
-
/* what is typed sits in a sunken well; a choice is a button that drops a list */
|
|
1210
|
-
.tb-input { border: 1px solid var(--tb-border-strong); box-shadow: var(--tb-sink); transition: none; }
|
|
1211
|
-
.tb-input:focus, .tb-rich-box:focus { border-color: var(--tb-focus); box-shadow: var(--tb-sink), 0 0 0 1px var(--tb-focus); }
|
|
1212
|
-
.tb-invalid .tb-input:focus { box-shadow: var(--tb-sink), 0 0 0 1px var(--tb-danger); }
|
|
1213
|
-
.tb-input[readonly], .tb-input.tb-rich-box[aria-readonly="true"] { background: var(--tb-bg); border-color: var(--tb-border); box-shadow: none; color: var(--tb-text); }
|
|
1214
|
-
select.tb-input {
|
|
1215
|
-
font-weight: 700;
|
|
1216
|
-
font-size: 13px;
|
|
1217
|
-
background-image: linear-gradient(45deg, transparent 50%, var(--tb-text) 50%), linear-gradient(135deg, var(--tb-text) 50%, transparent 50%), var(--tb-face);
|
|
1218
|
-
background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%, 0 0;
|
|
1219
|
-
background-size: 5px 5px, 5px 5px, 100% 100%;
|
|
1220
|
-
box-shadow: var(--tb-raise);
|
|
1221
|
-
}
|
|
1222
|
-
select.tb-input:focus { box-shadow: var(--tb-raise), var(--tb-ring); }
|
|
1223
|
-
.tb-switch input, .tb-switch input:focus-visible { border-radius: var(--tb-radius); box-shadow: var(--tb-sink); }
|
|
1224
|
-
.tb-switch input:focus-visible { box-shadow: var(--tb-sink), var(--tb-ring); }
|
|
1225
|
-
.tb-switch input::before { border-radius: var(--tb-radius); background: var(--tb-face); box-shadow: var(--tb-raise), 0 0 0 1px var(--tb-border-strong); }
|
|
1226
|
-
.tb-upload { box-shadow: var(--tb-sink); }
|
|
1227
|
-
.tb-date-button { top: 1px; right: 1px; bottom: 1px; width: calc(var(--tb-control) - 2px); border-left: 1px solid var(--tb-border-strong); border-radius: 0; background: var(--tb-face); box-shadow: var(--tb-raise); color: var(--tb-text); }
|
|
1228
|
-
.tb-scroll { background: var(--tb-surface); border-color: var(--tb-border-strong); box-shadow: var(--tb-sink); }
|
|
1229
|
-
.tb-scroll:focus-visible { box-shadow: var(--tb-sink), var(--tb-ring); }
|
|
1230
|
-
|
|
1231
|
-
/* progress: a sunken trough filled with blocks */
|
|
1232
|
-
.tb-progress { height: 18px; padding: 2px; border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); background: var(--tb-surface); box-shadow: var(--tb-sink); }
|
|
1233
|
-
.tb-progress-bar { --tb-bar: var(--tb-primary); border-radius: 0; background: repeating-linear-gradient(90deg, var(--tb-bar) 0 10px, transparent 10px 12px); }
|
|
1234
|
-
.tb-success .tb-progress-bar { --tb-bar: var(--tb-success); background: repeating-linear-gradient(90deg, var(--tb-bar) 0 10px, transparent 10px 12px); }
|
|
1235
|
-
.tb-warning .tb-progress-bar { --tb-bar: var(--tb-warning); background: repeating-linear-gradient(90deg, var(--tb-bar) 0 10px, transparent 10px 12px); }
|
|
1236
|
-
.tb-danger .tb-progress-bar { --tb-bar: var(--tb-danger); background: repeating-linear-gradient(90deg, var(--tb-bar) 0 10px, transparent 10px 12px); }
|
|
1237
|
-
.tb-accent .tb-progress-bar { --tb-bar: var(--tb-accent); background: repeating-linear-gradient(90deg, var(--tb-bar) 0 10px, transparent 10px 12px); }
|
|
1238
|
-
|
|
1239
|
-
/* tables and lists: a sunken frame, buttons for headers, what is chosen in the primary color */
|
|
1240
|
-
.tb-table-wrap, .tb-list { border: 1px solid; border-color: var(--tb-bevel-lo) var(--tb-bevel-hi) var(--tb-bevel-hi) var(--tb-bevel-lo); border-radius: var(--tb-radius); box-shadow: none; }
|
|
1241
|
-
.tb-table th { color: var(--tb-text); font-weight: 700; padding: var(--tb-space-2) var(--tb-space-3); background: var(--tb-face); border-bottom: 1px solid var(--tb-border-strong); box-shadow: var(--tb-raise); }
|
|
1242
|
-
.tb-sort { padding: var(--tb-space-2) var(--tb-space-3); }
|
|
1243
|
-
.tb-table tfoot td { background: var(--tb-bg); border-top-color: var(--tb-border-strong); }
|
|
1244
|
-
@media (min-width: 641px) {
|
|
1245
|
-
.tb-table td { padding: var(--tb-space-2) var(--tb-space-3); border-right: 1px solid var(--tb-border); }
|
|
1246
|
-
.tb-table th { border-right: 1px solid var(--tb-border-strong); }
|
|
1247
|
-
.tb-table tr > :last-child { border-right: 0; }
|
|
1248
|
-
}
|
|
1249
|
-
.tb-selectable :is(tbody > tr, .tb-list > li).tb-selected, .tb-tree li.tb-selected > .tb-tree-row { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1250
|
-
.tb-list > li.tb-selected .tb-list-secondary, .tb-tree li.tb-selected > .tb-tree-row .tb-tree-toggle { color: inherit; }
|
|
1251
|
-
.tb-selectable tbody tr.tb-selected:focus-visible, .tb-selectable .tb-list > li.tb-selected:focus-visible { box-shadow: inset 0 0 0 2px var(--tb-focus), inset 0 0 0 3px var(--tb-on-primary); }
|
|
1252
|
-
.tb-tree-row { border-radius: 0; }
|
|
1253
|
-
|
|
1254
|
-
/* tabs: raised tabs on a line; the chosen one is taller and opens onto what it shows */
|
|
1255
|
-
.tb-tablist { gap: 2px; padding: 0 var(--tb-space-2); box-shadow: inset 0 -1px 0 var(--tb-border-strong); }
|
|
1256
|
-
.tb-tab { font-size: 13px; font-weight: 700; min-height: calc(var(--tb-control) - 4px); margin-top: 4px; border: 1px solid var(--tb-border-strong); border-bottom: 0; border-radius: var(--tb-radius) var(--tb-radius) 0 0; background: var(--tb-face); color: var(--tb-muted); box-shadow: inset 1px 1px 0 var(--tb-bevel-hi); }
|
|
1257
|
-
.tb-tab[aria-selected="true"] { margin-top: 0; min-height: var(--tb-control); background: var(--tb-bg); color: var(--tb-text); }
|
|
1258
|
-
|
|
1259
|
-
/* what floats: raised, with a hard shadow; the item under the pointer or the keys in the primary color */
|
|
1260
|
-
.tb-menu, .tb-lookup-list, .tb-calendar { border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); box-shadow: var(--tb-raise), var(--tb-drop); animation: none; }
|
|
1261
|
-
.tb-menu-item, .tb-lookup-option { border-radius: 0; }
|
|
1262
|
-
.tb-menu-item:focus, .tb-lookup-option:hover, .tb-lookup-option[aria-selected="true"] { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1263
|
-
.tb-menu-item:focus svg { color: inherit; }
|
|
1264
|
-
.tb-menu-divider { background: var(--tb-bevel-lo); box-shadow: 0 1px 0 var(--tb-bevel-hi); }
|
|
1265
|
-
.tb-calendar-step, .tb-upload-remove { background: var(--tb-face); border: 1px solid var(--tb-border-strong); box-shadow: var(--tb-raise); color: var(--tb-text); }
|
|
1266
|
-
.tb-toast { background: var(--tb-raised); color: var(--tb-text); border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); box-shadow: var(--tb-raise), var(--tb-drop); font-weight: 700; }
|
|
1267
|
-
.tb-drag-ghost { border-color: var(--tb-border-strong); box-shadow: var(--tb-raise), var(--tb-drop); }
|
|
1268
|
-
|
|
1269
|
-
/* dialogs: a window with a title bar */
|
|
1270
|
-
.tb-dialog { border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius); box-shadow: var(--tb-raise), var(--tb-drop); animation: none; }
|
|
1271
|
-
.tb-dialog-head { margin: 3px 3px 0; padding: var(--tb-space-1) var(--tb-space-1) var(--tb-space-1) var(--tb-space-4); background: linear-gradient(90deg, var(--tb-primary), color-mix(in oklch, var(--tb-primary) 60%, var(--tb-bevel-hi))); color: var(--tb-on-primary); }
|
|
1272
|
-
.tb-dialog-title { font-size: 14px; }
|
|
1273
|
-
.tb-dialog-close, .tb-dialog-close:hover { width: 24px; height: 24px; font-size: 16px; border: 1px solid var(--tb-border-strong); background: var(--tb-face); color: var(--tb-text); box-shadow: var(--tb-raise); }
|
|
1274
|
-
.tb-dialog-close:focus-visible { box-shadow: var(--tb-raise), var(--tb-ring); }
|
|
1275
|
-
.tb-dialog-body { padding-top: var(--tb-space-5); }
|
|
1276
|
-
`,
|
|
1277
|
-
cupertino: String.raw `
|
|
1278
|
-
/* cupertino: recalls the Mac: small controls on a light window, labels to the right, segmented tabs, translucent menus */
|
|
1279
|
-
body { font-size: 13px; }
|
|
1280
|
-
.tb-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
|
|
1281
|
-
.tb-heading { font-size: 17px; font-weight: 700; }
|
|
1282
|
-
.tb-panel { border-radius: 10px; border-color: var(--tb-border); box-shadow: none; padding: var(--tb-space-5); }
|
|
1283
|
-
.tb-panel > .tb-panel-title { font-size: 13px; font-weight: 700; }
|
|
1284
|
-
.tb-label { font-size: 13px; font-weight: 400; }
|
|
1285
|
-
:is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-label { text-align: right; }
|
|
1286
|
-
@container (max-width: 420px) { :is(.tb-form, .tb-form > .tb-panel, .tb-form > .tb-panel > .tb-panel) > .tb-field > .tb-label { text-align: left; } }
|
|
1287
|
-
.tb-button { font-size: 13px; font-weight: 400; padding: 0 var(--tb-space-4); border: 0; border-radius: 6px; background: var(--tb-surface); box-shadow: 0 0 0 1px var(--tb-border), var(--tb-shadow-1); }
|
|
1288
|
-
.tb-button:hover { background: var(--tb-surface); }
|
|
1289
|
-
.tb-button:active:not(:disabled, [aria-disabled="true"]) { background: var(--tb-border); }
|
|
1290
|
-
.tb-button:focus-visible { box-shadow: 0 0 0 1px var(--tb-border), 0 0 0 4px var(--tb-focus-ring); }
|
|
1291
|
-
.tb-button.tb-primary, .tb-button.tb-primary:hover, .tb-button.tb-primary[aria-disabled="true"]:hover { background: linear-gradient(color-mix(in oklch, var(--tb-primary) 85%, var(--tb-on-primary)), var(--tb-primary)); box-shadow: var(--tb-shadow-1); }
|
|
1292
|
-
.tb-button.tb-primary:active:not(:disabled, [aria-disabled="true"]) { background: var(--tb-primary-hover); }
|
|
1293
|
-
.tb-button.tb-primary:focus-visible { box-shadow: 0 0 0 4px var(--tb-focus-ring); }
|
|
1294
|
-
.tb-toolbar { background: transparent; border: 0; padding: 0; }
|
|
1295
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger) { box-shadow: none; }
|
|
1296
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):hover { background: var(--tb-border); }
|
|
1297
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):focus-visible { box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
1298
|
-
.tb-input { border-radius: 5px; border-color: var(--tb-border-strong); }
|
|
1299
|
-
/* a choice is a pop-up button: the arrow in a small square of the primary color */
|
|
1300
|
-
select.tb-input {
|
|
1301
|
-
border: 0;
|
|
1302
|
-
border-radius: 6px;
|
|
1303
|
-
box-shadow: 0 0 0 1px var(--tb-border), var(--tb-shadow-1);
|
|
1304
|
-
background-image: linear-gradient(45deg, transparent 50%, var(--tb-on-primary) 50%), linear-gradient(135deg, var(--tb-on-primary) 50%, transparent 50%), linear-gradient(var(--tb-primary), var(--tb-primary));
|
|
1305
|
-
background-position: calc(100% - 15px) 45%, calc(100% - 11px) 45%, calc(100% - 4px) 50%;
|
|
1306
|
-
background-size: 4px 4px, 4px 4px, 20px calc(100% - 8px);
|
|
1307
|
-
padding-right: 34px;
|
|
1308
|
-
}
|
|
1309
|
-
select.tb-input:focus { box-shadow: 0 0 0 1px var(--tb-border), 0 0 0 4px var(--tb-focus-ring); }
|
|
1310
|
-
.tb-tablist { align-self: center; gap: 0; padding: 2px; border-radius: 7px; background: var(--tb-border); box-shadow: none; }
|
|
1311
|
-
.tb-tab { min-height: 24px; padding: 0 var(--tb-space-4); border: 0; border-radius: 5px; font-size: 13px; font-weight: 400; color: var(--tb-text); }
|
|
1312
|
-
.tb-tab[aria-selected="true"] { background: var(--tb-segment); color: var(--tb-text); box-shadow: var(--tb-shadow-1); }
|
|
1313
|
-
.tb-tab:focus-visible { box-shadow: 0 0 0 3px var(--tb-focus-ring); border-radius: 5px; }
|
|
1314
|
-
.tb-table-wrap { border-radius: 8px; box-shadow: none; }
|
|
1315
|
-
.tb-table th { background: var(--tb-surface); color: var(--tb-text); font-size: 12px; font-weight: 400; padding: 6px var(--tb-space-3); }
|
|
1316
|
-
.tb-sort { padding: 6px var(--tb-space-3); }
|
|
1317
|
-
@media (min-width: 641px) {
|
|
1318
|
-
.tb-table th:not(:last-child) { box-shadow: inset -1px 0 0 var(--tb-border); }
|
|
1319
|
-
.tb-table td { height: auto; padding: 6px var(--tb-space-3); border-bottom: 0; }
|
|
1320
|
-
.tb-table tbody tr:nth-child(even) { background: var(--tb-bg); }
|
|
1321
|
-
}
|
|
1322
|
-
.tb-list { padding: 4px; box-shadow: none; }
|
|
1323
|
-
.tb-list > li { border-bottom: 0; border-radius: 6px; }
|
|
1324
|
-
.tb-selectable :is(tbody > tr, .tb-list > li).tb-selected, .tb-tree li.tb-selected > .tb-tree-row { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1325
|
-
.tb-list > li.tb-selected .tb-list-secondary, .tb-tree li.tb-selected > .tb-tree-row .tb-tree-toggle { color: inherit; }
|
|
1326
|
-
.tb-tree-row { border-radius: 6px; }
|
|
1327
|
-
.tb-menu, .tb-lookup-list { padding: 5px; border-radius: 8px; background: color-mix(in oklch, var(--tb-raised) 82%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); animation: none; }
|
|
1328
|
-
.tb-menu-item { min-height: 24px; border-radius: 5px; font-size: 13px; }
|
|
1329
|
-
.tb-menu-item:focus, .tb-lookup-option:hover, .tb-lookup-option[aria-selected="true"] { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1330
|
-
.tb-menu-item:focus svg { color: inherit; }
|
|
1331
|
-
.tb-calendar { border-radius: 10px; }
|
|
1332
|
-
/* dialogs: a sheet with its title centred, closed by a red dot on the left */
|
|
1333
|
-
.tb-dialog { border: 1px solid var(--tb-border); border-radius: 12px; }
|
|
1334
|
-
.tb-dialog-head { position: relative; justify-content: center; padding: var(--tb-space-3) var(--tb-space-6) 0; }
|
|
1335
|
-
.tb-dialog-title { font-size: 13px; font-weight: 700; }
|
|
1336
|
-
.tb-dialog-close, .tb-dialog-close:hover { position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--tb-danger); color: transparent; font-size: 12px; line-height: 14px; }
|
|
1337
|
-
.tb-dialog-close:hover { color: var(--tb-on-danger); }
|
|
1338
|
-
.tb-toast { border-radius: 10px; background: color-mix(in oklch, var(--tb-text) 80%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
|
|
1339
|
-
.tb-scroll { border-radius: 8px; background: var(--tb-surface); }
|
|
1340
|
-
`,
|
|
1341
|
-
fusion: String.raw `
|
|
1342
|
-
/* fusion: recalls Qt: group boxes with their title on the frame, buttons with a gentle gradient, tab widgets in a frame */
|
|
1343
|
-
.tb-title { font-size: 24px; font-weight: 600; letter-spacing: 0; }
|
|
1344
|
-
.tb-heading { font-size: 18px; font-weight: 600; letter-spacing: 0; }
|
|
1345
|
-
.tb-label { font-weight: 400; }
|
|
1346
|
-
.tb-panel { position: relative; margin-top: var(--tb-space-2); padding: var(--tb-space-5) var(--tb-space-4) var(--tb-space-4); background: transparent; border: 1px solid var(--tb-border-strong); border-radius: 3px; box-shadow: none; }
|
|
1347
|
-
.tb-panel > .tb-panel-title { position: absolute; top: 0; left: var(--tb-space-3); transform: translateY(-50%); padding: 0 var(--tb-space-1); background: var(--tb-bg); font-size: 14px; font-weight: 600; line-height: 1.2; }
|
|
1348
|
-
.tb-dialog .tb-panel > .tb-panel-title { background: var(--tb-raised); }
|
|
1349
|
-
.tb-button { font-weight: 400; padding: 0 var(--tb-space-4); border: 1px solid var(--tb-border-strong); border-radius: 3px; background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); box-shadow: none; transition: none; }
|
|
1350
|
-
.tb-button:hover { background: linear-gradient(var(--tb-face-hi), var(--tb-face-hi)); border-color: var(--tb-border-strong); }
|
|
1351
|
-
.tb-button:active:not(:disabled, [aria-disabled="true"]) { background: var(--tb-face-lo); box-shadow: inset 0 1px 2px var(--tb-border-strong); }
|
|
1352
|
-
.tb-button:focus-visible { border-color: var(--tb-focus); box-shadow: 0 0 0 2px var(--tb-focus-ring); }
|
|
1353
|
-
/* the default button is framed in the primary color; danger and accent color their text */
|
|
1354
|
-
.tb-button.tb-primary, .tb-button.tb-primary:hover, .tb-button.tb-primary[aria-disabled="true"]:hover { background: linear-gradient(color-mix(in oklch, var(--tb-primary) 12%, var(--tb-face-hi)), color-mix(in oklch, var(--tb-primary) 22%, var(--tb-face-lo))); border-color: var(--tb-primary); color: var(--tb-text); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--tb-primary) 35%, transparent); }
|
|
1355
|
-
.tb-button.tb-primary:hover:not(:disabled, [aria-disabled="true"]) { background: linear-gradient(color-mix(in oklch, var(--tb-primary) 8%, var(--tb-face-hi)), color-mix(in oklch, var(--tb-primary) 14%, var(--tb-face-hi))); }
|
|
1356
|
-
.tb-button.tb-primary:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--tb-primary) 35%, transparent), 0 0 0 2px var(--tb-focus-ring); }
|
|
1357
|
-
.tb-button.tb-danger, .tb-button.tb-accent { background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); color: var(--tb-danger); border-color: var(--tb-border-strong); }
|
|
1358
|
-
.tb-button.tb-accent { color: var(--tb-accent); }
|
|
1359
|
-
.tb-toolbar { padding: 2px; background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); border-color: var(--tb-border); border-radius: 0; }
|
|
1360
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):hover { background: var(--tb-face-hi); border-color: var(--tb-border-strong); }
|
|
1361
|
-
.tb-input { border-radius: 2px; border-color: var(--tb-border-strong); box-shadow: inset 0 1px 1px var(--tb-border); }
|
|
1362
|
-
.tb-input:focus, .tb-rich-box:focus { border-color: var(--tb-focus); box-shadow: 0 0 0 1px var(--tb-focus); }
|
|
1363
|
-
.tb-invalid .tb-input:focus { box-shadow: 0 0 0 1px var(--tb-danger); }
|
|
1364
|
-
.tb-input[readonly] { box-shadow: none; }
|
|
1365
|
-
select.tb-input {
|
|
1366
|
-
border-radius: 3px;
|
|
1367
|
-
background-image: linear-gradient(45deg, transparent 50%, var(--tb-text) 50%), linear-gradient(135deg, var(--tb-text) 50%, transparent 50%), linear-gradient(var(--tb-face-hi), var(--tb-face-lo));
|
|
1368
|
-
background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%, 0 0;
|
|
1369
|
-
background-size: 5px 5px, 5px 5px, 100% 100%;
|
|
1370
|
-
box-shadow: none;
|
|
1371
|
-
}
|
|
1372
|
-
select.tb-input:focus { box-shadow: 0 0 0 2px var(--tb-focus-ring); }
|
|
1373
|
-
/* tabs: a tab widget, the chosen tab open onto a framed page */
|
|
1374
|
-
.tb-tabs { gap: 0; }
|
|
1375
|
-
.tb-tablist { position: relative; z-index: 1; gap: 0; margin-bottom: -1px; padding-left: 2px; box-shadow: none; }
|
|
1376
|
-
.tb-tab { min-height: 30px; margin: 3px -1px 0 0; padding: 0 var(--tb-space-4); border: 1px solid var(--tb-border-strong); border-radius: 3px 3px 0 0; background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); color: var(--tb-text); font-weight: 400; }
|
|
1377
|
-
.tb-tab[aria-selected="true"] { margin-top: 0; min-height: 33px; background: var(--tb-bg); border-bottom-color: var(--tb-bg); color: var(--tb-text); }
|
|
1378
|
-
.tb-tab-panel { padding: var(--tb-space-4); border: 1px solid var(--tb-border-strong); border-radius: 0 3px 3px 3px; }
|
|
1379
|
-
.tb-table-wrap, .tb-list { border-color: var(--tb-border-strong); border-radius: 2px; box-shadow: none; }
|
|
1380
|
-
.tb-table th { color: var(--tb-text); font-weight: 400; padding: 4px var(--tb-space-3); background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); border-bottom: 1px solid var(--tb-border-strong); }
|
|
1381
|
-
.tb-sort { padding: 4px var(--tb-space-3); }
|
|
1382
|
-
@media (min-width: 641px) {
|
|
1383
|
-
.tb-table th { border-right: 1px solid var(--tb-border-strong); }
|
|
1384
|
-
.tb-table td { height: 30px; padding: 4px var(--tb-space-3); border-right: 1px solid var(--tb-border); }
|
|
1385
|
-
.tb-table tr > :last-child { border-right: 0; }
|
|
1386
|
-
}
|
|
1387
|
-
.tb-list > li { padding: var(--tb-space-2) var(--tb-space-3); }
|
|
1388
|
-
.tb-selectable :is(tbody > tr, .tb-list > li).tb-selected, .tb-tree li.tb-selected > .tb-tree-row { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1389
|
-
.tb-list > li.tb-selected .tb-list-secondary, .tb-tree li.tb-selected > .tb-tree-row .tb-tree-toggle { color: inherit; }
|
|
1390
|
-
.tb-tree-row { border-radius: 0; }
|
|
1391
|
-
.tb-progress { height: 20px; border: 1px solid var(--tb-border-strong); border-radius: 3px; background: var(--tb-surface); }
|
|
1392
|
-
.tb-progress-bar { border-radius: 2px; background-image: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in oklch, var(--tb-surface) 22%, transparent) 6px 12px); }
|
|
1393
|
-
.tb-menu, .tb-lookup-list, .tb-calendar { padding: 2px; border-color: var(--tb-border-strong); border-radius: 2px; box-shadow: var(--tb-shadow-2); animation: none; }
|
|
1394
|
-
.tb-menu-item, .tb-lookup-option { min-height: 28px; border-radius: 0; }
|
|
1395
|
-
.tb-menu-item:focus, .tb-lookup-option:hover, .tb-lookup-option[aria-selected="true"] { background: var(--tb-primary); color: var(--tb-on-primary); }
|
|
1396
|
-
.tb-menu-item:focus svg { color: inherit; }
|
|
1397
|
-
.tb-dialog { border: 1px solid var(--tb-border-strong); border-radius: 3px; }
|
|
1398
|
-
.tb-dialog-head { padding: 4px 4px 4px var(--tb-space-4); background: linear-gradient(var(--tb-face-hi), var(--tb-face-lo)); border-bottom: 1px solid var(--tb-border-strong); }
|
|
1399
|
-
.tb-dialog-title { font-size: 14px; font-weight: 600; }
|
|
1400
|
-
.tb-dialog-close { width: 28px; height: 28px; font-size: 18px; border-radius: 3px; }
|
|
1401
|
-
.tb-dialog-body { padding-top: var(--tb-space-5); }
|
|
1402
|
-
/* a toast is a tooltip */
|
|
1403
|
-
.tb-toast { background: color-mix(in oklch, var(--tb-warning) 22%, var(--tb-surface)); color: var(--tb-text); border: 1px solid var(--tb-border-strong); border-radius: 2px; box-shadow: var(--tb-shadow-2); font-weight: 400; }
|
|
1404
|
-
.tb-scroll { background: var(--tb-surface); border-color: var(--tb-border-strong); border-radius: 2px; }
|
|
1405
|
-
`,
|
|
1406
|
-
fluent: String.raw `
|
|
1407
|
-
/* fluent: recalls Windows 11: white layers on a calm window, a darker stroke under controls, accent pills for what is chosen */
|
|
1408
|
-
.tb-title { font-size: 28px; font-weight: 600; letter-spacing: 0; }
|
|
1409
|
-
.tb-heading { font-size: 20px; font-weight: 600; letter-spacing: 0; }
|
|
1410
|
-
.tb-panel > .tb-panel-title { font-size: 16px; font-weight: 600; letter-spacing: 0; }
|
|
1411
|
-
.tb-label { font-weight: 400; }
|
|
1412
|
-
.tb-panel { border-color: var(--tb-border); border-radius: 8px; box-shadow: none; }
|
|
1413
|
-
.tb-button { font-weight: 400; border: 1px solid var(--tb-border); border-bottom-color: var(--tb-border-strong); border-radius: 4px; box-shadow: none; }
|
|
1414
|
-
.tb-button:hover { background: var(--tb-bg); border-color: var(--tb-border); border-bottom-color: var(--tb-border-strong); }
|
|
1415
|
-
.tb-button:active:not(:disabled, [aria-disabled="true"]) { color: var(--tb-muted); }
|
|
1416
|
-
.tb-button:focus-visible { box-shadow: 0 0 0 1px var(--tb-surface), 0 0 0 3px var(--tb-focus-ring); }
|
|
1417
|
-
.tb-button.tb-primary { border-color: color-mix(in oklch, var(--tb-primary) 88%, var(--tb-on-primary)); border-bottom-color: color-mix(in oklch, var(--tb-primary) 70%, var(--tb-text)); box-shadow: none; }
|
|
1418
|
-
.tb-button.tb-primary:focus-visible { box-shadow: 0 0 0 1px var(--tb-surface), 0 0 0 3px var(--tb-focus-ring); }
|
|
1419
|
-
.tb-toolbar { background: var(--tb-raised); border-color: var(--tb-border); border-radius: 8px; }
|
|
1420
|
-
.tb-toolbar > .tb-button:not(.tb-primary, .tb-accent, .tb-danger):hover { background: var(--tb-subtle); }
|
|
1421
|
-
/* a field: a quiet frame with a darker line under it, which turns into the accent while typing */
|
|
1422
|
-
.tb-input { border-color: var(--tb-border); border-radius: 4px; box-shadow: inset 0 -1px 0 var(--tb-muted); }
|
|
1423
|
-
.tb-input:hover { border-color: var(--tb-border); }
|
|
1424
|
-
.tb-input:focus, .tb-rich-box:focus { border-color: var(--tb-border); box-shadow: inset 0 -2px 0 var(--tb-primary); }
|
|
1425
|
-
.tb-invalid .tb-input, .tb-invalid .tb-input:focus { box-shadow: inset 0 -2px 0 var(--tb-danger); }
|
|
1426
|
-
.tb-input[readonly] { box-shadow: none; }
|
|
1427
|
-
select.tb-input { border-bottom-color: var(--tb-border-strong); box-shadow: none; }
|
|
1428
|
-
select.tb-input:focus { box-shadow: 0 0 0 1px var(--tb-surface), 0 0 0 3px var(--tb-focus-ring); }
|
|
1429
|
-
.tb-switch input { width: 40px; border: 1px solid var(--tb-muted); background: transparent; }
|
|
1430
|
-
.tb-switch input::before { top: 3px; left: 3px; width: 12px; height: 12px; background: var(--tb-muted); box-shadow: none; }
|
|
1431
|
-
.tb-switch input:checked { border-color: var(--tb-primary); }
|
|
1432
|
-
.tb-switch input:checked::before { transform: translateX(20px); background: var(--tb-on-primary); }
|
|
1433
|
-
.tb-switch input:focus-visible { box-shadow: 0 0 0 1px var(--tb-surface), 0 0 0 3px var(--tb-focus-ring); }
|
|
1434
|
-
/* tabs: plain words; a short pill of the accent under the chosen one */
|
|
1435
|
-
.tb-tablist { gap: var(--tb-space-1); box-shadow: none; }
|
|
1436
|
-
.tb-tab { position: relative; border-bottom: 0; border-radius: 4px; font-weight: 400; color: var(--tb-muted); }
|
|
1437
|
-
.tb-tab:hover { background: var(--tb-subtle); }
|
|
1438
|
-
.tb-tab[aria-selected="true"] { color: var(--tb-text); font-weight: 600; }
|
|
1439
|
-
.tb-tab[aria-selected="true"]::after { content: ""; position: absolute; left: calc(50% - 8px); bottom: 3px; width: 16px; height: 3px; border-radius: 2px; background: var(--tb-primary); }
|
|
1440
|
-
.tb-tab:focus-visible { box-shadow: 0 0 0 3px var(--tb-focus-ring); }
|
|
1441
|
-
/* what is chosen: a shade of the text, and a pill of the accent at its left */
|
|
1442
|
-
.tb-table-wrap { border-radius: 8px; box-shadow: none; }
|
|
1443
|
-
.tb-table th { background: var(--tb-surface); color: var(--tb-text); }
|
|
1444
|
-
.tb-list { padding: 4px; border-radius: 8px; box-shadow: none; }
|
|
1445
|
-
.tb-list > li { position: relative; border-bottom: 0; border-radius: 4px; }
|
|
1446
|
-
.tb-tree-row { position: relative; border-radius: 4px; }
|
|
1447
|
-
.tb-selectable :is(tbody > tr, .tb-list > li).tb-selected, .tb-tree li.tb-selected > .tb-tree-row { background: var(--tb-subtle); }
|
|
1448
|
-
.tb-tree li.tb-selected > .tb-tree-row { font-weight: 400; }
|
|
1449
|
-
.tb-list > li.tb-selected::before, .tb-tree li.tb-selected > .tb-tree-row::before { content: ""; position: absolute; left: 0; top: calc(50% - 8px); width: 3px; height: 16px; border-radius: 2px; background: var(--tb-primary); }
|
|
1450
|
-
.tb-selectable tbody > tr.tb-selected > td:first-child { box-shadow: inset 3px 0 0 var(--tb-primary); }
|
|
1451
|
-
.tb-selectable :is(tbody > tr, .tb-list > li):hover { background: var(--tb-subtle); }
|
|
1452
|
-
.tb-progress { height: 3px; border-radius: 2px; background: linear-gradient(var(--tb-muted), var(--tb-muted)) center / 100% 1px no-repeat; }
|
|
1453
|
-
.tb-menu, .tb-lookup-list, .tb-calendar { padding: 4px; border-radius: 8px; }
|
|
1454
|
-
.tb-menu-item, .tb-lookup-option { min-height: 32px; border-radius: 4px; }
|
|
1455
|
-
.tb-menu-item:focus, .tb-lookup-option:hover, .tb-lookup-option[aria-selected="true"] { background: var(--tb-subtle); }
|
|
1456
|
-
.tb-dialog { border: 1px solid var(--tb-border); border-radius: 8px; }
|
|
1457
|
-
.tb-dialog-head { padding: var(--tb-space-5) var(--tb-space-3) 0 var(--tb-space-6); }
|
|
1458
|
-
.tb-dialog-title { font-size: 20px; font-weight: 600; letter-spacing: 0; }
|
|
1459
|
-
.tb-toast { background: var(--tb-raised); color: var(--tb-text); border: 1px solid var(--tb-border); border-radius: 8px; font-weight: 400; }
|
|
1460
|
-
.tb-scroll { border-radius: 8px; }
|
|
1461
|
-
`,
|
|
1462
|
-
};
|
|
302
|
+
const SKINS = { modern: '', classic: CLASSIC, cupertino: CUPERTINO, fusion: FUSION, fluent: FLUENT };
|