@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
|
@@ -23,21 +23,14 @@
|
|
|
23
23
|
.chevron { display: grid; flex: none; place-items: center; color: var(--text-muted); }
|
|
24
24
|
/* Each role has contrast in both themes; color supports, but never replaces, source text. */
|
|
25
25
|
.comment { color: var(--text-muted); font-style: italic; }
|
|
26
|
-
.string { color:
|
|
27
|
-
.number { color:
|
|
28
|
-
.keyword { color:
|
|
29
|
-
.type { color:
|
|
30
|
-
.function { color:
|
|
31
|
-
.property { color:
|
|
32
|
-
.tag { color:
|
|
26
|
+
.string { color: var(--syntax-string); }
|
|
27
|
+
.number { color: var(--syntax-number); }
|
|
28
|
+
.keyword { color: var(--syntax-keyword); }
|
|
29
|
+
.type { color: var(--syntax-type); }
|
|
30
|
+
.function { color: var(--syntax-function); }
|
|
31
|
+
.property { color: var(--syntax-property); }
|
|
32
|
+
.tag { color: var(--syntax-type); }
|
|
33
33
|
.punctuation { color: var(--text-secondary); }
|
|
34
|
-
:global(:root[data-theme="dark"]) .string { color: oklch(77% .15 150); }
|
|
35
|
-
:global(:root[data-theme="dark"]) .number { color: oklch(80% .14 75); }
|
|
36
|
-
:global(:root[data-theme="dark"]) .keyword { color: oklch(78% .16 285); }
|
|
37
|
-
:global(:root[data-theme="dark"]) .type { color: oklch(79% .13 230); }
|
|
38
|
-
:global(:root[data-theme="dark"]) .function { color: oklch(80% .13 25); }
|
|
39
|
-
:global(:root[data-theme="dark"]) .property { color: oklch(79% .12 85); }
|
|
40
|
-
:global(:root[data-theme="dark"]) .tag { color: oklch(79% .13 230); }
|
|
41
34
|
@media (hover: hover) and (pointer: fine) { .expand:hover { background: var(--surface-muted); color: var(--foreground); } .expand:hover .chevron { color: var(--foreground); } }
|
|
42
35
|
@media (max-width: 420px) { .header { padding-left: var(--space-group); } .header :global(button) { width: var(--control-height-sm); padding-inline: 0; } .header :global(button) > span:last-of-type { display: none; } .viewport { --code-collapsed: calc(var(--code-lines, 0) * var(--text-xs) * 1.7 + var(--space-inset) * 2); } .pre { padding: var(--space-inset); font-size: var(--text-xs); } }
|
|
43
36
|
@media (prefers-reduced-motion: reduce) { .expand { transition: none; } }
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
:global(:root[data-theme="dark"]) .root { --picker-fill: var(--surface-raised); --checker: repeating-conic-gradient(oklch(42% 0 0) 0 25%, oklch(30% 0 0) 0 50%) 0 0 / 10px 10px; }
|
|
13
13
|
|
|
14
|
-
.trigger, .head { display: flex; height: 44px; align-items: center; gap:
|
|
14
|
+
.trigger, .head { display: flex; height: 44px; align-items: center; gap: var(--space-group); padding: var(--space-related) var(--space-inset) var(--space-related) var(--space-related); }
|
|
15
15
|
.trigger {
|
|
16
16
|
border: 1px solid var(--border); border-radius: var(--radius-container); corner-shape: var(--corner-shape); background: var(--picker-fill); box-shadow: var(--shadow-resting); color: inherit; font: inherit; cursor: pointer;
|
|
17
17
|
-webkit-tap-highlight-color: transparent; transition: border-color var(--duration-fast) var(--ease-standard);
|
|
@@ -22,76 +22,75 @@
|
|
|
22
22
|
|
|
23
23
|
/* A chip over a checkerboard, so opacity reads as opacity. */
|
|
24
24
|
.chip { position: relative; display: block; width: 32px; height: 32px; flex: none; overflow: hidden; border-radius: 50%; corner-shape: round; background: var(--checker); }
|
|
25
|
-
.chip > span { position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; box-shadow: inset
|
|
25
|
+
.chip > span { position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; box-shadow: var(--edge-inset); }
|
|
26
26
|
|
|
27
27
|
/* The floating layer. Its drop shadow follows the clipped shape, so the shadow grows with the panel. */
|
|
28
|
-
.float { position: absolute; z-index:
|
|
29
|
-
:global(:root[data-theme="dark"]) .float { filter: drop-shadow(0 20px 44px oklch(0% 0 0 / .5)); }
|
|
28
|
+
.float { position: absolute; z-index: var(--layer-popover); top: -1px; left: -1px; filter: var(--shadow-drop); pointer-events: none; }
|
|
30
29
|
.float[data-open] { pointer-events: auto; }
|
|
31
|
-
.panel { width: var(--picker-width); padding-bottom:
|
|
32
|
-
.head { gap:
|
|
30
|
+
.panel { width: var(--picker-width); padding-bottom: var(--space-inset); border: 1px solid var(--border); border-radius: var(--radius-container); corner-shape: var(--corner-shape); background: var(--picker-fill); will-change: clip-path; }
|
|
31
|
+
.head { gap: var(--space-group); padding-right: var(--space-related); }
|
|
33
32
|
.head .triggerText { flex: 1; }
|
|
34
|
-
.headActions { display: flex; gap:
|
|
33
|
+
.headActions { display: flex; gap: var(--space-hair); }
|
|
35
34
|
.iconButton {
|
|
36
35
|
display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: transparent; color: var(--text-secondary); cursor: pointer;
|
|
37
36
|
transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
|
|
38
37
|
}
|
|
39
38
|
.iconButton:active { transform: scale(.94); }
|
|
40
39
|
/* One column locked to the panel: a wider grade label ("AA large") must never widen the area and sliders mid drag. */
|
|
41
|
-
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap:
|
|
40
|
+
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-inset); padding: var(--space-related) var(--space-inset) 0; }
|
|
42
41
|
|
|
43
42
|
/* Saturation runs left to right, brightness bottom to top, over the pure hue. */
|
|
44
43
|
.area {
|
|
45
44
|
position: relative; height: 164px; border-radius: var(--radius-control); corner-shape: var(--corner-shape); cursor: crosshair; touch-action: none;
|
|
46
|
-
background: linear-gradient(to top,
|
|
47
|
-
box-shadow: inset
|
|
45
|
+
background: linear-gradient(to top, var(--color-black), transparent), linear-gradient(to right, var(--color-white), transparent), var(--picker-hue);
|
|
46
|
+
box-shadow: var(--edge-inset);
|
|
48
47
|
}
|
|
49
48
|
.areaThumb, .sliderThumb {
|
|
50
49
|
position: absolute; width: 22px; height: 22px; border-radius: 50%; corner-shape: round; translate: -50% -50%; cursor: grab;
|
|
51
|
-
box-shadow: 0 0 0 3px
|
|
50
|
+
box-shadow: 0 0 0 3px var(--color-white), var(--shadow-knob), var(--edge-inset);
|
|
52
51
|
transition: scale var(--duration-spring) var(--ease-spring);
|
|
53
52
|
}
|
|
54
53
|
.areaThumb { background: var(--picker-opaque); }
|
|
55
54
|
.area[data-active] .areaThumb, .sliderThumb[data-active] { scale: 1.2; cursor: grabbing; }
|
|
56
55
|
|
|
57
|
-
.slider { position: relative; height: 14px; margin: 0
|
|
58
|
-
.slider::before { content: ""; position: absolute; inset: 0 -
|
|
56
|
+
.slider { position: relative; height: 14px; margin: 0 var(--space-group); border-radius: var(--radius-full); corner-shape: round; cursor: pointer; touch-action: none; }
|
|
57
|
+
.slider::before { content: ""; position: absolute; inset: 0 calc(var(--space-group) * -1); border-radius: inherit; corner-shape: inherit; background: var(--track); box-shadow: var(--edge-inset); }
|
|
59
58
|
.sliderThumb { top: 50%; background: var(--checker); }
|
|
60
59
|
.sliderThumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; background: var(--thumb-fill); }
|
|
61
60
|
/* The gradient stops sit at the thumb's travel ends, so the color under the thumb is the value it reports. */
|
|
62
61
|
.hue { --track: linear-gradient(to right, #f00 11px, #ff0 calc(11px + (100% - 22px) * .1666), #0f0 calc(11px + (100% - 22px) * .3333), #0ff 50%, #00f calc(11px + (100% - 22px) * .6666), #f0f calc(11px + (100% - 22px) * .8333), #f00 calc(100% - 11px)); }
|
|
63
62
|
.alpha { --track: linear-gradient(to right, transparent 11px, var(--picker-opaque) calc(100% - 11px)), var(--checker); }
|
|
64
63
|
|
|
65
|
-
.field { display: flex; height: 40px; align-items: stretch; overflow: hidden; margin-top:
|
|
64
|
+
.field { display: flex; height: 40px; align-items: stretch; overflow: hidden; margin-top: var(--space-hair); border: 1px solid var(--border); border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: var(--surface-muted); transition: border-color var(--duration-fast) var(--ease-standard); }
|
|
66
65
|
.field[data-invalid] { border-color: var(--danger); }
|
|
67
66
|
.format {
|
|
68
|
-
display: flex; min-width: 56px; align-items: center; justify-content: center; padding: 0
|
|
67
|
+
display: flex; min-width: 56px; align-items: center; justify-content: center; padding: 0 var(--space-group); border: 0; border-right: 1px solid var(--border); background: transparent;
|
|
69
68
|
color: var(--foreground); font: inherit; font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard);
|
|
70
69
|
}
|
|
71
70
|
.inputWrap { position: relative; display: flex; min-width: 0; flex: 1; }
|
|
72
|
-
.input, .morph { padding: 0
|
|
71
|
+
.input, .morph { padding: 0 var(--space-group); font: inherit; font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
73
72
|
.input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--foreground); caret-color: var(--foreground); }
|
|
74
73
|
.input[data-morphing] { color: transparent; }
|
|
75
74
|
.morph { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; color: var(--foreground); pointer-events: none; white-space: nowrap; }
|
|
76
|
-
.error { min-height: 0; margin: -
|
|
75
|
+
.error { min-height: 0; margin: calc(var(--space-group) * -1) var(--space-hair) calc(var(--space-tight) * -1); color: var(--danger); font-size: var(--text-xs); }
|
|
77
76
|
.error:empty { display: none; }
|
|
78
77
|
|
|
79
|
-
.contrast { display: flex; align-items: center; gap:
|
|
78
|
+
.contrast { display: flex; align-items: center; gap: var(--space-group); font-size: var(--text-sm); }
|
|
80
79
|
.sample { display: grid; width: 36px; height: 28px; flex: none; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-detail); corner-shape: var(--corner-shape); background: var(--picker-bg); color: var(--picker-color); font-weight: 500; }
|
|
81
80
|
.ratio { font-variant-numeric: tabular-nums; font-weight: 500; min-width: 4.4ch; }
|
|
82
81
|
.against { flex: 1; min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
|
|
83
|
-
.grade { position: relative; display: inline-grid; height: 22px; align-items: center; padding: 0
|
|
82
|
+
.grade { position: relative; display: inline-grid; height: 22px; align-items: center; padding: 0 var(--space-related); border-radius: var(--radius-full); corner-shape: round; font-size: var(--text-xs); font-weight: 500; white-space: nowrap; transition: background-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard); }
|
|
84
83
|
.grade[data-grade="pass"] { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
|
|
85
84
|
.grade[data-grade="large"] { background: color-mix(in oklab, var(--warning) 16%, transparent); color: var(--warning); }
|
|
86
85
|
.grade[data-grade="fail"] { background: color-mix(in oklab, var(--danger) 12%, transparent); color: var(--danger); }
|
|
87
86
|
|
|
88
|
-
.swatches { display: flex; align-items: center; gap:
|
|
87
|
+
.swatches { display: flex; align-items: center; gap: var(--space-related); min-height: 32px; }
|
|
89
88
|
.add {
|
|
90
89
|
display: grid; width: 30px; height: 30px; flex: none; place-items: center; padding: 0; border: 1px dashed var(--border-strong); border-radius: 50%; corner-shape: round; background: transparent; color: var(--text-secondary); cursor: pointer;
|
|
91
90
|
transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
|
|
92
91
|
}
|
|
93
92
|
.add:active { transform: scale(.92); }
|
|
94
|
-
.swatchList { display: flex; min-width: 0; flex: 1; gap:
|
|
93
|
+
.swatchList { display: flex; min-width: 0; flex: 1; gap: var(--space-related); }
|
|
95
94
|
.swatchSlot { position: relative; flex: none; touch-action: pan-y; }
|
|
96
95
|
.swatch { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; corner-shape: round; background: transparent; cursor: pointer; }
|
|
97
96
|
.swatchChip { width: 26px; height: 26px; transition: scale var(--duration-spring) var(--ease-spring); }
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
@media (hover: hover) and (pointer: fine) { .clear:hover { background: var(--surface-muted); color: var(--foreground); } }
|
|
16
16
|
.clear:focus-visible { --focus-outline-offset: 1px; }
|
|
17
17
|
.hint { color: var(--text-muted); font-size: var(--text-xs); }
|
|
18
|
-
.popover { position: absolute; z-index:
|
|
18
|
+
.popover { position: absolute; z-index: var(--layer-dropdown); top: calc(100% + var(--space-related)); right: 0; left: 0; overflow: hidden; transform-origin: top center; border: 1px solid var(--border); border-radius: var(--radius-container); padding: var(--space-tight); background: var(--surface-raised); color: var(--foreground); box-shadow: var(--shadow-floating); will-change: transform, opacity; }
|
|
19
19
|
.autoHeight { overflow: hidden; }
|
|
20
20
|
.listbox { max-height: min(300px, 40vh); overflow-y: auto; overscroll-behavior: contain; }
|
|
21
21
|
/* Arrow keys move the highlight often, so it changes almost instantly. */
|
|
22
|
-
.option { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: var(--space-group); border-radius: calc(var(--radius-container) -
|
|
22
|
+
.option { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: var(--space-group); border-radius: calc(var(--radius-container) - var(--space-tight)); padding: 0 var(--space-group); color: var(--foreground); font-size: var(--text-sm); cursor: pointer; outline: none; user-select: none; transition: background-color 80ms var(--ease-standard), color 80ms var(--ease-standard); }
|
|
23
23
|
.option > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
24
24
|
.option[data-active="true"] { background: var(--surface-muted); }
|
|
25
25
|
.option[data-disabled="true"] { opacity: .42; cursor: not-allowed; }
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
min-height: 54px;
|
|
15
15
|
align-items: center;
|
|
16
|
-
gap:
|
|
17
|
-
padding:
|
|
16
|
+
gap: var(--space-group);
|
|
17
|
+
padding: var(--space-related) var(--space-inset);
|
|
18
18
|
border-bottom: 1px solid var(--border-subtle);
|
|
19
19
|
transition: background var(--duration-fast) var(--ease-standard);
|
|
20
20
|
}
|
|
@@ -42,51 +42,51 @@
|
|
|
42
42
|
font-variant-numeric: tabular-nums;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.commandKey { min-width: 38px; height: 24px; padding: 0
|
|
45
|
+
.commandKey { min-width: 38px; height: 24px; padding: 0 var(--space-related); gap: var(--space-hair); }
|
|
46
46
|
.clearButton { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border: 0; border-radius: var(--radius-detail); background: transparent; color: var(--text-muted); cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
|
|
47
47
|
@media (hover: hover) and (pointer: fine) { .clearButton:hover, .closeButton:hover { background: var(--surface); color: var(--foreground); } }
|
|
48
48
|
.clearButton:active, .closeButton:active { background: var(--surface); color: var(--foreground); }
|
|
49
|
-
.closeButton { display: grid; min-width: 27px; height: 24px; flex: none; place-items: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-detail); background: transparent; color: var(--text-muted); padding: 0
|
|
49
|
+
.closeButton { display: grid; min-width: 27px; height: 24px; flex: none; place-items: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-detail); background: transparent; color: var(--text-muted); padding: 0 var(--space-related); font: inherit; font-size: var(--text-xs); font-weight: 500; line-height: 1; cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
|
|
50
50
|
|
|
51
51
|
/* The frame animates to the list height; the list keeps its own scroll. */
|
|
52
52
|
.resultsFrame { overflow: hidden; }
|
|
53
|
-
.results { position: relative; max-height: 342px; overflow: auto; padding:
|
|
54
|
-
.highlight { position: absolute; top: 0; right:
|
|
53
|
+
.results { position: relative; max-height: 342px; overflow: auto; padding: var(--space-related) var(--space-related); }
|
|
54
|
+
.highlight { position: absolute; top: 0; right: var(--space-related); left: var(--space-related); border-radius: var(--radius-detail); background: var(--surface-muted); opacity: 0; pointer-events: none; }
|
|
55
55
|
/* Groups are positioned so a row that pops out of the flow is placed against the same box it was measured in, even mid-glide. */
|
|
56
56
|
.group { position: relative; }
|
|
57
|
-
.group + .group { margin-top:
|
|
58
|
-
.groupHeading { display: block; padding:
|
|
57
|
+
.group + .group { margin-top: var(--space-related); }
|
|
58
|
+
.groupHeading { display: block; padding: var(--space-related) var(--space-related) var(--space-tight); color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; line-height: var(--leading-body); }
|
|
59
59
|
|
|
60
60
|
/* One line per result: the title, then its description in muted text, so the list stays short and scannable. */
|
|
61
|
-
.result { position: relative; display: flex; width: 100%; min-height: 34px; align-items: center; gap:
|
|
61
|
+
.result { position: relative; display: flex; width: 100%; min-height: 34px; align-items: center; gap: var(--space-group); border: 0; border-radius: var(--radius-detail); padding: 0 var(--space-related); background: transparent; color: var(--foreground); text-align: left; cursor: pointer; }
|
|
62
62
|
/* The active row is drawn by the shared highlight; the row itself only tints its icon and arrow. */
|
|
63
63
|
.itemIcon { transition: color var(--duration-fast) var(--ease-standard); }
|
|
64
64
|
.itemIcon { display: grid; width: 16px; height: 16px; flex: none; place-items: center; color: var(--text-muted); }
|
|
65
65
|
.itemIcon svg { width: 16px; height: 16px; }
|
|
66
|
-
.resultCopy { display: flex; min-width: 0; flex: 1; align-items: baseline; gap:
|
|
66
|
+
.resultCopy { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: var(--space-related); }
|
|
67
67
|
.resultCopy strong, .resultCopy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
68
68
|
.resultCopy strong { flex: none; max-width: 100%; }
|
|
69
69
|
.resultCopy small { min-width: 0; }
|
|
70
70
|
.resultCopy strong { font-size: var(--text-sm); font-weight: 500; }
|
|
71
71
|
.resultCopy small { color: var(--text-muted); font-size: var(--text-xs); }
|
|
72
|
-
.shortcut { min-width: 18px; height: 18px; padding: 0
|
|
72
|
+
.shortcut { min-width: 18px; height: 18px; padding: 0 var(--space-tight); border-color: transparent; border-radius: var(--radius-detail); font-size: var(--text-xs); }
|
|
73
73
|
.activeResult .itemIcon { color: var(--foreground); }
|
|
74
|
-
.empty { display: grid; justify-items: center; gap:
|
|
75
|
-
.empty > span { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom:
|
|
74
|
+
.empty { display: grid; justify-items: center; gap: var(--space-tight); padding: var(--space-section) var(--space-group) var(--space-block); text-align: center; }
|
|
75
|
+
.empty > span { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: var(--space-tight); color: var(--text-muted); }
|
|
76
76
|
.empty strong { font-size: var(--text-sm); font-weight: 500; }
|
|
77
77
|
.empty small { color: var(--text-muted); font-size: var(--text-xs); }
|
|
78
78
|
.visuallyHidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
79
79
|
|
|
80
80
|
@media (max-width: 480px) {
|
|
81
|
-
.searchRow { gap:
|
|
82
|
-
.results { padding:
|
|
83
|
-
.highlight { right:
|
|
84
|
-
.result { gap:
|
|
81
|
+
.searchRow { gap: var(--space-related); padding: var(--space-related) var(--space-group); }
|
|
82
|
+
.results { padding: var(--space-related); }
|
|
83
|
+
.highlight { right: var(--space-related); left: var(--space-related); }
|
|
84
|
+
.result { gap: var(--space-related); }
|
|
85
85
|
.shortcut, .commandKey { display: none; }
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@media (max-width: 340px) {
|
|
89
|
-
.result { padding-inline:
|
|
89
|
+
.result { padding-inline: var(--space-related); }
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* Header */
|
|
20
20
|
.thread { display: grid; }
|
|
21
|
-
.header { display: flex; align-items: center; justify-content: space-between; gap:
|
|
21
|
+
.header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-group); padding: var(--space-group) var(--space-group) var(--space-related) var(--space-comfort); }
|
|
22
22
|
.heading { display: grid; min-width: 0; }
|
|
23
23
|
.title { margin: 0; overflow: hidden; font-size: var(--text-sm); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
|
|
24
24
|
.subtitle { color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
height: 32px;
|
|
29
29
|
flex: none;
|
|
30
30
|
align-items: center;
|
|
31
|
-
gap:
|
|
32
|
-
padding: 0
|
|
31
|
+
gap: var(--space-related);
|
|
32
|
+
padding: 0 var(--space-group) 0 var(--space-group);
|
|
33
33
|
border: 1px solid var(--border);
|
|
34
34
|
border-radius: var(--radius-full); corner-shape: round;
|
|
35
35
|
background: var(--surface);
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
|
|
47
47
|
/* Comments */
|
|
48
48
|
.list, .replies { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
49
|
-
.list { padding: 0
|
|
49
|
+
.list { padding: 0 var(--space-related); }
|
|
50
50
|
.item { overflow: clip; overflow-clip-margin: 4px; }
|
|
51
51
|
.repliesWrap { overflow: clip; }
|
|
52
52
|
/* Replies hang from a quiet rail under their parent's avatar. */
|
|
53
|
-
.replies { position: relative; margin-left:
|
|
54
|
-
.replies::before { content: ""; position: absolute; top:
|
|
53
|
+
.replies { position: relative; margin-left: var(--space-section); padding-left: var(--space-group); }
|
|
54
|
+
.replies::before { content: ""; position: absolute; top: var(--space-hair); bottom: var(--space-inset); left: 0; width: 1px; background: var(--border); }
|
|
55
55
|
|
|
56
|
-
.comment { display: flex; gap:
|
|
56
|
+
.comment { display: flex; gap: var(--space-group); padding: var(--space-group); border-radius: var(--radius-control); corner-shape: var(--corner-shape); }
|
|
57
57
|
.avatar { display: inline-grid; flex: none; place-items: center; overflow: hidden; border-radius: 50%; corner-shape: round; background: var(--surface-muted); color: var(--text-secondary); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0; object-fit: cover; }
|
|
58
58
|
.deletedDot { width: 28px; height: 28px; flex: none; border: 1px dashed var(--border-strong); border-radius: 50%; corner-shape: round; }
|
|
59
|
-
.main { display: grid; min-width: 0; flex: 1; gap:
|
|
60
|
-
.meta { display: flex; min-width: 0; align-items: baseline; gap:
|
|
59
|
+
.main { display: grid; min-width: 0; flex: 1; gap: var(--space-hair); }
|
|
60
|
+
.meta { display: flex; min-width: 0; align-items: baseline; gap: var(--space-related); }
|
|
61
61
|
.name { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
|
|
62
62
|
.time { flex: none; color: var(--text-muted); font-size: var(--text-xs); }
|
|
63
63
|
.body { margin: 0; color: var(--text-secondary); overflow-wrap: anywhere; white-space: pre-wrap; text-wrap: pretty; }
|
|
64
64
|
.mention { color: var(--accent-strong); font-weight: 500; }
|
|
65
|
-
.deleted { margin:
|
|
65
|
+
.deleted { margin: var(--space-tight) 0 0; color: var(--text-muted); font-style: italic; }
|
|
66
66
|
|
|
67
|
-
.footer { display: flex; min-height: 30px; flex-wrap: wrap; align-items: center; gap:
|
|
68
|
-
.reactions { display: flex; flex-wrap: wrap; gap:
|
|
67
|
+
.footer { display: flex; min-height: 30px; flex-wrap: wrap; align-items: center; gap: var(--space-tight) var(--space-related); margin-top: var(--space-tight); }
|
|
68
|
+
.reactions { display: flex; flex-wrap: wrap; gap: var(--space-tight); }
|
|
69
69
|
.reaction {
|
|
70
70
|
display: inline-flex;
|
|
71
71
|
height: 26px;
|
|
72
72
|
align-items: center;
|
|
73
|
-
gap:
|
|
74
|
-
padding: 0
|
|
73
|
+
gap: var(--space-tight);
|
|
74
|
+
padding: 0 var(--space-related) 0 var(--space-related);
|
|
75
75
|
border: 1px solid var(--border);
|
|
76
76
|
border-radius: var(--radius-full); corner-shape: round;
|
|
77
77
|
background: var(--surface);
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
.count > span { grid-area: 1 / 1; }
|
|
89
89
|
|
|
90
90
|
/* Actions sit quietly after the reactions and come forward on hover or focus; touch screens always show them. */
|
|
91
|
-
.actions { display: flex; min-height: 28px; flex-wrap: wrap; align-items: center; gap:
|
|
91
|
+
.actions { display: flex; min-height: 28px; flex-wrap: wrap; align-items: center; gap: var(--space-hair); transition: opacity var(--duration-fast) var(--ease-standard); }
|
|
92
92
|
.action,
|
|
93
93
|
.iconAction {
|
|
94
94
|
display: inline-flex;
|
|
95
95
|
height: 28px;
|
|
96
96
|
align-items: center;
|
|
97
97
|
justify-content: center;
|
|
98
|
-
padding: 0
|
|
98
|
+
padding: 0 var(--space-related);
|
|
99
99
|
border: 0;
|
|
100
100
|
border-radius: var(--radius-full); corner-shape: round;
|
|
101
101
|
background: transparent;
|
|
@@ -109,34 +109,34 @@
|
|
|
109
109
|
}
|
|
110
110
|
.iconAction { width: 28px; padding: 0; }
|
|
111
111
|
.action[data-tone="danger"] { color: var(--danger); }
|
|
112
|
-
.prompt { margin-right:
|
|
112
|
+
.prompt { margin-right: var(--space-tight); color: var(--foreground); font-size: var(--text-xs); }
|
|
113
113
|
.emoji { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; corner-shape: round; background: transparent; cursor: pointer; font-size: var(--text-base); line-height: 1; transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
114
114
|
.emoji[aria-pressed="true"] { background: var(--accent-subtle); }
|
|
115
115
|
.emoji:active { transform: scale(.88); }
|
|
116
116
|
|
|
117
|
-
.toggle { display: inline-flex; width: fit-content; height: 28px; align-items: center; gap:
|
|
117
|
+
.toggle { display: inline-flex; width: fit-content; height: 28px; align-items: center; gap: var(--space-related); margin: var(--space-hair) 0 0 calc(var(--space-related) * -1); padding: 0 var(--space-related) 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-xs); font-weight: 500; transition: background-color var(--duration-fast) var(--ease-standard); }
|
|
118
118
|
.toggleIcon { display: grid; place-items: center; color: var(--text-muted); }
|
|
119
|
-
.stack { display: inline-flex; flex: none; padding-left:
|
|
120
|
-
.stack > * { margin-left: -
|
|
119
|
+
.stack { display: inline-flex; flex: none; padding-left: var(--space-tight); }
|
|
120
|
+
.stack > * { margin-left: calc(var(--space-tight) * -1); box-shadow: 0 0 0 2px var(--surface); }
|
|
121
121
|
|
|
122
|
-
.empty { margin: 0; padding:
|
|
122
|
+
.empty { margin: 0; padding: var(--space-related) var(--space-comfort) var(--space-inset); color: var(--text-muted); }
|
|
123
123
|
|
|
124
124
|
/* Composer */
|
|
125
|
-
.composerArea { display: grid; margin-top:
|
|
125
|
+
.composerArea { display: grid; margin-top: var(--space-tight); padding: var(--space-group) var(--space-group) var(--space-group); border-top: 1px solid var(--border-subtle); }
|
|
126
126
|
.replying { overflow: clip; }
|
|
127
|
-
.replyingInner { display: flex; align-items: center; gap:
|
|
128
|
-
.replyingInner .iconAction { width: 22px; height: 22px; margin-left:
|
|
127
|
+
.replyingInner { display: flex; align-items: center; gap: var(--space-related); padding: 0 var(--space-hair) var(--space-related) var(--space-block); color: var(--text-secondary); font-size: var(--text-xs); }
|
|
128
|
+
.replyingInner .iconAction { width: 22px; height: 22px; margin-left: var(--space-hair); }
|
|
129
129
|
.replyingName { color: var(--foreground); font-weight: 500; }
|
|
130
130
|
|
|
131
|
-
.composer { display: grid; align-items: start; gap:
|
|
132
|
-
.composer > .avatar { margin-top:
|
|
133
|
-
.composer[data-compact] { grid-template-columns: minmax(0, 1fr); margin-top:
|
|
131
|
+
.composer { display: grid; align-items: start; gap: var(--space-related) var(--space-group); grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
132
|
+
.composer > .avatar { margin-top: var(--space-tight); }
|
|
133
|
+
.composer[data-compact] { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-tight); }
|
|
134
134
|
.fieldWrap { display: grid; min-width: 0; }
|
|
135
135
|
.field {
|
|
136
136
|
width: 100%;
|
|
137
137
|
min-height: 38px;
|
|
138
138
|
max-height: 160px;
|
|
139
|
-
padding:
|
|
139
|
+
padding: var(--space-related) var(--space-group);
|
|
140
140
|
border: 1px solid var(--border);
|
|
141
141
|
border-radius: var(--radius-control); corner-shape: var(--corner-shape);
|
|
142
142
|
background: var(--surface);
|
|
@@ -148,22 +148,22 @@
|
|
|
148
148
|
}
|
|
149
149
|
.field::placeholder { color: var(--text-muted); }
|
|
150
150
|
.field:focus { border-color: var(--border-strong); }
|
|
151
|
-
.composerActions { display: flex; align-items: center; gap:
|
|
151
|
+
.composerActions { display: flex; align-items: center; gap: var(--space-tight); }
|
|
152
152
|
.composer[data-compact] .composerActions { justify-content: flex-end; }
|
|
153
153
|
.send,
|
|
154
|
-
.ghost { height: 38px; padding: 0
|
|
154
|
+
.ghost { height: 38px; padding: 0 var(--space-inset); border: 0; border-radius: var(--radius-full); corner-shape: round; cursor: pointer; font: inherit; font-weight: 500; transition: background-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
155
155
|
.composer[data-compact] :is(.send, .ghost) { height: 32px; font-size: var(--text-xs); }
|
|
156
156
|
.send { background: var(--foreground); color: var(--background); }
|
|
157
157
|
.send:disabled { opacity: .35; cursor: default; }
|
|
158
158
|
.send:active:not(:disabled), .ghost:active { transform: scale(.97); }
|
|
159
159
|
.ghost { background: transparent; color: var(--text-secondary); }
|
|
160
160
|
|
|
161
|
-
.suggestions { display: grid; margin:
|
|
162
|
-
.suggestion { display: flex; align-items: center; gap:
|
|
161
|
+
.suggestions { display: grid; margin: var(--space-related) 0 0; padding: var(--space-tight); overflow: clip; border: 1px solid var(--border); border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: var(--surface-raised); list-style: none; }
|
|
162
|
+
.suggestion { display: flex; align-items: center; gap: var(--space-related); min-height: 32px; padding: 0 var(--space-related); border-radius: var(--radius-detail); corner-shape: var(--corner-shape); cursor: pointer; }
|
|
163
163
|
.suggestion[aria-selected="true"] { background: var(--surface-muted); }
|
|
164
164
|
|
|
165
165
|
/* Resolved chip */
|
|
166
|
-
.resolved { display: flex; align-items: center; gap:
|
|
166
|
+
.resolved { display: flex; align-items: center; gap: var(--space-group); padding: var(--space-group) var(--space-group) var(--space-group) var(--space-inset); }
|
|
167
167
|
.resolvedIcon { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%; corner-shape: round; background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
|
|
168
168
|
.resolvedText { display: grid; min-width: 0; flex: 1; }
|
|
169
169
|
.resolvedTitle { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -186,8 +186,8 @@
|
|
|
186
186
|
@media (max-width: 420px) {
|
|
187
187
|
.composer { grid-template-columns: minmax(0, 1fr) auto; }
|
|
188
188
|
.composer > .avatar { display: none; }
|
|
189
|
-
.replyingInner { padding-left:
|
|
190
|
-
.replies { margin-left:
|
|
189
|
+
.replyingInner { padding-left: var(--space-hair); }
|
|
190
|
+
.replies { margin-left: var(--space-group); }
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.root[data-disabled][data-state="idle"] .surface { box-shadow: none; }
|
|
35
35
|
.root[data-disabled][data-state="idle"] .surface::after { border-color: var(--border-subtle); }
|
|
36
36
|
|
|
37
|
-
.face { display: flex; flex: none; height: 100%; align-items: center; gap:
|
|
37
|
+
.face { display: flex; flex: none; height: 100%; align-items: center; gap: var(--space-hair); padding: 0 var(--space-tight); white-space: nowrap; }
|
|
38
38
|
.face[data-face="idle"] { padding: 0; }
|
|
39
39
|
/* A leaving face steps out of the flow, exactly where it was, and fades while the pill springs to the next one. */
|
|
40
40
|
.face[inert] { position: absolute; top: 0; inset-inline-start: 0; pointer-events: none; }
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
display: inline-flex;
|
|
45
45
|
height: 100%;
|
|
46
46
|
align-items: center;
|
|
47
|
-
gap:
|
|
48
|
-
padding: 0
|
|
47
|
+
gap: var(--space-related);
|
|
48
|
+
padding: 0 var(--space-inset) 0 var(--space-inset);
|
|
49
49
|
border: 0;
|
|
50
50
|
border-radius: var(--radius-full); corner-shape: round;
|
|
51
51
|
background: transparent;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.trigger:disabled .icon { color: inherit; }
|
|
63
63
|
.icon > svg { width: 16px; height: 16px; }
|
|
64
64
|
|
|
65
|
-
.prompt { max-width: 16rem; overflow: hidden; padding: 0
|
|
65
|
+
.prompt { max-width: 16rem; overflow: hidden; padding: 0 var(--space-related) 0 var(--space-group); color: var(--foreground); font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
66
66
|
.prompt > span { overflow: hidden; text-overflow: ellipsis; }
|
|
67
67
|
|
|
68
68
|
.secondary,
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
height: calc(var(--control-height-sm) - 8px);
|
|
74
74
|
align-items: center;
|
|
75
75
|
justify-content: center;
|
|
76
|
-
padding: 0
|
|
76
|
+
padding: 0 var(--space-group);
|
|
77
77
|
border: 0;
|
|
78
78
|
border-radius: var(--radius-full); corner-shape: round;
|
|
79
79
|
cursor: pointer;
|
|
@@ -97,12 +97,12 @@
|
|
|
97
97
|
.fill { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--danger); color: var(--background); pointer-events: none; }
|
|
98
98
|
.root[data-tone="neutral"] .fill { background: var(--accent-strong); color: var(--accent-foreground); }
|
|
99
99
|
|
|
100
|
-
.status { gap:
|
|
100
|
+
.status { gap: var(--space-related); padding: 0 var(--space-group) 0 var(--space-group); color: var(--foreground); font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
101
101
|
.status > svg { flex: none; }
|
|
102
102
|
.statusText { display: inline-flex; align-items: baseline; gap: .25em; }
|
|
103
|
-
.face[data-face="pending"] .status { padding-inline:
|
|
104
|
-
.face[data-face="done"]:not(:has(.secondary)) .status { padding-right:
|
|
105
|
-
.face[data-face="counting"] .status { padding-right:
|
|
103
|
+
.face[data-face="pending"] .status { padding-inline: var(--space-group) var(--space-inset); color: var(--text-secondary); }
|
|
104
|
+
.face[data-face="done"]:not(:has(.secondary)) .status { padding-right: var(--space-inset); }
|
|
105
|
+
.face[data-face="counting"] .status { padding-right: var(--space-related); color: var(--text-secondary); }
|
|
106
106
|
.alert { color: var(--danger); }
|
|
107
107
|
.check { width: 18px; height: 18px; }
|
|
108
108
|
.checkDisc { fill: var(--success); }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.target { display: block; outline: none; }
|
|
2
2
|
/* Motion scales the menu from the pointer (transform-origin is set inline) and fades it out faster than it arrives. */
|
|
3
|
-
.menu { position: fixed; z-index:
|
|
4
|
-
.highlight { position: absolute; top: 0; right:
|
|
3
|
+
.menu { position: fixed; z-index: var(--layer-dropdown); min-width: min(13rem, calc(100vw - 16px)); max-width: calc(100vw - 16px); max-height: min(300px, calc(100vh - 16px)); overflow-y: auto; padding: var(--space-tight); border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--surface-raised); color: var(--foreground); box-shadow: var(--shadow-floating); outline: none; }
|
|
4
|
+
.highlight { position: absolute; top: 0; right: var(--space-tight); left: var(--space-tight); border-radius: calc(var(--radius-container) - var(--space-related)); background: var(--surface-muted); opacity: 0; pointer-events: none; transition: background-color var(--duration-fast) var(--ease-standard); }
|
|
5
5
|
.highlight[data-tone="danger"] { background: color-mix(in oklab, var(--danger) 8%, var(--surface)); }
|
|
6
|
-
.item { position: relative; display: flex; width: 100%; min-height: 34px; align-items: center; gap:
|
|
6
|
+
.item { position: relative; display: flex; width: 100%; min-height: 34px; align-items: center; gap: var(--space-related); padding: 0 var(--space-group); border: 0; border-radius: calc(var(--radius-container) - var(--space-related)); background: transparent; color: inherit; font: inherit; font-size: var(--text-sm); letter-spacing: var(--tracking-body); line-height: var(--leading-body); text-align: left; cursor: pointer; outline: none; transition: background-color var(--duration-instant) var(--ease-standard), color var(--duration-fast) var(--ease-standard); animation: context-item-in var(--duration-standard) var(--ease-enter) both; animation-delay: calc(min(var(--i, 0), 4) * 35ms); }
|
|
7
7
|
/* The gliding highlight is the focus indicator, as in the dropdown menu. */
|
|
8
8
|
.item:focus-visible { outline: none; }
|
|
9
9
|
/* Rows press with a tint, not a scale. */
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
|
|
12
12
|
.units { display: inline-flex; align-items: flex-start; white-space: nowrap; }
|
|
13
13
|
.unit { display: inline-flex; align-items: flex-start; }
|
|
14
|
-
.group { display: inline-grid; justify-items: center; gap:
|
|
14
|
+
.group { display: inline-grid; justify-items: center; gap: var(--space-related); }
|
|
15
15
|
.number { display: inline-flex; font-variant-numeric: tabular-nums; transition: opacity var(--duration-considered) var(--ease-standard); }
|
|
16
16
|
.countdown[data-pending] .number { opacity: .3; }
|
|
17
17
|
.name { color: var(--text-muted); font-size: var(--text-xs); line-height: 1; }
|
|
18
18
|
.colon { color: var(--text-muted); opacity: .6; }
|
|
19
19
|
|
|
20
20
|
/* Large: display digits sized to the container, so four groups fit at 320px and breathe on a wide card. */
|
|
21
|
-
.countdown[data-variant="large"] .units { gap: 0; font-family: var(--font-display); font-size: clamp(
|
|
21
|
+
.countdown[data-variant="large"] .units { gap: 0; font-family: var(--font-display); font-size: clamp(var(--text-2xl), 12.5cqi, var(--text-5xl)); font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1; }
|
|
22
22
|
.countdown[data-variant="large"] .colon { padding-inline: .12em; line-height: 1; transform: translateY(-.06em); }
|
|
23
23
|
/* On a narrow card the unit names outgrow the digits; an even column floor keeps the colons evenly spaced instead of following each name's width. */
|
|
24
24
|
.countdown[data-variant="large"] .group { min-width: min(calc((100cqi - 1.6em) / 4), calc(var(--text-xs) * 4.2)); }
|
|
25
25
|
.countdown[data-variant="large"] .name { font-family: var(--font-body); letter-spacing: var(--tracking-body); }
|
|
26
26
|
|
|
27
27
|
/* Compact: one line, digits then a quiet unit letter. */
|
|
28
|
-
.countdown[data-variant="compact"] .units { gap:
|
|
28
|
+
.countdown[data-variant="compact"] .units { gap: var(--space-related); font-size: var(--text-sm); font-weight: 500; line-height: 1.3; }
|
|
29
29
|
.countdown[data-variant="compact"] .group { display: inline-flex; align-items: baseline; gap: 1px; }
|
|
30
30
|
.countdown[data-variant="compact"] .name { font-size: var(--text-sm); font-weight: 400; line-height: 1.3; }
|
|
31
31
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
/* Finished: the digits give way to the label and a live mark. */
|
|
38
38
|
.done { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
|
|
39
|
-
.countdown[data-variant="large"] .done { font-family: var(--font-display); font-size: clamp(
|
|
39
|
+
.countdown[data-variant="large"] .done { font-family: var(--font-display); font-size: clamp(var(--text-2xl), 11cqi, var(--text-4xl)); font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1.1; }
|
|
40
40
|
.countdown[data-variant="compact"] .done { color: var(--success); font-size: var(--text-sm); font-weight: 500; line-height: 1.3; }
|
|
41
41
|
.pulse { position: relative; width: .3em; height: .3em; min-width: 8px; min-height: 8px; flex: none; border-radius: 50%; corner-shape: round; background: var(--success); }
|
|
42
42
|
.pulse::after { position: absolute; inset: 0; border-radius: inherit; corner-shape: inherit; background: var(--success); content: ""; animation: pulse 2s var(--ease-standard) infinite; }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.field { display: grid; gap:
|
|
1
|
+
.field { display: grid; gap: var(--space-related); min-width: 0; }
|
|
2
2
|
.label { color: var(--foreground); font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-body); }
|
|
3
3
|
.anchor { position: relative; min-width: 0; }
|
|
4
4
|
/* The trigger anchors the calendar, so press feedback stays in color; it never scales. */
|
|
5
|
-
.trigger { position: relative; display: flex; width: 100%; min-height: var(--control-height-md); align-items: center; gap:
|
|
5
|
+
.trigger { position: relative; display: flex; width: 100%; min-height: var(--control-height-md); align-items: center; gap: var(--space-related); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 0 var(--space-group); background: var(--surface); color: var(--foreground); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }
|
|
6
6
|
@media (hover: hover) and (pointer: fine) { .trigger:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-muted); } }
|
|
7
7
|
.trigger:active:not(:disabled), .trigger[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-muted); }
|
|
8
8
|
.trigger:disabled { cursor: not-allowed; opacity: .5; }
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
.chevron { flex: 0 0 auto; color: var(--text-muted); transition: transform var(--duration-spring) var(--ease-spring); }
|
|
18
18
|
.trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
|
|
19
19
|
/* Grows out of the trigger's calendar icon and returns there on close. */
|
|
20
|
-
.popover { position: absolute; z-index:
|
|
20
|
+
.popover { position: absolute; z-index: var(--layer-popover); top: calc(100% + var(--space-related)); left: 0; width: min(320px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-container); padding: var(--space-inset); background: var(--surface-raised); box-shadow: var(--shadow-floating); transform-origin: 22px -8px; will-change: transform, opacity; }
|
|
21
21
|
/* On phone widths the calendar matches the field instead of running past the screen edge, and a tighter inset keeps the month and its controls on one row. */
|
|
22
|
-
@media (max-width: 360px) { .popover { right: 0; width: auto; padding:
|
|
23
|
-
.footer { display: flex; align-items: center; justify-content: space-between; gap:
|
|
22
|
+
@media (max-width: 360px) { .popover { right: 0; width: auto; padding: var(--space-group); } }
|
|
23
|
+
.footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-related); margin-top: var(--space-inset); border-top: 1px solid var(--border-subtle); padding-top: var(--space-group); color: var(--text-muted); font-size: var(--text-xs); }
|
|
24
24
|
/* Old and new status lines share one cell, pinned to the trailing edge so a shorter line never shifts. */
|
|
25
25
|
.status { display: grid; min-width: 0; justify-items: end; }
|
|
26
26
|
.status > span { grid-area: 1 / 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
27
|
-
.footer button { border: 0; border-radius: var(--radius-control); padding:
|
|
27
|
+
.footer button { border: 0; border-radius: var(--radius-control); padding: var(--space-tight) var(--space-related); background: transparent; color: var(--text-secondary); font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-spring) var(--ease-spring); }
|
|
28
28
|
@media (hover: hover) and (pointer: fine) { .footer button:hover:not(:disabled) { background: var(--surface-muted); color: var(--foreground); } }
|
|
29
29
|
.footer button:active:not(:disabled) { transform: scale(.97); transition-duration: var(--duration-fast), var(--duration-fast), 100ms; transition-timing-function: var(--ease-standard); }
|
|
30
30
|
.footer button:disabled { cursor: not-allowed; opacity: .4; }
|