@mistriwork/kit 1.0.0-rc.17 → 1.0.0-rc.18
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/dist/client/components/AppList.js +16 -6
- package/dist/client/components/Chart.css +5 -0
- package/dist/client/components/Chart.d.ts +17 -2
- package/dist/client/components/Chart.js +83 -22
- package/dist/client/components/ChartFigure.d.ts +3 -1
- package/dist/client/components/ChartFigure.js +14 -8
- package/dist/client/components/Content.js +3 -1
- package/dist/client/components/DashHead.d.ts +6 -0
- package/dist/client/components/DashHead.js +20 -0
- package/dist/client/components/Editable.js +1 -1
- package/dist/client/components/Grid.js +33 -4
- package/dist/client/components/JsonPreview.css +29 -0
- package/dist/client/components/JsonPreview.js +1 -1
- package/dist/client/components/JsonView.css +201 -62
- package/dist/client/components/JsonView.d.ts +43 -1
- package/dist/client/components/JsonView.js +320 -55
- package/dist/client/components/LayoutSwitch.d.ts +9 -0
- package/dist/client/components/LayoutSwitch.js +61 -0
- package/dist/client/components/ListEmpty.css +3 -0
- package/dist/client/components/LiveNotices.css +3 -0
- package/dist/client/components/NewRecord.d.ts +0 -2
- package/dist/client/components/NewRecord.js +61 -17
- package/dist/client/components/PageFields.js +22 -3
- package/dist/client/components/PageHead.js +26 -6
- package/dist/client/components/PageRelated.d.ts +28 -0
- package/dist/client/components/PageRelated.js +50 -3
- package/dist/client/components/PageSectionBox.d.ts +5 -1
- package/dist/client/components/PageSectionBox.js +5 -3
- package/dist/client/components/PageSections.js +26 -13
- package/dist/client/components/PageSkeleton.css +2 -0
- package/dist/client/components/PageSkeleton.js +11 -3
- package/dist/client/components/Palette.js +108 -10
- package/dist/client/components/RecordPicker.d.ts +2 -0
- package/dist/client/components/RecordPicker.js +34 -8
- package/dist/client/components/RecordSummaries.js +6 -1
- package/dist/client/components/Rooms.js +2 -2
- package/dist/client/components/TableRoom.js +15 -5
- package/dist/client/components/TableView.d.ts +2 -0
- package/dist/client/components/Value.js +1 -1
- package/dist/client/components/appListModel.d.ts +4 -0
- package/dist/client/components/appRooms.d.ts +2 -0
- package/dist/client/components/appRooms.js +2 -0
- package/dist/client/components/dashboardModel.d.ts +5 -0
- package/dist/client/components/directoryModel.d.ts +25 -0
- package/dist/client/components/directoryModel.js +88 -0
- package/dist/client/components/gridSizing.d.ts +3 -0
- package/dist/client/components/gridSizing.js +6 -2
- package/dist/client/components/jsonTree.d.ts +54 -0
- package/dist/client/components/jsonTree.js +190 -0
- package/dist/client/components/listSubtitles.d.ts +1 -0
- package/dist/client/components/listSubtitles.js +7 -0
- package/dist/client/components/newMenuModel.d.ts +14 -6
- package/dist/client/components/newMenuModel.js +37 -5
- package/dist/client/components/newRecordModel.d.ts +24 -2
- package/dist/client/components/newRecordModel.js +47 -4
- package/dist/client/components/pageContext.d.ts +2 -0
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/sidebarModel.js +7 -3
- package/dist/client/composedReads.js +3 -1
- package/dist/client/copy/lists/components/AppList.d.ts +1 -0
- package/dist/client/copy/lists/components/AppList.js +1 -0
- package/dist/client/copy/lists/components/LayoutSwitch.d.ts +4 -0
- package/dist/client/copy/lists/components/LayoutSwitch.js +6 -0
- package/dist/client/copy/record/components/JsonView.d.ts +22 -0
- package/dist/client/copy/record/components/JsonView.js +19 -0
- package/dist/client/copy/record/components/PageHead.d.ts +1 -0
- package/dist/client/copy/record/components/PageHead.js +2 -0
- package/dist/client/copy/shell/components/Palette.d.ts +11 -0
- package/dist/client/copy/shell/components/Palette.js +14 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +2 -1
- package/dist/client/copy/shell/components/TopNav.js +4 -2
- package/dist/client/copy/shell/components/directoryModel.d.ts +4 -0
- package/dist/client/copy/shell/components/directoryModel.js +6 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +1 -0
- package/dist/client/copy/shell/components/sidebarModel.js +1 -0
- package/dist/client/core.d.ts +3 -3
- package/dist/client/core.js +6 -7
- package/dist/client/features.css +67 -7
- package/dist/client/index.html +2 -1
- package/dist/client/insert.js +1 -8
- package/dist/client/locale.d.ts +7 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +9 -12
- package/dist/client/page.css +56 -15
- package/dist/client/palette.d.ts +3 -1
- package/dist/client/palette.js +19 -4
- package/dist/client/paletteRecents.d.ts +25 -0
- package/dist/client/paletteRecents.js +64 -0
- package/dist/client/partsLook.css +6 -3
- package/dist/client/sageLook.css +5 -3
- package/dist/client/shellMode.d.ts +2 -0
- package/dist/client/shellMode.js +1 -0
- package/dist/client/structure.css +201 -1
- package/dist/client/style.css +59 -10
- package/dist/client/themeFamilies.css +37 -0
- package/dist/client/visualThemes.css +12 -0
- package/dist/client/workbenchLook.css +415 -0
- package/dist/client/workshopLook.css +48 -25
- package/package.json +4 -3
package/dist/client/style.css
CHANGED
|
@@ -47,9 +47,10 @@ body {
|
|
|
47
47
|
a popup, a panel and a dialog are as square or as round as the fields
|
|
48
48
|
beside them. They sit here, beside --radius-lg, for the same reason.
|
|
49
49
|
A surface's lift is the scale's (--shadow-pop, --shadow-panel,
|
|
50
|
-
--shadow-modal)
|
|
51
|
-
a
|
|
52
|
-
surface's keeps it,
|
|
50
|
+
--shadow-modal), which the Workbench's own look sets (workbenchLook.css);
|
|
51
|
+
where a surface's lift there is a literal of its own, a rule under
|
|
52
|
+
:where(:root:not([data-visual-theme])) right after the surface's keeps it,
|
|
53
|
+
at the same specificity (test/check-client-shape.mjs). */
|
|
53
54
|
--radius-item: 5px;
|
|
54
55
|
--radius-pop: 8px;
|
|
55
56
|
--radius-panel: 8px;
|
|
@@ -498,7 +499,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
498
499
|
background: var(--surface); border: 1px solid var(--line);
|
|
499
500
|
box-shadow: var(--shadow-pop);
|
|
500
501
|
}
|
|
501
|
-
:where(:root:not([data-visual-theme])) .zoom-controls { box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); }
|
|
502
502
|
.zoom-controls button { padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
|
|
503
503
|
.zoom-readout {
|
|
504
504
|
min-width: 3.4rem; text-align: center;
|
|
@@ -586,7 +586,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
586
586
|
box-shadow: var(--shadow-modal);
|
|
587
587
|
overflow: hidden;
|
|
588
588
|
}
|
|
589
|
-
:where(:root:not([data-visual-theme])) .palette { box-shadow: 0 18px 60px rgb(0 0 0 / 0.28); }
|
|
590
589
|
.palette-input {
|
|
591
590
|
padding: var(--space-4h) var(--space-5);
|
|
592
591
|
border: none; border-bottom: 1px solid var(--line);
|
|
@@ -622,6 +621,35 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
622
621
|
.palette-detail { font: var(--text-xs) var(--mono); color: var(--ink-subtle); }
|
|
623
622
|
.palette-empty { padding: var(--space-5); margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
|
|
624
623
|
|
|
624
|
+
/* An App's palette (Palette.tsx, `palette-grouped`; the Workbench keeps the flat list above): rows in groups under
|
|
625
|
+
quiet headings, each with the mark its room or table has in the menu, the kind said in the line under the name and
|
|
626
|
+
not as a badge, and the keys it answers to in a footer. The list is one height whatever it holds, so typing —
|
|
627
|
+
which empties some groups and fills others — never moves the box the reader's eye is in. */
|
|
628
|
+
.palette-grouped .palette-list { block-size: min(30rem, 56vh); min-block-size: 0; overscroll-behavior: contain; }
|
|
629
|
+
.palette-group-head {
|
|
630
|
+
padding: var(--space-3) var(--space-3h) var(--space-2);
|
|
631
|
+
font: 600 var(--text-xs) var(--sans); color: var(--ink-subtle);
|
|
632
|
+
}
|
|
633
|
+
.palette-group + .palette-group { margin-top: var(--space-2); }
|
|
634
|
+
.palette-grouped .palette-item { grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); }
|
|
635
|
+
.palette-icon { display: grid; place-items: center; color: var(--ink-muted); }
|
|
636
|
+
.palette-item.active .palette-icon { color: var(--ink); }
|
|
637
|
+
.palette-grouped :is(.palette-label, .palette-detail) { font-family: var(--sans); }
|
|
638
|
+
.palette-grouped .palette-label { min-width: 0; font-size: var(--text-md); }
|
|
639
|
+
.palette-grouped .palette-detail { white-space: nowrap; }
|
|
640
|
+
.palette-foot {
|
|
641
|
+
flex: none; display: flex; align-items: center; gap: var(--space-5);
|
|
642
|
+
block-size: 28px; padding: 0 var(--space-5);
|
|
643
|
+
border-top: 1px solid var(--line);
|
|
644
|
+
font: var(--text-xs) var(--sans); color: var(--ink-subtle);
|
|
645
|
+
}
|
|
646
|
+
.palette-hint { display: inline-flex; align-items: center; gap: var(--space-2); }
|
|
647
|
+
.palette-foot kbd {
|
|
648
|
+
display: inline-grid; place-items: center; min-inline-size: 16px; padding: 0 var(--space-1h);
|
|
649
|
+
border: 1px solid var(--line); border-radius: min(3px, var(--radius));
|
|
650
|
+
font: inherit; color: var(--ink-muted);
|
|
651
|
+
}
|
|
652
|
+
|
|
625
653
|
/* ---------- the sidebar toggle ---------- */
|
|
626
654
|
|
|
627
655
|
/* Header controls that are not the primary action: an icon's worth of space
|
|
@@ -646,7 +674,6 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
|
|
|
646
674
|
border: 1px solid var(--line-strong); border-radius: var(--radius-pop);
|
|
647
675
|
box-shadow: var(--shadow-pop);
|
|
648
676
|
}
|
|
649
|
-
:where(:root:not([data-visual-theme])) .more-list { box-shadow: 0 10px 34px rgb(0 0 0 / 0.18); }
|
|
650
677
|
.more-item {
|
|
651
678
|
display: grid; grid-template-columns: 1.1rem 1fr auto;
|
|
652
679
|
align-items: baseline; gap: var(--space-3);
|
|
@@ -1109,7 +1136,6 @@ th.align-right:not(:last-child) .th-resizer { width: var(--space-3h); }
|
|
|
1109
1136
|
box-shadow: var(--shadow-pop);
|
|
1110
1137
|
padding: var(--space-2);
|
|
1111
1138
|
}
|
|
1112
|
-
:where(:root:not([data-visual-theme])) .th-menu { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
|
|
1113
1139
|
@media (prefers-reduced-motion: no-preference) {
|
|
1114
1140
|
.th-menu {
|
|
1115
1141
|
transform-origin: top center;
|
|
@@ -1651,6 +1677,24 @@ button.danger { background: var(--status-critical); color: var(--surface); borde
|
|
|
1651
1677
|
.record-summary dl > div { display: flex; align-items: baseline; gap: var(--space-2h); min-width: 0; max-width: 100%; }
|
|
1652
1678
|
.record-summary dt { flex: none; font: 500 var(--text-sm)/1.5 var(--sans); color: var(--ink-muted); }
|
|
1653
1679
|
.record-summary dd { min-width: 0; margin: 0; font: var(--text-md)/1.45 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
1680
|
+
/* In an App a row says each value once and its caption never (design.md, Mobile): the title, then the first values on
|
|
1681
|
+
one line — a status as its dot and word, a person as avatar and name, a date short — and the caption stays for
|
|
1682
|
+
whoever reads by ear, as the grid's header is. Two lines at most: every fact stands in one fixed line box, so the
|
|
1683
|
+
rows are whole and a third line is cut off at a fact's edge, never through one. An empty value is not drawn (it
|
|
1684
|
+
would be a mark with no caption to say what is missing), so the facts after it close up. The Workbench keeps its
|
|
1685
|
+
captions: it is a tool for reading data as stored. */
|
|
1686
|
+
body.app-mode .record-summary dl {
|
|
1687
|
+
--summary-line: calc(var(--text-md) * 1.8);
|
|
1688
|
+
gap: 0 var(--field-gap);
|
|
1689
|
+
max-block-size: calc(var(--summary-line) * 2);
|
|
1690
|
+
overflow: hidden;
|
|
1691
|
+
}
|
|
1692
|
+
body.app-mode .record-summary dl > div { position: relative; block-size: var(--summary-line); align-items: center; overflow: hidden; }
|
|
1693
|
+
body.app-mode .record-summary dl > div[data-empty] { display: none; }
|
|
1694
|
+
body.app-mode .record-summary dt {
|
|
1695
|
+
position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden;
|
|
1696
|
+
clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
1697
|
+
}
|
|
1654
1698
|
/* A dashboard's list stands on its section's edge, where the section's title does. */
|
|
1655
1699
|
.dash-list .record-summaries { padding: 0; }
|
|
1656
1700
|
}
|
|
@@ -1670,7 +1714,6 @@ button.danger { background: var(--status-critical); color: var(--surface); borde
|
|
|
1670
1714
|
box-shadow: var(--shadow-pop);
|
|
1671
1715
|
background: var(--raised); color: var(--ink-muted);
|
|
1672
1716
|
}
|
|
1673
|
-
:where(:root:not([data-visual-theme])) .toast { box-shadow: 0 4px 16px rgb(0 0 0 / 0.12); }
|
|
1674
1717
|
@media (prefers-reduced-motion: no-preference) {
|
|
1675
1718
|
.toast {
|
|
1676
1719
|
/* A transition rather than a keyframe: transitions retarget mid-flight,
|
|
@@ -1692,7 +1735,6 @@ body.app-mode .toast {
|
|
|
1692
1735
|
background: var(--surface); color: var(--ink);
|
|
1693
1736
|
box-shadow: var(--shadow-pop);
|
|
1694
1737
|
}
|
|
1695
|
-
:where(:root:not([data-visual-theme])) body.app-mode .toast { box-shadow: 0 6px 24px rgb(0 0 0 / 0.14); }
|
|
1696
1738
|
body.app-mode .toast-message { flex: 1; min-width: 0; }
|
|
1697
1739
|
body.app-mode .toast-icon {
|
|
1698
1740
|
display: grid; place-items: center; flex: 0 0 22px; height: 22px;
|
|
@@ -2328,7 +2370,6 @@ body.app-mode .page-head.has-record + .page-body { padding-bottom: calc(132px +
|
|
|
2328
2370
|
box-shadow: var(--shadow-pop);
|
|
2329
2371
|
padding: var(--space-2);
|
|
2330
2372
|
}
|
|
2331
|
-
:where(:root:not([data-visual-theme])) .ac { box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); }
|
|
2332
2373
|
.ac[hidden] { display: none; }
|
|
2333
2374
|
@media (prefers-reduced-motion: no-preference) {
|
|
2334
2375
|
.ac {
|
|
@@ -2439,6 +2480,14 @@ body.app-mode .page-head.has-record + .page-body { padding-bottom: calc(132px +
|
|
|
2439
2480
|
/* With a list's verbs at the bar's end, both took an auto margin and split the
|
|
2440
2481
|
free space: Back floated mid-bar. Back keeps the end; the verbs follow it. */
|
|
2441
2482
|
.crumbs .crumb-back + .crumb-tools { margin-left: var(--space-3); }
|
|
2483
|
+
/* In an App the trail is the one way back at a desk: Back said the trail's
|
|
2484
|
+
last step again at the bar's other end (docs/design.md, the trail). A phone
|
|
2485
|
+
keeps it, where the trail is cut to its last crumb. A rule of the width,
|
|
2486
|
+
not of a measurement, so the bar is one shape from its first paint. */
|
|
2487
|
+
@media (min-width: 641px) {
|
|
2488
|
+
body.app-mode .crumbs .crumb-back { display: none; }
|
|
2489
|
+
body.app-mode .crumbs .crumb-back + .crumb-tools { margin-left: auto; }
|
|
2490
|
+
}
|
|
2442
2491
|
|
|
2443
2492
|
.related-item {
|
|
2444
2493
|
display: grid; grid-template-columns: minmax(2.4rem, auto) 1fr;
|
|
@@ -520,6 +520,10 @@
|
|
|
520
520
|
:root[data-type-label~='tracking'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
521
521
|
letter-spacing: var(--type-label-tracking);
|
|
522
522
|
}
|
|
523
|
+
/* A label's own size, a step either side of the base: after the capitals' step, so a size said wins over it. */
|
|
524
|
+
:root[data-type-label~='size'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
525
|
+
font-size: var(--type-label-size);
|
|
526
|
+
}
|
|
523
527
|
:root[data-type-label~='weight'] :is(.home-card-label, .table-wrap thead th, .tab, :where(body.app-mode) .page-tab) {
|
|
524
528
|
font-weight: var(--type-label-weight);
|
|
525
529
|
}
|
|
@@ -691,6 +695,39 @@
|
|
|
691
695
|
font-family: var(--mono);
|
|
692
696
|
}
|
|
693
697
|
|
|
698
|
+
/* ---------- Meaning (recipes.status = dot) ---------- */
|
|
699
|
+
/* A status in a cell or a field is a dot and its word, the word in the ink at the cell's weight: only the dot
|
|
700
|
+
carries the tone, so "Collected" and "Waiting on parts" weigh the same down a column until one needs a hand.
|
|
701
|
+
What asks for attention (warn, bad) says its word in its colour too. This is Lumen's `quiet` (lumenLook.css) for
|
|
702
|
+
every look that draws a dot, and it is only the cell and the field: a lane's head, a board card and a calendar
|
|
703
|
+
card colour their own words. The pill recipes colour the word themselves (sageLook.css, lumenLook.css) and keep
|
|
704
|
+
the base's tone ink, which is why this is a recipe's rule and not the shared layer's. */
|
|
705
|
+
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral) {
|
|
706
|
+
color: var(--ink);
|
|
707
|
+
font-weight: 400;
|
|
708
|
+
}
|
|
709
|
+
:root[data-look-status='dot'] :is(td, dd) .tone:not(.record-tag, .tone-neutral)::before {
|
|
710
|
+
background: var(--tone-dot, currentColor);
|
|
711
|
+
}
|
|
712
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-good {
|
|
713
|
+
--tone-dot: var(--status-good);
|
|
714
|
+
}
|
|
715
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-info {
|
|
716
|
+
--tone-dot: var(--status-info);
|
|
717
|
+
}
|
|
718
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-warn:not(.record-tag) {
|
|
719
|
+
--tone-dot: var(--status-warning);
|
|
720
|
+
color: color-mix(in srgb, var(--status-warning) 82%, var(--ink));
|
|
721
|
+
}
|
|
722
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-bad:not(.record-tag) {
|
|
723
|
+
--tone-dot: var(--status-critical);
|
|
724
|
+
color: color-mix(in srgb, var(--status-critical) 82%, var(--ink));
|
|
725
|
+
}
|
|
726
|
+
/* A marked value's icon is its dot, so it takes the dot's colour and not the word's. */
|
|
727
|
+
:root[data-look-status='dot'] :is(td, dd) .tone-marked:not(.record-tag, .tone-neutral) > svg {
|
|
728
|
+
color: var(--tone-dot);
|
|
729
|
+
}
|
|
730
|
+
|
|
694
731
|
/* ---------- The header (recipes.header) ---------- */
|
|
695
732
|
/* `band` lays a record's head and a list's on one strip of the raised ground, edge to edge of the pane: the trail with
|
|
696
733
|
the record's verbs, the eyebrow, the name, its status and facts, or a list's title, tabs and filters, as an object
|
|
@@ -234,6 +234,18 @@
|
|
|
234
234
|
link-blue names under the title read as a row of navigation, not as what the record is (page.css). */
|
|
235
235
|
:root[data-visual-theme] .page-head-facts .page-fact button.ref-jump { color: var(--ink); }
|
|
236
236
|
:root[data-visual-theme] .page-head-facts .page-fact button.ref-jump:hover { color: var(--link); }
|
|
237
|
+
/* In a grid a reference is the cell's own word in the ink, and a link only to the pointer or the keyboard: a column of
|
|
238
|
+
link-blue names beside the plain ones read as the loudest column on the page, and the cell is a door whichever colour
|
|
239
|
+
it wears (the peek opens on hover, the click goes). A record's fields keep the link ink above, where a reference is
|
|
240
|
+
the one thing to follow. Mono's underline stays (themeFamilies.css). */
|
|
241
|
+
:root[data-visual-theme] .app-mode td.reflink { color: var(--ink); }
|
|
242
|
+
:root[data-visual-theme] .app-mode td.reflink:is(:focus-visible, :focus-within) { color: var(--link); }
|
|
243
|
+
@media (hover: hover) {
|
|
244
|
+
:root[data-visual-theme] .app-mode td.reflink:hover { color: var(--link); }
|
|
245
|
+
}
|
|
246
|
+
/* A true flag is a tick in the ink; a false one is an empty cell (Grid.tsx names it "No" for assistive technology), so
|
|
247
|
+
a column of flags shows the rows that are, not a column of crosses. */
|
|
248
|
+
:root[data-visual-theme] .app-mode td.bool .yes { color: var(--ink); }
|
|
237
249
|
|
|
238
250
|
:root[data-visual-theme] .dash-controls { padding-top: 20px; padding-bottom: var(--space-3); gap: var(--space-4); }
|
|
239
251
|
:root[data-visual-theme] .dash-windows { padding: var(--space-1h); gap: var(--space-1); background: var(--raised); border: 1px solid var(--line); border-radius: var(--control-radius, var(--radius)); }
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
/* The Workbench's own look: Instrument, in the Fog and moss palette (docs/design.md, Two dresses).
|
|
2
|
+
|
|
3
|
+
"A precision instrument: a hairline measuring grid, every figure on a monospace column", in near-monochrome neutral
|
|
4
|
+
grey with one low-chroma moss for what you can follow (a reference, the current table, focus) and for Run. Words are
|
|
5
|
+
set in Inter, in sentence case at three weights, and everything counted, compared or keyed in IBM Plex Mono, so
|
|
6
|
+
figures line up to the digit and a key reads character by character; both faces are the kit's own (faces.css),
|
|
7
|
+
fetched only when the page draws them. Absence is NULL in small capitals, which a stored string "null" can never be
|
|
8
|
+
mistaken for. Dark is the same instrument by night.
|
|
9
|
+
|
|
10
|
+
What the audit of the old native look found, answered here: one code face for chrome, labels and data alike, so
|
|
11
|
+
nothing in the interface outranked anything else; tracked capitals on every label, louder than the values under
|
|
12
|
+
them; three button dialects in one bar; a card holding chips beside a box holding a diagram on the landing; a bar
|
|
13
|
+
down the side of the current related table and of a field being read (the refusal list's side-tab border); a
|
|
14
|
+
record's tools wrapping to two lines; a phone's column heads given to their move arrows instead of their names.
|
|
15
|
+
|
|
16
|
+
Why a sheet of its own and not style.css: an App never wears it. Every rule is keyed on a root with no kit look worn
|
|
17
|
+
(`:root:not([data-visual-theme])`), so it could stand in the first stylesheet only as dead weight on every App's
|
|
18
|
+
first paint; instead the Workbench's own chunk imports it (`@mistriwork/kit/client/workbenchLook.css`), so the
|
|
19
|
+
database browser's page carries it and an App's does not. It stands in `look`, over the tool's own rules and under
|
|
20
|
+
a host's look (`registerHostLooks`, worn in `theme` under `data-host-look`), so a host look over it says only what
|
|
21
|
+
it changes: a palette is colour alone, and the structure below is shared.
|
|
22
|
+
|
|
23
|
+
Bends, each on purpose:
|
|
24
|
+
- The column heads stand on a tinted band: with hairlines between columns, a band is what tells the head from the
|
|
25
|
+
first row at a glance without a heavier rule.
|
|
26
|
+
- The schema diagram sits on a dot graticule: the one place the instrument shows its scale; it carries no meaning a
|
|
27
|
+
reader needs.
|
|
28
|
+
- A second face, IBM Plex Mono, for figures.
|
|
29
|
+
|
|
30
|
+
The motion tokens are the house's (the doctrine holds as written). Contrast was checked pair by pair, light and dark:
|
|
31
|
+
text, NULL and type ink, key and reference ink on every ground they sit on at 4.5:1; a field's edge and the focus
|
|
32
|
+
ring at 3:1. */
|
|
33
|
+
@import './fonts/faces.css';
|
|
34
|
+
|
|
35
|
+
@layer look {
|
|
36
|
+
:root:not([data-visual-theme]) {
|
|
37
|
+
--face-ui: Inter, 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
38
|
+
--sans: var(--face-ui);
|
|
39
|
+
/* The kit's seam for a host look's data face (tokens.css): every chrome string the code face set reads it, so
|
|
40
|
+
pointing it at the interface face moves them all; the figures then take theirs below. */
|
|
41
|
+
--data-face: var(--face-ui);
|
|
42
|
+
--figures: 'IBM Plex Mono', var(--code);
|
|
43
|
+
--control-h: 30px;
|
|
44
|
+
--grid-head-char: 6.8;
|
|
45
|
+
--ground: #f5f5f5;
|
|
46
|
+
--surface: #fefefe;
|
|
47
|
+
--raised: #ededed;
|
|
48
|
+
--line: #e3e3e3;
|
|
49
|
+
--line-strong: #cccccc;
|
|
50
|
+
--line-control: #858585;
|
|
51
|
+
--ink: #171717;
|
|
52
|
+
--ink-muted: #575757;
|
|
53
|
+
--ink-subtle: #686868;
|
|
54
|
+
--accent: #4d6b2b;
|
|
55
|
+
--accent-ink: #42601f;
|
|
56
|
+
--on-accent: #ffffff;
|
|
57
|
+
--accent-soft: #4d6b2b14;
|
|
58
|
+
--link: #42601f;
|
|
59
|
+
--focus: #5f8336;
|
|
60
|
+
--status-good: #1f7a5a;
|
|
61
|
+
--status-warning: #9c5a06;
|
|
62
|
+
--status-critical: #b8352c;
|
|
63
|
+
--status-info: #5b54a8;
|
|
64
|
+
--row-hover: #f3f3f3;
|
|
65
|
+
--pop-line: #d9d9d9;
|
|
66
|
+
--head-band: #f5f5f5;
|
|
67
|
+
--graticule: #1717171f;
|
|
68
|
+
--shadow-pop: 0 1px 2px rgb(16 20 28 / 0.06), 0 8px 24px rgb(16 20 28 / 0.1);
|
|
69
|
+
--shadow-panel: 0 1px 2px rgb(16 20 28 / 0.06), 0 12px 32px rgb(16 20 28 / 0.12);
|
|
70
|
+
--shadow-modal: 0 2px 6px rgb(16 20 28 / 0.08), 0 24px 64px rgb(16 20 28 / 0.18);
|
|
71
|
+
--scrim: rgb(16 20 28 / 0.32);
|
|
72
|
+
}
|
|
73
|
+
@media (prefers-color-scheme: dark) {
|
|
74
|
+
:root:not([data-visual-theme]):not([data-theme='light']) {
|
|
75
|
+
--ground: #101010;
|
|
76
|
+
--surface: #151515;
|
|
77
|
+
--raised: #1d1d1d;
|
|
78
|
+
--line: #262626;
|
|
79
|
+
--line-strong: #363636;
|
|
80
|
+
--line-control: #6b6b6b;
|
|
81
|
+
--ink: #e8e8e8;
|
|
82
|
+
--ink-muted: #a6a6a6;
|
|
83
|
+
--ink-subtle: #939393;
|
|
84
|
+
--accent: #9cc26a;
|
|
85
|
+
--accent-ink: #b0d283;
|
|
86
|
+
--on-accent: #121410;
|
|
87
|
+
--accent-soft: #9cc26a1f;
|
|
88
|
+
--link: #b0d283;
|
|
89
|
+
--focus: #9cc26a;
|
|
90
|
+
--status-good: #5cc6a0;
|
|
91
|
+
--status-warning: #e6a85c;
|
|
92
|
+
--status-critical: #f0857a;
|
|
93
|
+
--status-info: #b2aaf5;
|
|
94
|
+
--row-hover: #1a1a1a;
|
|
95
|
+
--pop-line: #2c2c2c;
|
|
96
|
+
--head-band: #181818;
|
|
97
|
+
--graticule: #ffffff17;
|
|
98
|
+
--shadow-pop: 0 0 0 1px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.5);
|
|
99
|
+
--shadow-panel: 0 0 0 1px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.55);
|
|
100
|
+
--shadow-modal: 0 0 0 1px rgb(0 0 0 / 0.35), 0 28px 72px rgb(0 0 0 / 0.65);
|
|
101
|
+
--scrim: rgb(0 0 0 / 0.55);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
:root:not([data-visual-theme])[data-theme='dark'] {
|
|
105
|
+
--ground: #101010;
|
|
106
|
+
--surface: #151515;
|
|
107
|
+
--raised: #1d1d1d;
|
|
108
|
+
--line: #262626;
|
|
109
|
+
--line-strong: #363636;
|
|
110
|
+
--line-control: #6b6b6b;
|
|
111
|
+
--ink: #e8e8e8;
|
|
112
|
+
--ink-muted: #a6a6a6;
|
|
113
|
+
--ink-subtle: #939393;
|
|
114
|
+
--accent: #9cc26a;
|
|
115
|
+
--accent-ink: #b0d283;
|
|
116
|
+
--on-accent: #121410;
|
|
117
|
+
--accent-soft: #9cc26a1f;
|
|
118
|
+
--link: #b0d283;
|
|
119
|
+
--focus: #9cc26a;
|
|
120
|
+
--status-good: #5cc6a0;
|
|
121
|
+
--status-warning: #e6a85c;
|
|
122
|
+
--status-critical: #f0857a;
|
|
123
|
+
--status-info: #b2aaf5;
|
|
124
|
+
--row-hover: #1a1a1a;
|
|
125
|
+
--pop-line: #2c2c2c;
|
|
126
|
+
--head-band: #181818;
|
|
127
|
+
--graticule: #ffffff17;
|
|
128
|
+
--shadow-pop: 0 0 0 1px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.5);
|
|
129
|
+
--shadow-panel: 0 0 0 1px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.55);
|
|
130
|
+
--shadow-modal: 0 0 0 1px rgb(0 0 0 / 0.35), 0 28px 72px rgb(0 0 0 / 0.65);
|
|
131
|
+
--scrim: rgb(0 0 0 / 0.55);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:root:not([data-visual-theme]) {
|
|
135
|
+
& body {
|
|
136
|
+
font-feature-settings: 'cv11', 'ss03';
|
|
137
|
+
-webkit-font-smoothing: antialiased;
|
|
138
|
+
-moz-osx-font-smoothing: grayscale;
|
|
139
|
+
}
|
|
140
|
+
/* Sentence case throughout: the old look's tracked capitals were louder than the values they named. */
|
|
141
|
+
& body * { text-transform: none; letter-spacing: normal; }
|
|
142
|
+
& ::selection { background: color-mix(in srgb, var(--focus) 26%, transparent); }
|
|
143
|
+
|
|
144
|
+
/* ---------- the frame: the chrome on the ground round a near-white working surface ---------- */
|
|
145
|
+
|
|
146
|
+
& .topbar { gap: var(--space-4); padding-block: var(--space-2h); background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
147
|
+
& body.write-mode .topbar { border-bottom-color: var(--status-critical); }
|
|
148
|
+
& .brand-name { font: 600 var(--text-md) var(--face-ui); letter-spacing: -0.01em; }
|
|
149
|
+
& .conn-picker .dd-button {
|
|
150
|
+
min-height: 28px; padding: 0 var(--space-3); border-color: transparent; background: none;
|
|
151
|
+
font: 500 var(--text-base) var(--face-ui); color: var(--ink);
|
|
152
|
+
}
|
|
153
|
+
& .conn-picker .dd-button:hover { background: var(--raised); } /* motion-ok: colour only, at the hover token */
|
|
154
|
+
& .conn-manage { color: var(--ink-subtle); }
|
|
155
|
+
& #query {
|
|
156
|
+
font-size: var(--text-base); line-height: 1.4; padding-block: var(--space-2h); border-radius: var(--radius);
|
|
157
|
+
background: var(--ground);
|
|
158
|
+
}
|
|
159
|
+
& #query:focus { background: var(--surface); }
|
|
160
|
+
& #querybar > button {
|
|
161
|
+
padding: var(--space-2h) var(--space-4); font: 500 var(--text-base) var(--face-ui);
|
|
162
|
+
border-radius: var(--radius);
|
|
163
|
+
}
|
|
164
|
+
& .icon-button { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); padding: var(--space-2) var(--space-3); }
|
|
165
|
+
& .icon-button:hover { color: var(--ink); background: var(--raised); border-color: transparent; } /* motion-ok: colour only */
|
|
166
|
+
& .tn-search-key {
|
|
167
|
+
font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle);
|
|
168
|
+
padding: 1px var(--space-2h); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) - 2px);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* ---------- the table list ---------- */
|
|
172
|
+
|
|
173
|
+
& .sidebar { border-right: 1px solid var(--line); background: var(--ground); }
|
|
174
|
+
& #table-filter { padding-block: var(--space-2h); font: var(--text-base) var(--face-ui); }
|
|
175
|
+
& #table-list button {
|
|
176
|
+
font: var(--text-base) var(--face-ui); color: var(--ink); border-radius: var(--radius-item);
|
|
177
|
+
padding-block: var(--space-2h); border: none;
|
|
178
|
+
}
|
|
179
|
+
& #table-list button:hover { background: var(--raised); } /* motion-ok: colour only */
|
|
180
|
+
/* The current thing is a tint and its ink, never a bar. */
|
|
181
|
+
& #table-list button[aria-current='true'] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
|
|
182
|
+
& #table-list .rows { font: var(--text-xs) var(--figures); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
|
|
183
|
+
& #table-list button[aria-current='true'] .rows { color: var(--accent-ink); }
|
|
184
|
+
& #table-list .view-tag { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
185
|
+
& .sidebar-reveal { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); border-color: var(--line); background: var(--surface); }
|
|
186
|
+
|
|
187
|
+
/* ---------- trail, tabs, filters, a result's head ---------- */
|
|
188
|
+
|
|
189
|
+
& .crumbs-host { background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
190
|
+
& .crumbs { font: var(--text-base) var(--face-ui); }
|
|
191
|
+
& .crumbs .sep { color: var(--ink-subtle); }
|
|
192
|
+
& .crumbs .current { color: var(--ink); font-weight: 500; }
|
|
193
|
+
& .crumbs button:not(.crumb-home) { color: var(--ink-muted); }
|
|
194
|
+
& .tabs { border-bottom: 1px solid var(--line); }
|
|
195
|
+
& .tab { font: 500 var(--text-base) var(--face-ui); color: var(--ink-muted); padding-block: var(--space-3); }
|
|
196
|
+
& .tab:hover { color: var(--ink); } /* motion-ok: colour only */
|
|
197
|
+
& .tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
|
|
198
|
+
& .applist-filterbar { gap: var(--space-3); }
|
|
199
|
+
& .applist-field-label { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
200
|
+
& .applist-quick, & .applist-field .dd-button, & .picker-input, & .conn-filter, & .cell-edit, & .edit-field-surface :is(input, select, textarea) {
|
|
201
|
+
border-radius: var(--radius); font-family: var(--face-ui);
|
|
202
|
+
}
|
|
203
|
+
& .applist-go { font: 500 var(--text-base) var(--face-ui); }
|
|
204
|
+
& .result-head { align-items: baseline; row-gap: var(--space-2); }
|
|
205
|
+
& .result-head .result-title { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
|
|
206
|
+
& .result-head .stat { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
207
|
+
& .result-head .stat-order { color: var(--ink-muted); }
|
|
208
|
+
& .export-summary { font: 500 var(--text-sm) var(--face-ui); border-radius: var(--radius); }
|
|
209
|
+
|
|
210
|
+
/* ---------- the measuring grid ---------- */
|
|
211
|
+
|
|
212
|
+
& table { font: var(--text-base) var(--face-ui); font-variant-numeric: tabular-nums; }
|
|
213
|
+
& .grid-inset > .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 0; margin-bottom: var(--space-4); }
|
|
214
|
+
& .grid-inset > .table-wrap th:first-child,
|
|
215
|
+
& .grid-inset > .table-wrap td:first-child { padding-left: var(--space-3h); }
|
|
216
|
+
& .grid-inset > .table-wrap th:last-child,
|
|
217
|
+
& .grid-inset > .table-wrap td:last-child { padding-right: var(--space-3h); }
|
|
218
|
+
& th {
|
|
219
|
+
font: 500 var(--text-sm) var(--face-ui); color: var(--ink-muted);
|
|
220
|
+
background: var(--head-band); border-bottom: 1px solid var(--line-strong);
|
|
221
|
+
}
|
|
222
|
+
& th.sorted { color: var(--ink); border-bottom-color: var(--accent); }
|
|
223
|
+
& :is(th, td) { border-right: 1px solid var(--line); }
|
|
224
|
+
& :is(th, td):last-child { border-right: 0; }
|
|
225
|
+
& tbody tr:last-child td { border-bottom: 0; }
|
|
226
|
+
& th .pk { font: 500 var(--text-xs) var(--face-ui); color: var(--accent-ink); margin-inline-start: var(--space-1); }
|
|
227
|
+
& th .fk, & th .th-arrow { color: var(--accent-ink); }
|
|
228
|
+
/* Figures, keys and codes on the instrument's face: they line up to the digit. */
|
|
229
|
+
& :is(td.num, td.mono, td.reflink, .num-value, .date-value) { font-family: var(--figures); font-size: var(--text-sm); }
|
|
230
|
+
& td.reflink { color: var(--link); }
|
|
231
|
+
& td.null, & .field dd.null {
|
|
232
|
+
color: var(--ink-subtle);
|
|
233
|
+
font-family: var(--face-ui); font-style: normal; font-variant-caps: all-small-caps; letter-spacing: 0.04em;
|
|
234
|
+
font-size: var(--text-base);
|
|
235
|
+
}
|
|
236
|
+
& td.bool .yes { color: var(--ink); }
|
|
237
|
+
& td.bool .no { color: var(--ink-muted); }
|
|
238
|
+
& .expander { color: var(--ink-subtle); }
|
|
239
|
+
& td.expander-cell, & th.expander-cell { border-right-color: var(--line); }
|
|
240
|
+
& tbody tr.clickable:hover { background: var(--row-hover); } /* motion-ok: colour only */
|
|
241
|
+
& .pinned { background: var(--surface); }
|
|
242
|
+
& tbody tr:hover .pinned { background: var(--row-hover); } /* motion-ok: colour only */
|
|
243
|
+
& .pager { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
244
|
+
& .pager .page-input { font: var(--text-sm) var(--figures); }
|
|
245
|
+
& .step-button { font: 500 var(--text-sm) var(--face-ui); }
|
|
246
|
+
& .detail-head :is(h4, .detail-via, .detail-count) { font-family: var(--face-ui); }
|
|
247
|
+
|
|
248
|
+
/* A phone keeps a column head's moves for when it holds focus, so a narrow head shows its name. */
|
|
249
|
+
@media (hover: none) {
|
|
250
|
+
& .th-moves { display: none; }
|
|
251
|
+
& th:focus-within .th-moves { display: contents; }
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* ---------- a record: an inspector's readout ---------- */
|
|
255
|
+
|
|
256
|
+
& .panel > .record-heading {
|
|
257
|
+
font: 600 var(--text-lg) var(--face-ui); color: var(--ink); letter-spacing: -0.012em; gap: var(--space-2h);
|
|
258
|
+
/* The name keeps its line: when the tools do not fit beside it they step down a line, rather than the name breaking. */
|
|
259
|
+
flex-wrap: wrap; row-gap: var(--space-2h);
|
|
260
|
+
}
|
|
261
|
+
& .panel > .record-heading > span { flex: 1 1 auto; overflow-wrap: normal; }
|
|
262
|
+
& .record-heading button { white-space: nowrap; }
|
|
263
|
+
& :is(.record-as-page, .record-layout, .record-delete, .record-heading button.ghost) {
|
|
264
|
+
padding: var(--space-1h) var(--space-3); font: 500 var(--text-sm) var(--face-ui); border-radius: var(--radius);
|
|
265
|
+
}
|
|
266
|
+
& .field { border-left: 0; padding-block: var(--space-2h); border-radius: 0; border-bottom: 1px solid var(--line); }
|
|
267
|
+
& .field:hover { background: var(--raised); } /* motion-ok: colour only */
|
|
268
|
+
& .fields > .field:last-child { border-bottom: 0; }
|
|
269
|
+
& .field dt { font: var(--text-base)/1.5 var(--face-ui); color: var(--ink-muted); }
|
|
270
|
+
& .field dt .type, & .field .req { font: var(--text-xs) var(--figures); color: var(--ink-subtle); }
|
|
271
|
+
& .field .pk { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
272
|
+
& .field dd { font: var(--text-base)/1.5 var(--face-ui); }
|
|
273
|
+
& .field dd .prose { font-family: var(--face-ui); }
|
|
274
|
+
& .field dd :is(.num-value, .date-value) { color: var(--ink); }
|
|
275
|
+
& .field-group-head { font: 600 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
276
|
+
& .ref-jump {
|
|
277
|
+
gap: var(--space-2h); padding: 1px var(--space-2h); border-radius: var(--radius);
|
|
278
|
+
border: 1px solid var(--line); background: var(--surface);
|
|
279
|
+
}
|
|
280
|
+
& .ref-jump:hover { border-color: var(--accent-ink); background: var(--accent-soft); } /* motion-ok: colour only */
|
|
281
|
+
& .ref-jump-value { color: var(--accent-ink); font-weight: 500; font-family: var(--figures); font-size: var(--text-sm); }
|
|
282
|
+
& .ref-jump-table { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); background: none; padding: 0; }
|
|
283
|
+
& .related-head > .related-title, & .panel > .related-title { font: 600 var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
284
|
+
& .related-item { border-left: 0; border-radius: var(--radius-item); padding-block: var(--space-3); }
|
|
285
|
+
& .related-list { padding-inline: var(--space-2); }
|
|
286
|
+
& .related-item:hover:not([disabled]) { background: var(--raised); } /* motion-ok: colour only */
|
|
287
|
+
& .related-item[aria-selected='true'] { background: var(--accent-soft); }
|
|
288
|
+
& .related-count { font: 600 var(--text-md) var(--figures); color: var(--ink); letter-spacing: -0.01em; }
|
|
289
|
+
& .related-item[aria-selected='true'] .related-count { color: var(--accent-ink); }
|
|
290
|
+
& .related-table { font: 500 var(--text-base) var(--face-ui); }
|
|
291
|
+
& .related-via, & .record-child-via, & .detail-via { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
292
|
+
& .record-child-head .record-child-title { font: 600 var(--text-base) var(--face-ui); color: var(--ink); }
|
|
293
|
+
& .record-children .table-wrap { margin-inline: var(--space-4h); border: 1px solid var(--line); border-radius: var(--radius); padding-bottom: 0; }
|
|
294
|
+
& .record-children .table-wrap th:first-child,
|
|
295
|
+
& .record-children .table-wrap td:first-child { padding-left: var(--space-3h); }
|
|
296
|
+
|
|
297
|
+
/* Staged edits: "not saved yet" is a quiet band with the count in the warning ink, not the pink of danger. */
|
|
298
|
+
& .pending { background: color-mix(in srgb, var(--status-warning) 7%, var(--surface)); border-bottom: 1px solid var(--line); }
|
|
299
|
+
& .pending-count { color: var(--status-warning); font: 600 var(--text-sm) var(--face-ui); }
|
|
300
|
+
& .pending-cols { font: var(--text-sm) var(--figures); color: var(--ink-muted); }
|
|
301
|
+
& .cell-edit.dirty, & .dirty { border-color: var(--status-warning); background: color-mix(in srgb, var(--status-warning) 6%, var(--field-fill)); }
|
|
302
|
+
|
|
303
|
+
/* ---------- popups: one hairline, one radius step, one soft shadow ---------- */
|
|
304
|
+
|
|
305
|
+
& :is(.th-menu, .more-list, .dd-popup, .ac, .palette, .history-panel) {
|
|
306
|
+
background: var(--surface); border: 1px solid var(--pop-line); border-radius: var(--radius-pop); box-shadow: var(--shadow-pop);
|
|
307
|
+
}
|
|
308
|
+
& :is(.th-menu-item, .more-item, .dd-option, .ac-item, .palette-item) { border-radius: var(--radius-item); }
|
|
309
|
+
/* motion-ok: colour only, the highlight a pointer or the keyboard moves */
|
|
310
|
+
& :is(.th-menu-item, .more-item, .dd-option, .ac-item):hover,
|
|
311
|
+
& :is(.th-menu-item, .more-item, .dd-option)[data-highlighted],
|
|
312
|
+
& .ac-item.active { background: var(--raised); } /* motion-ok: colour only */
|
|
313
|
+
& :is(.th-menu-label, .more-item, .more-label, .dd-label, .dd-text) { font: var(--text-base) var(--face-ui); color: var(--ink); }
|
|
314
|
+
& :is(.th-menu-cond, .more-detail, .dd-detail) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
315
|
+
& .more-group-label { font: 600 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
316
|
+
& .th-menu-sep, & .dd-divider { background: var(--line); }
|
|
317
|
+
& .ac-label { font: var(--text-base) var(--code); }
|
|
318
|
+
& .ac-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
319
|
+
|
|
320
|
+
& .palette { box-shadow: var(--shadow-modal); border-radius: var(--radius-dialog); overflow: hidden; }
|
|
321
|
+
& .palette-input { font: var(--text-lg) var(--face-ui); padding-block: var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface); }
|
|
322
|
+
& .palette-item.active { background: var(--accent-soft); }
|
|
323
|
+
& .palette-item.active .palette-label { color: var(--ink); }
|
|
324
|
+
& .palette-label { font: var(--text-base) var(--face-ui); }
|
|
325
|
+
& .palette-kind { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
326
|
+
& .palette-detail { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
327
|
+
|
|
328
|
+
& .modal { border: 1px solid var(--pop-line); border-radius: var(--radius-dialog); box-shadow: var(--shadow-modal); background: var(--surface); }
|
|
329
|
+
& .modal :is(h2, h3) { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
|
|
330
|
+
& .confirm-diff { font: var(--text-base) var(--face-ui); }
|
|
331
|
+
& .confirm-diff td { font-family: var(--figures); }
|
|
332
|
+
& .toast {
|
|
333
|
+
background: var(--surface); color: var(--ink); border: 1px solid var(--pop-line); border-radius: var(--radius-pop);
|
|
334
|
+
box-shadow: var(--shadow-pop); font: var(--text-base) var(--face-ui);
|
|
335
|
+
}
|
|
336
|
+
& .toast-ok .toast-message::before {
|
|
337
|
+
content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: var(--space-3);
|
|
338
|
+
border-radius: 50%; background: var(--status-good); vertical-align: 1px;
|
|
339
|
+
}
|
|
340
|
+
& .toast-action { font: 500 var(--text-base) var(--face-ui); border-color: var(--line-strong); border-radius: var(--radius); }
|
|
341
|
+
|
|
342
|
+
/* ---------- the SQL pane ---------- */
|
|
343
|
+
|
|
344
|
+
& .sql-panel { border-top: 1px solid var(--line-strong); background: var(--surface); }
|
|
345
|
+
& .sql-head { border-bottom: 1px solid var(--line); }
|
|
346
|
+
& .sql-title, & .sql-eyebrow { font: 600 var(--text-sm) var(--face-ui); color: var(--ink); }
|
|
347
|
+
& .sql-target { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
348
|
+
& .sql-input { font: var(--text-base)/1.55 var(--code); border-radius: var(--radius); }
|
|
349
|
+
& .sql-stats, & .sql-walk { font: var(--text-sm) var(--face-ui); color: var(--ink-muted); }
|
|
350
|
+
|
|
351
|
+
/* ---------- the landing: rules, not a card of chips; the schema on its graticule ---------- */
|
|
352
|
+
|
|
353
|
+
& .landing-top > .shape { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
|
|
354
|
+
& .shape-counts, & .shape-gist { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
|
|
355
|
+
& .shape-head h2, & .shape-head .shape-toggle { font: 600 var(--text-xl) var(--face-ui); letter-spacing: -0.012em; }
|
|
356
|
+
& .shape-label, & .landing-starts-head { font: 500 var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
357
|
+
& .shape-says { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
|
|
358
|
+
& .shape-link { font: 500 var(--text-base) var(--face-ui); color: var(--accent-ink); }
|
|
359
|
+
& .shape-arrow { color: var(--ink-subtle); }
|
|
360
|
+
& .landing-chip {
|
|
361
|
+
border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--space-2h) var(--space-3h);
|
|
362
|
+
}
|
|
363
|
+
& .landing-chip:hover { border-color: var(--line-strong); background: var(--raised); } /* motion-ok: colour only */
|
|
364
|
+
& .landing-chip-name { font: 500 var(--text-base) var(--face-ui); color: var(--ink); }
|
|
365
|
+
& :is(.landing-chip-table, .start-rows) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
366
|
+
& .diagram-title { font: 600 var(--text-lg) var(--face-ui); letter-spacing: -0.012em; }
|
|
367
|
+
& .diagram-viewport {
|
|
368
|
+
border: 1px solid var(--line); border-radius: var(--radius-panel); background-color: var(--surface);
|
|
369
|
+
background-image: radial-gradient(circle at 1px 1px, var(--graticule) 1px, transparent 1.2px);
|
|
370
|
+
background-size: 16px 16px;
|
|
371
|
+
}
|
|
372
|
+
& .node > rect { rx: 5px; ry: 5px; stroke: var(--line-strong); }
|
|
373
|
+
& .node-focus > rect { stroke: var(--accent); }
|
|
374
|
+
& .node-head text { font-family: var(--face-ui); font-weight: 600; }
|
|
375
|
+
& :is(.node-field, .node-type, .edge-label, .node-more text) { font-family: var(--face-ui); }
|
|
376
|
+
& .node-field.is-key, & .node-field.is-ref { font-family: var(--figures); }
|
|
377
|
+
& .node-type { fill: var(--ink-subtle); }
|
|
378
|
+
& .edge { stroke: var(--line-strong); }
|
|
379
|
+
& .zoom-controls { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: var(--surface); }
|
|
380
|
+
& .diagram-legend { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
381
|
+
& .ddl { font: var(--text-sm)/1.6 var(--code); }
|
|
382
|
+
|
|
383
|
+
/* ---------- connections ---------- */
|
|
384
|
+
|
|
385
|
+
& .conn-manager { background: var(--ground); }
|
|
386
|
+
& .conn-head h2, & .conn-brand-name { font: 600 var(--text-xl) var(--face-ui); letter-spacing: -0.012em; }
|
|
387
|
+
& .conn-lede { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
|
|
388
|
+
& .conn-list { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
|
|
389
|
+
& .conn-row { border-bottom: 1px solid var(--line); }
|
|
390
|
+
& .conn-row:last-child { border-bottom: 0; }
|
|
391
|
+
& .conn-row:hover { background: var(--raised); } /* motion-ok: colour only */
|
|
392
|
+
& .conn-name-text { font: 500 var(--text-base) var(--face-ui); }
|
|
393
|
+
& :is(.conn-detail, .conn-meta, .conn-status, .conn-count) { font: var(--text-sm) var(--face-ui); color: var(--ink-subtle); }
|
|
394
|
+
& .conn-badge { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-muted); border-radius: 999px; }
|
|
395
|
+
& .conn-action { font: 500 var(--text-sm) var(--face-ui); }
|
|
396
|
+
|
|
397
|
+
/* ---------- states ---------- */
|
|
398
|
+
|
|
399
|
+
& .errors {
|
|
400
|
+
margin: var(--space-3) var(--space-4h); padding: var(--space-3) var(--space-4); border-radius: var(--radius);
|
|
401
|
+
background: color-mix(in srgb, var(--status-critical) 6%, var(--surface));
|
|
402
|
+
border: 1px solid color-mix(in srgb, var(--status-critical) 30%, var(--line));
|
|
403
|
+
color: var(--status-critical); font: var(--text-base) var(--face-ui);
|
|
404
|
+
}
|
|
405
|
+
& :is(.grid-inset, .table-wrap) > .note { font: var(--text-base) var(--face-ui); color: var(--ink-muted); }
|
|
406
|
+
& .clause { border-radius: var(--radius); font-family: var(--face-ui); }
|
|
407
|
+
& .clause-label { font: 500 var(--text-xs) var(--face-ui); color: var(--ink-subtle); }
|
|
408
|
+
& .clause-text { font-family: var(--code); }
|
|
409
|
+
|
|
410
|
+
/* ---------- figures elsewhere: counts and ranges on the instrument's face ---------- */
|
|
411
|
+
|
|
412
|
+
& :is(.stat, .pager-range, .conn-meta, .start-rows, .landing-chip-table, .detail-count) { font-family: var(--figures); font-size: var(--text-xs); }
|
|
413
|
+
& .result-head .stat-order { font-family: var(--face-ui); font-size: var(--text-sm); }
|
|
414
|
+
}
|
|
415
|
+
}
|