@teamofsilicons/silicon-ui 0.2.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 +4 -3
- package/check.mjs +14 -5
- 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 +35 -3
- package/package.json +1 -1
- package/styles.css +44 -4
|
@@ -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; }
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
line-height: var(--leading-body);
|
|
12
12
|
}
|
|
13
13
|
.root { z-index: 0; transition: z-index 0s linear .5s; }
|
|
14
|
-
.root[data-open] { z-index:
|
|
14
|
+
.root[data-open] { z-index: var(--layer-popover); transition-delay: 0s; }
|
|
15
15
|
.root:not([data-open]) .surface { z-index: 0; }
|
|
16
16
|
.root *, .root *::before, .root *::after { box-sizing: border-box; }
|
|
17
17
|
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
width: max-content;
|
|
39
39
|
height: var(--control-height-md);
|
|
40
40
|
align-items: center;
|
|
41
|
-
gap:
|
|
42
|
-
padding: 0
|
|
41
|
+
gap: var(--space-group);
|
|
42
|
+
padding: 0 var(--space-group) 0 var(--space-inset);
|
|
43
43
|
border: 0;
|
|
44
44
|
background: transparent;
|
|
45
45
|
color: var(--foreground);
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
.wordInner { display: inline-block; }
|
|
63
63
|
|
|
64
64
|
/* Panel */
|
|
65
|
-
.panel { position: absolute; top: 0; left: 0; width: max-content; padding:
|
|
66
|
-
.body { display: flex; gap:
|
|
65
|
+
.panel { position: absolute; top: 0; left: 0; width: max-content; padding: var(--space-group); --cell: 36px; }
|
|
66
|
+
.body { display: flex; gap: var(--space-group); }
|
|
67
67
|
|
|
68
|
-
.rail { position: relative; display: flex; width: 9.25rem; flex: none; flex-direction: column; gap:
|
|
68
|
+
.rail { position: relative; display: flex; width: 9.25rem; flex: none; flex-direction: column; gap: var(--space-hair); padding-right: var(--space-group); border-right: 1px solid var(--border-subtle); }
|
|
69
69
|
.railHighlight { position: absolute; top: 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; }
|
|
70
70
|
.preset {
|
|
71
71
|
position: relative;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
height: 32px;
|
|
74
74
|
flex: none;
|
|
75
75
|
align-items: center;
|
|
76
|
-
padding: 0
|
|
76
|
+
padding: 0 var(--space-group);
|
|
77
77
|
border: 0;
|
|
78
78
|
border-radius: var(--radius-control); corner-shape: var(--corner-shape);
|
|
79
79
|
background: transparent;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
.preset[aria-pressed="true"] { color: var(--foreground); font-weight: 500; }
|
|
89
89
|
|
|
90
|
-
.calendars { position: relative; padding: 0
|
|
90
|
+
.calendars { position: relative; padding: 0 var(--space-hair); }
|
|
91
91
|
.navButton {
|
|
92
92
|
position: absolute;
|
|
93
93
|
z-index: 2;
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
-webkit-tap-highlight-color: transparent;
|
|
106
106
|
transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
|
|
107
107
|
}
|
|
108
|
-
.navButton[data-side="prev"] { left:
|
|
109
|
-
.navButton[data-side="next"] { right:
|
|
108
|
+
.navButton[data-side="prev"] { left: var(--space-hair); }
|
|
109
|
+
.navButton[data-side="next"] { right: var(--space-hair); }
|
|
110
110
|
.navButton:active:not(:disabled) { transform: scale(.92); }
|
|
111
111
|
.navButton:disabled { opacity: .35; cursor: default; }
|
|
112
112
|
|
|
113
113
|
/* Months slide horizontally inside a clipped window that keeps a little room for the blur. */
|
|
114
114
|
.viewport { position: relative; overflow: clip; overflow-clip-margin: 2px; }
|
|
115
|
-
.months { display: flex; gap:
|
|
115
|
+
.months { display: flex; gap: var(--space-section); }
|
|
116
116
|
.month { width: calc(var(--cell) * 7); }
|
|
117
117
|
.monthTitle { height: 32px; margin: 0; color: var(--foreground); font-weight: 500; line-height: 32px; text-align: center; white-space: nowrap; }
|
|
118
118
|
.grid { display: grid; }
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
.layer { position: absolute; inset: 0; pointer-events: none; }
|
|
126
126
|
.bar { position: absolute; height: calc(var(--cell) - 6px); border-radius: var(--radius-full); corner-shape: round; background: var(--accent-subtle); }
|
|
127
127
|
.thumb { position: absolute; top: 0; left: 0; width: var(--cell); height: var(--cell); }
|
|
128
|
-
.thumb::before { content: ""; position: absolute; inset:
|
|
128
|
+
.thumb::before { content: ""; position: absolute; inset: var(--space-tight); border-radius: 50%; corner-shape: round; background: var(--accent); }
|
|
129
129
|
|
|
130
130
|
.day {
|
|
131
131
|
position: relative;
|
|
@@ -148,23 +148,23 @@
|
|
|
148
148
|
.day > span { position: relative; display: grid; width: calc(100% - 6px); height: calc(100% - 6px); place-items: center; border-radius: 50%; corner-shape: round; transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
149
149
|
.day:active:not(:disabled) > span { transform: scale(.9); }
|
|
150
150
|
.day[data-edge] { color: var(--accent-foreground); font-weight: 500; transition-delay: 40ms; }
|
|
151
|
-
.day[data-today]::after { content: ""; position: absolute; bottom:
|
|
151
|
+
.day[data-today]::after { content: ""; position: absolute; bottom: var(--space-tight); left: 50%; width: 4px; height: 4px; margin-left: calc(var(--space-hair) * -1); border-radius: 50%; corner-shape: round; background: var(--accent); }
|
|
152
152
|
.day[data-today][data-edge]::after { background: var(--accent-foreground); }
|
|
153
153
|
.day:disabled { color: var(--text-muted); cursor: default; opacity: .5; }
|
|
154
154
|
.day:focus-visible:not([data-edge]) > span { background: color-mix(in oklab, var(--foreground) 7%, transparent); }
|
|
155
155
|
|
|
156
156
|
/* Footer: the formatted range and the two decisions. */
|
|
157
|
-
.footer { display: flex; align-items: center; justify-content: space-between; gap:
|
|
157
|
+
.footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-group); margin-top: var(--space-group); padding: var(--space-group) var(--space-hair) 0 var(--space-group); border-top: 1px solid var(--border-subtle); }
|
|
158
158
|
.summary { display: grid; min-width: 0; gap: 1px; }
|
|
159
159
|
.summaryValue { display: inline-flex; width: max-content; font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
160
160
|
.summaryCount { display: inline-flex; min-height: 1.4em; color: var(--text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
161
|
-
.actions { display: flex; flex: none; align-items: center; gap:
|
|
161
|
+
.actions { display: flex; flex: none; align-items: center; gap: var(--space-related); }
|
|
162
162
|
.ghost, .primary {
|
|
163
163
|
display: inline-flex;
|
|
164
164
|
height: var(--control-height-sm);
|
|
165
165
|
align-items: center;
|
|
166
166
|
justify-content: center;
|
|
167
|
-
padding: 0
|
|
167
|
+
padding: 0 var(--space-inset);
|
|
168
168
|
border: 0;
|
|
169
169
|
border-radius: var(--radius-control); corner-shape: var(--corner-shape);
|
|
170
170
|
cursor: pointer;
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
.srOnly { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
185
185
|
|
|
186
186
|
/* Compact: one month under a scrolling row of presets. */
|
|
187
|
-
.panel[data-compact] { padding:
|
|
188
|
-
.panel[data-compact] .body { flex-direction: column; gap:
|
|
189
|
-
.panel[data-compact] .rail { width: auto; flex-direction: row; gap:
|
|
187
|
+
.panel[data-compact] { padding: var(--space-related); }
|
|
188
|
+
.panel[data-compact] .body { flex-direction: column; gap: var(--space-related); }
|
|
189
|
+
.panel[data-compact] .rail { width: auto; flex-direction: row; gap: var(--space-hair); margin: 0 calc(var(--space-related) * -1); padding: 0 var(--space-related) var(--space-related); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); overscroll-behavior-x: contain; scrollbar-width: none; }
|
|
190
190
|
.panel[data-compact] .rail::-webkit-scrollbar { display: none; }
|
|
191
|
-
.panel[data-compact] .preset { padding: 0
|
|
191
|
+
.panel[data-compact] .preset { padding: 0 var(--space-group); }
|
|
192
192
|
.panel[data-compact] .calendars { align-self: center; }
|
|
193
|
-
.panel[data-compact] .footer { flex-wrap: wrap; margin-top:
|
|
193
|
+
.panel[data-compact] .footer { flex-wrap: wrap; margin-top: var(--space-related); padding-left: var(--space-group); }
|
|
194
194
|
.panel[data-compact] .actions { margin-left: auto; }
|
|
195
195
|
.panel[data-compact] .summary { flex: 1 1 8rem; }
|
|
196
196
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.overlay { position: fixed; inset: 0; z-index:
|
|
1
|
+
.overlay { position: fixed; inset: 0; z-index: var(--layer-overlay); background: var(--scrim); backdrop-filter: blur(7px); }
|
|
2
2
|
/* Centered with auto margins (like a native modal dialog) so transform stays free for the entrance spring. */
|
|
3
|
-
.content { position: fixed; z-index:
|
|
3
|
+
.content { position: fixed; z-index: var(--layer-dialog); inset: 0; width: min(calc(100vw - var(--space-block)), 440px); height: fit-content; max-height: calc(100vh - var(--space-block)); max-height: calc(100dvh - var(--space-block)); margin: auto; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-overlay); background: var(--surface-raised); color: var(--foreground); box-shadow: var(--shadow-floating); }
|
|
4
4
|
/* Motion animates both layers. Keyframes only run when DialogContent sits under a bare Radix root. */
|
|
5
5
|
.keyframes.overlay[data-state="open"] { animation: overlay-in var(--duration-standard) var(--ease-enter) both; }
|
|
6
6
|
.keyframes.overlay[data-state="closed"] { animation: overlay-out var(--duration-fast) var(--ease-standard) both; }
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* The centre reads the active segment, or the total at rest. Old and new readouts share one grid cell, so a swap never moves or resizes anything. */
|
|
20
20
|
.center { position: absolute; top: 50%; left: 50%; display: grid; width: calc(var(--inner) - 16px); transform: translate(-50%, -50%); pointer-events: none; }
|
|
21
|
-
.readout { grid-area: 1 / 1; display: grid; min-width: 0; justify-items: center; gap:
|
|
21
|
+
.readout { grid-area: 1 / 1; display: grid; min-width: 0; justify-items: center; gap: var(--space-hair); text-align: center; }
|
|
22
22
|
.centerLabel, .centerMeta { display: block; width: 100%; min-height: calc(1em * var(--leading-body)); overflow: hidden; font-size: var(--text-xs); line-height: var(--leading-body); text-overflow: ellipsis; white-space: nowrap; }
|
|
23
23
|
.centerLabel { color: var(--text-secondary); }
|
|
24
24
|
.centerMeta { color: var(--text-muted); font-variant-numeric: tabular-nums; }
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
|
|
27
27
|
/* Legend rows mirror the segments: hovering either lights both. */
|
|
28
28
|
/* Rows carry their own 2px spacing so a row closing its height takes its gap with it; the list's negative margin drops the last one. */
|
|
29
|
-
.legend { display: grid; margin: 0 0 -
|
|
29
|
+
.legend { display: grid; margin: 0 0 calc(var(--space-hair) * -1); padding: 0; list-style: none; }
|
|
30
30
|
.item { overflow: hidden; }
|
|
31
|
-
.item > .row { margin-bottom:
|
|
32
|
-
.row { display: grid; width: 100%; min-height: 40px; grid-template-columns: 10px minmax(0, 1fr) auto 3.25em; align-items: center; column-gap:
|
|
31
|
+
.item > .row { margin-bottom: var(--space-hair); }
|
|
32
|
+
.row { display: grid; width: 100%; min-height: 40px; grid-template-columns: 10px minmax(0, 1fr) auto 3.25em; align-items: center; column-gap: var(--space-group); padding: var(--space-related) var(--space-group); border: 0; border-radius: var(--radius-control); corner-shape: var(--corner-shape); background: transparent; color: var(--foreground); cursor: pointer; font: inherit; font-size: var(--text-sm); line-height: var(--leading-body); text-align: left; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard); }
|
|
33
33
|
.row:active { transform: scale(.985); }
|
|
34
34
|
.row[data-active], .row[data-pinned] { background: color-mix(in oklab, var(--foreground) 5%, transparent); }
|
|
35
35
|
.dot { width: 10px; height: 10px; border-radius: 50%; corner-shape: round; background: var(--slice); box-shadow: inset 0 0 0 1.5px var(--slice); transition: background-color var(--duration-standard) var(--ease-standard), box-shadow var(--duration-standard) var(--ease-standard); }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.overlay {
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
|
-
z-index:
|
|
5
|
-
background:
|
|
4
|
+
z-index: var(--layer-overlay);
|
|
5
|
+
background: var(--scrim);
|
|
6
6
|
backdrop-filter: blur(4px);
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--ease-drawer: cubic-bezier(.32,.72,0,1);
|
|
13
13
|
--drawer-from: translateX(100%);
|
|
14
14
|
position: fixed;
|
|
15
|
-
z-index:
|
|
15
|
+
z-index: var(--layer-dialog);
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
width: var(--drawer-size);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
.content[data-side="left"] { inset: 0 auto 0 0; border-width: 1px 1px 1px 0; border-radius: 0 var(--radius-container) var(--radius-container) 0; corner-shape: var(--corner-shape); }
|
|
33
33
|
.content[data-side="top"] { inset: 0 0 auto; width: 100%; max-width: none; max-height: min(32rem, 100dvh); border-width: 0 0 1px; border-radius: 0 0 var(--radius-container) var(--radius-container); corner-shape: var(--corner-shape); }
|
|
34
34
|
.content[data-side="bottom"] { inset: auto 0 0; width: 100%; max-width: none; max-height: min(32rem, 100dvh); border-width: 1px 0 0; border-radius: var(--radius-container) var(--radius-container) 0 0; corner-shape: var(--corner-shape); }
|
|
35
|
-
.content[data-side="bottom"]::before { position: absolute; top:
|
|
35
|
+
.content[data-side="bottom"]::before { position: absolute; top: var(--space-related); left: 50%; width: 2.25rem; height: 4px; border-radius: var(--radius-full); corner-shape: round; background: var(--border-strong); content: ""; opacity: .75; transform: translateX(-50%); }
|
|
36
36
|
|
|
37
37
|
/* Motion springs the panel from its edge. Keyframes only run when DrawerContent sits under a bare Radix root. */
|
|
38
38
|
.content[data-side="left"] { --drawer-from: translateX(-100%); }
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.content:focus { outline: none; }
|
|
46
46
|
/* Inside a container the layers anchor to that element instead of the viewport. */
|
|
47
47
|
.overlay[data-contained], .content[data-contained] { position: absolute; }
|
|
48
|
-
.overlay[data-contained] { z-index: 1; background:
|
|
48
|
+
.overlay[data-contained] { z-index: 1; background: var(--scrim-soft); backdrop-filter: none; }
|
|
49
49
|
.content[data-contained] { --drawer-size: min(22rem, calc(100% - var(--space-block))); z-index: 2; max-height: 100%; box-shadow: none; }
|
|
50
50
|
.content[data-contained][data-side="top"], .content[data-contained][data-side="bottom"] { max-height: min(32rem, calc(100% - var(--space-block))); }
|
|
51
51
|
/* The container already draws the outer edges, so only the inner edge keeps a border. */
|