~repos /edge-city
git clone https://pyrossh.dev/repos/edge-city.git
edge-city is a next level meta-framework for react that runs only on edge runtimes
fa5ed410
—
pyrossh 2 years ago
fix css
example/src/components/Counter/Counter.css
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
& .button {
|
|
3
3
|
border-radius: 0.25rem;
|
|
4
4
|
padding: 1rem;
|
|
5
|
-
background-color: #2563eb;
|
|
6
|
-
color: white;
|
|
7
5
|
margin-left: 0.5rem;
|
|
8
6
|
}
|
|
9
7
|
}
|
example/src/components/Counter/Counter.jsx
CHANGED
|
@@ -8,11 +8,11 @@ const Counter = () => {
|
|
|
8
8
|
const decrement = () => setCount(count + 1);
|
|
9
9
|
return (
|
|
10
10
|
<div className="counter">
|
|
11
|
-
<Button
|
|
11
|
+
<Button onClick={increment}>
|
|
12
12
|
-
|
|
13
13
|
</Button>
|
|
14
14
|
<span className="count">{count}</span>
|
|
15
|
-
<Button
|
|
15
|
+
<Button onClick={decrement}>
|
|
16
16
|
+
|
|
17
17
|
</Button>
|
|
18
18
|
</div>
|
example/src/pages/app.css
CHANGED
|
@@ -1,399 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
3
|
-
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
*,
|
|
7
|
-
::before,
|
|
8
|
-
::after {
|
|
9
|
-
box-sizing: border-box; /* 1 */
|
|
10
|
-
border-width: 0; /* 2 */
|
|
11
|
-
border-style: solid; /* 2 */
|
|
12
|
-
border-color: theme("borderColor.DEFAULT", currentColor); /* 2 */
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::before,
|
|
16
|
-
::after {
|
|
17
|
-
--tw-content: "";
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/*
|
|
21
|
-
1. Use a consistent sensible line-height in all browsers.
|
|
22
|
-
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
23
|
-
3. Use a more readable tab size.
|
|
24
|
-
4. Use the user's configured `sans` font-family by default.
|
|
25
|
-
5. Use the user's configured `sans` font-feature-settings by default.
|
|
26
|
-
6. Use the user's configured `sans` font-variation-settings by default.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
html {
|
|
30
|
-
line-height: 1.5; /* 1 */
|
|
31
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
32
|
-
-moz-tab-size: 4; /* 3 */
|
|
33
|
-
tab-size: 4; /* 3 */
|
|
34
|
-
font-family: theme(
|
|
35
|
-
"fontFamily.sans",
|
|
36
|
-
ui-sans-serif,
|
|
37
|
-
system-ui,
|
|
38
|
-
-apple-system,
|
|
39
|
-
BlinkMacSystemFont,
|
|
40
|
-
"Segoe UI",
|
|
41
|
-
Roboto,
|
|
42
|
-
"Helvetica Neue",
|
|
43
|
-
Arial,
|
|
44
|
-
"Noto Sans",
|
|
45
|
-
sans-serif,
|
|
46
|
-
"Apple Color Emoji",
|
|
47
|
-
"Segoe UI Emoji",
|
|
48
|
-
"Segoe UI Symbol",
|
|
49
|
-
"Noto Color Emoji"
|
|
50
|
-
); /* 4 */
|
|
51
|
-
font-feature-settings: theme("fontFamily.sans[1].fontFeatureSettings", normal); /* 5 */
|
|
52
|
-
font-variation-settings: theme("fontFamily.sans[1].fontVariationSettings", normal); /* 6 */
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/*
|
|
56
|
-
1. Remove the margin in all browsers.
|
|
57
|
-
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
body {
|
|
61
|
-
margin: 0; /* 1 */
|
|
62
|
-
line-height: inherit; /* 2 */
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/*
|
|
66
|
-
1. Add the correct height in Firefox.
|
|
67
|
-
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
68
|
-
3. Ensure horizontal rules are visible by default.
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
hr {
|
|
72
|
-
height: 0; /* 1 */
|
|
73
|
-
color: inherit; /* 2 */
|
|
74
|
-
border-top-width: 1px; /* 3 */
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/*
|
|
78
|
-
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
abbr:where([title]) {
|
|
82
|
-
text-decoration: underline dotted;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
Remove the default font size and weight for headings.
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
h1,
|
|
90
|
-
h2,
|
|
91
|
-
h3,
|
|
92
|
-
h4,
|
|
93
|
-
h5,
|
|
94
|
-
h6 {
|
|
95
|
-
font-size: inherit;
|
|
96
|
-
font-weight: inherit;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/*
|
|
100
|
-
Reset links to optimize for opt-in styling instead of opt-out.
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
a {
|
|
104
|
-
color: inherit;
|
|
105
|
-
text-decoration: inherit;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/*
|
|
109
|
-
Add the correct font weight in Edge and Safari.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
b,
|
|
113
|
-
strong {
|
|
114
|
-
font-weight: bolder;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/*
|
|
118
|
-
1. Use the user's configured `mono` font family by default.
|
|
119
|
-
2. Correct the odd `em` font sizing in all browsers.
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
code,
|
|
123
|
-
kbd,
|
|
124
|
-
samp,
|
|
125
|
-
pre {
|
|
126
|
-
font-family: theme(
|
|
127
|
-
"fontFamily.mono",
|
|
128
|
-
ui-monospace,
|
|
129
|
-
SFMono-Regular,
|
|
130
|
-
Menlo,
|
|
131
|
-
Monaco,
|
|
132
|
-
Consolas,
|
|
133
|
-
"Liberation Mono",
|
|
134
|
-
"Courier New",
|
|
135
|
-
monospace
|
|
136
|
-
); /* 1 */
|
|
137
|
-
font-size: 1em; /* 2 */
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/*
|
|
141
|
-
Add the correct font size in all browsers.
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
small {
|
|
145
|
-
font-size: 80%;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/*
|
|
149
|
-
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
sub,
|
|
153
|
-
sup {
|
|
154
|
-
font-size: 75%;
|
|
155
|
-
line-height: 0;
|
|
156
|
-
position: relative;
|
|
157
|
-
vertical-align: baseline;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
sub {
|
|
161
|
-
bottom: -0.25em;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
sup {
|
|
165
|
-
top: -0.5em;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/*
|
|
169
|
-
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
170
|
-
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
171
|
-
3. Remove gaps between table borders by default.
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
table {
|
|
175
|
-
text-indent: 0; /* 1 */
|
|
176
|
-
border-color: inherit; /* 2 */
|
|
177
|
-
border-collapse: collapse; /* 3 */
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/*
|
|
181
|
-
1. Change the font styles in all browsers.
|
|
182
|
-
2. Remove the margin in Firefox and Safari.
|
|
183
|
-
3. Remove default padding in all browsers.
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
button,
|
|
187
|
-
input,
|
|
188
|
-
optgroup,
|
|
189
|
-
select,
|
|
190
|
-
textarea {
|
|
191
|
-
font-family: inherit; /* 1 */
|
|
192
|
-
font-size: 100%; /* 1 */
|
|
193
|
-
font-weight: inherit; /* 1 */
|
|
194
|
-
line-height: inherit; /* 1 */
|
|
195
|
-
color: inherit; /* 1 */
|
|
196
|
-
margin: 0; /* 2 */
|
|
197
|
-
padding: 0; /* 3 */
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/*
|
|
201
|
-
Remove the inheritance of text transform in Edge and Firefox.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
button,
|
|
205
|
-
select {
|
|
206
|
-
text-transform: none;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/*
|
|
210
|
-
1. Correct the inability to style clickable types in iOS and Safari.
|
|
211
|
-
2. Remove default button styles.
|
|
212
|
-
*/
|
|
213
|
-
|
|
214
|
-
button,
|
|
215
|
-
[type="button"],
|
|
216
|
-
[type="reset"],
|
|
217
|
-
[type="submit"] {
|
|
218
|
-
-webkit-appearance: button; /* 1 */
|
|
219
|
-
background-color: transparent; /* 2 */
|
|
220
|
-
background-image: none; /* 2 */
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/*
|
|
224
|
-
Use the modern Firefox focus style for all focusable elements.
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
:-moz-focusring {
|
|
228
|
-
outline: auto;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/*
|
|
232
|
-
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
233
|
-
*/
|
|
234
|
-
|
|
235
|
-
:-moz-ui-invalid {
|
|
236
|
-
box-shadow: none;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/*
|
|
240
|
-
Add the correct vertical alignment in Chrome and Firefox.
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
progress {
|
|
244
|
-
vertical-align: baseline;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/*
|
|
248
|
-
Correct the cursor style of increment and decrement buttons in Safari.
|
|
249
|
-
*/
|
|
250
|
-
|
|
251
|
-
::-webkit-inner-spin-button,
|
|
252
|
-
::-webkit-outer-spin-button {
|
|
253
|
-
height: auto;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/*
|
|
257
|
-
1. Correct the odd appearance in Chrome and Safari.
|
|
258
|
-
2. Correct the outline style in Safari.
|
|
259
|
-
*/
|
|
260
|
-
|
|
261
|
-
[type="search"] {
|
|
262
|
-
-webkit-appearance: textfield; /* 1 */
|
|
263
|
-
outline-offset: -2px; /* 2 */
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/*
|
|
267
|
-
Remove the inner padding in Chrome and Safari on macOS.
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
|
-
::-webkit-search-decoration {
|
|
271
|
-
-webkit-appearance: none;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/*
|
|
275
|
-
1. Correct the inability to style clickable types in iOS and Safari.
|
|
276
|
-
2. Change font properties to `inherit` in Safari.
|
|
277
|
-
*/
|
|
278
|
-
|
|
279
|
-
::-webkit-file-upload-button {
|
|
280
|
-
-webkit-appearance: button; /* 1 */
|
|
281
|
-
font: inherit; /* 2 */
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/*
|
|
285
|
-
Add the correct display in Chrome and Safari.
|
|
286
|
-
*/
|
|
287
|
-
|
|
288
|
-
summary {
|
|
289
|
-
display: list-item;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/*
|
|
293
|
-
Removes the default spacing and border for appropriate elements.
|
|
294
|
-
*/
|
|
295
|
-
|
|
296
|
-
blockquote,
|
|
297
|
-
dl,
|
|
298
|
-
dd,
|
|
299
|
-
h1,
|
|
300
|
-
h2,
|
|
301
|
-
h3,
|
|
302
|
-
h4,
|
|
303
|
-
h5,
|
|
304
|
-
h6,
|
|
305
|
-
hr,
|
|
306
|
-
figure,
|
|
307
|
-
p,
|
|
308
|
-
pre {
|
|
309
|
-
margin: 0;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
fieldset {
|
|
313
|
-
margin: 0;
|
|
314
|
-
padding: 0;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
legend {
|
|
318
|
-
padding: 0;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
ol,
|
|
322
|
-
ul,
|
|
323
|
-
menu {
|
|
324
|
-
list-style: none;
|
|
325
|
-
margin: 0;
|
|
326
|
-
padding: 0;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/*
|
|
330
|
-
Prevent resizing textareas horizontally by default.
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
textarea {
|
|
334
|
-
resize: vertical;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
/*
|
|
338
|
-
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
339
|
-
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
input::placeholder,
|
|
343
|
-
textarea::placeholder {
|
|
344
|
-
opacity: 1; /* 1 */
|
|
345
|
-
color: theme("colors.gray.400", #9ca3af); /* 2 */
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/*
|
|
349
|
-
Set the default cursor for buttons.
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
button,
|
|
353
|
-
[role="button"] {
|
|
354
|
-
cursor: pointer;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/*
|
|
358
|
-
Make sure disabled buttons don't get the pointer cursor.
|
|
359
|
-
*/
|
|
360
|
-
:disabled {
|
|
361
|
-
cursor: default;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/*
|
|
365
|
-
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
366
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
367
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
|
-
img,
|
|
371
|
-
svg,
|
|
372
|
-
video,
|
|
373
|
-
canvas,
|
|
374
|
-
audio,
|
|
375
|
-
iframe,
|
|
376
|
-
embed,
|
|
377
|
-
object {
|
|
378
|
-
display: block; /* 1 */
|
|
379
|
-
vertical-align: middle; /* 2 */
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
/*
|
|
383
|
-
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
img,
|
|
387
|
-
video {
|
|
388
|
-
max-width: 100%;
|
|
389
|
-
height: auto;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
393
|
-
[hidden] {
|
|
394
|
-
display: none;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
1
|
html {
|
|
398
2
|
line-height: 1.5;
|
|
399
3
|
font-size: 16px;
|
|
@@ -412,4 +16,6 @@ h1 {
|
|
|
412
16
|
font-size: 1.25rem;
|
|
413
17
|
line-height: 1.75rem;
|
|
414
18
|
font-weight: 700;
|
|
19
|
+
margin-top: 1rem;
|
|
20
|
+
margin-bottom: 1rem;
|
|
415
21
|
}
|
example/src/pages/app.jsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SSRProvider } from "react-aria";
|
|
2
2
|
import Layout from "@/components/Layout/Layout";
|
|
3
|
+
import "./normalize.css";
|
|
4
|
+
import "./spectrum.css";
|
|
3
5
|
import "./app.css";
|
|
4
6
|
|
|
5
7
|
export default function App({ children }) {
|
example/src/pages/normalize.css
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
4
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
*,
|
|
8
|
+
::before,
|
|
9
|
+
::after {
|
|
10
|
+
box-sizing: border-box; /* 1 */
|
|
11
|
+
border-width: 0; /* 2 */
|
|
12
|
+
border-style: solid; /* 2 */
|
|
13
|
+
border-color: theme("borderColor.DEFAULT", currentColor); /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
::before,
|
|
17
|
+
::after {
|
|
18
|
+
--tw-content: "";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
23
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
24
|
+
3. Use a more readable tab size.
|
|
25
|
+
4. Use the user's configured `sans` font-family by default.
|
|
26
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
27
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
html {
|
|
31
|
+
line-height: 1.5; /* 1 */
|
|
32
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
33
|
+
-moz-tab-size: 4; /* 3 */
|
|
34
|
+
tab-size: 4; /* 3 */
|
|
35
|
+
font-family: theme(
|
|
36
|
+
"fontFamily.sans",
|
|
37
|
+
ui-sans-serif,
|
|
38
|
+
system-ui,
|
|
39
|
+
-apple-system,
|
|
40
|
+
BlinkMacSystemFont,
|
|
41
|
+
"Segoe UI",
|
|
42
|
+
Roboto,
|
|
43
|
+
"Helvetica Neue",
|
|
44
|
+
Arial,
|
|
45
|
+
"Noto Sans",
|
|
46
|
+
sans-serif,
|
|
47
|
+
"Apple Color Emoji",
|
|
48
|
+
"Segoe UI Emoji",
|
|
49
|
+
"Segoe UI Symbol",
|
|
50
|
+
"Noto Color Emoji"
|
|
51
|
+
); /* 4 */
|
|
52
|
+
font-feature-settings: theme("fontFamily.sans[1].fontFeatureSettings", normal); /* 5 */
|
|
53
|
+
font-variation-settings: theme("fontFamily.sans[1].fontVariationSettings", normal); /* 6 */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
1. Remove the margin in all browsers.
|
|
58
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
body {
|
|
62
|
+
margin: 0; /* 1 */
|
|
63
|
+
line-height: inherit; /* 2 */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
1. Add the correct height in Firefox.
|
|
68
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
69
|
+
3. Ensure horizontal rules are visible by default.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
hr {
|
|
73
|
+
height: 0; /* 1 */
|
|
74
|
+
color: inherit; /* 2 */
|
|
75
|
+
border-top-width: 1px; /* 3 */
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
abbr:where([title]) {
|
|
83
|
+
text-decoration: underline dotted;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
Remove the default font size and weight for headings.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
h1,
|
|
91
|
+
h2,
|
|
92
|
+
h3,
|
|
93
|
+
h4,
|
|
94
|
+
h5,
|
|
95
|
+
h6 {
|
|
96
|
+
font-size: inherit;
|
|
97
|
+
font-weight: inherit;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
a {
|
|
105
|
+
color: inherit;
|
|
106
|
+
text-decoration: inherit;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/*
|
|
110
|
+
Add the correct font weight in Edge and Safari.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
b,
|
|
114
|
+
strong {
|
|
115
|
+
font-weight: bolder;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
1. Use the user's configured `mono` font family by default.
|
|
120
|
+
2. Correct the odd `em` font sizing in all browsers.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
code,
|
|
124
|
+
kbd,
|
|
125
|
+
samp,
|
|
126
|
+
pre {
|
|
127
|
+
font-family: theme(
|
|
128
|
+
"fontFamily.mono",
|
|
129
|
+
ui-monospace,
|
|
130
|
+
SFMono-Regular,
|
|
131
|
+
Menlo,
|
|
132
|
+
Monaco,
|
|
133
|
+
Consolas,
|
|
134
|
+
"Liberation Mono",
|
|
135
|
+
"Courier New",
|
|
136
|
+
monospace
|
|
137
|
+
); /* 1 */
|
|
138
|
+
font-size: 1em; /* 2 */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/*
|
|
142
|
+
Add the correct font size in all browsers.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
small {
|
|
146
|
+
font-size: 80%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
sub,
|
|
154
|
+
sup {
|
|
155
|
+
font-size: 75%;
|
|
156
|
+
line-height: 0;
|
|
157
|
+
position: relative;
|
|
158
|
+
vertical-align: baseline;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
sub {
|
|
162
|
+
bottom: -0.25em;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
sup {
|
|
166
|
+
top: -0.5em;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/*
|
|
170
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
171
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
172
|
+
3. Remove gaps between table borders by default.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
table {
|
|
176
|
+
text-indent: 0; /* 1 */
|
|
177
|
+
border-color: inherit; /* 2 */
|
|
178
|
+
border-collapse: collapse; /* 3 */
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/*
|
|
182
|
+
1. Change the font styles in all browsers.
|
|
183
|
+
2. Remove the margin in Firefox and Safari.
|
|
184
|
+
3. Remove default padding in all browsers.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
input,
|
|
189
|
+
optgroup,
|
|
190
|
+
select,
|
|
191
|
+
textarea {
|
|
192
|
+
font-family: inherit; /* 1 */
|
|
193
|
+
font-size: 100%; /* 1 */
|
|
194
|
+
font-weight: inherit; /* 1 */
|
|
195
|
+
line-height: inherit; /* 1 */
|
|
196
|
+
color: inherit; /* 1 */
|
|
197
|
+
margin: 0; /* 2 */
|
|
198
|
+
padding: 0; /* 3 */
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/*
|
|
202
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
button,
|
|
206
|
+
select {
|
|
207
|
+
text-transform: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
212
|
+
2. Remove default button styles.
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
button,
|
|
216
|
+
[type="button"],
|
|
217
|
+
[type="reset"],
|
|
218
|
+
[type="submit"] {
|
|
219
|
+
-webkit-appearance: button; /* 1 */
|
|
220
|
+
background-color: transparent; /* 2 */
|
|
221
|
+
background-image: none; /* 2 */
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/*
|
|
225
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
:-moz-focusring {
|
|
229
|
+
outline: auto;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/*
|
|
233
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
:-moz-ui-invalid {
|
|
237
|
+
box-shadow: none;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/*
|
|
241
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
progress {
|
|
245
|
+
vertical-align: baseline;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/*
|
|
249
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
::-webkit-inner-spin-button,
|
|
253
|
+
::-webkit-outer-spin-button {
|
|
254
|
+
height: auto;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/*
|
|
258
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
259
|
+
2. Correct the outline style in Safari.
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
[type="search"] {
|
|
263
|
+
-webkit-appearance: textfield; /* 1 */
|
|
264
|
+
outline-offset: -2px; /* 2 */
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/*
|
|
268
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
::-webkit-search-decoration {
|
|
272
|
+
-webkit-appearance: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/*
|
|
276
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
277
|
+
2. Change font properties to `inherit` in Safari.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
::-webkit-file-upload-button {
|
|
281
|
+
-webkit-appearance: button; /* 1 */
|
|
282
|
+
font: inherit; /* 2 */
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/*
|
|
286
|
+
Add the correct display in Chrome and Safari.
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
summary {
|
|
290
|
+
display: list-item;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/*
|
|
294
|
+
Removes the default spacing and border for appropriate elements.
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
blockquote,
|
|
298
|
+
dl,
|
|
299
|
+
dd,
|
|
300
|
+
h1,
|
|
301
|
+
h2,
|
|
302
|
+
h3,
|
|
303
|
+
h4,
|
|
304
|
+
h5,
|
|
305
|
+
h6,
|
|
306
|
+
hr,
|
|
307
|
+
figure,
|
|
308
|
+
p,
|
|
309
|
+
pre {
|
|
310
|
+
margin: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
fieldset {
|
|
314
|
+
margin: 0;
|
|
315
|
+
padding: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
legend {
|
|
319
|
+
padding: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
ol,
|
|
323
|
+
ul,
|
|
324
|
+
menu {
|
|
325
|
+
list-style: none;
|
|
326
|
+
margin: 0;
|
|
327
|
+
padding: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
Prevent resizing textareas horizontally by default.
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
textarea {
|
|
335
|
+
resize: vertical;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/*
|
|
339
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
340
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
input::placeholder,
|
|
344
|
+
textarea::placeholder {
|
|
345
|
+
opacity: 1; /* 1 */
|
|
346
|
+
color: theme("colors.gray.400", #9ca3af); /* 2 */
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/*
|
|
350
|
+
Set the default cursor for buttons.
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
button,
|
|
354
|
+
[role="button"] {
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/*
|
|
359
|
+
Make sure disabled buttons don't get the pointer cursor.
|
|
360
|
+
*/
|
|
361
|
+
:disabled {
|
|
362
|
+
cursor: default;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/*
|
|
366
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
367
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
368
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
img,
|
|
372
|
+
svg,
|
|
373
|
+
video,
|
|
374
|
+
canvas,
|
|
375
|
+
audio,
|
|
376
|
+
iframe,
|
|
377
|
+
embed,
|
|
378
|
+
object {
|
|
379
|
+
display: block; /* 1 */
|
|
380
|
+
vertical-align: middle; /* 2 */
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/*
|
|
384
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
img,
|
|
388
|
+
video {
|
|
389
|
+
max-width: 100%;
|
|
390
|
+
height: auto;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
394
|
+
[hidden] {
|
|
395
|
+
display: none;
|
|
396
|
+
}
|
example/src/pages/spectrum.css
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spectrum-global-color-status: Verified;
|
|
3
|
+
--spectrum-global-color-version: 5.1.0;
|
|
4
|
+
--spectrum-gray-50: rgb(255, 255, 255);
|
|
5
|
+
--spectrum-gray-75: rgb(253, 253, 253);
|
|
6
|
+
--spectrum-gray-100: rgb(248, 248, 248);
|
|
7
|
+
--spectrum-gray-200: rgb(230, 230, 230);
|
|
8
|
+
--spectrum-gray-300: rgb(213, 213, 213);
|
|
9
|
+
--spectrum-gray-400: rgb(177, 177, 177);
|
|
10
|
+
--spectrum-gray-500: rgb(144, 144, 144);
|
|
11
|
+
--spectrum-gray-600: rgb(109, 109, 109);
|
|
12
|
+
--spectrum-gray-700: rgb(70, 70, 70);
|
|
13
|
+
--spectrum-gray-800: rgb(34, 34, 34);
|
|
14
|
+
--spectrum-gray-900: rgb(0, 0, 0);
|
|
15
|
+
--spectrum-red-100: rgb(255, 235, 231);
|
|
16
|
+
--spectrum-red-200: rgb(255, 221, 214);
|
|
17
|
+
--spectrum-red-300: rgb(255, 205, 195);
|
|
18
|
+
--spectrum-red-400: rgb(255, 183, 169);
|
|
19
|
+
--spectrum-red-500: rgb(255, 155, 136);
|
|
20
|
+
--spectrum-red-600: rgb(255, 124, 101);
|
|
21
|
+
--spectrum-red-700: rgb(247, 92, 70);
|
|
22
|
+
--spectrum-red-800: rgb(234, 56, 41);
|
|
23
|
+
--spectrum-red-900: rgb(211, 21, 16);
|
|
24
|
+
--spectrum-red-1000: rgb(180, 0, 0);
|
|
25
|
+
--spectrum-red-1100: rgb(147, 0, 0);
|
|
26
|
+
--spectrum-red-1200: rgb(116, 0, 0);
|
|
27
|
+
--spectrum-red-1300: rgb(89, 0, 0);
|
|
28
|
+
--spectrum-red-1400: rgb(67, 0, 0);
|
|
29
|
+
--spectrum-orange-100: rgb(255, 236, 204);
|
|
30
|
+
--spectrum-orange-200: rgb(255, 223, 173);
|
|
31
|
+
--spectrum-orange-300: rgb(253, 210, 145);
|
|
32
|
+
--spectrum-orange-400: rgb(255, 187, 99);
|
|
33
|
+
--spectrum-orange-500: rgb(255, 160, 55);
|
|
34
|
+
--spectrum-orange-600: rgb(246, 133, 17);
|
|
35
|
+
--spectrum-orange-700: rgb(228, 111, 0);
|
|
36
|
+
--spectrum-orange-800: rgb(203, 93, 0);
|
|
37
|
+
--spectrum-orange-900: rgb(177, 76, 0);
|
|
38
|
+
--spectrum-orange-1000: rgb(149, 61, 0);
|
|
39
|
+
--spectrum-orange-1100: rgb(122, 47, 0);
|
|
40
|
+
--spectrum-orange-1200: rgb(97, 35, 0);
|
|
41
|
+
--spectrum-orange-1300: rgb(73, 25, 1);
|
|
42
|
+
--spectrum-orange-1400: rgb(53, 18, 1);
|
|
43
|
+
--spectrum-yellow-100: rgb(251, 241, 152);
|
|
44
|
+
--spectrum-yellow-200: rgb(248, 231, 80);
|
|
45
|
+
--spectrum-yellow-300: rgb(248, 217, 4);
|
|
46
|
+
--spectrum-yellow-400: rgb(232, 198, 0);
|
|
47
|
+
--spectrum-yellow-500: rgb(215, 179, 0);
|
|
48
|
+
--spectrum-yellow-600: rgb(196, 159, 0);
|
|
49
|
+
--spectrum-yellow-700: rgb(176, 140, 0);
|
|
50
|
+
--spectrum-yellow-800: rgb(155, 120, 0);
|
|
51
|
+
--spectrum-yellow-900: rgb(133, 102, 0);
|
|
52
|
+
--spectrum-yellow-1000: rgb(112, 83, 0);
|
|
53
|
+
--spectrum-yellow-1100: rgb(91, 67, 0);
|
|
54
|
+
--spectrum-yellow-1200: rgb(72, 51, 0);
|
|
55
|
+
--spectrum-yellow-1300: rgb(54, 37, 0);
|
|
56
|
+
--spectrum-yellow-1400: rgb(40, 26, 0);
|
|
57
|
+
--spectrum-chartreuse-100: rgb(219, 252, 110);
|
|
58
|
+
--spectrum-chartreuse-200: rgb(203, 244, 67);
|
|
59
|
+
--spectrum-chartreuse-300: rgb(188, 233, 42);
|
|
60
|
+
--spectrum-chartreuse-400: rgb(170, 216, 22);
|
|
61
|
+
--spectrum-chartreuse-500: rgb(152, 197, 10);
|
|
62
|
+
--spectrum-chartreuse-600: rgb(135, 177, 3);
|
|
63
|
+
--spectrum-chartreuse-700: rgb(118, 156, 0);
|
|
64
|
+
--spectrum-chartreuse-800: rgb(103, 136, 0);
|
|
65
|
+
--spectrum-chartreuse-900: rgb(87, 116, 0);
|
|
66
|
+
--spectrum-chartreuse-1000: rgb(72, 96, 0);
|
|
67
|
+
--spectrum-chartreuse-1100: rgb(58, 77, 0);
|
|
68
|
+
--spectrum-chartreuse-1200: rgb(44, 59, 0);
|
|
69
|
+
--spectrum-chartreuse-1300: rgb(33, 44, 0);
|
|
70
|
+
--spectrum-chartreuse-1400: rgb(24, 31, 0);
|
|
71
|
+
--spectrum-celery-100: rgb(205, 252, 191);
|
|
72
|
+
--spectrum-celery-200: rgb(174, 246, 157);
|
|
73
|
+
--spectrum-celery-300: rgb(150, 238, 133);
|
|
74
|
+
--spectrum-celery-400: rgb(114, 224, 106);
|
|
75
|
+
--spectrum-celery-500: rgb(78, 207, 80);
|
|
76
|
+
--spectrum-celery-600: rgb(39, 187, 54);
|
|
77
|
+
--spectrum-celery-700: rgb(7, 167, 33);
|
|
78
|
+
--spectrum-celery-800: rgb(0, 145, 18);
|
|
79
|
+
--spectrum-celery-900: rgb(0, 124, 15);
|
|
80
|
+
--spectrum-celery-1000: rgb(0, 103, 15);
|
|
81
|
+
--spectrum-celery-1100: rgb(0, 83, 13);
|
|
82
|
+
--spectrum-celery-1200: rgb(0, 64, 10);
|
|
83
|
+
--spectrum-celery-1300: rgb(0, 48, 7);
|
|
84
|
+
--spectrum-celery-1400: rgb(0, 34, 5);
|
|
85
|
+
--spectrum-green-100: rgb(206, 248, 224);
|
|
86
|
+
--spectrum-green-200: rgb(173, 244, 206);
|
|
87
|
+
--spectrum-green-300: rgb(137, 236, 188);
|
|
88
|
+
--spectrum-green-400: rgb(103, 222, 168);
|
|
89
|
+
--spectrum-green-500: rgb(73, 204, 147);
|
|
90
|
+
--spectrum-green-600: rgb(47, 184, 128);
|
|
91
|
+
--spectrum-green-700: rgb(21, 164, 110);
|
|
92
|
+
--spectrum-green-800: rgb(0, 143, 93);
|
|
93
|
+
--spectrum-green-900: rgb(0, 122, 77);
|
|
94
|
+
--spectrum-green-1000: rgb(0, 101, 62);
|
|
95
|
+
--spectrum-green-1100: rgb(0, 81, 50);
|
|
96
|
+
--spectrum-green-1200: rgb(5, 63, 39);
|
|
97
|
+
--spectrum-green-1300: rgb(10, 46, 29);
|
|
98
|
+
--spectrum-green-1400: rgb(10, 32, 21);
|
|
99
|
+
--spectrum-seafoam-100: rgb(206, 247, 243);
|
|
100
|
+
--spectrum-seafoam-200: rgb(170, 241, 234);
|
|
101
|
+
--spectrum-seafoam-300: rgb(140, 233, 226);
|
|
102
|
+
--spectrum-seafoam-400: rgb(101, 218, 210);
|
|
103
|
+
--spectrum-seafoam-500: rgb(63, 201, 193);
|
|
104
|
+
--spectrum-seafoam-600: rgb(15, 181, 174);
|
|
105
|
+
--spectrum-seafoam-700: rgb(0, 161, 154);
|
|
106
|
+
--spectrum-seafoam-800: rgb(0, 140, 135);
|
|
107
|
+
--spectrum-seafoam-900: rgb(0, 119, 114);
|
|
108
|
+
--spectrum-seafoam-1000: rgb(0, 99, 95);
|
|
109
|
+
--spectrum-seafoam-1100: rgb(12, 79, 76);
|
|
110
|
+
--spectrum-seafoam-1200: rgb(18, 60, 58);
|
|
111
|
+
--spectrum-seafoam-1300: rgb(18, 44, 43);
|
|
112
|
+
--spectrum-seafoam-1400: rgb(15, 31, 30);
|
|
113
|
+
--spectrum-cyan-100: rgb(197, 248, 255);
|
|
114
|
+
--spectrum-cyan-200: rgb(164, 240, 255);
|
|
115
|
+
--spectrum-cyan-300: rgb(136, 231, 250);
|
|
116
|
+
--spectrum-cyan-400: rgb(96, 216, 243);
|
|
117
|
+
--spectrum-cyan-500: rgb(51, 197, 232);
|
|
118
|
+
--spectrum-cyan-600: rgb(18, 176, 218);
|
|
119
|
+
--spectrum-cyan-700: rgb(1, 156, 200);
|
|
120
|
+
--spectrum-cyan-800: rgb(0, 134, 180);
|
|
121
|
+
--spectrum-cyan-900: rgb(0, 113, 159);
|
|
122
|
+
--spectrum-cyan-1000: rgb(0, 93, 137);
|
|
123
|
+
--spectrum-cyan-1100: rgb(0, 74, 115);
|
|
124
|
+
--spectrum-cyan-1200: rgb(0, 57, 93);
|
|
125
|
+
--spectrum-cyan-1300: rgb(0, 42, 70);
|
|
126
|
+
--spectrum-cyan-1400: rgb(0, 30, 51);
|
|
127
|
+
--spectrum-blue-100: rgb(224, 242, 255);
|
|
128
|
+
--spectrum-blue-200: rgb(202, 232, 255);
|
|
129
|
+
--spectrum-blue-300: rgb(181, 222, 255);
|
|
130
|
+
--spectrum-blue-400: rgb(150, 206, 253);
|
|
131
|
+
--spectrum-blue-500: rgb(120, 187, 250);
|
|
132
|
+
--spectrum-blue-600: rgb(89, 167, 246);
|
|
133
|
+
--spectrum-blue-700: rgb(56, 146, 243);
|
|
134
|
+
--spectrum-blue-800: rgb(20, 122, 243);
|
|
135
|
+
--spectrum-blue-900: rgb(2, 101, 220);
|
|
136
|
+
--spectrum-blue-1000: rgb(0, 84, 182);
|
|
137
|
+
--spectrum-blue-1100: rgb(0, 68, 145);
|
|
138
|
+
--spectrum-blue-1200: rgb(0, 53, 113);
|
|
139
|
+
--spectrum-blue-1300: rgb(0, 39, 84);
|
|
140
|
+
--spectrum-blue-1400: rgb(0, 28, 60);
|
|
141
|
+
--spectrum-indigo-100: rgb(237, 238, 255);
|
|
142
|
+
--spectrum-indigo-200: rgb(224, 226, 255);
|
|
143
|
+
--spectrum-indigo-300: rgb(211, 213, 255);
|
|
144
|
+
--spectrum-indigo-400: rgb(193, 196, 255);
|
|
145
|
+
--spectrum-indigo-500: rgb(172, 175, 255);
|
|
146
|
+
--spectrum-indigo-600: rgb(149, 153, 255);
|
|
147
|
+
--spectrum-indigo-700: rgb(126, 132, 252);
|
|
148
|
+
--spectrum-indigo-800: rgb(104, 109, 244);
|
|
149
|
+
--spectrum-indigo-900: rgb(82, 88, 228);
|
|
150
|
+
--spectrum-indigo-1000: rgb(64, 70, 202);
|
|
151
|
+
--spectrum-indigo-1100: rgb(50, 54, 168);
|
|
152
|
+
--spectrum-indigo-1200: rgb(38, 41, 134);
|
|
153
|
+
--spectrum-indigo-1300: rgb(27, 30, 100);
|
|
154
|
+
--spectrum-indigo-1400: rgb(20, 22, 72);
|
|
155
|
+
--spectrum-purple-100: rgb(246, 235, 255);
|
|
156
|
+
--spectrum-purple-200: rgb(238, 221, 255);
|
|
157
|
+
--spectrum-purple-300: rgb(230, 208, 255);
|
|
158
|
+
--spectrum-purple-400: rgb(219, 187, 254);
|
|
159
|
+
--spectrum-purple-500: rgb(204, 164, 253);
|
|
160
|
+
--spectrum-purple-600: rgb(189, 139, 252);
|
|
161
|
+
--spectrum-purple-700: rgb(174, 114, 249);
|
|
162
|
+
--spectrum-purple-800: rgb(157, 87, 244);
|
|
163
|
+
--spectrum-purple-900: rgb(137, 61, 231);
|
|
164
|
+
--spectrum-purple-1000: rgb(115, 38, 211);
|
|
165
|
+
--spectrum-purple-1100: rgb(93, 19, 183);
|
|
166
|
+
--spectrum-purple-1200: rgb(71, 12, 148);
|
|
167
|
+
--spectrum-purple-1300: rgb(51, 16, 106);
|
|
168
|
+
--spectrum-purple-1400: rgb(35, 15, 73);
|
|
169
|
+
--spectrum-fuchsia-100: rgb(255, 233, 252);
|
|
170
|
+
--spectrum-fuchsia-200: rgb(255, 218, 250);
|
|
171
|
+
--spectrum-fuchsia-300: rgb(254, 199, 248);
|
|
172
|
+
--spectrum-fuchsia-400: rgb(251, 174, 246);
|
|
173
|
+
--spectrum-fuchsia-500: rgb(245, 146, 243);
|
|
174
|
+
--spectrum-fuchsia-600: rgb(237, 116, 237);
|
|
175
|
+
--spectrum-fuchsia-700: rgb(224, 85, 226);
|
|
176
|
+
--spectrum-fuchsia-800: rgb(205, 58, 206);
|
|
177
|
+
--spectrum-fuchsia-900: rgb(182, 34, 183);
|
|
178
|
+
--spectrum-fuchsia-1000: rgb(157, 3, 158);
|
|
179
|
+
--spectrum-fuchsia-1100: rgb(128, 0, 129);
|
|
180
|
+
--spectrum-fuchsia-1200: rgb(100, 6, 100);
|
|
181
|
+
--spectrum-fuchsia-1300: rgb(71, 14, 70);
|
|
182
|
+
--spectrum-fuchsia-1400: rgb(50, 13, 49);
|
|
183
|
+
--spectrum-magenta-100: rgb(255, 234, 241);
|
|
184
|
+
--spectrum-magenta-200: rgb(255, 220, 232);
|
|
185
|
+
--spectrum-magenta-300: rgb(255, 202, 221);
|
|
186
|
+
--spectrum-magenta-400: rgb(255, 178, 206);
|
|
187
|
+
--spectrum-magenta-500: rgb(255, 149, 189);
|
|
188
|
+
--spectrum-magenta-600: rgb(250, 119, 170);
|
|
189
|
+
--spectrum-magenta-700: rgb(239, 90, 152);
|
|
190
|
+
--spectrum-magenta-800: rgb(222, 61, 130);
|
|
191
|
+
--spectrum-magenta-900: rgb(200, 34, 105);
|
|
192
|
+
--spectrum-magenta-1000: rgb(173, 9, 85);
|
|
193
|
+
--spectrum-magenta-1100: rgb(142, 0, 69);
|
|
194
|
+
--spectrum-magenta-1200: rgb(112, 0, 55);
|
|
195
|
+
--spectrum-magenta-1300: rgb(84, 3, 42);
|
|
196
|
+
--spectrum-magenta-1400: rgb(60, 6, 29);
|
|
197
|
+
--spectrum-alias-background-color-modal-overlay: rgba(0,0,0,0.4);
|
|
198
|
+
--spectrum-alias-dropshadow-color: rgba(0,0,0,0.15);
|
|
199
|
+
--spectrum-alias-background-color-hover-overlay: rgba(0,0,0,0.04);
|
|
200
|
+
--spectrum-alias-highlight-hover: rgba(0,0,0,0.06);
|
|
201
|
+
--spectrum-alias-highlight-active: rgba(44,44,44,0.1);
|
|
202
|
+
--spectrum-alias-highlight-selected: rgba(2,101,220,0.1);
|
|
203
|
+
--spectrum-alias-highlight-selected-hover: rgba(2,101,220,0.2);
|
|
204
|
+
--spectrum-alias-highlight-invalid: rgba(211, 21, 16, 0.15); /* matches red-900 */
|
|
205
|
+
--spectrum-alias-text-highlight-color: rgba(2,101,220,0.2);
|
|
206
|
+
--spectrum-alias-background-color-quickactions: rgba(248,248,248,0.9);
|
|
207
|
+
--spectrum-alias-radial-reaction-color-default: rgba(34,34,34,0.6);
|
|
208
|
+
--spectrum-alias-pasteboard-background-color: var(--spectrum-global-color-gray-300);
|
|
209
|
+
--spectrum-alias-appframe-border-color: var(--spectrum-global-color-gray-300);
|
|
210
|
+
--spectrum-alias-appframe-separator-color: var(--spectrum-global-color-gray-300);
|
|
211
|
+
--spectrum-colorarea-border-color: rgba(44,44,44,0.1);
|
|
212
|
+
--spectrum-colorarea-border-color-hover: rgba(44,44,44,0.1);
|
|
213
|
+
--spectrum-colorarea-border-color-down: rgba(44,44,44,0.1);
|
|
214
|
+
--spectrum-colorarea-border-color-key-focus: rgba(44,44,44,0.1);
|
|
215
|
+
--spectrum-colorslider-border-color: rgba(44,44,44,0.1);
|
|
216
|
+
--spectrum-colorslider-border-color-hover: rgba(44,44,44,0.1);
|
|
217
|
+
--spectrum-colorslider-border-color-down: rgba(44,44,44,0.1);
|
|
218
|
+
--spectrum-colorslider-border-color-key-focus: rgba(44,44,44,0.1);
|
|
219
|
+
--spectrum-colorslider-vertical-border-color: rgba(44,44,44,0.1);
|
|
220
|
+
--spectrum-colorslider-vertical-border-color-hover: rgba(44,44,44,0.1);
|
|
221
|
+
--spectrum-colorslider-vertical-border-color-down: rgba(44,44,44,0.1);
|
|
222
|
+
--spectrum-colorslider-vertical-border-color-key-focus: rgba(44,44,44,0.1);
|
|
223
|
+
--spectrum-colorwheel-border-color: rgba(44,44,44,0.1);
|
|
224
|
+
--spectrum-colorwheel-border-color-hover: rgba(44,44,44,0.1);
|
|
225
|
+
--spectrum-colorwheel-border-color-down: rgba(44,44,44,0.1);
|
|
226
|
+
--spectrum-colorwheel-border-color-key-focus: rgba(44,44,44,0.1);
|
|
227
|
+
--spectrum-miller-column-item-background-color-selected: rgba(20,115,230,0.1);
|
|
228
|
+
--spectrum-miller-column-item-background-color-selected-hover: rgba(20,115,230,0.2);
|
|
229
|
+
--spectrum-tabs-compact-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
230
|
+
--spectrum-tabs-compact-vertical-rule-color: var(--spectrum-global-color-gray-200);
|
|
231
|
+
--spectrum-tabs-compact-vertical-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
232
|
+
--spectrum-tabs-compact-vertical-emphasized-rule-color: var(--spectrum-global-color-gray-200);
|
|
233
|
+
--spectrum-tabs-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
234
|
+
--spectrum-tabs-quiet-compact-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
235
|
+
--spectrum-tabs-quiet-compact-vertical-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
236
|
+
--spectrum-tabs-quiet-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
237
|
+
--spectrum-tabs-quiet-vertical-emphasized-selection-indicator-color: var(--spectrum-global-color-blue-500);
|
|
238
|
+
--spectrum-well-background-color: rgba(34,34,34,0.02);
|
|
239
|
+
--spectrum-well-border-color: rgba(0,0,0,0.05);
|
|
240
|
+
--spectrum-tray-background-color: var(--spectrum-global-color-gray-50);
|
|
241
|
+
/* react spectrum additions */
|
|
242
|
+
--react-spectrum-datepicker-placeholder-color: rgb(118, 118, 118); /* 4.54:1 contrast ratio */
|
|
243
|
+
|
|
244
|
+
--spectrum-accent-background-color-default: var(--spectrum-accent-color-900);
|
|
245
|
+
--spectrum-accent-background-color-hover: var(--spectrum-accent-color-1000);
|
|
246
|
+
--spectrum-accent-background-color-down: var(--spectrum-accent-color-1100);
|
|
247
|
+
--spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-1000);
|
|
248
|
+
|
|
249
|
+
--spectrum-neutral-background-color-default: var(--spectrum-gray-800);
|
|
250
|
+
--spectrum-neutral-background-color-hover: var(--spectrum-gray-900);
|
|
251
|
+
--spectrum-neutral-background-color-down: var(--spectrum-gray-900);
|
|
252
|
+
--spectrum-neutral-background-color-key-focus: var(--spectrum-gray-900);
|
|
253
|
+
|
|
254
|
+
--spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-600);
|
|
255
|
+
--spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-700);
|
|
256
|
+
--spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-800);
|
|
257
|
+
--spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-700);
|
|
258
|
+
|
|
259
|
+
--spectrum-negative-background-color-default: var(--spectrum-red-900);
|
|
260
|
+
--spectrum-negative-background-color-hover: var(--spectrum-red-1000);
|
|
261
|
+
--spectrum-negative-background-color-down: var(--spectrum-red-1100);
|
|
262
|
+
--spectrum-negative-background-color-key-focus: var(--spectrum-red-1000);
|
|
263
|
+
|
|
264
|
+
--spectrum-positive-background-color-default: var(--spectrum-green-900);
|
|
265
|
+
--spectrum-positive-background-color-hover: var(--spectrum-green-1000);
|
|
266
|
+
--spectrum-positive-background-color-down: var(--spectrum-green-1100);
|
|
267
|
+
--spectrum-positive-background-color-key-focus: var(--spectrum-green-1000);
|
|
268
|
+
|
|
269
|
+
--spectrum-informative-background-color-default: var(--spectrum-blue-900);
|
|
270
|
+
--spectrum-informative-background-color-hover: var(--spectrum-blue-1000);
|
|
271
|
+
--spectrum-informative-background-color-down: var(--spectrum-blue-1100);
|
|
272
|
+
--spectrum-informative-background-color-key-focus: var(--spectrum-blue-1000);
|
|
273
|
+
|
|
274
|
+
--spectrum-gray-background-color-default: var(--spectrum-gray-700);
|
|
275
|
+
--spectrum-red-background-color-default: var(--spectrum-red-600);
|
|
276
|
+
--spectrum-orange-background-color-default: var(--spectrum-orange-600);
|
|
277
|
+
--spectrum-yellow-background-color-default: var(--spectrum-yellow-400);
|
|
278
|
+
--spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-500);
|
|
279
|
+
--spectrum-celery-background-color-default: var(--spectrum-celery-600);
|
|
280
|
+
--spectrum-green-background-color-default: var(--spectrum-green-900);
|
|
281
|
+
--spectrum-seafoam-background-color-default: var(--spectrum-seafoam-900);
|
|
282
|
+
--spectrum-cyan-background-color-default: var(--spectrum-cyan-900);
|
|
283
|
+
--spectrum-blue-background-color-default: var(--spectrum-blue-900);
|
|
284
|
+
--spectrum-indigo-background-color-default: var(--spectrum-indigo-900);
|
|
285
|
+
--spectrum-purple-background-color-default: var(--spectrum-purple-900);
|
|
286
|
+
--spectrum-fuchsia-background-color-default: var(--spectrum-fuchsia-900);
|
|
287
|
+
--spectrum-magenta-background-color-default: var(--spectrum-magenta-900);
|
|
288
|
+
|
|
289
|
+
--spectrum-negative-visual-color: var(--spectrum-red-800);
|
|
290
|
+
--spectrum-positive-visual-color: var(--spectrum-green-700);
|
|
291
|
+
--spectrum-notice-visual-color: var(--spectrum-orange-700);
|
|
292
|
+
--spectrum-informative-visual-color: var(--spectrum-blue-800);
|
|
293
|
+
|
|
294
|
+
--spectrum-gray-visual-color: var(--spectrum-gray-500);
|
|
295
|
+
--spectrum-red-visual-color: var(--spectrum-red-800);
|
|
296
|
+
--spectrum-orange-visual-color: var(--spectrum-orange-700);
|
|
297
|
+
--spectrum-yellow-visual-color: var(--spectrum-yellow-600);
|
|
298
|
+
--spectrum-chartreuse-visual-color: var(--spectrum-chartreuse-600);
|
|
299
|
+
--spectrum-celery-visual-color: var(--spectrum-celery-700);
|
|
300
|
+
--spectrum-green-visual-color: var(--spectrum-green-700);
|
|
301
|
+
--spectrum-seafoam-visual-color: var(--spectrum-seafoam-700);
|
|
302
|
+
--spectrum-cyan-visual-color: var(--spectrum-cyan-600);
|
|
303
|
+
--spectrum-blue-visual-color: var(--spectrum-blue-800);
|
|
304
|
+
--spectrum-indigo-visual-color: var(--spectrum-indigo-800);
|
|
305
|
+
--spectrum-purple-visual-color: var(--spectrum-purple-800);
|
|
306
|
+
--spectrum-fuchsia-visual-color: var(--spectrum-fuchsia-800);
|
|
307
|
+
--spectrum-magenta-visual-color: var(--spectrum-magenta-800);
|
|
308
|
+
|
|
309
|
+
--spectrum-alias-border-color: var(--spectrum-gray-400);
|
|
310
|
+
--spectrum-alias-border-color-hover: var(--spectrum-gray-500);
|
|
311
|
+
--spectrum-alias-border-color-down: var(--spectrum-gray-900);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.react-aria-Button {
|
|
315
|
+
--border-color: var(--spectrum-alias-border-color);
|
|
316
|
+
--border-color-pressed: var(--spectrum-alias-border-color-down);
|
|
317
|
+
--border-color-disabled: var(--spectrum-alias-border-color-disabled);
|
|
318
|
+
--background-color: var(--spectrum-global-color-gray-50);
|
|
319
|
+
--background-color-pressed: var(--spectrum-global-color-gray-100);
|
|
320
|
+
--text-color: var(--spectrum-alias-text-color);
|
|
321
|
+
--text-color-disabled: var(--spectrum-alias-text-color-disabled);
|
|
322
|
+
--focus-ring-color: slateblue;
|
|
323
|
+
|
|
324
|
+
color: var(--text-color);
|
|
325
|
+
background: var(--background-color);
|
|
326
|
+
border: 1px solid var(--border-color);
|
|
327
|
+
border-radius: 4px;
|
|
328
|
+
appearance: none;
|
|
329
|
+
vertical-align: middle;
|
|
330
|
+
font-size: 1.2rem;
|
|
331
|
+
text-align: center;
|
|
332
|
+
margin: 0;
|
|
333
|
+
outline: none;
|
|
334
|
+
padding: 4px 12px;
|
|
335
|
+
|
|
336
|
+
&[data-pressed] {
|
|
337
|
+
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.1);
|
|
338
|
+
background: var(--background-color-pressed);
|
|
339
|
+
border-color: var(--border-color-pressed);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&[data-focus-visible] {
|
|
343
|
+
border-color: var(--focus-ring-color);
|
|
344
|
+
box-shadow: 0 0 0 1px var(--focus-ring-color);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&:disabled {
|
|
348
|
+
border-color: var(--border-color-disabled);
|
|
349
|
+
color: var(--text-color-disabled);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@media (forced-colors: active) {
|
|
354
|
+
.react-aria-Button {
|
|
355
|
+
forced-color-adjust: none;
|
|
356
|
+
--border-color: ButtonBorder;
|
|
357
|
+
--border-color-pressed: ButtonBorder;
|
|
358
|
+
--border-color-disabled: GrayText;
|
|
359
|
+
--background-color: ButtonFace;
|
|
360
|
+
--background-color-pressed: ButtonFace;
|
|
361
|
+
--text-color: ButtonText;
|
|
362
|
+
--text-color-disabled: GrayText;
|
|
363
|
+
--focus-ring-color: Highlight;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.react-aria-TextField {
|
|
368
|
+
--field-border: var(--spectrum-alias-border-color);
|
|
369
|
+
--field-border-disabled: var(--spectrum-alias-border-color-disabled);
|
|
370
|
+
--field-background: var(--spectrum-global-color-gray-50);
|
|
371
|
+
--text-color: var(--spectrum-alias-text-color);
|
|
372
|
+
--text-color-disabled: var(--spectrum-alias-text-color-disabled);
|
|
373
|
+
--focus-ring-color: slateblue;
|
|
374
|
+
--invalid-color: var(--spectrum-global-color-red-600);
|
|
375
|
+
display: flex;
|
|
376
|
+
flex-direction: column;
|
|
377
|
+
width: fit-content;
|
|
378
|
+
flex: 1;
|
|
379
|
+
|
|
380
|
+
.react-aria-Input {
|
|
381
|
+
margin: 0;
|
|
382
|
+
border: 1px solid var(--field-border);
|
|
383
|
+
border-radius: 6px;
|
|
384
|
+
background: var(--field-background);
|
|
385
|
+
font-size: 1.143rem;
|
|
386
|
+
color: var(--text-color);
|
|
387
|
+
border-radius: 0.25rem;
|
|
388
|
+
margin-right: 1rem;
|
|
389
|
+
border-width: 1px;
|
|
390
|
+
width: 100%;
|
|
391
|
+
padding-left: 0.75rem;
|
|
392
|
+
padding-right: 0.75rem;
|
|
393
|
+
padding-bottom: 0.5rem;
|
|
394
|
+
padding-top: 0.5rem;
|
|
395
|
+
|
|
396
|
+
&[aria-invalid] {
|
|
397
|
+
border-color: var(--invalid-color);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&:focus {
|
|
401
|
+
outline: none;
|
|
402
|
+
border-color: var(--focus-ring-color);
|
|
403
|
+
box-shadow: 0 0 0 1px var(--focus-ring-color);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
&:disabled {
|
|
407
|
+
border-color: var(--field-border-disabled);
|
|
408
|
+
color: var(--text-color-disabled);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
[slot="description"] {
|
|
413
|
+
font-size: 12px;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
[slot="errorMessage"] {
|
|
417
|
+
font-size: 12px;
|
|
418
|
+
color: var(--invalid-color);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@media (forced-colors: active) {
|
|
423
|
+
.react-aria-TextField {
|
|
424
|
+
--field-border: ButtonBorder;
|
|
425
|
+
--field-border-disabled: GrayText;
|
|
426
|
+
--field-background: Field;
|
|
427
|
+
--text-color: FieldText;
|
|
428
|
+
--text-color-disabled: GrayText;
|
|
429
|
+
--focus-ring-color: Highlight;
|
|
430
|
+
--invalid-color: LinkText;
|
|
431
|
+
}
|
|
432
|
+
}
|
example/src/pages/todos/page.css
CHANGED
|
@@ -34,82 +34,13 @@
|
|
|
34
34
|
|
|
35
35
|
& .add-button {
|
|
36
36
|
border-radius: 0.25rem;
|
|
37
|
-
padding: 0.5rem;
|
|
37
|
+
padding: 0.5rem 0.7rem;
|
|
38
38
|
background-color: #2563eb;
|
|
39
39
|
color: white;
|
|
40
40
|
margin-left: 0.5rem;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:root {
|
|
45
|
-
--spectrum-alias-border-color: black;
|
|
46
|
-
--spectrum-global-color-gray-50: white;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.react-aria-TextField {
|
|
50
|
-
--field-border: var(--spectrum-alias-border-color);
|
|
51
|
-
--field-border-disabled: var(--spectrum-alias-border-color-disabled);
|
|
52
|
-
--field-background: var(--spectrum-global-color-gray-50);
|
|
53
|
-
--text-color: var(--spectrum-alias-text-color);
|
|
54
|
-
--text-color-disabled: var(--spectrum-alias-text-color-disabled);
|
|
55
|
-
--focus-ring-color: slateblue;
|
|
56
|
-
--invalid-color: var(--spectrum-global-color-red-600);
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
width: fit-content;
|
|
60
|
-
flex: 1;
|
|
61
|
-
|
|
62
|
-
.react-aria-Input {
|
|
63
|
-
padding: 0.286rem;
|
|
64
|
-
margin: 0;
|
|
65
|
-
border: 1px solid var(--field-border);
|
|
66
|
-
border-radius: 6px;
|
|
67
|
-
background: var(--field-background);
|
|
68
|
-
font-size: 1.143rem;
|
|
69
|
-
color: var(--text-color);
|
|
70
|
-
border-radius: 0.25rem;
|
|
71
|
-
margin-right: 1rem;
|
|
72
|
-
border-width: 1px;
|
|
73
|
-
width: 100%;
|
|
74
|
-
padding-left: 0.75rem;
|
|
75
|
-
padding-right: 0.75rem;
|
|
76
|
-
padding-bottom: 0.5rem;
|
|
77
|
-
padding-top: 0.5rem;
|
|
78
|
-
|
|
79
|
-
&[aria-invalid] {
|
|
80
|
-
border-color: var(--invalid-color);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:focus {
|
|
84
|
-
outline: none;
|
|
85
|
-
border-color: var(--focus-ring-color);
|
|
86
|
-
box-shadow: 0 0 0 1px var(--focus-ring-color);
|
|
87
|
-
}
|
|
88
41
|
|
|
89
42
|
&:disabled {
|
|
90
|
-
border-color: var(--field-border-disabled);
|
|
91
|
-
|
|
43
|
+
opacity: 0.5;
|
|
92
44
|
}
|
|
93
45
|
}
|
|
94
|
-
|
|
95
|
-
[slot="description"] {
|
|
96
|
-
font-size: 12px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
[slot="errorMessage"] {
|
|
100
|
-
font-size: 12px;
|
|
101
|
-
color: var(--invalid-color);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@media (forced-colors: active) {
|
|
106
|
-
.react-aria-TextField {
|
|
107
|
-
--field-border: ButtonBorder;
|
|
108
|
-
--field-border-disabled: GrayText;
|
|
109
|
-
--field-background: Field;
|
|
110
|
-
--text-color: FieldText;
|
|
111
|
-
--text-color-disabled: GrayText;
|
|
112
|
-
--focus-ring-color: Highlight;
|
|
113
|
-
--invalid-color: LinkText;
|
|
114
|
-
}
|
|
115
46
|
}
|