@xihan-ui/styles 3.2.0 → 4.0.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/CHANGELOG.md +441 -0
- package/component-tokens.d.ts +229 -60
- package/components.tokens.json +5124 -1555
- package/css/accordion.css +47 -20
- package/css/alert.css +14 -15
- package/css/anchor.css +2 -2
- package/css/approval.css +37 -13
- package/css/avatar-group.css +9 -12
- package/css/avatar.css +20 -18
- package/css/back-top.css +21 -7
- package/css/badge.css +5 -5
- package/css/breadcrumb.css +18 -16
- package/css/button-group.css +4 -6
- package/css/button.css +4 -7
- package/css/calendar-picker.css +177 -94
- package/css/calendar-range-picker.css +206 -121
- package/css/card.css +34 -6
- package/css/carousel.css +65 -49
- package/css/cascader.css +41 -29
- package/css/checkbox-group.css +9 -6
- package/css/checkbox.css +5 -4
- package/css/citation.css +7 -2
- package/css/clipboard.css +20 -4
- package/css/collapsible.css +29 -14
- package/css/color-field.css +4 -4
- package/css/color-picker.css +77 -23
- package/css/color-slider.css +10 -8
- package/css/color-swatch-picker.css +5 -5
- package/css/combobox.css +14 -10
- package/css/command.css +13 -8
- package/css/context-menu.css +10 -5
- package/css/date-field.css +4 -4
- package/css/date-picker.css +165 -102
- package/css/date-range-picker.css +186 -123
- package/css/description.css +10 -6
- package/css/descriptions.css +47 -19
- package/css/dialog.css +50 -35
- package/css/drawer.css +75 -21
- package/css/editable.css +15 -41
- package/css/empty-state.css +21 -3
- package/css/field-array.css +4 -1
- package/css/field.css +17 -18
- package/css/fieldset.css +33 -13
- package/css/file-upload.css +65 -32
- package/css/float-button.css +25 -15
- package/css/floating-panel.css +1 -1
- package/css/form.css +24 -10
- package/css/grid-list.css +1 -1
- package/css/highlight.css +4 -4
- package/css/hover-card.css +19 -12
- package/css/image-viewer.css +77 -27
- package/css/image.css +12 -4
- package/css/infinite-scroll.css +8 -4
- package/css/input-group.css +74 -26
- package/css/kbd.css +1 -1
- package/css/label.css +27 -11
- package/css/layout.css +17 -10
- package/css/list.css +13 -9
- package/css/listbox.css +12 -7
- package/css/loading-bar.css +3 -0
- package/css/mention.css +10 -8
- package/css/menu.css +10 -5
- package/css/menubar.css +13 -8
- package/css/navigation-menu.css +2 -2
- package/css/notification.css +114 -31
- package/css/number-animation.css +2 -2
- package/css/number-field.css +60 -37
- package/css/page-header.css +63 -26
- package/css/pagination.css +35 -38
- package/css/password-input.css +10 -66
- package/css/pin-input.css +18 -26
- package/css/popconfirm.css +20 -11
- package/css/popover.css +18 -12
- package/css/progress.css +14 -13
- package/css/prompt-input.css +3 -3
- package/css/question-flow.css +33 -7
- package/css/radio-group.css +120 -55
- package/css/rating.css +31 -14
- package/css/select.css +14 -10
- package/css/separator.css +22 -4
- package/css/side-nav.css +16 -11
- package/css/signature-pad.css +23 -9
- package/css/skeleton.css +7 -7
- package/css/slider.css +71 -42
- package/css/sparkline.css +8 -2
- package/css/spinner.css +40 -20
- package/css/statistic.css +14 -14
- package/css/steps.css +115 -84
- package/css/switch.css +9 -7
- package/css/table.css +27 -10
- package/css/tabs.css +35 -12
- package/css/tag-group.css +17 -6
- package/css/tag.css +54 -29
- package/css/tags-input.css +38 -19
- package/css/text-field.css +5 -5
- package/css/time-field.css +4 -4
- package/css/time-picker.css +150 -64
- package/css/time-range-picker.css +91 -62
- package/css/timeline.css +37 -20
- package/css/timer.css +3 -3
- package/css/toggle-group.css +4 -4
- package/css/tool-call.css +6 -4
- package/css/toolbar.css +6 -5
- package/css/tooltip.css +15 -16
- package/css/tour.css +14 -7
- package/css/transfer.css +22 -16
- package/css/tree-select.css +10 -10
- package/css/tree.css +26 -25
- package/css/typography.css +28 -25
- package/dist/css/accordion.css +47 -20
- package/dist/css/alert.css +14 -15
- package/dist/css/anchor.css +2 -2
- package/dist/css/approval.css +37 -13
- package/dist/css/avatar-group.css +9 -12
- package/dist/css/avatar.css +20 -18
- package/dist/css/back-top.css +21 -7
- package/dist/css/badge.css +5 -5
- package/dist/css/breadcrumb.css +18 -16
- package/dist/css/button-group.css +4 -6
- package/dist/css/button.css +4 -7
- package/dist/css/calendar-picker.css +177 -94
- package/dist/css/calendar-range-picker.css +206 -121
- package/dist/css/card.css +34 -6
- package/dist/css/carousel.css +65 -49
- package/dist/css/cascader.css +41 -29
- package/dist/css/checkbox-group.css +9 -6
- package/dist/css/checkbox.css +5 -4
- package/dist/css/citation.css +7 -2
- package/dist/css/clipboard.css +20 -4
- package/dist/css/collapsible.css +29 -14
- package/dist/css/color-field.css +4 -4
- package/dist/css/color-picker.css +77 -23
- package/dist/css/color-slider.css +10 -8
- package/dist/css/color-swatch-picker.css +5 -5
- package/dist/css/combobox.css +14 -10
- package/dist/css/command.css +13 -8
- package/dist/css/context-menu.css +10 -5
- package/dist/css/date-field.css +4 -4
- package/dist/css/date-picker.css +165 -102
- package/dist/css/date-range-picker.css +186 -123
- package/dist/css/description.css +10 -6
- package/dist/css/descriptions.css +47 -19
- package/dist/css/dialog.css +50 -35
- package/dist/css/drawer.css +75 -21
- package/dist/css/editable.css +15 -41
- package/dist/css/empty-state.css +21 -3
- package/dist/css/field-array.css +4 -1
- package/dist/css/field.css +17 -18
- package/dist/css/fieldset.css +33 -13
- package/dist/css/file-upload.css +65 -32
- package/dist/css/float-button.css +25 -15
- package/dist/css/floating-panel.css +1 -1
- package/dist/css/form.css +24 -10
- package/dist/css/grid-list.css +1 -1
- package/dist/css/highlight.css +4 -4
- package/dist/css/hover-card.css +19 -12
- package/dist/css/image-viewer.css +77 -27
- package/dist/css/image.css +12 -4
- package/dist/css/infinite-scroll.css +8 -4
- package/dist/css/input-group.css +74 -26
- package/dist/css/kbd.css +1 -1
- package/dist/css/label.css +27 -11
- package/dist/css/layout.css +17 -10
- package/dist/css/list.css +13 -9
- package/dist/css/listbox.css +12 -7
- package/dist/css/loading-bar.css +3 -0
- package/dist/css/mention.css +10 -8
- package/dist/css/menu.css +10 -5
- package/dist/css/menubar.css +13 -8
- package/dist/css/navigation-menu.css +2 -2
- package/dist/css/notification.css +114 -31
- package/dist/css/number-animation.css +2 -2
- package/dist/css/number-field.css +60 -37
- package/dist/css/page-header.css +63 -26
- package/dist/css/pagination.css +35 -38
- package/dist/css/password-input.css +10 -66
- package/dist/css/pin-input.css +18 -26
- package/dist/css/popconfirm.css +20 -11
- package/dist/css/popover.css +18 -12
- package/dist/css/progress.css +14 -13
- package/dist/css/prompt-input.css +3 -3
- package/dist/css/question-flow.css +33 -7
- package/dist/css/radio-group.css +120 -55
- package/dist/css/rating.css +31 -14
- package/dist/css/select.css +14 -10
- package/dist/css/separator.css +22 -4
- package/dist/css/side-nav.css +16 -11
- package/dist/css/signature-pad.css +23 -9
- package/dist/css/skeleton.css +7 -7
- package/dist/css/slider.css +71 -42
- package/dist/css/sparkline.css +8 -2
- package/dist/css/spinner.css +40 -20
- package/dist/css/statistic.css +14 -14
- package/dist/css/steps.css +115 -84
- package/dist/css/switch.css +9 -7
- package/dist/css/table.css +27 -10
- package/dist/css/tabs.css +35 -12
- package/dist/css/tag-group.css +17 -6
- package/dist/css/tag.css +54 -29
- package/dist/css/tags-input.css +38 -19
- package/dist/css/text-field.css +5 -5
- package/dist/css/time-field.css +4 -4
- package/dist/css/time-picker.css +150 -64
- package/dist/css/time-range-picker.css +91 -62
- package/dist/css/timeline.css +37 -20
- package/dist/css/timer.css +3 -3
- package/dist/css/toggle-group.css +4 -4
- package/dist/css/tool-call.css +6 -4
- package/dist/css/toolbar.css +6 -5
- package/dist/css/tooltip.css +15 -16
- package/dist/css/tour.css +14 -7
- package/dist/css/transfer.css +22 -16
- package/dist/css/tree-select.css +10 -10
- package/dist/css/tree.css +26 -25
- package/dist/css/typography.css +28 -25
- package/dist/family/action-control.css +30 -24
- package/dist/family/chart.css +57 -0
- package/dist/family/collection-item.css +12 -8
- package/dist/family/field-chrome.css +28 -19
- package/dist/family/loading-ring.css +20 -13
- package/dist/family/swatch.css +4 -4
- package/dist/family/tag-list.css +6 -0
- package/family/action-control.css +30 -24
- package/family/chart.css +57 -0
- package/family/collection-item.css +12 -8
- package/family/field-chrome.css +28 -19
- package/family/loading-ring.css +20 -13
- package/family/swatch.css +4 -4
- package/family/tag-list.css +6 -0
- package/index.css +3580 -2060
- package/index.unlayered.css +3579 -2060
- package/package.json +2 -2
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
[data-xh-action-control] {
|
|
9
9
|
--xh-_action-current-highlight: var(--xh-action-highlight-rest, transparent);
|
|
10
10
|
--xh-_action-variant-bg-rest: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
11
|
-
--xh-_action-variant-fg-rest: var(--xh-_tone-fg, var(--xh-fg-
|
|
11
|
+
--xh-_action-variant-fg-rest: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
12
12
|
--xh-_action-variant-border-rest: transparent;
|
|
13
13
|
--xh-_action-variant-bg-hover: var(--xh-_tone-subtle-hover, var(--xh-bg-subtle-hover));
|
|
14
|
-
--xh-_action-variant-fg-hover: var(--xh-_tone-fg, var(--xh-fg-
|
|
14
|
+
--xh-_action-variant-fg-hover: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
15
15
|
--xh-_action-variant-border-hover: transparent;
|
|
16
16
|
--xh-_action-variant-bg-pressed: var(--xh-_tone-subtle-active, var(--xh-bg-subtle-active));
|
|
17
|
-
--xh-_action-variant-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-
|
|
17
|
+
--xh-_action-variant-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
18
18
|
--xh-_action-variant-border-pressed: transparent;
|
|
19
19
|
--xh-_action-variant-bg-focus-visible: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
20
|
-
--xh-_action-variant-fg-focus-visible: var(--xh-_tone-fg, var(--xh-fg-
|
|
20
|
+
--xh-_action-variant-fg-focus-visible: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
21
21
|
--xh-_action-variant-border-focus-visible: transparent;
|
|
22
22
|
--xh-_action-variant-bg-disabled: var(--xh-bg-subtle);
|
|
23
23
|
--xh-_action-variant-fg-disabled: var(--xh-fg-disabled);
|
|
24
24
|
--xh-_action-variant-border-disabled: transparent;
|
|
25
25
|
--xh-_action-variant-bg-loading: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
26
|
-
--xh-_action-variant-fg-loading: var(--xh-_tone-fg, var(--xh-fg-
|
|
26
|
+
--xh-_action-variant-fg-loading: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
27
27
|
--xh-_action-variant-border-loading: transparent;
|
|
28
28
|
|
|
29
29
|
position: relative;
|
|
@@ -60,6 +60,12 @@
|
|
|
60
60
|
scale var(--xh-motion-duration-release) var(--xh-motion-ease-release);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
@supports (justify-content: safe center) {
|
|
64
|
+
[data-xh-action-control] {
|
|
65
|
+
justify-content: safe center;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
63
69
|
[data-xh-action-control][data-xh-action-variant='solid'] {
|
|
64
70
|
--xh-_action-variant-bg-rest: var(--xh-_tone, var(--xh-bg-brand));
|
|
65
71
|
--xh-_action-variant-fg-rest: var(--xh-_tone-on, var(--xh-fg-on-brand));
|
|
@@ -83,42 +89,42 @@
|
|
|
83
89
|
|
|
84
90
|
[data-xh-action-control][data-xh-action-variant='subtle'] {
|
|
85
91
|
--xh-_action-variant-bg-rest: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
86
|
-
--xh-_action-variant-fg-rest: var(--xh-_tone-fg, var(--xh-fg-
|
|
92
|
+
--xh-_action-variant-fg-rest: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
87
93
|
--xh-_action-variant-border-rest: transparent;
|
|
88
94
|
--xh-_action-variant-bg-hover: var(--xh-_tone-subtle-hover, var(--xh-bg-subtle-hover));
|
|
89
|
-
--xh-_action-variant-fg-hover: var(--xh-_tone-fg, var(--xh-fg-
|
|
95
|
+
--xh-_action-variant-fg-hover: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
90
96
|
--xh-_action-variant-border-hover: transparent;
|
|
91
97
|
--xh-_action-variant-bg-pressed: var(--xh-_tone-subtle-active, var(--xh-bg-subtle-active));
|
|
92
|
-
--xh-_action-variant-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-
|
|
98
|
+
--xh-_action-variant-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
93
99
|
--xh-_action-variant-border-pressed: transparent;
|
|
94
100
|
--xh-_action-variant-bg-focus-visible: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
95
|
-
--xh-_action-variant-fg-focus-visible: var(--xh-_tone-fg, var(--xh-fg-
|
|
101
|
+
--xh-_action-variant-fg-focus-visible: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
96
102
|
--xh-_action-variant-border-focus-visible: transparent;
|
|
97
103
|
--xh-_action-variant-bg-disabled: var(--xh-bg-subtle);
|
|
98
104
|
--xh-_action-variant-fg-disabled: var(--xh-fg-disabled);
|
|
99
105
|
--xh-_action-variant-border-disabled: transparent;
|
|
100
106
|
--xh-_action-variant-bg-loading: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
101
|
-
--xh-_action-variant-fg-loading: var(--xh-_tone-fg, var(--xh-fg-
|
|
107
|
+
--xh-_action-variant-fg-loading: var(--xh-_tone-fg, var(--xh-fg-muted));
|
|
102
108
|
--xh-_action-variant-border-loading: transparent;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
[data-xh-action-control][data-xh-action-variant='outline'] {
|
|
106
|
-
--xh-_action-variant-bg-rest: transparent;
|
|
112
|
+
--xh-_action-variant-bg-rest: var(--xh-_tone-subtle, transparent);
|
|
107
113
|
--xh-_action-variant-fg-rest: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
108
114
|
--xh-_action-variant-border-rest: var(--xh-_tone-border-control, var(--xh-border-control));
|
|
109
|
-
--xh-_action-variant-bg-hover: var(--xh-_tone-subtle, var(--xh-action-host-bg-hover, var(--xh-bg-subtle)));
|
|
115
|
+
--xh-_action-variant-bg-hover: var(--xh-_tone-subtle-hover, var(--xh-action-host-bg-hover, var(--xh-bg-subtle)));
|
|
110
116
|
--xh-_action-variant-fg-hover: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
111
117
|
--xh-_action-variant-border-hover: var(--xh-_tone-border-control, var(--xh-border-control-hover));
|
|
112
|
-
--xh-_action-variant-bg-pressed: var(--xh-_tone-subtle-
|
|
118
|
+
--xh-_action-variant-bg-pressed: var(--xh-_tone-subtle-active, var(--xh-action-host-bg-pressed, var(--xh-bg-subtle-hover)));
|
|
113
119
|
--xh-_action-variant-fg-pressed: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
114
120
|
--xh-_action-variant-border-pressed: var(--xh-_tone-border-control, var(--xh-border-control-hover));
|
|
115
|
-
--xh-_action-variant-bg-focus-visible: transparent;
|
|
121
|
+
--xh-_action-variant-bg-focus-visible: var(--xh-_tone-subtle, transparent);
|
|
116
122
|
--xh-_action-variant-fg-focus-visible: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
117
123
|
--xh-_action-variant-border-focus-visible: var(--xh-_tone-border-control, var(--xh-border-control));
|
|
118
124
|
--xh-_action-variant-bg-disabled: transparent;
|
|
119
125
|
--xh-_action-variant-fg-disabled: var(--xh-fg-disabled);
|
|
120
126
|
--xh-_action-variant-border-disabled: var(--xh-border-default);
|
|
121
|
-
--xh-_action-variant-bg-loading: transparent;
|
|
127
|
+
--xh-_action-variant-bg-loading: var(--xh-_tone-subtle, transparent);
|
|
122
128
|
--xh-_action-variant-fg-loading: var(--xh-_tone-fg, var(--xh-fg-default));
|
|
123
129
|
--xh-_action-variant-border-loading: var(--xh-_tone-border-control, var(--xh-border-control));
|
|
124
130
|
}
|
|
@@ -176,7 +182,7 @@
|
|
|
176
182
|
|
|
177
183
|
[data-xh-action-control][data-xh-action-size='sm'] {
|
|
178
184
|
--xh-_action-profile-visual-size: var(--xh-control-h-sm);
|
|
179
|
-
--xh-_action-profile-padding-inline: var(--xh-
|
|
185
|
+
--xh-_action-profile-padding-inline: var(--xh-space-3);
|
|
180
186
|
--xh-_action-profile-padding-block: 0;
|
|
181
187
|
--xh-_action-profile-gap: var(--xh-control-gap-sm);
|
|
182
188
|
--xh-_action-profile-glyph-size: var(--xh-glyph-size-sm);
|
|
@@ -185,7 +191,7 @@
|
|
|
185
191
|
|
|
186
192
|
[data-xh-action-control][data-xh-action-size='md'] {
|
|
187
193
|
--xh-_action-profile-visual-size: var(--xh-control-h-md);
|
|
188
|
-
--xh-_action-profile-padding-inline: var(--xh-
|
|
194
|
+
--xh-_action-profile-padding-inline: var(--xh-space-4);
|
|
189
195
|
--xh-_action-profile-padding-block: 0;
|
|
190
196
|
--xh-_action-profile-gap: var(--xh-control-gap-md);
|
|
191
197
|
--xh-_action-profile-glyph-size: var(--xh-glyph-size-md);
|
|
@@ -194,7 +200,7 @@
|
|
|
194
200
|
|
|
195
201
|
[data-xh-action-control][data-xh-action-size='lg'] {
|
|
196
202
|
--xh-_action-profile-visual-size: var(--xh-control-h-lg);
|
|
197
|
-
--xh-_action-profile-padding-inline: var(--xh-
|
|
203
|
+
--xh-_action-profile-padding-inline: var(--xh-space-5);
|
|
198
204
|
--xh-_action-profile-padding-block: 0;
|
|
199
205
|
--xh-_action-profile-gap: var(--xh-control-gap-lg);
|
|
200
206
|
--xh-_action-profile-glyph-size: var(--xh-glyph-size-lg);
|
|
@@ -231,19 +237,19 @@
|
|
|
231
237
|
|
|
232
238
|
[data-xh-action-control][data-xh-action-profile='field-inset'][data-xh-action-size='sm'] {
|
|
233
239
|
--xh-_action-profile-visual-size: var(--xh-control-action-size);
|
|
234
|
-
--xh-_action-profile-glyph-size: var(--xh-control-indicator-
|
|
240
|
+
--xh-_action-profile-glyph-size: var(--xh-control-indicator-sm);
|
|
235
241
|
--xh-_action-profile-font-size: var(--xh-control-caption-sm);
|
|
236
242
|
}
|
|
237
243
|
|
|
238
244
|
[data-xh-action-control][data-xh-action-profile='field-inset'][data-xh-action-size='md'] {
|
|
239
245
|
--xh-_action-profile-visual-size: var(--xh-control-h-sm);
|
|
240
|
-
--xh-_action-profile-glyph-size: var(--xh-
|
|
246
|
+
--xh-_action-profile-glyph-size: var(--xh-control-indicator-sm);
|
|
241
247
|
--xh-_action-profile-font-size: var(--xh-control-caption-md);
|
|
242
248
|
}
|
|
243
249
|
|
|
244
250
|
[data-xh-action-control][data-xh-action-profile='field-inset'][data-xh-action-size='lg'] {
|
|
245
251
|
--xh-_action-profile-visual-size: var(--xh-control-h-md);
|
|
246
|
-
--xh-_action-profile-glyph-size: var(--xh-
|
|
252
|
+
--xh-_action-profile-glyph-size: var(--xh-control-indicator-md);
|
|
247
253
|
--xh-_action-profile-font-size: var(--xh-control-caption-lg);
|
|
248
254
|
}
|
|
249
255
|
|
|
@@ -285,14 +291,17 @@
|
|
|
285
291
|
}
|
|
286
292
|
|
|
287
293
|
[data-xh-action-control][data-xh-action-profile='row'][data-xh-action-size='sm'] {
|
|
294
|
+
--xh-_action-profile-padding-inline: var(--xh-control-px-sm);
|
|
288
295
|
--xh-_action-profile-padding-block: var(--xh-list-option-py-sm);
|
|
289
296
|
}
|
|
290
297
|
|
|
291
298
|
[data-xh-action-control][data-xh-action-profile='row'][data-xh-action-size='md'] {
|
|
299
|
+
--xh-_action-profile-padding-inline: var(--xh-control-px-md);
|
|
292
300
|
--xh-_action-profile-padding-block: var(--xh-list-option-py-md);
|
|
293
301
|
}
|
|
294
302
|
|
|
295
303
|
[data-xh-action-control][data-xh-action-profile='row'][data-xh-action-size='lg'] {
|
|
304
|
+
--xh-_action-profile-padding-inline: var(--xh-control-px-lg);
|
|
296
305
|
--xh-_action-profile-padding-block: var(--xh-list-option-py-lg);
|
|
297
306
|
}
|
|
298
307
|
|
|
@@ -314,17 +323,14 @@
|
|
|
314
323
|
}
|
|
315
324
|
|
|
316
325
|
[data-xh-action-control][data-xh-action-profile='disclosure-trigger'][data-xh-action-size='sm'] {
|
|
317
|
-
--xh-_action-profile-padding-inline: var(--xh-space-3);
|
|
318
326
|
--xh-_action-profile-padding-block: var(--xh-space-3);
|
|
319
327
|
}
|
|
320
328
|
|
|
321
329
|
[data-xh-action-control][data-xh-action-profile='disclosure-trigger'][data-xh-action-size='md'] {
|
|
322
|
-
--xh-_action-profile-padding-inline: var(--xh-space-4);
|
|
323
330
|
--xh-_action-profile-padding-block: var(--xh-space-4);
|
|
324
331
|
}
|
|
325
332
|
|
|
326
333
|
[data-xh-action-control][data-xh-action-profile='disclosure-trigger'][data-xh-action-size='lg'] {
|
|
327
|
-
--xh-_action-profile-padding-inline: var(--xh-space-5);
|
|
328
334
|
--xh-_action-profile-padding-block: var(--xh-space-5);
|
|
329
335
|
}
|
|
330
336
|
|
package/family/chart.css
CHANGED
|
@@ -7,6 +7,63 @@
|
|
|
7
7
|
|
|
8
8
|
/* 转圈与淡入关键帧由 motion.css 提供:引入本配方的图表皮肤同时 @import 它;家族文件之间不互相引入,
|
|
9
9
|
全量入口里每份家族只内联一次。 */
|
|
10
|
+
|
|
11
|
+
/* 几何度量登记成长度:计算值是算好的像素,内核读到的圆角、间隙与柱厚上限跟着 calc() / max() 写法走。
|
|
12
|
+
要继承:部件从根上取同一份度量 */
|
|
13
|
+
@property --xh-_chart-metric-bar-max {
|
|
14
|
+
syntax: '<length>';
|
|
15
|
+
inherits: true;
|
|
16
|
+
initial-value: 0px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@property --xh-_chart-metric-gap {
|
|
20
|
+
syntax: '<length>';
|
|
21
|
+
inherits: true;
|
|
22
|
+
initial-value: 0px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@property --xh-_chart-metric-line-width {
|
|
26
|
+
syntax: '<length>';
|
|
27
|
+
inherits: true;
|
|
28
|
+
initial-value: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@property --xh-_chart-metric-point-size {
|
|
32
|
+
syntax: '<length>';
|
|
33
|
+
inherits: true;
|
|
34
|
+
initial-value: 0px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@property --xh-_chart-metric-hit-min {
|
|
38
|
+
syntax: '<length>';
|
|
39
|
+
inherits: true;
|
|
40
|
+
initial-value: 0px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@property --xh-_chart-metric-tick-length {
|
|
44
|
+
syntax: '<length>';
|
|
45
|
+
inherits: true;
|
|
46
|
+
initial-value: 0px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@property --xh-_chart-metric-label-gap {
|
|
50
|
+
syntax: '<length>';
|
|
51
|
+
inherits: true;
|
|
52
|
+
initial-value: 0px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@property --xh-_chart-metric-radius {
|
|
56
|
+
syntax: '<length>';
|
|
57
|
+
inherits: true;
|
|
58
|
+
initial-value: 0px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@property --xh-_chart-metric-font-size {
|
|
62
|
+
syntax: '<length>';
|
|
63
|
+
inherits: true;
|
|
64
|
+
initial-value: 0px;
|
|
65
|
+
}
|
|
66
|
+
|
|
10
67
|
@layer xihan.components {
|
|
11
68
|
/* 根不画外边、不填底,透出宿主面;需要框时由作者放进 Card。提示框按根的内边距盒绝对定位,参照系就是它;
|
|
12
69
|
它抬的那一层只在根里排序。图随容器铺满:在 flex / grid 里也不按内容收缩成默认的 300px */
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
grid-template-rows: auto minmax(0, max-content);
|
|
38
38
|
align-items: center;
|
|
39
39
|
min-inline-size: 0;
|
|
40
|
+
/* 定高行:锚定浮层里的集合(下拉、菜单、级联、命令面板)由皮肤经这支桥接槽接上按档的行高,
|
|
41
|
+
一行文字的行落在这一档、带说明的行照常撑高;条目在 reset 里已是 border-box,行高就是可见盒高。
|
|
42
|
+
overlay 语境同时覆盖页内列表、树与时间格,它们不接这支槽,仍由内距加一行文字撑开 */
|
|
43
|
+
min-block-size: var(--xh-collection-row-h, auto);
|
|
40
44
|
padding-block: var(--xh-collection-block-padding, var(--xh-_collection-block-padding));
|
|
41
45
|
padding-inline: var(--xh-collection-inline-padding, var(--xh-_collection-inline-padding));
|
|
42
46
|
border-radius: var(--xh-collection-radius, var(--xh-shape-control));
|
|
@@ -217,7 +221,7 @@
|
|
|
217
221
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-selected, var(--xh-material-frosted-fg-muted));
|
|
218
222
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-selected, var(--xh-fg-brand));
|
|
219
223
|
--xh-_collection-outline: var(--xh-collection-outline-selected, transparent);
|
|
220
|
-
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected, var(--xh-font-weight-
|
|
224
|
+
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected, var(--xh-font-weight-medium));
|
|
221
225
|
--xh-_collection-cursor: var(--xh-collection-cursor-selected, pointer);
|
|
222
226
|
--xh-_collection-opacity: var(--xh-collection-opacity-selected, 1);
|
|
223
227
|
}
|
|
@@ -228,7 +232,7 @@
|
|
|
228
232
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-selected-hover, var(--xh-material-frosted-fg-muted));
|
|
229
233
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-selected-hover, var(--xh-fg-brand));
|
|
230
234
|
--xh-_collection-outline: var(--xh-collection-outline-selected-hover, transparent);
|
|
231
|
-
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-hover, var(--xh-font-weight-
|
|
235
|
+
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-hover, var(--xh-font-weight-medium));
|
|
232
236
|
--xh-_collection-cursor: var(--xh-collection-cursor-selected-hover, pointer);
|
|
233
237
|
--xh-_collection-opacity: var(--xh-collection-opacity-selected-hover, 1);
|
|
234
238
|
}
|
|
@@ -239,7 +243,7 @@
|
|
|
239
243
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-selected-highlight, var(--xh-material-frosted-fg-muted));
|
|
240
244
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-selected-highlight, var(--xh-fg-brand));
|
|
241
245
|
--xh-_collection-outline: var(--xh-collection-outline-selected-highlight, var(--xh-ring-focus));
|
|
242
|
-
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-highlight, var(--xh-font-weight-
|
|
246
|
+
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-highlight, var(--xh-font-weight-medium));
|
|
243
247
|
--xh-_collection-cursor: var(--xh-collection-cursor-selected-highlight, pointer);
|
|
244
248
|
--xh-_collection-opacity: var(--xh-collection-opacity-selected-highlight, 1);
|
|
245
249
|
}
|
|
@@ -250,7 +254,7 @@
|
|
|
250
254
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-selected-pressed, var(--xh-material-frosted-fg-muted));
|
|
251
255
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-selected-pressed, var(--xh-fg-brand));
|
|
252
256
|
--xh-_collection-outline: var(--xh-collection-outline-selected-pressed, transparent);
|
|
253
|
-
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-pressed, var(--xh-font-weight-
|
|
257
|
+
--xh-_collection-font-weight: var(--xh-collection-font-weight-selected-pressed, var(--xh-font-weight-medium));
|
|
254
258
|
--xh-_collection-cursor: var(--xh-collection-cursor-selected-pressed, pointer);
|
|
255
259
|
--xh-_collection-opacity: var(--xh-collection-opacity-selected-pressed, 1);
|
|
256
260
|
}
|
|
@@ -403,7 +407,7 @@
|
|
|
403
407
|
|
|
404
408
|
[data-xh-collection-item][data-xh-collection-context='nav'][data-current]:not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error]) {
|
|
405
409
|
--xh-_collection-bg: var(--xh-collection-bg-current, transparent);
|
|
406
|
-
--xh-_collection-fg: var(--xh-collection-fg-current, var(--xh-fg-brand
|
|
410
|
+
--xh-_collection-fg: var(--xh-collection-fg-current, var(--xh-fg-brand));
|
|
407
411
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-current, var(--xh-fg-muted));
|
|
408
412
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-current, var(--xh-fg-brand));
|
|
409
413
|
--xh-_collection-outline: var(--xh-collection-outline-current, transparent);
|
|
@@ -414,7 +418,7 @@
|
|
|
414
418
|
|
|
415
419
|
[data-xh-collection-item][data-xh-collection-context='nav'][data-current]:not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error]):hover {
|
|
416
420
|
--xh-_collection-bg: var(--xh-collection-bg-current-hover, var(--xh-bg-subtle));
|
|
417
|
-
--xh-_collection-fg: var(--xh-collection-fg-current-hover, var(--xh-fg-brand
|
|
421
|
+
--xh-_collection-fg: var(--xh-collection-fg-current-hover, var(--xh-fg-brand));
|
|
418
422
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-current-hover, var(--xh-fg-muted));
|
|
419
423
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-current-hover, var(--xh-fg-brand));
|
|
420
424
|
--xh-_collection-outline: var(--xh-collection-outline-current-hover, transparent);
|
|
@@ -425,7 +429,7 @@
|
|
|
425
429
|
|
|
426
430
|
[data-xh-collection-item][data-xh-collection-context='nav'][data-current]:not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error]):is(:focus-visible, [data-highlighted]) {
|
|
427
431
|
--xh-_collection-bg: var(--xh-collection-bg-current-highlight, var(--xh-bg-subtle));
|
|
428
|
-
--xh-_collection-fg: var(--xh-collection-fg-current-highlight, var(--xh-fg-brand
|
|
432
|
+
--xh-_collection-fg: var(--xh-collection-fg-current-highlight, var(--xh-fg-brand));
|
|
429
433
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-current-highlight, var(--xh-fg-muted));
|
|
430
434
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-current-highlight, var(--xh-fg-brand));
|
|
431
435
|
--xh-_collection-outline: var(--xh-collection-outline-current-highlight, var(--xh-ring-focus));
|
|
@@ -436,7 +440,7 @@
|
|
|
436
440
|
|
|
437
441
|
[data-xh-collection-item][data-xh-collection-context='nav'][data-current]:not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error]):is(:active, [data-pressed]) {
|
|
438
442
|
--xh-_collection-bg: var(--xh-collection-bg-current-pressed, var(--xh-bg-subtle-hover));
|
|
439
|
-
--xh-_collection-fg: var(--xh-collection-fg-current-pressed, var(--xh-fg-brand
|
|
443
|
+
--xh-_collection-fg: var(--xh-collection-fg-current-pressed, var(--xh-fg-brand));
|
|
440
444
|
--xh-_collection-description-fg: var(--xh-collection-description-fg-current-pressed, var(--xh-fg-muted));
|
|
441
445
|
--xh-_collection-indicator-fg: var(--xh-collection-indicator-fg-current-pressed, var(--xh-fg-brand));
|
|
442
446
|
--xh-_collection-outline: var(--xh-collection-outline-current-pressed, transparent);
|
package/family/field-chrome.css
CHANGED
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
padding-inline: var(--xh-field-control-padding-inline, var(--xh-_field-size-padding-inline));
|
|
19
19
|
padding-block: 0;
|
|
20
20
|
--xh-icon-size: var(--xh-field-glyph-size, var(--xh-_field-size-glyph-size));
|
|
21
|
-
--xh-_field-variant-bg-rest:
|
|
21
|
+
--xh-_field-variant-bg-rest: var(--xh-bg-field);
|
|
22
22
|
--xh-_field-variant-border-rest: var(--xh-border-control);
|
|
23
|
-
--xh-_field-variant-bg-hover:
|
|
24
|
-
--xh-_field-variant-border-hover: var(--xh-border-
|
|
23
|
+
--xh-_field-variant-bg-hover: var(--xh-bg-field);
|
|
24
|
+
--xh-_field-variant-border-hover: var(--xh-border-strong);
|
|
25
|
+
--xh-_field-variant-bg-focus: var(--xh-bg-surface);
|
|
25
26
|
--xh-_field-variant-border-focus: var(--xh-border-control-focus);
|
|
27
|
+
--xh-_field-variant-bg-invalid: var(--xh-bg-field-invalid);
|
|
26
28
|
--xh-_field-variant-border-invalid: var(--xh-border-invalid);
|
|
27
29
|
--xh-_field-variant-bg-read-only: var(--xh-bg-subtle);
|
|
28
30
|
--xh-_field-variant-bg-disabled: var(--xh-bg-subtle);
|
|
29
31
|
--xh-_field-variant-border-disabled: var(--xh-border-default);
|
|
30
32
|
border: var(--xh-stroke-thin) solid var(--xh-field-border-rest, var(--xh-_field-variant-border-rest));
|
|
31
33
|
border-radius: var(--xh-field-control-radius, var(--xh-shape-control));
|
|
32
|
-
outline: var(--xh-ring-width) solid transparent;
|
|
33
|
-
outline-offset: var(--xh-ring-offset);
|
|
34
34
|
background-color: var(--xh-field-bg-rest, var(--xh-_field-variant-bg-rest));
|
|
35
35
|
color: var(--xh-field-fg-rest, var(--xh-fg-default));
|
|
36
36
|
box-shadow: var(--xh-field-shadow-rest, none);
|
|
@@ -42,11 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
[data-xh-field-chrome][data-variant='outline'] {
|
|
45
|
-
--xh-_field-variant-bg-rest:
|
|
45
|
+
--xh-_field-variant-bg-rest: var(--xh-bg-field);
|
|
46
46
|
--xh-_field-variant-border-rest: var(--xh-border-control);
|
|
47
|
-
--xh-_field-variant-bg-hover:
|
|
48
|
-
--xh-_field-variant-border-hover: var(--xh-border-
|
|
47
|
+
--xh-_field-variant-bg-hover: var(--xh-bg-field);
|
|
48
|
+
--xh-_field-variant-border-hover: var(--xh-border-strong);
|
|
49
|
+
--xh-_field-variant-bg-focus: var(--xh-bg-surface);
|
|
49
50
|
--xh-_field-variant-border-focus: var(--xh-border-control-focus);
|
|
51
|
+
--xh-_field-variant-bg-invalid: var(--xh-bg-field-invalid);
|
|
50
52
|
--xh-_field-variant-border-invalid: var(--xh-border-invalid);
|
|
51
53
|
--xh-_field-variant-bg-read-only: var(--xh-bg-subtle);
|
|
52
54
|
--xh-_field-variant-bg-disabled: var(--xh-bg-subtle);
|
|
@@ -58,7 +60,9 @@
|
|
|
58
60
|
--xh-_field-variant-border-rest: transparent;
|
|
59
61
|
--xh-_field-variant-bg-hover: var(--xh-_tone-subtle-hover, var(--xh-bg-subtle-hover));
|
|
60
62
|
--xh-_field-variant-border-hover: var(--xh-border-control);
|
|
63
|
+
--xh-_field-variant-bg-focus: var(--xh-_tone-subtle, var(--xh-bg-subtle));
|
|
61
64
|
--xh-_field-variant-border-focus: var(--xh-border-control-focus);
|
|
65
|
+
--xh-_field-variant-bg-invalid: var(--xh-bg-field-invalid);
|
|
62
66
|
--xh-_field-variant-border-invalid: var(--xh-border-invalid);
|
|
63
67
|
--xh-_field-variant-bg-read-only: var(--xh-bg-subtle);
|
|
64
68
|
--xh-_field-variant-bg-disabled: var(--xh-bg-subtle);
|
|
@@ -70,7 +74,9 @@
|
|
|
70
74
|
--xh-_field-variant-border-rest: transparent;
|
|
71
75
|
--xh-_field-variant-bg-hover: color-mix(in oklab, var(--xh-bg-subtle) 45%, transparent);
|
|
72
76
|
--xh-_field-variant-border-hover: var(--xh-border-control);
|
|
77
|
+
--xh-_field-variant-bg-focus: transparent;
|
|
73
78
|
--xh-_field-variant-border-focus: var(--xh-border-control-focus);
|
|
79
|
+
--xh-_field-variant-bg-invalid: var(--xh-bg-field-invalid);
|
|
74
80
|
--xh-_field-variant-border-invalid: var(--xh-border-invalid);
|
|
75
81
|
--xh-_field-variant-bg-read-only: var(--xh-bg-subtle);
|
|
76
82
|
--xh-_field-variant-bg-disabled: var(--xh-bg-subtle);
|
|
@@ -125,18 +131,18 @@
|
|
|
125
131
|
flex-wrap: wrap;
|
|
126
132
|
block-size: auto;
|
|
127
133
|
min-block-size: var(--xh-field-control-height, var(--xh-_field-size-control-height));
|
|
128
|
-
padding-block: var(--xh-space-
|
|
134
|
+
padding-block: var(--xh-space-0_5);
|
|
129
135
|
}
|
|
130
136
|
|
|
131
|
-
[data-xh-field-chrome]:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-loading]):hover {
|
|
137
|
+
[data-xh-field-chrome]:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-loading]):not(:focus-within):hover {
|
|
132
138
|
background-color: var(--xh-field-bg-hover, var(--xh-_field-variant-bg-hover));
|
|
133
139
|
border-color: var(--xh-field-border-hover, var(--xh-_field-variant-border-hover));
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
[data-xh-field-chrome]:focus-within:not([data-disabled]) {
|
|
143
|
+
background-color: var(--xh-field-bg-focus, var(--xh-_field-variant-bg-focus));
|
|
137
144
|
border-color: var(--xh-field-border-focus, var(--xh-_field-variant-border-focus));
|
|
138
|
-
outline:
|
|
139
|
-
outline-offset: var(--xh-ring-offset);
|
|
145
|
+
outline: none;
|
|
140
146
|
}
|
|
141
147
|
|
|
142
148
|
[data-xh-field-chrome][data-readonly] {
|
|
@@ -150,13 +156,10 @@
|
|
|
150
156
|
}
|
|
151
157
|
|
|
152
158
|
[data-xh-field-chrome][data-invalid] {
|
|
159
|
+
background-color: var(--xh-field-bg-invalid, var(--xh-_field-variant-bg-invalid));
|
|
153
160
|
border-color: var(--xh-field-border-invalid, var(--xh-_field-variant-border-invalid));
|
|
154
161
|
}
|
|
155
162
|
|
|
156
|
-
[data-xh-field-chrome][data-invalid]:focus-within:not([data-disabled]) {
|
|
157
|
-
outline-color: var(--xh-field-ring-invalid, var(--xh-ring-invalid));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
163
|
[data-xh-field-chrome][data-disabled] {
|
|
161
164
|
background-color: var(--xh-field-bg-disabled, var(--xh-_field-variant-bg-disabled));
|
|
162
165
|
color: var(--xh-field-fg-disabled, var(--xh-fg-disabled));
|
|
@@ -164,6 +167,11 @@
|
|
|
164
167
|
cursor: var(--xh-field-cursor-disabled, not-allowed);
|
|
165
168
|
}
|
|
166
169
|
|
|
170
|
+
[data-xh-field-chrome]:not([data-variant='ghost']):not(:focus-within) {
|
|
171
|
+
--xh-action-host-bg-hover: var(--xh-bg-subtle-hover);
|
|
172
|
+
--xh-action-host-bg-pressed: var(--xh-bg-subtle-active);
|
|
173
|
+
}
|
|
174
|
+
|
|
167
175
|
[data-xh-field-affix] {
|
|
168
176
|
display: inline-flex;
|
|
169
177
|
flex: none;
|
|
@@ -215,7 +223,7 @@
|
|
|
215
223
|
[data-xh-field-input][data-xh-field-layout='textarea'] {
|
|
216
224
|
block-size: auto;
|
|
217
225
|
max-inline-size: 100%;
|
|
218
|
-
padding-block: var(--xh-field-textarea-padding-block, var(--xh-space-
|
|
226
|
+
padding-block: var(--xh-field-textarea-padding-block, var(--xh-space-1));
|
|
219
227
|
overflow: auto;
|
|
220
228
|
resize: vertical;
|
|
221
229
|
}
|
|
@@ -244,13 +252,14 @@
|
|
|
244
252
|
opacity: 1;
|
|
245
253
|
}
|
|
246
254
|
|
|
247
|
-
[data-xh-field-chrome]:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-loading]):hover {
|
|
255
|
+
[data-xh-field-chrome]:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-loading]):not(:focus-within):hover {
|
|
248
256
|
border-color: Highlight;
|
|
249
257
|
}
|
|
250
258
|
|
|
251
259
|
[data-xh-field-chrome]:focus-within:not([data-disabled]) {
|
|
252
260
|
border-color: Highlight;
|
|
253
|
-
outline
|
|
261
|
+
outline: var(--xh-ring-width) solid Highlight;
|
|
262
|
+
outline-offset: var(--xh-ring-offset);
|
|
254
263
|
}
|
|
255
264
|
|
|
256
265
|
[data-xh-field-chrome][data-readonly] {
|
package/family/loading-ring.css
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
* 加载环家族配方:「这里正在等」的那枚圆环,与 Spinner
|
|
8
|
-
*
|
|
7
|
+
* 加载环家族配方:「这里正在等」的那枚圆环,与 Spinner 环档同一副画法——一段 270° 的弧,
|
|
8
|
+
* 不画轨道,起始边留空,绕中心匀速转,缺口转起来就看得出方向。
|
|
9
9
|
*
|
|
10
10
|
* 连接层在承载者上投影 data-xh-loading-ring,并用共享的 data-loading 说此刻在不在等。
|
|
11
11
|
* 环画在承载者的 ::before 上:伪元素有没有、多大、摆在哪由皮肤决定(皮肤写 content 与尺寸),
|
|
12
12
|
* 配方只负责把它画成环、随 data-loading 淡入淡出并转停。收起时环停在当前角度淡出,
|
|
13
13
|
* 与皮肤里接替它的那枚字形交叉淡变;不在等时不转。
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* 环粗取 --xh-stroke-thick;弧色走私有槽 --xh-_loading-ring-fg,皮肤按自己的语气与公开槽给,
|
|
16
|
+
* 没给时取品牌色(与 Spinner 同一枚);压在动作钮上的那一档没给时随钮的字色。转一圈的时长走私有槽 --xh-_loading-ring-duration,
|
|
17
17
|
* 皮肤把自己的公开时长槽接进来,没给时取 --xh-motion-loop-spin。
|
|
18
18
|
*
|
|
19
19
|
* 进行中的动作钮投影 data-xh-loading-ring="overlay":环居中压在钮上、不占排布,钮宽不变,直径取钮的图标档。
|
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
*/
|
|
26
26
|
@layer xihan.components {
|
|
27
27
|
[data-xh-loading-ring]::before {
|
|
28
|
+
--xh-_loading-ring-color: var(--xh-_loading-ring-fg, var(--xh-fg-brand));
|
|
29
|
+
|
|
28
30
|
/* 环粗算进直径,换厚度不会把环撑大 */
|
|
29
31
|
box-sizing: border-box;
|
|
30
|
-
border: var(--xh-stroke-thick) solid var(--xh-
|
|
31
|
-
border-block-start-color:
|
|
32
|
+
border: var(--xh-stroke-thick) solid var(--xh-_loading-ring-color);
|
|
33
|
+
border-block-start-color: transparent;
|
|
32
34
|
border-radius: var(--xh-shape-circle);
|
|
33
35
|
/* 承载者的这枚伪元素在别的状态下可能画着字形:环不带底、不带遮罩 */
|
|
34
36
|
background: none;
|
|
@@ -45,8 +47,11 @@
|
|
|
45
47
|
animation-play-state: running;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
/* 压在动作钮上的环:钮是定位盒(Action Control 给 position: relative
|
|
50
|
+
/* 压在动作钮上的环:钮是定位盒(Action Control 给 position: relative),环在钮正中、不进排布;
|
|
51
|
+
弧色没给时随钮的字色(实心钮上是钮面的前景色,不是品牌色) */
|
|
49
52
|
[data-xh-loading-ring='overlay']::before {
|
|
53
|
+
--xh-_loading-ring-color: var(--xh-_loading-ring-fg, currentColor);
|
|
54
|
+
|
|
50
55
|
content: '';
|
|
51
56
|
position: absolute;
|
|
52
57
|
inset: 0;
|
|
@@ -66,30 +71,32 @@
|
|
|
66
71
|
@media (prefers-reduced-motion: reduce) {
|
|
67
72
|
[data-xh-loading-ring]::before {
|
|
68
73
|
border-style: dotted;
|
|
69
|
-
border-color: var(--xh-_loading-ring-
|
|
74
|
+
border-color: var(--xh-_loading-ring-color);
|
|
70
75
|
animation: none;
|
|
71
76
|
}
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
:where([data-motion='reduce']) [data-xh-loading-ring]::before {
|
|
75
80
|
border-style: dotted;
|
|
76
|
-
border-color: var(--xh-_loading-ring-
|
|
81
|
+
border-color: var(--xh-_loading-ring-color);
|
|
77
82
|
animation: none;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
@media print {
|
|
81
86
|
[data-xh-loading-ring]::before {
|
|
82
87
|
border-style: dotted;
|
|
83
|
-
border-color: var(--xh-_loading-ring-
|
|
88
|
+
border-color: var(--xh-_loading-ring-color);
|
|
84
89
|
animation: none;
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
/*
|
|
93
|
+
/* 强制色:弧取高亮色,缺口取画布色(不画轨道,缺口就是转向的读法);
|
|
94
|
+
退出强制换色,系统色直接写,缺口不被换成别的颜色 */
|
|
89
95
|
@media (forced-colors: active) {
|
|
90
96
|
[data-xh-loading-ring]::before {
|
|
91
|
-
|
|
92
|
-
border-
|
|
97
|
+
forced-color-adjust: none;
|
|
98
|
+
border-color: Highlight;
|
|
99
|
+
border-block-start-color: Canvas;
|
|
93
100
|
}
|
|
94
101
|
}
|
|
95
102
|
}
|
package/family/swatch.css
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
background-color: var(--xh-swatch-checker-base, var(--xh-bg-surface));
|
|
21
21
|
background-image:
|
|
22
22
|
linear-gradient(var(--xh-_swatch-color), var(--xh-_swatch-color)),
|
|
23
|
-
linear-gradient(45deg, var(--xh-swatch-checker, var(--xh-
|
|
24
|
-
linear-gradient(-45deg, var(--xh-swatch-checker, var(--xh-
|
|
25
|
-
linear-gradient(45deg, transparent 75%, var(--xh-swatch-checker, var(--xh-
|
|
26
|
-
linear-gradient(-45deg, transparent 75%, var(--xh-swatch-checker, var(--xh-
|
|
23
|
+
linear-gradient(45deg, var(--xh-swatch-checker, var(--xh-bg-subtle)) 25%, transparent 25%),
|
|
24
|
+
linear-gradient(-45deg, var(--xh-swatch-checker, var(--xh-bg-subtle)) 25%, transparent 25%),
|
|
25
|
+
linear-gradient(45deg, transparent 75%, var(--xh-swatch-checker, var(--xh-bg-subtle)) 75%),
|
|
26
|
+
linear-gradient(-45deg, transparent 75%, var(--xh-swatch-checker, var(--xh-bg-subtle)) 75%);
|
|
27
27
|
background-position:
|
|
28
28
|
0 0,
|
|
29
29
|
0 0,
|
package/family/tag-list.css
CHANGED
|
@@ -56,4 +56,10 @@
|
|
|
56
56
|
[data-xh-tag-list] > [data-scope='tag'][data-part='root'][data-count] {
|
|
57
57
|
flex: none;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
/* 盒里有标签时起始内衬收到 --xh-space-1:标签自带内距,行首再留一整段控件内衬就显得空。
|
|
61
|
+
标签自己的面(没聚焦时白底 + 描边)写在 tag.css 的字段宿主档 */
|
|
62
|
+
[data-xh-field-chrome]:has([data-xh-tag-list]:not([hidden])) {
|
|
63
|
+
padding-inline-start: var(--xh-space-1);
|
|
64
|
+
}
|
|
59
65
|
}
|