loseta 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/commands/add.js +5 -9
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.js +17 -7
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/style.js +14 -37
- package/dist/commands/style.js.map +1 -1
- package/dist/style-selection.d.ts +32 -0
- package/dist/style-selection.js +52 -0
- package/dist/style-selection.js.map +1 -0
- package/dist/style-switch.d.ts +37 -0
- package/dist/style-switch.js +70 -0
- package/dist/style-switch.js.map +1 -0
- package/package.json +2 -1
- package/registry/registry.json +1 -1
- package/registry/reset.css +332 -80
- package/registry/styles/luma/badge.css +8 -10
- package/registry/styles/luma/button.css +37 -43
- package/registry/styles/luma/checkbox.css +12 -19
- package/registry/styles/luma/code-block.css +25 -30
- package/registry/styles/luma/dropdown-menu.css +4 -5
- package/registry/styles/luma/input.css +16 -17
- package/registry/styles/luma/label.css +8 -9
- package/registry/styles/luma/native-select.css +19 -15
- package/registry/styles/luma/radio.css +12 -19
- package/registry/styles/luma/switch.css +15 -21
- package/registry/styles/luma/tabs.css +9 -22
- package/registry/styles/luma/textarea.css +16 -17
- package/registry/styles/lyra/badge.css +8 -10
- package/registry/styles/lyra/button.css +37 -43
- package/registry/styles/lyra/checkbox.css +12 -19
- package/registry/styles/lyra/code-block.css +25 -30
- package/registry/styles/lyra/dropdown-menu.css +4 -5
- package/registry/styles/lyra/input.css +16 -16
- package/registry/styles/lyra/label.css +8 -9
- package/registry/styles/lyra/native-select.css +19 -15
- package/registry/styles/lyra/radio.css +12 -19
- package/registry/styles/lyra/switch.css +15 -21
- package/registry/styles/lyra/tabs.css +9 -22
- package/registry/styles/lyra/textarea.css +16 -16
- package/registry/styles/maia/badge.css +8 -10
- package/registry/styles/maia/button.css +37 -43
- package/registry/styles/maia/checkbox.css +12 -19
- package/registry/styles/maia/code-block.css +25 -30
- package/registry/styles/maia/dropdown-menu.css +4 -5
- package/registry/styles/maia/input.css +16 -17
- package/registry/styles/maia/label.css +8 -9
- package/registry/styles/maia/native-select.css +19 -15
- package/registry/styles/maia/radio.css +12 -19
- package/registry/styles/maia/switch.css +15 -21
- package/registry/styles/maia/tabs.css +9 -22
- package/registry/styles/maia/textarea.css +16 -17
- package/registry/styles/mira/badge.css +8 -10
- package/registry/styles/mira/button.css +37 -43
- package/registry/styles/mira/checkbox.css +12 -19
- package/registry/styles/mira/code-block.css +25 -30
- package/registry/styles/mira/dropdown-menu.css +4 -5
- package/registry/styles/mira/input.css +16 -16
- package/registry/styles/mira/label.css +8 -9
- package/registry/styles/mira/native-select.css +19 -15
- package/registry/styles/mira/radio.css +12 -19
- package/registry/styles/mira/switch.css +15 -21
- package/registry/styles/mira/tabs.css +9 -22
- package/registry/styles/mira/textarea.css +16 -16
- package/registry/styles/nova/badge.css +8 -10
- package/registry/styles/nova/button.css +37 -43
- package/registry/styles/nova/checkbox.css +12 -19
- package/registry/styles/nova/code-block.css +25 -30
- package/registry/styles/nova/dropdown-menu.css +4 -5
- package/registry/styles/nova/input.css +16 -17
- package/registry/styles/nova/label.css +8 -9
- package/registry/styles/nova/native-select.css +19 -15
- package/registry/styles/nova/radio.css +12 -19
- package/registry/styles/nova/switch.css +15 -21
- package/registry/styles/nova/tabs.css +9 -22
- package/registry/styles/nova/textarea.css +16 -17
- package/registry/styles/rhea/badge.css +8 -10
- package/registry/styles/rhea/button.css +37 -43
- package/registry/styles/rhea/checkbox.css +12 -19
- package/registry/styles/rhea/code-block.css +25 -30
- package/registry/styles/rhea/dropdown-menu.css +4 -5
- package/registry/styles/rhea/input.css +16 -17
- package/registry/styles/rhea/label.css +8 -9
- package/registry/styles/rhea/native-select.css +19 -15
- package/registry/styles/rhea/radio.css +12 -19
- package/registry/styles/rhea/switch.css +15 -21
- package/registry/styles/rhea/tabs.css +9 -22
- package/registry/styles/rhea/textarea.css +16 -17
- package/registry/styles/sera/badge.css +8 -10
- package/registry/styles/sera/button.css +37 -43
- package/registry/styles/sera/checkbox.css +12 -19
- package/registry/styles/sera/code-block.css +25 -30
- package/registry/styles/sera/dropdown-menu.css +4 -5
- package/registry/styles/sera/input.css +16 -17
- package/registry/styles/sera/label.css +8 -9
- package/registry/styles/sera/native-select.css +19 -15
- package/registry/styles/sera/radio.css +12 -19
- package/registry/styles/sera/switch.css +15 -21
- package/registry/styles/sera/tabs.css +9 -22
- package/registry/styles/sera/textarea.css +16 -17
- package/registry/styles/vega/badge.css +8 -10
- package/registry/styles/vega/button.css +37 -43
- package/registry/styles/vega/checkbox.css +12 -19
- package/registry/styles/vega/code-block.css +25 -30
- package/registry/styles/vega/dropdown-menu.css +4 -5
- package/registry/styles/vega/input.css +16 -17
- package/registry/styles/vega/label.css +8 -9
- package/registry/styles/vega/native-select.css +19 -15
- package/registry/styles/vega/radio.css +12 -19
- package/registry/styles/vega/switch.css +15 -21
- package/registry/styles/vega/tabs.css +9 -22
- package/registry/styles/vega/textarea.css +16 -17
- package/registry/tokens.css +116 -130
package/registry/reset.css
CHANGED
|
@@ -1,43 +1,81 @@
|
|
|
1
|
-
/* Minimal reset. Not a full preflight: only what the components rely on. */
|
|
2
1
|
@layer loseta.reset {
|
|
2
|
+
/*
|
|
3
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
4
|
+
2. Remove default margins and padding
|
|
5
|
+
3. Reset all borders.
|
|
6
|
+
*/
|
|
7
|
+
|
|
3
8
|
*,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
::after,
|
|
10
|
+
::before,
|
|
11
|
+
::backdrop,
|
|
12
|
+
::file-selector-button {
|
|
13
|
+
box-sizing: border-box; /* 1 */
|
|
14
|
+
margin: 0; /* 2 */
|
|
15
|
+
padding: 0; /* 2 */
|
|
16
|
+
border: 0 solid; /* 3 */
|
|
11
17
|
}
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
19
|
+
/*
|
|
20
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
21
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
22
|
+
3. Use a more readable tab size.
|
|
23
|
+
4. Use the user's configured `sans` font-family by default.
|
|
24
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
25
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
26
|
+
7. Disable tap highlights on iOS.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
html,
|
|
30
|
+
:host {
|
|
31
|
+
line-height: 1.5; /* 1 */
|
|
32
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
33
|
+
tab-size: 4; /* 3 */
|
|
34
|
+
font-family: var(
|
|
35
|
+
--font-sans,
|
|
36
|
+
-apple-system,
|
|
37
|
+
BlinkMacSystemFont,
|
|
38
|
+
"Segoe UI",
|
|
39
|
+
Roboto,
|
|
40
|
+
"Helvetica Neue",
|
|
41
|
+
"Noto Sans",
|
|
42
|
+
Arial,
|
|
43
|
+
sans-serif,
|
|
44
|
+
"Apple Color Emoji",
|
|
45
|
+
"Segoe UI Emoji",
|
|
46
|
+
"Segoe UI Symbol",
|
|
47
|
+
"Noto Color Emoji"
|
|
48
|
+
); /* 4 */
|
|
49
|
+
font-feature-settings: var(--font-sans-feature, normal); /* 5 */
|
|
50
|
+
font-variation-settings: var(--font-sans-variation, normal); /* 6 */
|
|
51
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
16
52
|
}
|
|
17
53
|
|
|
18
|
-
|
|
19
|
-
|
|
54
|
+
/*
|
|
55
|
+
1. Add the correct height in Firefox.
|
|
56
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
57
|
+
3. Reset the default border style to a 1px solid border.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
hr {
|
|
61
|
+
height: 0; /* 1 */
|
|
62
|
+
color: inherit; /* 2 */
|
|
63
|
+
border-top-width: 1px; /* 3 */
|
|
20
64
|
}
|
|
21
65
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
blockquote,
|
|
30
|
-
figure,
|
|
31
|
-
hr,
|
|
32
|
-
dl,
|
|
33
|
-
dd,
|
|
34
|
-
ol,
|
|
35
|
-
ul,
|
|
36
|
-
menu,
|
|
37
|
-
pre {
|
|
38
|
-
margin: 0;
|
|
66
|
+
/*
|
|
67
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
abbr:where([title]) {
|
|
71
|
+
-webkit-text-decoration: underline dotted;
|
|
72
|
+
text-decoration: underline dotted;
|
|
39
73
|
}
|
|
40
74
|
|
|
75
|
+
/*
|
|
76
|
+
Remove the default font size and weight for headings.
|
|
77
|
+
*/
|
|
78
|
+
|
|
41
79
|
h1,
|
|
42
80
|
h2,
|
|
43
81
|
h3,
|
|
@@ -48,52 +86,132 @@
|
|
|
48
86
|
font-weight: inherit;
|
|
49
87
|
}
|
|
50
88
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
padding: 0;
|
|
55
|
-
list-style: none;
|
|
56
|
-
}
|
|
89
|
+
/*
|
|
90
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
91
|
+
*/
|
|
57
92
|
|
|
58
93
|
a {
|
|
59
94
|
color: inherit;
|
|
95
|
+
-webkit-text-decoration: inherit;
|
|
60
96
|
text-decoration: inherit;
|
|
61
97
|
}
|
|
62
98
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
font: inherit;
|
|
71
|
-
color: inherit;
|
|
99
|
+
/*
|
|
100
|
+
Add the correct font weight in Edge and Safari.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
b,
|
|
104
|
+
strong {
|
|
105
|
+
font-weight: bolder;
|
|
72
106
|
}
|
|
73
107
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
108
|
+
/*
|
|
109
|
+
1. Use the user's configured `mono` font-family by default.
|
|
110
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
|
111
|
+
3. Use the user's configured `mono` font-variation-settings by default.
|
|
112
|
+
4. Correct the odd `em` font sizing in all browsers.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
code,
|
|
116
|
+
kbd,
|
|
117
|
+
samp,
|
|
118
|
+
pre {
|
|
119
|
+
font-family: var(
|
|
120
|
+
--font-mono,
|
|
121
|
+
ui-monospace,
|
|
122
|
+
SFMono-Regular,
|
|
123
|
+
Menlo,
|
|
124
|
+
Monaco,
|
|
125
|
+
Consolas,
|
|
126
|
+
"Liberation Mono",
|
|
127
|
+
"Courier New",
|
|
128
|
+
monospace
|
|
129
|
+
); /* 1 */
|
|
130
|
+
font-feature-settings: var(--font-mono-feature, normal); /* 2 */
|
|
131
|
+
font-variation-settings: var(--font-mono-variation, normal); /* 3 */
|
|
132
|
+
font-size: 1em; /* 4 */
|
|
77
133
|
}
|
|
78
134
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-webkit-appearance: button;
|
|
135
|
+
/*
|
|
136
|
+
Add the correct font size in all browsers.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
small {
|
|
140
|
+
font-size: 80%;
|
|
86
141
|
}
|
|
87
142
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
143
|
+
/*
|
|
144
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
sub,
|
|
148
|
+
sup {
|
|
149
|
+
font-size: 75%;
|
|
150
|
+
line-height: 0;
|
|
151
|
+
position: relative;
|
|
152
|
+
vertical-align: baseline;
|
|
91
153
|
}
|
|
92
154
|
|
|
93
|
-
|
|
94
|
-
|
|
155
|
+
sub {
|
|
156
|
+
bottom: -0.25em;
|
|
95
157
|
}
|
|
96
158
|
|
|
159
|
+
sup {
|
|
160
|
+
top: -0.5em;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/*
|
|
164
|
+
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)
|
|
165
|
+
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)
|
|
166
|
+
3. Remove gaps between table borders by default.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
table {
|
|
170
|
+
text-indent: 0; /* 1 */
|
|
171
|
+
border-color: inherit; /* 2 */
|
|
172
|
+
border-collapse: collapse; /* 3 */
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
:-moz-focusring:where(:not(iframe)) {
|
|
180
|
+
outline: auto;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/*
|
|
184
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
progress {
|
|
188
|
+
vertical-align: baseline;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/*
|
|
192
|
+
Add the correct display in Chrome and Safari.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
summary {
|
|
196
|
+
display: list-item;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/*
|
|
200
|
+
Make lists unstyled by default.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
ol,
|
|
204
|
+
ul,
|
|
205
|
+
menu {
|
|
206
|
+
list-style: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/*
|
|
210
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
211
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
212
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
213
|
+
*/
|
|
214
|
+
|
|
97
215
|
img,
|
|
98
216
|
svg,
|
|
99
217
|
video,
|
|
@@ -102,47 +220,181 @@
|
|
|
102
220
|
iframe,
|
|
103
221
|
embed,
|
|
104
222
|
object {
|
|
105
|
-
display: block;
|
|
106
|
-
vertical-align: middle;
|
|
223
|
+
display: block; /* 1 */
|
|
224
|
+
vertical-align: middle; /* 2 */
|
|
107
225
|
}
|
|
108
226
|
|
|
227
|
+
/*
|
|
228
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
229
|
+
*/
|
|
230
|
+
|
|
109
231
|
img,
|
|
110
232
|
video {
|
|
111
233
|
max-width: 100%;
|
|
112
234
|
height: auto;
|
|
113
235
|
}
|
|
114
236
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
border
|
|
118
|
-
|
|
237
|
+
/*
|
|
238
|
+
1. Inherit font styles in all browsers.
|
|
239
|
+
2. Remove border radius in all browsers.
|
|
240
|
+
3. Remove background color in all browsers.
|
|
241
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
button,
|
|
245
|
+
input,
|
|
246
|
+
select,
|
|
247
|
+
optgroup,
|
|
248
|
+
textarea,
|
|
249
|
+
::file-selector-button {
|
|
250
|
+
font: inherit; /* 1 */
|
|
251
|
+
font-feature-settings: inherit; /* 1 */
|
|
252
|
+
font-variation-settings: inherit; /* 1 */
|
|
253
|
+
letter-spacing: inherit; /* 1 */
|
|
254
|
+
color: inherit; /* 1 */
|
|
255
|
+
border-radius: 0; /* 2 */
|
|
256
|
+
background-color: transparent; /* 3 */
|
|
257
|
+
opacity: 1; /* 4 */
|
|
119
258
|
}
|
|
120
259
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
260
|
+
/*
|
|
261
|
+
Restore default font weight.
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
265
|
+
font-weight: bolder;
|
|
125
266
|
}
|
|
126
267
|
|
|
127
|
-
|
|
128
|
-
|
|
268
|
+
/*
|
|
269
|
+
Restore indentation.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
273
|
+
padding-inline-start: 20px;
|
|
129
274
|
}
|
|
130
275
|
|
|
131
|
-
|
|
132
|
-
|
|
276
|
+
/*
|
|
277
|
+
Restore space after button.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
::file-selector-button {
|
|
281
|
+
margin-inline-end: 4px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/*
|
|
285
|
+
Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
::placeholder {
|
|
289
|
+
opacity: 1;
|
|
133
290
|
}
|
|
134
291
|
|
|
135
|
-
|
|
292
|
+
/*
|
|
293
|
+
Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
|
|
294
|
+
crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
|
|
298
|
+
(contain-intrinsic-size: 1px) /* Safari 17+ */ {
|
|
299
|
+
::placeholder {
|
|
300
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/*
|
|
305
|
+
Prevent resizing textareas horizontally by default.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
textarea {
|
|
309
|
+
resize: vertical;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/*
|
|
313
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
::-webkit-search-decoration {
|
|
317
|
+
-webkit-appearance: none;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
|
322
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
::-webkit-date-and-time-value {
|
|
326
|
+
min-height: 1lh; /* 1 */
|
|
327
|
+
text-align: inherit; /* 2 */
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
::-webkit-datetime-edit {
|
|
335
|
+
display: inline-flex;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/*
|
|
339
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
136
343
|
padding: 0;
|
|
137
344
|
}
|
|
138
345
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
346
|
+
::-webkit-datetime-edit,
|
|
347
|
+
::-webkit-datetime-edit-year-field,
|
|
348
|
+
::-webkit-datetime-edit-month-field,
|
|
349
|
+
::-webkit-datetime-edit-day-field,
|
|
350
|
+
::-webkit-datetime-edit-hour-field,
|
|
351
|
+
::-webkit-datetime-edit-minute-field,
|
|
352
|
+
::-webkit-datetime-edit-second-field,
|
|
353
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
354
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
355
|
+
padding-block: 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/*
|
|
359
|
+
Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
|
|
360
|
+
*/
|
|
361
|
+
|
|
362
|
+
::-webkit-calendar-picker-indicator {
|
|
363
|
+
line-height: 1;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/*
|
|
367
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
:-moz-ui-invalid {
|
|
371
|
+
box-shadow: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/*
|
|
375
|
+
Correct the inability to style the border radius in iOS Safari.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
button,
|
|
379
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
380
|
+
::file-selector-button {
|
|
381
|
+
appearance: button;
|
|
143
382
|
}
|
|
144
383
|
|
|
145
|
-
|
|
384
|
+
/*
|
|
385
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
::-webkit-inner-spin-button,
|
|
389
|
+
::-webkit-outer-spin-button {
|
|
390
|
+
height: auto;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/*
|
|
394
|
+
Make elements with the HTML hidden attribute stay hidden by default.
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
|
146
398
|
display: none;
|
|
147
399
|
}
|
|
148
400
|
}
|
|
@@ -51,13 +51,12 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&[data-variant='destructive'] {
|
|
54
|
-
background-color:
|
|
54
|
+
background-color: light-dark(
|
|
55
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
56
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
57
|
+
);
|
|
55
58
|
color: var(--destructive);
|
|
56
59
|
|
|
57
|
-
&:is(html.dark *) {
|
|
58
|
-
background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
60
|
&:is(a):hover {
|
|
62
61
|
background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
|
|
63
62
|
}
|
|
@@ -65,12 +64,11 @@
|
|
|
65
64
|
|
|
66
65
|
&[data-variant='ghost'] {
|
|
67
66
|
&:hover {
|
|
68
|
-
background-color:
|
|
67
|
+
background-color: light-dark(
|
|
68
|
+
var(--muted),
|
|
69
|
+
color-mix(in oklab, var(--muted) 50%, transparent)
|
|
70
|
+
);
|
|
69
71
|
color: var(--muted-foreground);
|
|
70
|
-
|
|
71
|
-
&:is(html.dark *) {
|
|
72
|
-
background-color: color-mix(in oklab, var(--muted) 50%, transparent);
|
|
73
|
-
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
|
|
@@ -20,15 +20,14 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&[aria-invalid='true'] {
|
|
23
|
-
border-color:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
23
|
+
border-color: light-dark(
|
|
24
|
+
var(--destructive),
|
|
25
|
+
color-mix(in oklab, var(--destructive) 50%, transparent)
|
|
26
|
+
);
|
|
27
|
+
box-shadow: 0 0 0 3px light-dark(
|
|
28
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
29
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
30
|
+
);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
& svg {
|
|
@@ -153,45 +152,42 @@
|
|
|
153
152
|
}
|
|
154
153
|
|
|
155
154
|
&[data-variant='outline'] {
|
|
156
|
-
border-color: var(--border);
|
|
157
|
-
background-color:
|
|
155
|
+
border-color: light-dark(var(--border), var(--input));
|
|
156
|
+
background-color: light-dark(
|
|
157
|
+
var(--background),
|
|
158
|
+
color-mix(in oklab, var(--input) 30%, transparent)
|
|
159
|
+
);
|
|
158
160
|
box-shadow: var(--shadow-xs);
|
|
159
161
|
|
|
160
|
-
&:hover {
|
|
161
|
-
background-color: var(--muted);
|
|
162
|
-
color: var(--foreground);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
162
|
&[aria-expanded='true'] {
|
|
166
|
-
background-color:
|
|
163
|
+
background-color: light-dark(
|
|
164
|
+
var(--muted),
|
|
165
|
+
color-mix(in oklab, var(--input) 30%, transparent)
|
|
166
|
+
);
|
|
167
167
|
color: var(--foreground);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
&:is(html.dark *) {
|
|
171
|
-
border-color: var(--input);
|
|
172
|
-
background-color: color-mix(in oklab, var(--input) 30%, transparent);
|
|
173
|
-
|
|
174
|
-
&:hover {
|
|
175
|
-
background-color: color-mix(in oklab, var(--input) 50%, transparent);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&[data-variant='ghost'] {
|
|
181
170
|
&:hover {
|
|
182
|
-
background-color:
|
|
171
|
+
background-color: light-dark(
|
|
172
|
+
var(--muted),
|
|
173
|
+
color-mix(in oklab, var(--input) 50%, transparent)
|
|
174
|
+
);
|
|
183
175
|
color: var(--foreground);
|
|
184
176
|
}
|
|
177
|
+
}
|
|
185
178
|
|
|
179
|
+
&[data-variant='ghost'] {
|
|
186
180
|
&[aria-expanded='true'] {
|
|
187
181
|
background-color: var(--muted);
|
|
188
182
|
color: var(--foreground);
|
|
189
183
|
}
|
|
190
184
|
|
|
191
|
-
&:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
&:hover {
|
|
186
|
+
background-color: light-dark(
|
|
187
|
+
var(--muted),
|
|
188
|
+
color-mix(in oklab, var(--muted) 50%, transparent)
|
|
189
|
+
);
|
|
190
|
+
color: var(--foreground);
|
|
195
191
|
}
|
|
196
192
|
}
|
|
197
193
|
|
|
@@ -205,24 +201,22 @@
|
|
|
205
201
|
}
|
|
206
202
|
|
|
207
203
|
&[data-variant='destructive'] {
|
|
208
|
-
background-color:
|
|
204
|
+
background-color: light-dark(
|
|
205
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
206
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
207
|
+
);
|
|
209
208
|
color: var(--destructive);
|
|
210
209
|
|
|
211
210
|
&:hover {
|
|
212
|
-
background-color:
|
|
211
|
+
background-color: light-dark(
|
|
212
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
213
|
+
color-mix(in oklab, var(--destructive) 30%, transparent)
|
|
214
|
+
);
|
|
213
215
|
}
|
|
214
216
|
|
|
215
217
|
&:focus-visible {
|
|
216
218
|
border-color: color-mix(in oklab, var(--destructive) 40%, transparent);
|
|
217
219
|
}
|
|
218
|
-
|
|
219
|
-
&:is(html.dark *) {
|
|
220
|
-
background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
|
|
221
|
-
|
|
222
|
-
&:hover {
|
|
223
|
-
background-color: color-mix(in oklab, var(--destructive) 30%, transparent);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
220
|
}
|
|
227
221
|
}
|
|
228
222
|
}
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
border-style: solid;
|
|
11
11
|
border-width: 1px;
|
|
12
12
|
border-color: var(--input);
|
|
13
|
+
background-color: light-dark(
|
|
14
|
+
transparent,
|
|
15
|
+
color-mix(in oklab, var(--input) 30%, transparent)
|
|
16
|
+
);
|
|
13
17
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
14
18
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
15
19
|
transition-duration: 150ms;
|
|
@@ -26,30 +30,19 @@
|
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
&[aria-invalid='true'] {
|
|
29
|
-
border-color:
|
|
30
|
-
|
|
33
|
+
border-color: light-dark(
|
|
34
|
+
var(--destructive),
|
|
35
|
+
color-mix(in oklab, var(--destructive) 50%, transparent)
|
|
36
|
+
);
|
|
37
|
+
box-shadow: 0 0 0 3px light-dark(
|
|
38
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
39
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
40
|
+
);
|
|
31
41
|
|
|
32
42
|
&:checked {
|
|
33
43
|
border-color: var(--primary);
|
|
34
44
|
}
|
|
35
45
|
}
|
|
36
|
-
|
|
37
|
-
&:is(html.dark *) {
|
|
38
|
-
background-color: color-mix(in oklab, var(--input) 30%, transparent);
|
|
39
|
-
|
|
40
|
-
&:checked {
|
|
41
|
-
background-color: var(--primary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&[aria-invalid='true'] {
|
|
45
|
-
border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
|
|
46
|
-
box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
|
|
47
|
-
|
|
48
|
-
&:checked {
|
|
49
|
-
border-color: var(--primary);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
46
|
}
|
|
54
47
|
|
|
55
48
|
.checkbox:not([role='switch']):checked::after {
|