@clarusjs/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +20 -2
- package/package.json +41 -3
- package/src/ui.css +394 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Felix Orinda
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @clarusjs/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Thin, accessible styles for the parts in [`@clarusjs/ui-primitives`](https://clarusjs.com/guide/ui-primitives#parts):
|
|
4
|
+
one stylesheet over their `data-part` names and state attributes, light and dark.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
pnpm add @clarusjs/ui @clarusjs/ui-primitives
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```css
|
|
11
|
+
@import '@clarusjs/ui/ui.css';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
- **Change the look with tokens:** `--ui-bg`, `--ui-fg`, `--ui-muted`, `--ui-border`, `--ui-accent`, `--ui-accent-fg`,
|
|
15
|
+
`--ui-accent-soft`, `--ui-danger`, `--ui-shadow`, `--ui-radius`, `--ui-font`, on `:root` or any element around the
|
|
16
|
+
parts. Dark values follow `prefers-color-scheme`, or `data-theme="dark"` / `"light"` on the root element.
|
|
17
|
+
- **Your CSS always wins:** every selector is in `:where()`, so it weighs nothing.
|
|
18
|
+
- **Accessible defaults:** a visible focus ring on every part, an invalid field marked by its border (not colour
|
|
19
|
+
alone), and no transitions with reduced motion.
|
|
20
|
+
|
|
21
|
+
Every component, live: https://clarusjs.com/components/dialog
|
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clarusjs/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A styled set for @clarusjs/ui-primitives: design tokens and thin, accessible styles over the parts' data-part and state attributes, light and dark.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"src",
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./ui.css": "./src/ui.css",
|
|
14
|
+
"./*": "./src/*"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@clarusjs/ui-primitives": "^0.1.0"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/forinda/clarusjs.git",
|
|
25
|
+
"directory": "packages/ui"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"clarusjs",
|
|
29
|
+
"css",
|
|
30
|
+
"design-tokens",
|
|
31
|
+
"ui"
|
|
32
|
+
],
|
|
33
|
+
"homepage": "https://clarusjs.com/components",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/forinda/clarusjs/issues"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@clarusjs/ui-primitives": "^0.1.0",
|
|
39
|
+
"vitest": "^5.1.1"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"test": "vitest run"
|
|
43
|
+
}
|
|
6
44
|
}
|
package/src/ui.css
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@clarusjs/ui (#467): thin, accessible styles for @clarusjs/ui-primitives' parts, over their data-part names and
|
|
3
|
+
state attributes. Every selector is in :where(), so it weighs nothing: your own CSS always wins. Change the look with
|
|
4
|
+
the --ui- tokens (on :root, or on any element around the parts).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--ui-font: system-ui, sans-serif;
|
|
9
|
+
--ui-radius: 8px;
|
|
10
|
+
--ui-bg: #ffffff;
|
|
11
|
+
--ui-fg: #17202a;
|
|
12
|
+
--ui-muted: #5b6670;
|
|
13
|
+
--ui-border: #c9d1d9;
|
|
14
|
+
--ui-accent: #0b6e70;
|
|
15
|
+
--ui-accent-fg: #ffffff;
|
|
16
|
+
--ui-accent-soft: #e3f2f2;
|
|
17
|
+
--ui-danger: #b42318;
|
|
18
|
+
--ui-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
|
|
19
|
+
}
|
|
20
|
+
@media (prefers-color-scheme: dark) {
|
|
21
|
+
:root:not([data-theme='light']) {
|
|
22
|
+
--ui-bg: #121a1b;
|
|
23
|
+
--ui-fg: #e6eded;
|
|
24
|
+
--ui-muted: #9aa8a9;
|
|
25
|
+
--ui-border: #2c3a3b;
|
|
26
|
+
--ui-accent: #4cc9cb;
|
|
27
|
+
--ui-accent-fg: #0b1415;
|
|
28
|
+
--ui-accent-soft: #173233;
|
|
29
|
+
--ui-danger: #ff8a80;
|
|
30
|
+
--ui-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
:root[data-theme='dark'] {
|
|
34
|
+
--ui-bg: #121a1b;
|
|
35
|
+
--ui-fg: #e6eded;
|
|
36
|
+
--ui-muted: #9aa8a9;
|
|
37
|
+
--ui-border: #2c3a3b;
|
|
38
|
+
--ui-accent: #4cc9cb;
|
|
39
|
+
--ui-accent-fg: #0b1415;
|
|
40
|
+
--ui-accent-soft: #173233;
|
|
41
|
+
--ui-danger: #ff8a80;
|
|
42
|
+
--ui-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Focus is always visible, on every part and what's inside it. */
|
|
46
|
+
:where([data-part]):focus-visible,
|
|
47
|
+
:where([data-part]) :focus-visible {
|
|
48
|
+
outline: 2px solid var(--ui-accent);
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Buttons: triggers and closes. */
|
|
53
|
+
:where([data-part='trigger'], [data-part='close']) {
|
|
54
|
+
font: 600 14px var(--ui-font);
|
|
55
|
+
padding: 8px 14px;
|
|
56
|
+
border: 1px solid var(--ui-border);
|
|
57
|
+
border-radius: var(--ui-radius);
|
|
58
|
+
background: var(--ui-bg);
|
|
59
|
+
color: var(--ui-fg);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
:where([data-part='trigger'], [data-part='close']):hover {
|
|
63
|
+
border-color: var(--ui-accent);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Dialog: centred by the browser; the backdrop dims the page. */
|
|
67
|
+
:where([data-part='dialog']) {
|
|
68
|
+
max-width: min(32rem, calc(100vw - 32px));
|
|
69
|
+
padding: 20px 24px;
|
|
70
|
+
border: 1px solid var(--ui-border);
|
|
71
|
+
border-radius: calc(var(--ui-radius) * 1.5);
|
|
72
|
+
background: var(--ui-bg);
|
|
73
|
+
color: var(--ui-fg);
|
|
74
|
+
box-shadow: var(--ui-shadow);
|
|
75
|
+
font: 15px/1.5 var(--ui-font);
|
|
76
|
+
}
|
|
77
|
+
:where([data-part='dialog'])::backdrop {
|
|
78
|
+
background: rgb(0 0 0 / 0.45);
|
|
79
|
+
}
|
|
80
|
+
:where([data-part='title']) {
|
|
81
|
+
margin: 0 0 8px;
|
|
82
|
+
font-size: 18px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Popover: a little gap from its trigger, wherever it's placed. */
|
|
86
|
+
:where([data-part='popover']) {
|
|
87
|
+
margin: 6px;
|
|
88
|
+
padding: 12px 14px;
|
|
89
|
+
border: 1px solid var(--ui-border);
|
|
90
|
+
border-radius: var(--ui-radius);
|
|
91
|
+
background: var(--ui-bg);
|
|
92
|
+
color: var(--ui-fg);
|
|
93
|
+
box-shadow: var(--ui-shadow);
|
|
94
|
+
font: 14px/1.5 var(--ui-font);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Tooltip: small, inverted, a little gap from its trigger. */
|
|
98
|
+
:where([data-part='tooltip']) {
|
|
99
|
+
margin: 6px;
|
|
100
|
+
padding: 4px 8px;
|
|
101
|
+
border: 0;
|
|
102
|
+
border-radius: calc(var(--ui-radius) - 2px);
|
|
103
|
+
background: var(--ui-fg);
|
|
104
|
+
color: var(--ui-bg);
|
|
105
|
+
font: 13px/1.4 var(--ui-font);
|
|
106
|
+
max-width: 240px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Menu: the list below its trigger, items as full-width rows; the focused one is tinted. */
|
|
110
|
+
:where([data-part='menu']) {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
}
|
|
113
|
+
:where([data-part='menu-list']) {
|
|
114
|
+
margin: 4px 0;
|
|
115
|
+
padding: 4px;
|
|
116
|
+
min-width: 160px;
|
|
117
|
+
border: 1px solid var(--ui-border);
|
|
118
|
+
border-radius: var(--ui-radius);
|
|
119
|
+
background: var(--ui-bg);
|
|
120
|
+
color: var(--ui-fg);
|
|
121
|
+
box-shadow: var(--ui-shadow);
|
|
122
|
+
}
|
|
123
|
+
:where([data-part='menu-item']) {
|
|
124
|
+
display: block;
|
|
125
|
+
width: 100%;
|
|
126
|
+
padding: 6px 10px;
|
|
127
|
+
border: 0;
|
|
128
|
+
border-radius: calc(var(--ui-radius) - 2px);
|
|
129
|
+
background: none;
|
|
130
|
+
color: inherit;
|
|
131
|
+
font: 14px var(--ui-font);
|
|
132
|
+
text-align: start;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
}
|
|
135
|
+
:where([data-part='menu-item']):is(:hover, :focus-visible) {
|
|
136
|
+
background: var(--ui-accent-soft);
|
|
137
|
+
}
|
|
138
|
+
:where([data-part='menu-item'])[aria-disabled='true'] {
|
|
139
|
+
opacity: 0.55;
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Accordion. */
|
|
144
|
+
:where([data-part='accordion-item']) {
|
|
145
|
+
border-bottom: 1px solid var(--ui-border);
|
|
146
|
+
font: 15px/1.5 var(--ui-font);
|
|
147
|
+
color: var(--ui-fg);
|
|
148
|
+
}
|
|
149
|
+
:where([data-part='accordion-item']) > :where([data-part='trigger']) {
|
|
150
|
+
display: list-item;
|
|
151
|
+
padding: 10px 2px;
|
|
152
|
+
border: 0;
|
|
153
|
+
background: none;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
:where([data-part='panel']) {
|
|
157
|
+
padding: 0 2px 12px;
|
|
158
|
+
color: var(--ui-muted);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Tabs: a row of tabs over the panels; the selected one is underlined (not colour alone). */
|
|
162
|
+
:where([data-part='tabs']) {
|
|
163
|
+
font: 15px/1.5 var(--ui-font);
|
|
164
|
+
color: var(--ui-fg);
|
|
165
|
+
}
|
|
166
|
+
:where([data-part='tabs']) > :where([data-part='list']) {
|
|
167
|
+
display: flex;
|
|
168
|
+
gap: 4px;
|
|
169
|
+
border-bottom: 1px solid var(--ui-border);
|
|
170
|
+
}
|
|
171
|
+
:where([data-part='tab']) {
|
|
172
|
+
font: 600 14px var(--ui-font);
|
|
173
|
+
padding: 8px 12px;
|
|
174
|
+
margin-bottom: -1px;
|
|
175
|
+
border: 0;
|
|
176
|
+
border-bottom: 2px solid transparent;
|
|
177
|
+
background: none;
|
|
178
|
+
color: var(--ui-muted);
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
181
|
+
:where([data-part='tab'])[aria-selected='true'] {
|
|
182
|
+
border-bottom-color: var(--ui-accent);
|
|
183
|
+
color: var(--ui-fg);
|
|
184
|
+
}
|
|
185
|
+
:where([data-part='tabs']) > :where([data-part='panel']) {
|
|
186
|
+
padding: 12px 2px;
|
|
187
|
+
color: var(--ui-fg);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Switch and checkbox: the native input, tinted; the label next to it. */
|
|
191
|
+
:where([data-part='switch'], [data-part='checkbox']) {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: 8px;
|
|
195
|
+
font: 14px var(--ui-font);
|
|
196
|
+
color: var(--ui-fg);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
}
|
|
199
|
+
:where([data-part='switch'], [data-part='checkbox']) input {
|
|
200
|
+
accent-color: var(--ui-accent);
|
|
201
|
+
width: 18px;
|
|
202
|
+
height: 18px;
|
|
203
|
+
margin: 0;
|
|
204
|
+
}
|
|
205
|
+
:where([data-part='switch']) input {
|
|
206
|
+
appearance: none;
|
|
207
|
+
width: 36px;
|
|
208
|
+
height: 20px;
|
|
209
|
+
border-radius: 999px;
|
|
210
|
+
background: var(--ui-border);
|
|
211
|
+
position: relative;
|
|
212
|
+
transition: background 150ms;
|
|
213
|
+
}
|
|
214
|
+
:where([data-part='switch']) input::after {
|
|
215
|
+
content: '';
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: 2px;
|
|
218
|
+
left: 2px;
|
|
219
|
+
width: 16px;
|
|
220
|
+
height: 16px;
|
|
221
|
+
border-radius: 999px;
|
|
222
|
+
background: var(--ui-bg);
|
|
223
|
+
transition: transform 150ms;
|
|
224
|
+
}
|
|
225
|
+
:where([data-part='switch']) input:checked {
|
|
226
|
+
background: var(--ui-accent);
|
|
227
|
+
}
|
|
228
|
+
:where([data-part='switch']) input:checked::after {
|
|
229
|
+
transform: translateX(16px);
|
|
230
|
+
}
|
|
231
|
+
:where([data-part='switch'], [data-part='checkbox'])[data-disabled] {
|
|
232
|
+
opacity: 0.55;
|
|
233
|
+
cursor: not-allowed;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Radio group: a fieldset with its legend; radios like checkboxes, round. */
|
|
237
|
+
:where([data-part='radio-group']) {
|
|
238
|
+
display: grid;
|
|
239
|
+
gap: 8px;
|
|
240
|
+
margin: 0;
|
|
241
|
+
padding: 0;
|
|
242
|
+
border: 0;
|
|
243
|
+
font: 14px var(--ui-font);
|
|
244
|
+
color: var(--ui-fg);
|
|
245
|
+
}
|
|
246
|
+
:where([data-part='radio-group']) > :where([data-part='legend']) {
|
|
247
|
+
padding: 0;
|
|
248
|
+
margin-bottom: 4px;
|
|
249
|
+
font-weight: 600;
|
|
250
|
+
}
|
|
251
|
+
:where([data-part='radio']) {
|
|
252
|
+
display: inline-flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: 8px;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
}
|
|
257
|
+
:where([data-part='radio']) input {
|
|
258
|
+
accent-color: var(--ui-accent);
|
|
259
|
+
width: 18px;
|
|
260
|
+
height: 18px;
|
|
261
|
+
margin: 0;
|
|
262
|
+
}
|
|
263
|
+
:where([data-part='radio'])[data-disabled] {
|
|
264
|
+
opacity: 0.55;
|
|
265
|
+
cursor: not-allowed;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* Field and select: label, control, description, error. */
|
|
269
|
+
:where([data-part='field'], [data-part='select']) {
|
|
270
|
+
display: grid;
|
|
271
|
+
gap: 4px;
|
|
272
|
+
max-width: 360px;
|
|
273
|
+
font: 14px var(--ui-font);
|
|
274
|
+
color: var(--ui-fg);
|
|
275
|
+
}
|
|
276
|
+
:where([data-part='label']) {
|
|
277
|
+
font-weight: 600;
|
|
278
|
+
font-size: 13px;
|
|
279
|
+
color: var(--ui-fg);
|
|
280
|
+
}
|
|
281
|
+
:where([data-part='control']) {
|
|
282
|
+
min-height: 34px;
|
|
283
|
+
padding: 4px 10px;
|
|
284
|
+
border: 1px solid var(--ui-border);
|
|
285
|
+
border-radius: var(--ui-radius);
|
|
286
|
+
background: var(--ui-bg);
|
|
287
|
+
color: var(--ui-fg);
|
|
288
|
+
font: 14px var(--ui-font);
|
|
289
|
+
}
|
|
290
|
+
:where([data-part='control'])[aria-invalid='true'] {
|
|
291
|
+
border: 1px solid var(--ui-danger);
|
|
292
|
+
}
|
|
293
|
+
:where([data-part='description']) {
|
|
294
|
+
margin: 0;
|
|
295
|
+
color: var(--ui-muted);
|
|
296
|
+
font-size: 13px;
|
|
297
|
+
}
|
|
298
|
+
:where([data-part='error']) {
|
|
299
|
+
margin: 0;
|
|
300
|
+
color: var(--ui-danger);
|
|
301
|
+
font-size: 13px;
|
|
302
|
+
}
|
|
303
|
+
:where([data-part='option']) {
|
|
304
|
+
padding: 6px 10px;
|
|
305
|
+
border-radius: calc(var(--ui-radius) - 2px);
|
|
306
|
+
}
|
|
307
|
+
:where([data-part='select']) ::picker(select) {
|
|
308
|
+
padding: 4px;
|
|
309
|
+
border: 1px solid var(--ui-border);
|
|
310
|
+
border-radius: var(--ui-radius);
|
|
311
|
+
background: var(--ui-bg);
|
|
312
|
+
box-shadow: var(--ui-shadow);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Combobox: chips in the control, a list below. */
|
|
316
|
+
:where([data-part='combobox']) {
|
|
317
|
+
display: grid;
|
|
318
|
+
gap: 4px;
|
|
319
|
+
max-width: 360px;
|
|
320
|
+
font: 14px var(--ui-font);
|
|
321
|
+
color: var(--ui-fg);
|
|
322
|
+
}
|
|
323
|
+
:where([data-part='combobox']) > :where([data-part='control']) {
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-wrap: wrap;
|
|
326
|
+
align-items: center;
|
|
327
|
+
gap: 4px;
|
|
328
|
+
padding: 2px 6px;
|
|
329
|
+
}
|
|
330
|
+
:where([data-part='combobox']) > :where([data-part='control']):focus-within {
|
|
331
|
+
border-color: var(--ui-accent);
|
|
332
|
+
box-shadow: 0 0 0 3px var(--ui-accent-soft);
|
|
333
|
+
}
|
|
334
|
+
:where([data-part='input']) {
|
|
335
|
+
flex: 1;
|
|
336
|
+
min-width: 6ch;
|
|
337
|
+
min-height: 26px;
|
|
338
|
+
padding: 0 4px;
|
|
339
|
+
border: 0;
|
|
340
|
+
background: none;
|
|
341
|
+
color: var(--ui-fg);
|
|
342
|
+
font: inherit;
|
|
343
|
+
outline: none;
|
|
344
|
+
}
|
|
345
|
+
:where([data-part='chip']) {
|
|
346
|
+
display: inline-flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: 2px;
|
|
349
|
+
padding: 0 2px 0 8px;
|
|
350
|
+
border-radius: 999px;
|
|
351
|
+
background: var(--ui-accent-soft);
|
|
352
|
+
font-size: 13px;
|
|
353
|
+
}
|
|
354
|
+
:where([data-part='chip']) button {
|
|
355
|
+
min-width: 24px;
|
|
356
|
+
min-height: 24px;
|
|
357
|
+
border: 0;
|
|
358
|
+
border-radius: 999px;
|
|
359
|
+
background: none;
|
|
360
|
+
color: var(--ui-muted);
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
}
|
|
363
|
+
:where([data-part='listbox']) {
|
|
364
|
+
margin-top: 4px;
|
|
365
|
+
padding: 4px;
|
|
366
|
+
border: 1px solid var(--ui-border);
|
|
367
|
+
border-radius: var(--ui-radius);
|
|
368
|
+
background: var(--ui-bg);
|
|
369
|
+
box-shadow: var(--ui-shadow);
|
|
370
|
+
}
|
|
371
|
+
:where([data-part='listbox']) > :where([data-part='option']) {
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
}
|
|
374
|
+
:where([data-part='option'])[data-highlighted] {
|
|
375
|
+
background: var(--ui-accent-soft);
|
|
376
|
+
}
|
|
377
|
+
:where([data-part='option'])[aria-selected='true'] {
|
|
378
|
+
font-weight: 600;
|
|
379
|
+
}
|
|
380
|
+
:where([data-part='status']) {
|
|
381
|
+
margin: 0;
|
|
382
|
+
color: var(--ui-muted);
|
|
383
|
+
font-size: 13px;
|
|
384
|
+
}
|
|
385
|
+
:where([data-part='status']):empty {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@media (prefers-reduced-motion: reduce) {
|
|
390
|
+
:where([data-part]),
|
|
391
|
+
:where([data-part]) * {
|
|
392
|
+
transition: none !important;
|
|
393
|
+
}
|
|
394
|
+
}
|