@teamofsilicons/silicon-ui 0.1.0 → 0.3.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 +21 -2
- package/check.mjs +245 -0
- package/components/activity-heatmap/activity-heatmap.module.css +4 -4
- package/components/alert/alert.module.css +1 -1
- package/components/announcement-bar/announcement-bar.module.css +6 -6
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/avatar.module.css +5 -2
- package/components/avatar-group/avatar-group.module.css +4 -4
- package/components/badge/badge.module.css +4 -4
- package/components/bar-chart/bar-chart.module.css +4 -4
- package/components/billing-toggle/billing-toggle.module.css +10 -10
- package/components/bottom-sheet/bottom-sheet.module.css +4 -5
- package/components/breadcrumb/breadcrumb.d.ts +8 -2
- package/components/breadcrumb/breadcrumb.js +21 -9
- package/components/breadcrumb/breadcrumb.module.css +7 -3
- package/components/brush-chart/brush-chart.module.css +9 -9
- package/components/button/button.d.ts +7 -2
- package/components/button/button.js +3 -1
- package/components/button/button.module.css +10 -1
- package/components/button-group/button-group.module.css +6 -6
- package/components/calendar/calendar.module.css +7 -7
- package/components/card/card.module.css +2 -2
- package/components/card-stack/card-stack.module.css +2 -3
- package/components/carousel/carousel.module.css +2 -2
- package/components/chat-thread/chat-thread.module.css +41 -41
- package/components/checkbox/checkbox.module.css +1 -1
- package/components/chip-group/chip-group.module.css +2 -2
- package/components/code-block/code-block.module.css +7 -14
- package/components/color-picker/color-picker.module.css +20 -21
- package/components/combobox/combobox.module.css +2 -2
- package/components/command-palette/command-palette.module.css +18 -18
- package/components/comment-thread/comment-thread.module.css +35 -35
- package/components/confirm-morph/confirm-morph.module.css +9 -9
- package/components/context-menu/context-menu.module.css +3 -3
- package/components/countdown/countdown.module.css +4 -4
- package/components/date-picker/date-picker.module.css +6 -6
- package/components/date-range-picker/date-range-picker.module.css +21 -21
- package/components/dialog/dialog.module.css +2 -2
- package/components/donut-chart/donut-chart.module.css +4 -4
- package/components/drawer/drawer.module.css +5 -5
- package/components/dropdown-menu/dropdown-menu.d.ts +71 -1
- package/components/dropdown-menu/dropdown-menu.js +100 -6
- package/components/dropdown-menu/dropdown-menu.module.css +15 -5
- package/components/elastic-slider/elastic-slider.module.css +4 -4
- package/components/expandable-card/expandable-card.module.css +1 -1
- package/components/expanding-button-group/expanding-button-group.module.css +1 -1
- package/components/expanding-search/expanding-search.module.css +9 -9
- package/components/file-dropzone/file-dropzone.module.css +21 -21
- package/components/file-upload/file-upload.module.css +7 -7
- package/components/filter-toolbar/filter-toolbar.module.css +9 -9
- package/components/floating-button-group/floating-button-group.module.css +6 -6
- package/components/gauge/gauge.module.css +2 -2
- package/components/hover-card/hover-card.module.css +2 -2
- package/components/image-compare/image-compare.module.css +4 -4
- package/components/inline-edit/inline-edit.module.css +12 -12
- package/components/json-viewer/json-viewer.module.css +12 -12
- package/components/line-chart/line-chart.module.css +8 -8
- package/components/mention-input/mention-input.module.css +8 -8
- package/components/metric-card/metric-card.module.css +1 -1
- package/components/money-input/money-input.module.css +9 -9
- package/components/morph-select/morph-select.module.css +13 -13
- package/components/multi-select/multi-select.module.css +6 -6
- package/components/nav-list/nav-list.d.ts +64 -0
- package/components/nav-list/nav-list.js +103 -0
- package/components/nav-list/nav-list.module.css +25 -0
- package/components/notification-center/notification-center.module.css +27 -27
- package/components/number-field/number-field.module.css +2 -2
- package/components/otp-input/otp-input.module.css +4 -4
- package/components/password-field/password-field.module.css +1 -1
- package/components/password-strength/password-strength.module.css +7 -7
- package/components/phone-input/phone-input.module.css +19 -19
- package/components/popover/popover.module.css +2 -2
- package/components/progress/progress.module.css +1 -1
- package/components/radio-cards/radio-cards.module.css +8 -8
- package/components/radio-group/radio-group.module.css +1 -1
- package/components/resizable-panels/resizable-panels.module.css +5 -5
- package/components/rich-text-editor/rich-text-editor.module.css +12 -12
- package/components/ridgeline/ridgeline.module.css +7 -7
- package/components/scroll-area/scroll-area.module.css +8 -8
- package/components/segmented-control/segmented-control.d.ts +3 -1
- package/components/segmented-control/segmented-control.js +2 -2
- package/components/segmented-control/segmented-control.module.css +7 -4
- package/components/select/select.module.css +5 -5
- package/components/shortcut-recorder/shortcut-recorder.module.css +15 -15
- package/components/signature-pad/signature-pad.module.css +11 -11
- package/components/slider/slider.module.css +4 -4
- package/components/slope-chart/slope-chart.module.css +7 -7
- package/components/sortable-data-table/sortable-data-table.module.css +4 -4
- package/components/split-button/split-button.module.css +5 -5
- package/components/stepper/stepper.module.css +3 -3
- package/components/streamgraph/streamgraph.module.css +7 -7
- package/components/swipe-actions/swipe-actions.module.css +5 -5
- package/components/switch/switch.module.css +1 -1
- package/components/tabs/tabs.d.ts +9 -2
- package/components/tabs/tabs.js +4 -2
- package/components/tabs/tabs.module.css +7 -2
- package/components/tag-input/tag-input.module.css +4 -4
- package/components/time-picker/time-picker.module.css +3 -3
- package/components/timeline/timeline.module.css +3 -3
- package/components/toast/toast.module.css +5 -5
- package/components/toast-stack/toast-stack.module.css +5 -5
- package/components/tooltip/tooltip.module.css +1 -1
- package/components/tree-view/tree-view.module.css +7 -7
- package/components/treemap/treemap.module.css +13 -13
- package/components/usage-meter/usage-meter.module.css +5 -5
- package/components/user-menu/user-menu.module.css +22 -22
- package/components/waffle-chart/waffle-chart.module.css +7 -7
- package/components.json +416 -1
- package/eslint.js +85 -0
- package/package.json +12 -2
- package/styles.css +44 -4
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
/* A folded prompt is a slimmer surface, so its corners step down to the panel radius. */
|
|
5
5
|
.dropzone.compact { border-radius: var(--radius-container); corner-shape: var(--corner-shape); }
|
|
6
6
|
/* The edge is a drawn stroke, fitted to the perimeter in script, so a drag can close its dashes into one line. */
|
|
7
|
-
.edge { position: absolute; top:
|
|
7
|
+
.edge { position: absolute; top: var(--space-hair); left: var(--space-hair); width: calc(100% - 1px); height: calc(100% - 1px); overflow: visible; pointer-events: none; }
|
|
8
8
|
.edge rect { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3.5 3.5; stroke-dashoffset: 0; transition: stroke var(--duration-fast) var(--ease-standard), stroke-dasharray var(--duration-standard) var(--ease-standard), stroke-dashoffset var(--duration-standard) var(--ease-standard); }
|
|
9
|
-
.trigger { display: flex; width: 100%; flex-direction: column; align-items: stretch; justify-content: center; border: 0; border-radius: inherit; corner-shape: inherit; padding:
|
|
9
|
+
.trigger { display: flex; width: 100%; flex-direction: column; align-items: stretch; justify-content: center; border: 0; border-radius: inherit; corner-shape: inherit; padding: var(--space-block) var(--space-comfort); background: transparent; color: inherit; font: inherit; letter-spacing: var(--tracking-body); text-align: center; cursor: pointer; }
|
|
10
10
|
.trigger > * { pointer-events: none; }
|
|
11
11
|
@media (hover: hover) and (pointer: fine) {
|
|
12
12
|
.dropzone:has(.trigger:hover) { background: var(--surface-muted); }
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
|
|
20
20
|
/* Light that follows the pointer: a wash inside, and a brighter stretch of the edge nearest the file. */
|
|
21
21
|
.wash, .glow { position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; opacity: 0; pointer-events: none; transition: opacity var(--duration-standard) var(--ease-standard); }
|
|
22
|
-
.glow { padding:
|
|
22
|
+
.glow { padding: var(--space-hair); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
|
|
23
23
|
.dragging .wash, .dragging .glow { opacity: 1; }
|
|
24
24
|
.dragging .edge rect { stroke: color-mix(in oklab, var(--accent) 40%, var(--border)); stroke-dasharray: 7 0; stroke-dashoffset: 1.75; }
|
|
25
25
|
/* No gaps between the prompt's parts: each slot carries its own space, so a folding slot takes its space with it. */
|
|
26
26
|
.iconSlot, .noteSlot { display: flex; flex-direction: column; overflow: hidden; }
|
|
27
27
|
/* Three sheets of paper, the target's one illustration. The slot's top margin is room for them to lift without clipping. */
|
|
28
|
-
.sheets { position: relative; display: block; width: 36px; height: 44px; align-self: center; margin:
|
|
28
|
+
.sheets { position: relative; display: block; width: 36px; height: 44px; align-self: center; margin: var(--space-group) 0 var(--space-inset); }
|
|
29
29
|
.sheet {
|
|
30
30
|
--r: 0deg; --x: 0px; --y: 0px;
|
|
31
|
-
position: absolute; inset: 0; display: grid; place-items: end center; padding: 0 0
|
|
31
|
+
position: absolute; inset: 0; display: grid; place-items: end center; padding: 0 0 var(--space-tight);
|
|
32
32
|
border: 1px solid var(--border); border-radius: var(--radius-detail); corner-shape: var(--corner-shape); background: var(--surface-raised); color: var(--text-muted);
|
|
33
|
-
box-shadow:
|
|
33
|
+
box-shadow: var(--shadow-thumb);
|
|
34
34
|
transform: translate(var(--x), var(--y)) rotate(var(--r));
|
|
35
35
|
transform-origin: 50% 100%;
|
|
36
36
|
transition: transform var(--duration-spring) var(--ease-spring), color var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard);
|
|
37
37
|
}
|
|
38
|
-
.sheet::before, .sheet::after { position: absolute; top:
|
|
39
|
-
.sheet::after { top:
|
|
38
|
+
.sheet::before, .sheet::after { position: absolute; top: var(--space-related); left: var(--space-related); width: 16px; height: 2px; border-radius: var(--radius-full); corner-shape: round; background: currentColor; content: ""; opacity: .3; }
|
|
39
|
+
.sheet::after { top: var(--space-group); width: 11px; }
|
|
40
40
|
.sheet > svg { transition: transform var(--duration-spring) var(--ease-spring); }
|
|
41
41
|
.dragging .sheet > svg { transform: translateY(-3px); }
|
|
42
42
|
.sheet[data-sheet="back"] { --r: -10deg; --x: -9px; --y: 2px; }
|
|
@@ -53,31 +53,31 @@
|
|
|
53
53
|
/* Full width and centered text: the label box never moves, so an outgoing label leaves from exactly where it was. */
|
|
54
54
|
.label { position: relative; display: block; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); }
|
|
55
55
|
.labelText { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; white-space: nowrap; }
|
|
56
|
-
.hint { margin-top:
|
|
57
|
-
.note { padding-top:
|
|
56
|
+
.hint { margin-top: var(--space-related); color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-body); }
|
|
57
|
+
.note { padding-top: var(--space-related); color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
|
|
58
58
|
.input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
|
|
59
59
|
.messageSlot { overflow: hidden; }
|
|
60
|
-
.error { display: flex; align-items: flex-start; gap:
|
|
60
|
+
.error { display: flex; align-items: flex-start; gap: var(--space-related); padding-top: var(--space-group); color: var(--danger); font-size: var(--text-sm); line-height: var(--leading-body); }
|
|
61
61
|
/* The icon sits on the first line's optical center, so a wrapped message keeps it at the top. */
|
|
62
|
-
.errorIcon { flex: 0 0 auto; margin-top:
|
|
62
|
+
.errorIcon { flex: 0 0 auto; margin-top: var(--space-tight); }
|
|
63
63
|
.errorCopy { position: relative; min-width: 0; flex: 1; }
|
|
64
64
|
|
|
65
65
|
.list { display: grid; min-width: 0; margin: 0; padding: 0; list-style: none; container: dropzone-list / inline-size; }
|
|
66
|
-
.inside .list { padding-inline:
|
|
66
|
+
.inside .list { padding-inline: var(--space-group); }
|
|
67
67
|
/* Rows animate height; the gap lives inside the clipped row as margin, so a closing row reaches a true zero. */
|
|
68
68
|
.item { min-width: 0; overflow: hidden; }
|
|
69
|
-
.row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap:
|
|
69
|
+
.row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-group); min-height: 58px; margin-top: var(--space-related); border: 1px solid var(--border); border-radius: var(--radius-control); corner-shape: var(--corner-shape); padding: var(--space-related) var(--space-related) var(--space-related) var(--space-related); background: var(--surface); transition: border-color var(--duration-standard) var(--ease-standard); }
|
|
70
70
|
.row.isFailed { border-color: color-mix(in oklab, var(--danger) 26%, var(--border)); }
|
|
71
71
|
.fileIcon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--text-secondary); }
|
|
72
|
-
.thumb { display: block; width: 40px; height: 40px; overflow: hidden; border-radius: var(--radius-detail); corner-shape: var(--corner-shape); background: var(--surface-muted); box-shadow: inset
|
|
72
|
+
.thumb { display: block; width: 40px; height: 40px; overflow: hidden; border-radius: var(--radius-detail); corner-shape: var(--corner-shape); background: var(--surface-muted); box-shadow: var(--edge-inset); }
|
|
73
73
|
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
74
74
|
.copy { display: grid; min-width: 0; }
|
|
75
75
|
.name { overflow: hidden; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); text-overflow: ellipsis; white-space: nowrap; }
|
|
76
76
|
.meta { display: flex; min-width: 0; align-items: center; margin-top: 1px; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
77
|
-
.dot { padding-inline:
|
|
77
|
+
.dot { padding-inline: var(--space-related); }
|
|
78
78
|
/* The outgoing status is measured against this box when it pops out to leave. */
|
|
79
79
|
.phase { position: relative; display: flex; min-width: 0; flex: 1; }
|
|
80
|
-
.state { display: inline-flex; min-width: 0; align-items: center; gap:
|
|
80
|
+
.state { display: inline-flex; min-width: 0; align-items: center; gap: var(--space-tight); }
|
|
81
81
|
.uploaded { color: var(--text-secondary); }
|
|
82
82
|
.uploaded .stateIcon { color: var(--success); }
|
|
83
83
|
.failed { color: var(--danger); }
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
.reason { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
86
86
|
.percent { font-variant-numeric: tabular-nums; }
|
|
87
87
|
.barFrame { display: block; overflow: hidden; }
|
|
88
|
-
.bar { display: block; height: 4px; margin:
|
|
88
|
+
.bar { display: block; height: 4px; margin: var(--space-related) 0 var(--space-hair); overflow: hidden; border-radius: var(--radius-full); corner-shape: round; background: var(--border); }
|
|
89
89
|
/* The fill slides in from the left instead of scaling, so its rounded end keeps its shape at every value. */
|
|
90
90
|
.barFill { display: block; width: 100%; height: 100%; border-radius: inherit; corner-shape: inherit; background: var(--accent); }
|
|
91
91
|
.actions { display: flex; align-items: center; }
|
|
92
92
|
.retrySlot { display: flex; overflow: hidden; }
|
|
93
|
-
.retryInner { display: flex; padding:
|
|
93
|
+
.retryInner { display: flex; padding: var(--space-tight) var(--space-related) var(--space-tight) var(--space-tight); }
|
|
94
94
|
.retry, .remove { display: grid; place-items: center; border: 0; color: var(--text-secondary); font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-spring) var(--ease-spring); }
|
|
95
|
-
.retry { display: flex; height: 30px; align-items: center; gap:
|
|
95
|
+
.retry { display: flex; height: 30px; align-items: center; gap: var(--space-tight); border: 1px solid var(--border); border-radius: var(--radius-full); corner-shape: round; padding: 0 var(--space-group) 0 var(--space-group); background: var(--surface); color: var(--foreground); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-body); white-space: nowrap; }
|
|
96
96
|
/* On narrow lists Retry keeps only its icon, so the failure reason keeps the room to be read in full. */
|
|
97
97
|
@container dropzone-list (max-width: 440px) { .retry { width: 30px; justify-content: center; padding: 0; } .retryLabel { display: none; } }
|
|
98
98
|
/* On the narrowest lists the type icon steps aside for the name and status. */
|
|
99
|
-
@container dropzone-list (max-width: 300px) { .row { grid-template-columns: minmax(0, 1fr) auto; padding-left:
|
|
99
|
+
@container dropzone-list (max-width: 300px) { .row { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--space-inset); } .fileIcon, .thumb { display: none; } }
|
|
100
100
|
.remove { width: 32px; height: 32px; border-radius: var(--radius-full); corner-shape: round; background: transparent; }
|
|
101
101
|
@media (hover: hover) and (pointer: fine) {
|
|
102
102
|
.retry:hover { border-color: var(--border-strong); background: var(--surface-muted); }
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
.root { display: grid; width: 100%; min-width: 0; color: var(--foreground); }
|
|
2
2
|
.input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
|
|
3
3
|
/* A full-width drop target: press feedback is color only, never a scale. */
|
|
4
|
-
.dropzone { display: flex; min-height: 92px; align-items: center; gap:
|
|
4
|
+
.dropzone { display: flex; min-height: 92px; align-items: center; gap: var(--space-group); padding: var(--space-inset); border: 1px dashed var(--border-strong); border-radius: var(--radius-container); corner-shape: var(--corner-shape); background: var(--surface); cursor: pointer; transition: border-color var(--duration-standard) var(--ease-standard), background-color var(--duration-standard) var(--ease-standard); }
|
|
5
5
|
.dropzone.dragging, .dropzone:not(.disabled):active { border-color: var(--accent); background: var(--accent-subtle); }
|
|
6
6
|
.dropzone.disabled { cursor: not-allowed; opacity: .52; }
|
|
7
7
|
.uploadIcon, .fileIcon { display: grid; flex: 0 0 auto; place-items: center; color: var(--accent-strong); }
|
|
8
8
|
/* The cloud lifts toward the file while it hovers over the drop target. */
|
|
9
9
|
.uploadIcon { width: 24px; height: 24px; transition: transform var(--duration-spring) var(--ease-spring); }
|
|
10
10
|
.dragging .uploadIcon { transform: translateY(-3px); }
|
|
11
|
-
.copy { display: grid; min-width: 0; gap:
|
|
11
|
+
.copy { display: grid; min-width: 0; gap: var(--space-tight); flex: 1; }
|
|
12
12
|
.copy strong { font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); }
|
|
13
13
|
.label { position: relative; display: block; min-width: 0; }
|
|
14
14
|
.labelText { display: block; }
|
|
15
15
|
.copy > span { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); overflow-wrap: anywhere; }
|
|
16
16
|
.browse { flex: 0 0 auto; color: var(--accent-strong); font-size: var(--text-xs); font-weight: 500; }
|
|
17
17
|
.statusFrame { overflow: hidden; }
|
|
18
|
-
.status { position: relative; min-height: 16px; margin: 0; padding-top:
|
|
18
|
+
.status { position: relative; min-height: 16px; margin: 0; padding-top: var(--space-related); color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
|
|
19
19
|
.statusText { display: block; }
|
|
20
20
|
.fileList { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
21
21
|
/* The gap lives inside the clipped row, so a collapsing row reaches zero height instead of stopping at its padding. */
|
|
22
22
|
.fileRow { overflow: hidden; }
|
|
23
|
-
.fileItem { display: flex; margin-top:
|
|
23
|
+
.fileItem { display: flex; margin-top: var(--space-related); min-width: 0; align-items: center; gap: var(--space-group); padding: var(--space-group) var(--space-group) var(--space-group) var(--space-group); border: 1px solid var(--border-subtle); border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: var(--surface-muted); }
|
|
24
24
|
.fileIcon { width: 24px; height: 24px; color: var(--text-secondary); }
|
|
25
|
-
.fileCopy { display: grid; min-width: 0; flex: 1; gap:
|
|
25
|
+
.fileCopy { display: grid; min-width: 0; flex: 1; gap: var(--space-hair); }
|
|
26
26
|
.fileCopy strong { overflow: hidden; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); text-overflow: ellipsis; white-space: nowrap; }
|
|
27
27
|
.fileCopy > span { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
|
|
28
28
|
.meta { display: flex; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
29
|
-
.dot { padding-inline:
|
|
29
|
+
.dot { padding-inline: var(--space-tight); }
|
|
30
30
|
.phase { position: relative; display: inline-block; }
|
|
31
31
|
.phaseText { display: block; }
|
|
32
32
|
.percent { display: inline-block; min-width: 4ch; }
|
|
33
33
|
.fileCopy .error { color: var(--danger); }
|
|
34
34
|
.barFrame { display: block; }
|
|
35
|
-
.bar { display: block; height: 3px; margin:
|
|
35
|
+
.bar { display: block; height: 3px; margin: var(--space-tight) 0 1px; overflow: hidden; border-radius: var(--radius-full); corner-shape: round; background: var(--border); }
|
|
36
36
|
.barFill { display: block; width: 100%; height: 100%; border-radius: inherit; corner-shape: inherit; background: var(--accent); }
|
|
37
37
|
.statusSlot { position: relative; display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; }
|
|
38
38
|
.retrySlot { display: grid; place-items: center; }
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/* Add filter: the trigger is transparent and the surface behind it is the button's rounded rectangle.
|
|
25
25
|
Opening springs that same surface to the panel size, so the button itself becomes the menu. */
|
|
26
26
|
.menu { position: relative; display: inline-flex; flex: none; isolation: isolate; }
|
|
27
|
-
.menu:not([data-state="closed"]) { z-index:
|
|
27
|
+
.menu:not([data-state="closed"]) { z-index: var(--layer-dropdown); }
|
|
28
28
|
.trigger { position: relative; z-index: 1; display: inline-flex; min-height: var(--control-height-sm); align-items: center; padding: 0 var(--space-group); border: 1px solid transparent; border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: transparent; color: var(--foreground); font: inherit; font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); letter-spacing: var(--tracking-body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
29
29
|
.menu[data-state="open"] .trigger { pointer-events: none; }
|
|
30
30
|
.face { display: inline-flex; align-items: center; gap: var(--space-related); }
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
@media (hover: hover) and (pointer: fine) {
|
|
39
39
|
.menu[data-state="closed"] .trigger:hover + .surface { background: var(--surface-muted); box-shadow: var(--shadow-resting); }
|
|
40
40
|
}
|
|
41
|
-
.panel { position: absolute; top: 0; left: 0; width: min(var(--filter-menu-width, 16rem), calc(100vw - var(--space-block))); padding:
|
|
41
|
+
.panel { position: absolute; top: 0; left: 0; width: min(var(--filter-menu-width, 16rem), calc(100vw - var(--space-block))); padding: var(--space-related) var(--space-related) var(--space-related); outline: none; }
|
|
42
42
|
.menu[data-y="up"] .panel { top: auto; bottom: 0; }
|
|
43
43
|
.menu[data-state="closed"] .panel { visibility: hidden; }
|
|
44
|
-
.head { display: flex; height: 32px; align-items: center; padding: 0 var(--space-related) 0
|
|
45
|
-
.menu[data-y="up"] .head { margin-top:
|
|
46
|
-
.back { display: grid; width: 28px; height: 28px; flex: none; place-items: center; margin-left: -
|
|
44
|
+
.head { display: flex; height: 32px; align-items: center; padding: 0 var(--space-related) 0 var(--space-group); }
|
|
45
|
+
.menu[data-y="up"] .head { margin-top: var(--space-tight); }
|
|
46
|
+
.back { display: grid; width: 28px; height: 28px; flex: none; place-items: center; margin-left: calc(var(--space-related) * -1); padding: 0; border: 0; border-radius: var(--radius-full); corner-shape: round; background: transparent; color: var(--text-secondary); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
|
|
47
47
|
.back:active { background: var(--surface-muted); color: var(--foreground); }
|
|
48
48
|
.title { position: relative; display: flex; min-width: 0; color: var(--foreground); font-size: var(--text-sm); font-weight: 500; letter-spacing: var(--tracking-body); white-space: nowrap; }
|
|
49
49
|
.titleText { display: block; }
|
|
50
|
-
.stage { position: relative; margin-top:
|
|
50
|
+
.stage { position: relative; margin-top: var(--space-hair); }
|
|
51
51
|
.step { width: 100%; }
|
|
52
52
|
.list { position: relative; display: grid; max-height: min(20rem, 55vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
|
|
53
|
-
.highlight { position: absolute; top: 0; right: 0; left: 0; border-radius: calc(var(--radius-container) -
|
|
53
|
+
.highlight { position: absolute; top: 0; right: 0; left: 0; border-radius: calc(var(--radius-container) - var(--space-related)); corner-shape: var(--corner-shape); background: color-mix(in oklab, var(--foreground) 6%, transparent); opacity: 0; pointer-events: none; }
|
|
54
54
|
.item:focus-visible { outline: none; }
|
|
55
|
-
.item { position: relative; display: flex; min-width: 0; min-height: var(--control-height-sm); align-items: center; gap:
|
|
55
|
+
.item { position: relative; display: flex; min-width: 0; min-height: var(--control-height-sm); align-items: center; gap: var(--space-group); padding: 0 var(--space-group); border: 0; border-radius: calc(var(--radius-container) - var(--space-related)); corner-shape: var(--corner-shape); background: transparent; color: var(--foreground); font: inherit; font-size: var(--text-sm); letter-spacing: var(--tracking-body); text-align: left; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
|
|
56
56
|
.itemIcon { display: inline-flex; min-width: 16px; flex: none; align-items: center; justify-content: center; color: var(--text-secondary); }
|
|
57
57
|
.itemLabel { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
58
|
-
.itemMeta { display: inline-flex; min-width: 0; flex: none; align-items: center; gap:
|
|
58
|
+
.itemMeta { display: inline-flex; min-width: 0; flex: none; align-items: center; gap: var(--space-related); max-width: 50%; color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
59
59
|
.metaValue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
60
60
|
.hint { min-width: 2ch; text-align: right; }
|
|
61
61
|
.check { display: inline-flex; width: 15px; color: var(--foreground); opacity: 0; }
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
/* Buttons are not positioned, so the highlight measures them against the tray and stacks above their background. */
|
|
34
34
|
.item { display: inline-flex; min-width: var(--fbg-h); height: var(--fbg-h); flex: none; align-items: center; justify-content: center; margin: 0; padding: 0 var(--fbg-pad-x); border: 0; border-radius: var(--fbg-radius); background: transparent; color: inherit; font: inherit; font-size: var(--text-sm); font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard); }
|
|
35
35
|
.sm .item { font-size: var(--text-xs); }
|
|
36
|
-
.item[data-icon]:not([data-icon-only]) { padding-left: calc(var(--fbg-pad-x) -
|
|
36
|
+
.item[data-icon]:not([data-icon-only]) { padding-left: calc(var(--fbg-pad-x) - var(--space-hair)); }
|
|
37
37
|
.item[data-icon-only] { width: var(--fbg-h); padding: 0; }
|
|
38
38
|
.item[data-active], .item[aria-pressed="true"] { color: var(--foreground); }
|
|
39
39
|
.item[aria-pressed="true"] { background: var(--fbg-on); }
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
.slot { position: relative; z-index: 2; display: inline-grid; align-items: center; justify-items: center; }
|
|
46
46
|
.slot > * { grid-area: 1 / 1; }
|
|
47
47
|
.vertical .slot { justify-items: start; }
|
|
48
|
-
.ghost { display: inline-flex; align-items: center; gap:
|
|
48
|
+
.ghost { display: inline-flex; align-items: center; gap: var(--space-related); white-space: nowrap; visibility: hidden; pointer-events: none; }
|
|
49
49
|
.iconSpace { display: block; width: 16px; height: 16px; flex: none; }
|
|
50
|
-
.phase { display: inline-flex; align-items: center; gap:
|
|
50
|
+
.phase { display: inline-flex; align-items: center; gap: var(--space-related); white-space: nowrap; }
|
|
51
51
|
.icon { display: inline-flex; flex: none; }
|
|
52
52
|
.icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
|
|
53
53
|
.text { display: block; }
|
|
54
54
|
|
|
55
|
-
.separator { flex: none; align-self: center; width: 1px; height: calc(var(--fbg-h) * .5); margin-inline:
|
|
56
|
-
.vertical .separator { width: calc(var(--fbg-h) * .5); height: 1px; margin:
|
|
55
|
+
.separator { flex: none; align-self: center; width: 1px; height: calc(var(--fbg-h) * .5); margin-inline: var(--space-hair); border-radius: var(--radius-full); corner-shape: round; background: var(--fbg-rule); }
|
|
56
|
+
.vertical .separator { width: calc(var(--fbg-h) * .5); height: 1px; margin: var(--space-hair) 0; }
|
|
57
57
|
|
|
58
58
|
.tip { display: inline-flex; align-items: baseline; gap: var(--space-group); white-space: nowrap; }
|
|
59
59
|
.kbd { font: inherit; color: color-mix(in oklab, var(--background) 58%, var(--foreground)); font-variant-numeric: tabular-nums; }
|
|
60
60
|
|
|
61
61
|
/* Side tooltips for a column match the library tooltip, rising a few pixels away from the rail instead of up. */
|
|
62
|
-
.sideTip { --tip-x: -3px; z-index:
|
|
62
|
+
.sideTip { --tip-x: -3px; z-index: var(--layer-tooltip); max-width: 15rem; padding: var(--space-group) var(--space-inset); border: 1px solid color-mix(in oklab, var(--background) 14%, var(--foreground)); border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: var(--foreground); color: var(--background); box-shadow: var(--shadow-raised); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; letter-spacing: var(--tracking-body); line-height: var(--leading-body); transform-origin: var(--radix-tooltip-content-transform-origin); transition: opacity var(--duration-fast) var(--ease-enter), transform var(--duration-fast) var(--ease-enter); }
|
|
63
63
|
.sideTip[data-side="left"] { --tip-x: 3px; }
|
|
64
64
|
@starting-style {
|
|
65
65
|
.sideTip[data-state$="-open"] { opacity: 0; transform: translateX(var(--tip-x)) scale(.97); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.figure { display: grid; justify-items: center; min-width: 0; gap:
|
|
1
|
+
.figure { display: grid; justify-items: center; min-width: 0; gap: var(--space-group); margin: 0; text-align: center; }.figure figcaption { display: grid; gap: var(--space-tight); min-width: 0; }.figure strong { font-size: var(--text-sm); font-weight: 500; }.detail { color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
2
2
|
.accent { --gauge-color: var(--accent); --gauge-text: var(--accent-strong); }.success { --gauge-color: var(--success); --gauge-text: var(--success); }.warning { --gauge-color: var(--warning); --gauge-text: var(--warning); }.danger { --gauge-color: var(--danger); --gauge-text: var(--danger); }
|
|
3
3
|
|
|
4
4
|
/* An activity style ring: a thick stroke with round caps over a faint tint of its own color. The stroke scales with the ring. */
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.arc { stroke: var(--gauge-color); }
|
|
10
10
|
|
|
11
11
|
/* The readout sits on the ring's true centre, which is the middle of a square as wide as the ring. */
|
|
12
|
-
.readout { position: absolute; top: 0; left: 0; display: grid; width: 100%; aspect-ratio: 1; place-content: center; justify-items: center; gap:
|
|
12
|
+
.readout { position: absolute; top: 0; left: 0; display: grid; width: 100%; aspect-ratio: 1; place-content: center; justify-items: center; gap: var(--space-tight); pointer-events: none; }
|
|
13
13
|
.number { position: relative; display: inline-flex; align-items: baseline; color: var(--foreground); font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1; font-variant-numeric: tabular-nums; }
|
|
14
14
|
.digits { display: inline-flex; justify-content: flex-end; white-space: nowrap; }
|
|
15
15
|
.unit { margin-left: 1px; color: var(--text-secondary); font-family: var(--font-body); font-size: .5em; letter-spacing: 0; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* A floating layer, so it earns the floating shadow. Transforms pivot on the placed origin, the corner nearest the trigger. */
|
|
2
|
-
.card { z-index:
|
|
2
|
+
.card { z-index: var(--layer-popover); box-sizing: border-box; width: 18.5rem; max-width: min(18.5rem, var(--radix-popover-content-available-width, calc(100vw - 24px))); padding: var(--space-inset); border: 1px solid var(--border); border-radius: var(--radius-container); corner-shape: var(--corner-shape); background: var(--surface-raised); color: var(--foreground); box-shadow: var(--shadow-floating); font-family: var(--font-body); letter-spacing: var(--tracking-body); transform-origin: var(--radix-popover-content-transform-origin); outline: none; }
|
|
3
3
|
.profile { display: grid; gap: var(--space-group); }
|
|
4
4
|
.head { display: flex; min-width: 0; align-items: center; gap: var(--space-group); }
|
|
5
5
|
.avatar { position: relative; display: grid; width: 48px; height: 48px; flex: none; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-full); corner-shape: round; background: var(--surface-muted); color: var(--foreground); font-size: var(--text-sm); font-weight: 500; }
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
.stat { display: flex; flex-direction: column-reverse; }
|
|
16
16
|
.stat dt { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
|
|
17
17
|
.stat dd { margin: 0; color: var(--foreground); font-size: var(--text-base); font-variant-numeric: tabular-nums; font-weight: 500; line-height: var(--leading-body); }
|
|
18
|
-
.meta { display: flex; align-items: center; gap:
|
|
18
|
+
.meta { display: flex; align-items: center; gap: var(--space-related); color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }
|
|
19
19
|
.meta svg { flex: none; }
|
|
20
20
|
@media (prefers-reduced-motion: reduce) { .avatar img { transition: none; } .avatar img[data-loading] { filter: none; } }
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
.layer { position: absolute; inset: 0; }
|
|
7
7
|
.layer :where(img, picture, video) { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
|
|
8
8
|
/* Captions sit on a frosted chip so they read over any photo, below the divider. */
|
|
9
|
-
.chip { position: absolute; z-index: 1; top: var(--space-group); left: var(--space-group); padding:
|
|
9
|
+
.chip { position: absolute; z-index: 1; top: var(--space-group); left: var(--space-group); padding: var(--space-tight) var(--space-group); border-radius: var(--radius-full); corner-shape: round; background: color-mix(in oklab, var(--background) 74%, transparent); color: var(--foreground); font-size: var(--text-xs); font-weight: 500; line-height: var(--leading-body); letter-spacing: var(--tracking-body); pointer-events: none; -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
|
|
10
10
|
.chip[data-place="end"] { right: var(--space-group); left: auto; }
|
|
11
11
|
.chip[data-place="bottom"] { top: auto; bottom: var(--space-group); }
|
|
12
12
|
/* The pivot is a frame-sized layer moved by a percentage of itself; its top-left corner is the divider's center. */
|
|
13
13
|
.pivot { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
|
|
14
14
|
.rotor { position: absolute; top: 0; left: 0; width: 0; height: 0; }
|
|
15
|
-
.line { position: absolute; top: calc((100cqw + 100cqh) * -1); left: -1px; width: 2px; height: calc((100cqw + 100cqh) * 2); background: var(--surface-raised); box-shadow:
|
|
15
|
+
.line { position: absolute; top: calc((100cqw + 100cqh) * -1); left: -1px; width: 2px; height: calc((100cqw + 100cqh) * 2); background: var(--surface-raised); box-shadow: var(--shadow-hairline); }
|
|
16
16
|
/* The line sits on photography, not on the theme, so it stays light in dark mode too. */
|
|
17
17
|
:global(:root[data-theme="dark"]) .line { background: var(--foreground); }
|
|
18
18
|
.handleSlot { position: absolute; top: 0; left: 0; }
|
|
19
19
|
/* Centered with the translate property; Motion only animates its width and height, so the shape morphs without scaling the icons. */
|
|
20
20
|
.handle { position: absolute; top: 0; left: 0; display: grid; box-sizing: border-box; width: 40px; height: 40px; place-items: center; translate: -50% -50%; border: 1px solid var(--border); border-radius: var(--radius-full); corner-shape: round; background: var(--surface-raised); box-shadow: var(--shadow-raised); color: var(--foreground); pointer-events: auto; outline: 0 solid transparent; transition: border-color var(--duration-fast) var(--ease-standard); }
|
|
21
|
-
.handle::after { content: ""; position: absolute; inset: -
|
|
21
|
+
.handle::after { content: ""; position: absolute; inset: calc(var(--space-related) * -1); border-radius: inherit; corner-shape: inherit; }
|
|
22
22
|
@media (hover: hover) and (pointer: fine) { .root:hover .handle { border-color: var(--border-strong); } }
|
|
23
23
|
.chevrons { display: flex; align-items: center; }
|
|
24
|
-
.chevron { display: grid; margin-inline: -
|
|
24
|
+
.chevron { display: grid; margin-inline: calc(var(--space-hair) * -1); place-items: center; }
|
|
25
25
|
@media (prefers-reduced-motion: reduce) { .handle { transition: none; } }
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
.root[data-variant="title"] { --size: var(--text-xl); --leading: round(var(--size) * 1.3, 2px); --weight: 500; --ink: var(--foreground); }
|
|
5
5
|
.root[data-variant="body"] { --pad-y: 5px; --size: var(--text-sm); --leading: round(var(--size) * 1.5, 1px); --weight: 400; --ink: var(--text-secondary); }
|
|
6
6
|
/* Room for the actions is reserved in every state, so the text never rewraps when editing starts. */
|
|
7
|
-
/*
|
|
8
|
-
.line { display: block; min-width: 0; margin: 0; padding-inline-end:
|
|
9
|
-
.root[data-multiline] .line { padding-inline-end:
|
|
7
|
+
/* The body face at every size here: a heading host keeps its semantics but not the display face. */
|
|
8
|
+
.line { display: block; min-width: 0; margin: 0; padding-inline-end: var(--space-stage); color: var(--ink); font-family: var(--font-body); font-size: var(--size); font-weight: var(--weight); line-height: var(--leading); letter-spacing: var(--tracking-body); }
|
|
9
|
+
.root[data-multiline] .line { padding-inline-end: var(--space-block); }
|
|
10
10
|
.box { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
|
|
11
11
|
.root[data-multiline] .box { display: block; }
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.root[data-multiline] .display { width: 100%; }
|
|
17
17
|
.root[data-editing] .display { visibility: hidden; }
|
|
18
18
|
/* While editing, a single line keeps a little extra room, so the next character never has to wait for the box. */
|
|
19
|
-
.root[data-editing]:not([data-multiline]) .display { min-width: 5em; padding-inline-end: calc(var(--pad-x) +
|
|
19
|
+
.root[data-editing]:not([data-multiline]) .display { min-width: 5em; padding-inline-end: calc(var(--pad-x) + var(--space-inset)); }
|
|
20
20
|
.display[aria-disabled="true"] { cursor: progress; }
|
|
21
21
|
.layer { position: relative; display: block; transition: opacity var(--duration-standard) var(--ease-standard); }
|
|
22
22
|
.layer[data-empty] { color: var(--text-muted); }
|
|
@@ -45,28 +45,28 @@ textarea.control { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
|
45
45
|
.root[data-flash="off"] .frame { transition-duration: var(--duration-considered); }
|
|
46
46
|
|
|
47
47
|
/* The slot rides on the frame's edge, so it follows the width morph instead of jumping to the new width. */
|
|
48
|
-
.slot { position: absolute; top: 50%; left: calc(100% +
|
|
49
|
-
.root[data-multiline] .slot { top: 0; left: calc(100% +
|
|
48
|
+
.slot { position: absolute; top: 50%; left: calc(100% + var(--space-related)); display: grid; min-height: 28px; margin-top: calc(var(--space-inset) * -1); pointer-events: auto; }
|
|
49
|
+
.root[data-multiline] .slot { top: 0; left: calc(100% + var(--space-related)); margin-top: calc(var(--pad-y) + var(--leading) / 2 - var(--space-group)); }
|
|
50
50
|
.slotItem { display: grid; grid-area: 1 / 1; min-height: 28px; place-items: center start; }
|
|
51
|
-
.actions { display: flex; gap:
|
|
51
|
+
.actions { display: flex; gap: var(--space-tight); }
|
|
52
52
|
.root[data-multiline] .actions { flex-direction: column; }
|
|
53
53
|
.save, .cancel { display: grid; width: 28px; height: 28px; flex: none; place-items: center; padding: 0; border: 1px solid transparent; border-radius: var(--radius-full); corner-shape: round; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
54
54
|
.save { background: var(--foreground); color: var(--background); }
|
|
55
55
|
.cancel { border-color: var(--border); background: var(--surface); color: var(--text-secondary); }
|
|
56
56
|
.save:active, .cancel:active { transform: scale(.96); }
|
|
57
57
|
@media (hover: hover) and (pointer: fine) { .save:hover { background: color-mix(in oklab, var(--foreground) 86%, var(--background)); } .cancel:hover { border-color: var(--border-strong); background: var(--surface-muted); color: var(--foreground); } }
|
|
58
|
-
.pencil { margin-left:
|
|
59
|
-
.spinner { display: block; width: 14px; height: 14px; margin-left:
|
|
58
|
+
.pencil { margin-left: var(--space-hair); color: var(--text-muted); cursor: pointer; }
|
|
59
|
+
.spinner { display: block; width: 14px; height: 14px; margin-left: var(--space-hair); border: 1.5px solid var(--text-muted); border-right-color: transparent; border-radius: var(--radius-full); corner-shape: round; animation: spin .7s linear infinite; }
|
|
60
60
|
.saved { display: grid; margin-left: 1px; place-items: center; color: var(--success); }
|
|
61
61
|
.failedIcon { margin-left: 1px; color: var(--danger); }
|
|
62
62
|
|
|
63
63
|
/* The message row opens from a true zero; its spacing lives inside the clipped slot. */
|
|
64
64
|
.reveal { display: block; overflow: hidden; }
|
|
65
65
|
.revealInner { position: relative; display: block; }
|
|
66
|
-
.message { display: flex; align-items: flex-start; gap:
|
|
66
|
+
.message { display: flex; align-items: flex-start; gap: var(--space-related); padding: var(--space-related) var(--pad-x) var(--space-tight) calc(var(--pad-x) + 1px); color: var(--text-secondary); font-size: var(--text-xs); font-weight: 400; line-height: var(--leading-body); }
|
|
67
67
|
.message[data-tone="error"] { color: var(--danger); }
|
|
68
|
-
.messageIcon { flex: none; margin-top:
|
|
69
|
-
.retry { margin: 0 0 0
|
|
68
|
+
.messageIcon { flex: none; margin-top: var(--space-hair); color: var(--danger); }
|
|
69
|
+
.retry { margin: 0 0 0 var(--space-hair); padding: 0; border: 0; border-radius: var(--radius-detail); corner-shape: var(--corner-shape); background: none; color: var(--foreground); font: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; cursor: pointer; }
|
|
70
70
|
@media (hover: hover) and (pointer: fine) { .retry:hover { text-decoration-color: currentColor; } }
|
|
71
71
|
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
72
72
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.root { --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; --indent: 16px; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--surface); color: var(--foreground); font-family: var(--font-body); letter-spacing: var(--tracking-body); }
|
|
2
2
|
|
|
3
3
|
/* Toolbar: search with a match counter, then expand and collapse all. */
|
|
4
|
-
.toolbar { display: flex; align-items: center; gap:
|
|
5
|
-
.search { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap:
|
|
4
|
+
.toolbar { display: flex; align-items: center; gap: var(--space-hair); padding: var(--space-related); border-bottom: 1px solid var(--border-subtle); }
|
|
5
|
+
.search { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: var(--space-tight); min-height: 34px; padding: 0 var(--space-tight) 0 var(--space-group); border-radius: var(--radius-control); background: var(--surface-muted); cursor: text; }
|
|
6
6
|
.searchIcon { flex: none; color: var(--text-muted); }
|
|
7
|
-
.input { min-width: 0; flex: 1; height: 34px; padding: 0
|
|
7
|
+
.input { min-width: 0; flex: 1; height: 34px; padding: 0 var(--space-tight); border: 0; background: transparent; color: var(--foreground); font: inherit; font-size: var(--text-sm); outline: none; }
|
|
8
8
|
.input::placeholder { color: var(--text-muted); }
|
|
9
9
|
.input::-webkit-search-cancel-button { display: none; }
|
|
10
10
|
.matches { display: inline-flex; flex: none; align-items: center; gap: 0; }
|
|
11
|
-
.count { min-width: 3.5ch; padding-inline:
|
|
11
|
+
.count { min-width: 3.5ch; padding-inline: var(--space-tight); color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; text-align: right; }
|
|
12
12
|
.grow { flex: 1; }
|
|
13
|
-
.divider { width: 1px; height: 18px; margin-inline:
|
|
13
|
+
.divider { width: 1px; height: 18px; margin-inline: var(--space-tight); background: var(--border-subtle); }
|
|
14
14
|
.tool { display: inline-grid; width: 34px; height: 34px; flex: none; place-items: center; padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard); }
|
|
15
15
|
.tool:disabled { cursor: default; opacity: .4; }
|
|
16
16
|
.tool:active:not(:disabled) { background: var(--surface-muted); color: var(--foreground); }
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
.search .tool:active:not(:disabled) { background: var(--surface); }
|
|
19
19
|
|
|
20
20
|
/* Tree. Rows are one fixed height, so scrolling can aim at where a row will settle. */
|
|
21
|
-
.tree { position: relative; max-height: var(--json-max-height, 420px); padding:
|
|
21
|
+
.tree { position: relative; max-height: var(--json-max-height, 420px); padding: var(--space-related); overflow: auto; overflow-anchor: none; overscroll-behavior: contain; font-family: var(--mono); font-size: var(--text-sm); font-variant-ligatures: none; letter-spacing: 0; scrollbar-width: thin; }
|
|
22
22
|
.row { position: relative; border-radius: var(--radius-detail); cursor: default; outline: none; -webkit-tap-highlight-color: transparent; }
|
|
23
23
|
.highlight { position: absolute; inset: 1px 0; border-radius: var(--radius-detail); background: var(--surface-muted); }
|
|
24
|
-
.line { position: relative; display: flex; height: 30px; min-width: 0; align-items: center; gap:
|
|
24
|
+
.line { position: relative; display: flex; height: 30px; min-width: 0; align-items: center; gap: var(--space-related); padding-right: var(--space-related); padding-left: calc(var(--space-tight) + var(--level, 0) * var(--indent)); white-space: nowrap; }
|
|
25
25
|
.row[data-kind="node"] .line { cursor: pointer; }
|
|
26
26
|
|
|
27
27
|
.chevron { display: inline-grid; width: 14px; height: 14px; flex: none; place-items: center; color: var(--text-muted); transition: transform var(--duration-spring) var(--ease-spring), color var(--duration-fast) var(--ease-standard); }
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
.key { flex: none; max-width: 45%; overflow: hidden; color: var(--foreground); text-overflow: ellipsis; }
|
|
32
32
|
.index { flex: none; color: var(--text-muted); font-variant-numeric: tabular-nums; }
|
|
33
|
-
.colon { flex: none; margin-left: -
|
|
34
|
-
.summary { display: inline-flex; min-width: 0; align-items: baseline; gap:
|
|
33
|
+
.colon { flex: none; margin-left: calc(var(--space-tight) * -1); color: var(--text-muted); }
|
|
34
|
+
.summary { display: inline-flex; min-width: 0; align-items: baseline; gap: var(--space-related); overflow: hidden; }
|
|
35
35
|
.preview { min-width: 0; overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; }
|
|
36
36
|
.countLabel { flex: none; color: var(--text-muted); font-family: var(--font-body); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
37
37
|
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
.mark { border-radius: var(--radius-detail); background: color-mix(in oklab, var(--warning) 22%, transparent); color: inherit; box-shadow: 0 0 0 1px color-mix(in oklab, var(--warning) 22%, transparent); transition: background-color var(--duration-fast) var(--ease-standard); }
|
|
46
46
|
.mark[data-current] { background: color-mix(in oklab, var(--warning) 48%, transparent); }
|
|
47
47
|
|
|
48
|
-
.more { display: inline-flex; align-items: baseline; gap:
|
|
48
|
+
.more { display: inline-flex; align-items: baseline; gap: var(--space-group); padding-left: var(--space-comfort); font-family: var(--font-body); font-size: var(--text-sm); }
|
|
49
49
|
.moreLabel { color: var(--foreground); font-weight: 500; }
|
|
50
50
|
.row[data-kind="more"] { cursor: pointer; }
|
|
51
51
|
.muted { color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
52
52
|
|
|
53
53
|
/* Copy actions appear at the row's end over a soft fade, on hover or on the current row. */
|
|
54
54
|
/* Inset like the highlight, with its right corners, so the fade never shows a square edge past the row's rounded end. */
|
|
55
|
-
.actions { position: absolute; top: 1px; right: 0; bottom: 1px; display: flex; align-items: center; gap: 0; padding-right: 1px; padding-left:
|
|
55
|
+
.actions { position: absolute; top: 1px; right: 0; bottom: 1px; display: flex; align-items: center; gap: 0; padding-right: 1px; padding-left: var(--space-section); border-radius: 0 var(--radius-detail) var(--radius-detail) 0; background: linear-gradient(to right, transparent, var(--surface) 22px); opacity: 0; pointer-events: none; transition: opacity var(--duration-fast) var(--ease-standard); }
|
|
56
56
|
.row[data-active] .actions { background: linear-gradient(to right, transparent, var(--surface-muted) 22px); }
|
|
57
57
|
.action { position: relative; display: inline-grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 0; border-radius: var(--radius-detail); background: transparent; color: var(--text-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
|
|
58
58
|
.action[data-state="done"] { color: var(--success); }
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.row[data-active] .actions, .row:focus-within .actions { opacity: 1; pointer-events: auto; }
|
|
63
63
|
|
|
64
64
|
/* The current path, always readable in full through its copy action. */
|
|
65
|
-
.pathBar { display: flex; min-width: 0; align-items: center; gap:
|
|
65
|
+
.pathBar { display: flex; min-width: 0; align-items: center; gap: var(--space-group); padding: var(--space-related) var(--space-related) var(--space-related) var(--space-inset); border-top: 1px solid var(--border-subtle); }
|
|
66
66
|
.path { min-width: 0; flex: 1; overflow: hidden; color: var(--text-secondary); font-family: var(--mono); font-size: var(--text-xs); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
|
|
67
67
|
.pathType { flex: none; color: var(--text-muted); font-size: var(--text-xs); }
|
|
68
68
|
.pathCopy { width: 30px; height: 30px; border-radius: var(--radius-detail); }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.figure { display: grid; min-width: 0; gap: var(--space-inset); margin: 0; color: var(--foreground); font-family: var(--font-body); letter-spacing: var(--tracking-body); }
|
|
2
2
|
|
|
3
3
|
/* Series toggles: a plain line swatch beside each name. A hidden series keeps its place, its swatch empties and its name steps back. */
|
|
4
|
-
.legend { display: flex; flex-wrap: wrap; gap:
|
|
5
|
-
.toggle { display: inline-flex; min-height: 32px; align-items: center; gap:
|
|
4
|
+
.legend { display: flex; flex-wrap: wrap; gap: var(--space-hair) var(--space-tight); min-width: 0; margin-inline: calc(var(--space-related) * -1); }
|
|
5
|
+
.toggle { display: inline-flex; min-height: 32px; align-items: center; gap: var(--space-related); padding: 0 var(--space-group) 0 var(--space-related); border: 0; border-radius: var(--radius-full); corner-shape: round; background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: var(--text-sm); line-height: var(--leading-body); -webkit-tap-highlight-color: transparent; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
6
6
|
.toggle:active { transform: scale(.97); }
|
|
7
7
|
.toggle[aria-pressed="false"] { color: var(--text-muted); }
|
|
8
8
|
.toggleLabel { white-space: nowrap; transition: opacity var(--duration-fast) var(--ease-standard); }
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
.chart[data-scrubbing] .dot:not([data-hidden]) { opacity: 1; }
|
|
32
32
|
|
|
33
33
|
/* The tooltip floats over the plot, so it is the one layer here with a shadow. Springs carry its position; opacity and a small scale bring it in. */
|
|
34
|
-
.tooltip { position: absolute; top: 0; left: 0; z-index: 1; display: grid; min-width: 140px; max-width: min(220px, 100%); gap:
|
|
34
|
+
.tooltip { position: absolute; top: 0; left: 0; z-index: 1; display: grid; min-width: 140px; max-width: min(220px, 100%); gap: var(--space-tight); padding: var(--space-group) var(--space-group); border: 1px solid var(--border); border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: var(--surface-raised); box-shadow: var(--shadow-floating); opacity: 0; pointer-events: none; scale: .96; transition: opacity var(--duration-fast) var(--ease-standard), scale var(--duration-fast) var(--ease-standard); }
|
|
35
35
|
.chart[data-scrubbing] .tooltip { opacity: 1; scale: 1; }
|
|
36
|
-
.tipTitle { margin: 0 0
|
|
37
|
-
.tipRow { display: flex; min-width: 0; align-items: center; gap:
|
|
36
|
+
.tipTitle { margin: 0 0 var(--space-hair); color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
37
|
+
.tipRow { display: flex; min-width: 0; align-items: center; gap: var(--space-related); margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); }
|
|
38
38
|
.tipSwatch { width: 10px; height: 2.5px; flex: none; border-radius: var(--radius-full); corner-shape: round; background: var(--series); }
|
|
39
39
|
.tipSwatch[data-dashed] { background: repeating-linear-gradient(to right, var(--series) 0 3px, transparent 3px 5px); }
|
|
40
40
|
.tipName { min-width: 0; flex: 1; overflow: hidden; color: var(--text-secondary); text-overflow: ellipsis; white-space: nowrap; }
|
|
41
|
-
.tipValue { flex: none; margin-left:
|
|
41
|
+
.tipValue { flex: none; margin-left: var(--space-related); color: var(--foreground); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
42
42
|
|
|
43
43
|
.message { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--text-muted); font-size: var(--text-sm); pointer-events: none; }
|
|
44
44
|
/* First load with nothing to keep on screen: a calm band that breathes where the lines will be. */
|
|
45
45
|
.skeleton { position: absolute; inset: 30% 0 25%; border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--foreground) 5%, transparent)); animation: breathe 1.4s var(--ease-in-out) infinite alternate; }
|
|
46
46
|
|
|
47
47
|
.gutter { position: relative; grid-area: 1 / 2; min-width: 0; }
|
|
48
|
-
.tick { position: absolute; top: 0; left:
|
|
48
|
+
.tick { position: absolute; top: 0; left: var(--space-group); display: block; height: 0; white-space: nowrap; pointer-events: none; }
|
|
49
49
|
.tickText { display: block; transform: translateY(-50%); color: var(--text-muted); font-size: var(--text-xs); line-height: 1; font-variant-numeric: tabular-nums; }
|
|
50
50
|
|
|
51
51
|
.axis { position: relative; grid-area: 2 / 1; min-width: 0; }
|
|
52
|
-
.axisLabel { position: absolute; top:
|
|
52
|
+
.axisLabel { position: absolute; top: var(--space-related); color: var(--text-muted); font-size: var(--text-xs); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
53
53
|
|
|
54
54
|
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
55
55
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
box-sizing: border-box;
|
|
25
25
|
width: 100%;
|
|
26
26
|
margin: 0;
|
|
27
|
-
padding:
|
|
27
|
+
padding: var(--space-group) var(--space-inset);
|
|
28
28
|
border: 0;
|
|
29
29
|
font: inherit;
|
|
30
30
|
font-size: var(--text-base);
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
|
|
67
67
|
/* A token is tinted around its own glyphs; the negative margin keeps every character where the textarea put it. */
|
|
68
68
|
.token {
|
|
69
|
-
margin: 0 -
|
|
70
|
-
padding: 1px
|
|
69
|
+
margin: 0 calc(var(--space-tight) * -1);
|
|
70
|
+
padding: 1px var(--space-tight);
|
|
71
71
|
border-radius: var(--radius-detail); corner-shape: var(--corner-shape);
|
|
72
72
|
background: var(--accent-subtle);
|
|
73
73
|
color: var(--accent-strong);
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
.popover {
|
|
80
80
|
position: absolute;
|
|
81
|
-
z-index:
|
|
81
|
+
z-index: var(--layer-dropdown);
|
|
82
82
|
width: 272px;
|
|
83
83
|
max-width: 100%;
|
|
84
84
|
overflow: hidden;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
box-shadow: var(--shadow-floating);
|
|
89
89
|
}
|
|
90
90
|
.popover[data-above] { translate: 0 -100%; }
|
|
91
|
-
.popoverBody { padding:
|
|
91
|
+
.popoverBody { padding: var(--space-related); }
|
|
92
92
|
|
|
93
93
|
.list { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
|
|
94
94
|
.highlight { position: absolute; top: 0; right: 0; left: 0; border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: color-mix(in oklab, var(--foreground) 6.5%, transparent); pointer-events: none; }
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
display: flex;
|
|
99
99
|
min-width: 0;
|
|
100
100
|
align-items: center;
|
|
101
|
-
gap:
|
|
102
|
-
padding:
|
|
101
|
+
gap: var(--space-group);
|
|
102
|
+
padding: var(--space-related) var(--space-group) var(--space-related) var(--space-related);
|
|
103
103
|
border-radius: var(--radius-control); corner-shape: var(--corner-shape);
|
|
104
104
|
cursor: pointer;
|
|
105
105
|
font-size: var(--text-sm);
|
|
@@ -129,6 +129,6 @@
|
|
|
129
129
|
.optionMeta { overflow: hidden; color: var(--text-muted); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
|
|
130
130
|
.count { flex: none; color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
131
131
|
|
|
132
|
-
.empty { margin: 0; padding:
|
|
132
|
+
.empty { margin: 0; padding: var(--space-group) var(--space-group); color: var(--text-secondary); font-size: var(--text-sm); }
|
|
133
133
|
|
|
134
134
|
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-overlay); corner-shape: var(--corner-shape); padding: var(--space-section); background: var(--surface); box-shadow: var(--shadow-resting); }
|
|
2
2
|
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-group); margin-bottom: var(--space-block); }
|
|
3
3
|
.top span { color: var(--text-secondary); font-size: var(--text-sm); }
|
|
4
|
-
.top small { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--radius-full); corner-shape: round; padding:
|
|
4
|
+
.top small { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--radius-full); corner-shape: round; padding: var(--space-tight) var(--space-related); color: var(--text-secondary); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
|
|
5
5
|
.card p { margin: var(--space-inset) 0 0; color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-body); }
|
|
6
6
|
@media (max-width: 380px) { .card { padding: var(--space-inset); } .top { align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--space-section); } }
|
|
7
7
|
/* Text swaps: the outgoing copy is popped out of flow so the wrapper never holds both widths. */
|