tailwindcss 4.0.0-alpha.35 → 4.0.0-alpha.36
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/dist/lib.d.mts +1 -1
- package/dist/lib.js +17 -17
- package/dist/lib.mjs +14 -14
- package/index.css +180 -71
- package/package.json +2 -2
- package/preflight.css +174 -67
- package/theme.css +4 -4
package/index.css
CHANGED
@@ -373,10 +373,10 @@
|
|
373
373
|
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
374
374
|
|
375
375
|
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
376
|
-
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.
|
377
|
-
--drop-shadow-md: 0
|
378
|
-
--drop-shadow-lg: 0
|
379
|
-
--drop-shadow-xl: 0
|
376
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
377
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
378
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
379
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
380
380
|
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
381
381
|
|
382
382
|
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
@@ -487,6 +487,7 @@
|
|
487
487
|
5. Use the user's configured `sans` font-feature-settings by default.
|
488
488
|
6. Use the user's configured `sans` font-variation-settings by default.
|
489
489
|
7. Disable tap highlights on iOS.
|
490
|
+
8. Set a default `color-scheme`.
|
490
491
|
*/
|
491
492
|
|
492
493
|
html,
|
@@ -510,6 +511,7 @@
|
|
510
511
|
normal
|
511
512
|
); /* 6 */
|
512
513
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
514
|
+
color-scheme: light; /* 8 */
|
513
515
|
}
|
514
516
|
|
515
517
|
/*
|
@@ -648,67 +650,102 @@
|
|
648
650
|
}
|
649
651
|
|
650
652
|
/*
|
651
|
-
|
653
|
+
Use the modern Firefox focus style for all focusable elements.
|
652
654
|
*/
|
653
655
|
|
654
|
-
|
655
|
-
|
656
|
-
optgroup,
|
657
|
-
select,
|
658
|
-
textarea,
|
659
|
-
::file-selector-button {
|
660
|
-
font: inherit;
|
661
|
-
font-feature-settings: inherit;
|
662
|
-
font-variation-settings: inherit;
|
663
|
-
letter-spacing: inherit;
|
664
|
-
color: inherit;
|
656
|
+
:-moz-focusring {
|
657
|
+
outline: auto;
|
665
658
|
}
|
666
659
|
|
667
660
|
/*
|
668
|
-
|
669
|
-
2. Correct the inability to style the border radius in iOS Safari.
|
661
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
670
662
|
*/
|
671
663
|
|
672
|
-
|
673
|
-
|
674
|
-
::file-selector-button {
|
675
|
-
background: transparent; /* 1 */
|
676
|
-
appearance: button; /* 2 */
|
664
|
+
progress {
|
665
|
+
vertical-align: baseline;
|
677
666
|
}
|
678
667
|
|
679
668
|
/*
|
680
|
-
|
669
|
+
Add the correct display in Chrome and Safari.
|
681
670
|
*/
|
682
671
|
|
683
|
-
|
684
|
-
|
672
|
+
summary {
|
673
|
+
display: list-item;
|
685
674
|
}
|
686
675
|
|
687
676
|
/*
|
688
|
-
|
677
|
+
Make lists unstyled by default.
|
689
678
|
*/
|
690
679
|
|
691
|
-
|
692
|
-
|
680
|
+
ol,
|
681
|
+
ul,
|
682
|
+
menu {
|
683
|
+
list-style: none;
|
693
684
|
}
|
694
685
|
|
695
686
|
/*
|
696
|
-
|
687
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
688
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
689
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
697
690
|
*/
|
698
691
|
|
699
|
-
|
700
|
-
|
692
|
+
img,
|
693
|
+
svg,
|
694
|
+
video,
|
695
|
+
canvas,
|
696
|
+
audio,
|
697
|
+
iframe,
|
698
|
+
embed,
|
699
|
+
object {
|
700
|
+
display: block; /* 1 */
|
701
|
+
vertical-align: middle; /* 2 */
|
701
702
|
}
|
702
703
|
|
703
704
|
/*
|
704
|
-
|
705
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
705
706
|
*/
|
706
707
|
|
707
|
-
|
708
|
-
|
708
|
+
img,
|
709
|
+
video {
|
710
|
+
max-width: 100%;
|
709
711
|
height: auto;
|
710
712
|
}
|
711
713
|
|
714
|
+
/*
|
715
|
+
Inherit font styles in all browsers.
|
716
|
+
*/
|
717
|
+
|
718
|
+
button,
|
719
|
+
input,
|
720
|
+
select,
|
721
|
+
optgroup,
|
722
|
+
textarea,
|
723
|
+
::file-selector-button {
|
724
|
+
font: inherit;
|
725
|
+
font-feature-settings: inherit;
|
726
|
+
font-variation-settings: inherit;
|
727
|
+
letter-spacing: inherit;
|
728
|
+
color: inherit;
|
729
|
+
}
|
730
|
+
|
731
|
+
/*
|
732
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
733
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
734
|
+
*/
|
735
|
+
|
736
|
+
::placeholder {
|
737
|
+
opacity: 1; /* 1 */
|
738
|
+
color: color-mix(in oklch, currentColor 50%, transparent); /* 2 */
|
739
|
+
}
|
740
|
+
|
741
|
+
/*
|
742
|
+
Prevent resizing textareas horizontally by default.
|
743
|
+
*/
|
744
|
+
|
745
|
+
textarea {
|
746
|
+
resize: vertical;
|
747
|
+
}
|
748
|
+
|
712
749
|
/*
|
713
750
|
Remove the inner padding in Chrome and Safari on macOS.
|
714
751
|
*/
|
@@ -756,67 +793,139 @@
|
|
756
793
|
}
|
757
794
|
|
758
795
|
/*
|
759
|
-
|
796
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
760
797
|
*/
|
761
798
|
|
762
|
-
|
763
|
-
|
799
|
+
:-moz-ui-invalid {
|
800
|
+
box-shadow: none;
|
764
801
|
}
|
765
802
|
|
766
803
|
/*
|
767
|
-
|
804
|
+
Correct the inability to style the border radius in iOS Safari.
|
768
805
|
*/
|
769
806
|
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
807
|
+
button,
|
808
|
+
input:where([type="button"], [type="reset"], [type="submit"]),
|
809
|
+
::file-selector-button {
|
810
|
+
appearance: button;
|
774
811
|
}
|
775
812
|
|
776
813
|
/*
|
777
|
-
|
814
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
778
815
|
*/
|
779
816
|
|
780
|
-
|
781
|
-
|
817
|
+
::-webkit-inner-spin-button,
|
818
|
+
::-webkit-outer-spin-button {
|
819
|
+
height: auto;
|
782
820
|
}
|
783
821
|
|
784
822
|
/*
|
785
|
-
|
786
|
-
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
823
|
+
Apply consistent base form control styles across browsers.
|
787
824
|
*/
|
788
825
|
|
789
|
-
|
790
|
-
|
791
|
-
|
826
|
+
select,
|
827
|
+
textarea,
|
828
|
+
input:where(
|
829
|
+
[type="text"],
|
830
|
+
[type="email"],
|
831
|
+
[type="password"],
|
832
|
+
[type="date"],
|
833
|
+
[type="datetime-local"],
|
834
|
+
[type="month"],
|
835
|
+
[type="number"],
|
836
|
+
[type="search"],
|
837
|
+
[type="time"],
|
838
|
+
[type="week"],
|
839
|
+
[type="tel"],
|
840
|
+
[type="url"]
|
841
|
+
) {
|
842
|
+
border-radius: 3px;
|
843
|
+
padding-inline: 4px;
|
844
|
+
padding-block: 2px;
|
845
|
+
color: light-dark(black, white);
|
846
|
+
background-color: light-dark(white, rgb(255 255 255 / 10%));
|
847
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 25%));
|
848
|
+
}
|
849
|
+
|
850
|
+
:where(select:not([multiple], [size])) option,
|
851
|
+
:where(select:not([multiple], [size])) optgroup {
|
852
|
+
color: FieldText;
|
853
|
+
background-color: Field;
|
854
|
+
}
|
855
|
+
|
856
|
+
:where(select:is([multiple], [size])) optgroup {
|
857
|
+
font-weight: bold;
|
858
|
+
}
|
859
|
+
|
860
|
+
:where(select:is([multiple], [size])) optgroup option {
|
861
|
+
padding-inline-start: 20px;
|
862
|
+
}
|
863
|
+
|
864
|
+
select:where(:disabled),
|
865
|
+
textarea:where(:disabled),
|
866
|
+
input:where(
|
867
|
+
[type="text"],
|
868
|
+
[type="email"],
|
869
|
+
[type="password"],
|
870
|
+
[type="date"],
|
871
|
+
[type="datetime-local"],
|
872
|
+
[type="month"],
|
873
|
+
[type="number"],
|
874
|
+
[type="search"],
|
875
|
+
[type="time"],
|
876
|
+
[type="week"],
|
877
|
+
[type="tel"],
|
878
|
+
[type="url"]
|
879
|
+
):where(:disabled) {
|
880
|
+
opacity: 1;
|
881
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
882
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 10%));
|
883
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 15%));
|
792
884
|
}
|
793
885
|
|
794
886
|
/*
|
795
|
-
|
796
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
797
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
887
|
+
Apply consistent base button styles across browsers.
|
798
888
|
*/
|
799
889
|
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
vertical-align: middle; /* 2 */
|
890
|
+
button,
|
891
|
+
::file-selector-button,
|
892
|
+
input:where([type="button"], [type="reset"], [type="submit"]) {
|
893
|
+
border-radius: 4px;
|
894
|
+
padding-inline: 4px;
|
895
|
+
padding-block: 2px;
|
896
|
+
color: light-dark(#000, #fff);
|
897
|
+
background-color: light-dark(rgb(0 0 0 / 5%), rgb(255 255 255 / 40%));
|
898
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 10%));
|
810
899
|
}
|
811
900
|
|
812
|
-
|
813
|
-
|
814
|
-
|
901
|
+
button:where(:hover),
|
902
|
+
::file-selector-button:where(:hover),
|
903
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(:hover) {
|
904
|
+
background-color: light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 45%));
|
905
|
+
}
|
815
906
|
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
907
|
+
button:where(:active),
|
908
|
+
::file-selector-button:where(:active),
|
909
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(:active) {
|
910
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 30%));
|
911
|
+
}
|
912
|
+
|
913
|
+
button:where(:disabled),
|
914
|
+
:where(input:disabled)::file-selector-button,
|
915
|
+
input:where([type="button"], [type="reset"], [type="submit"]):where(
|
916
|
+
:disabled
|
917
|
+
) {
|
918
|
+
opacity: 1;
|
919
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 25%));
|
920
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 10%));
|
921
|
+
}
|
922
|
+
|
923
|
+
input:where([type="file"]:disabled) {
|
924
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
925
|
+
}
|
926
|
+
|
927
|
+
::file-selector-button {
|
928
|
+
margin-inline-end: 4px;
|
820
929
|
}
|
821
930
|
|
822
931
|
/*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.36",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"@types/node": "^20.14.8",
|
68
68
|
"lightningcss": "^1.26.0",
|
69
69
|
"dedent": "1.5.3",
|
70
|
-
"@tailwindcss/oxide": "4.0.0-alpha.
|
70
|
+
"@tailwindcss/oxide": "4.0.0-alpha.36"
|
71
71
|
},
|
72
72
|
"scripts": {
|
73
73
|
"lint": "tsc --noEmit",
|
package/preflight.css
CHANGED
@@ -23,6 +23,7 @@
|
|
23
23
|
5. Use the user's configured `sans` font-feature-settings by default.
|
24
24
|
6. Use the user's configured `sans` font-variation-settings by default.
|
25
25
|
7. Disable tap highlights on iOS.
|
26
|
+
8. Set a default `color-scheme`.
|
26
27
|
*/
|
27
28
|
|
28
29
|
html,
|
@@ -43,6 +44,7 @@ html,
|
|
43
44
|
font-feature-settings: var(--default-font-feature-settings, normal); /* 5 */
|
44
45
|
font-variation-settings: var(--default-font-variation-settings, normal); /* 6 */
|
45
46
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
47
|
+
color-scheme: light; /* 8 */
|
46
48
|
}
|
47
49
|
|
48
50
|
/*
|
@@ -175,67 +177,102 @@ table {
|
|
175
177
|
}
|
176
178
|
|
177
179
|
/*
|
178
|
-
|
180
|
+
Use the modern Firefox focus style for all focusable elements.
|
179
181
|
*/
|
180
182
|
|
181
|
-
|
182
|
-
|
183
|
-
optgroup,
|
184
|
-
select,
|
185
|
-
textarea,
|
186
|
-
::file-selector-button {
|
187
|
-
font: inherit;
|
188
|
-
font-feature-settings: inherit;
|
189
|
-
font-variation-settings: inherit;
|
190
|
-
letter-spacing: inherit;
|
191
|
-
color: inherit;
|
183
|
+
:-moz-focusring {
|
184
|
+
outline: auto;
|
192
185
|
}
|
193
186
|
|
194
187
|
/*
|
195
|
-
|
196
|
-
2. Correct the inability to style the border radius in iOS Safari.
|
188
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
197
189
|
*/
|
198
190
|
|
199
|
-
|
200
|
-
|
201
|
-
::file-selector-button {
|
202
|
-
background: transparent; /* 1 */
|
203
|
-
appearance: button; /* 2 */
|
191
|
+
progress {
|
192
|
+
vertical-align: baseline;
|
204
193
|
}
|
205
194
|
|
206
195
|
/*
|
207
|
-
|
196
|
+
Add the correct display in Chrome and Safari.
|
208
197
|
*/
|
209
198
|
|
210
|
-
|
211
|
-
|
199
|
+
summary {
|
200
|
+
display: list-item;
|
212
201
|
}
|
213
202
|
|
214
203
|
/*
|
215
|
-
|
204
|
+
Make lists unstyled by default.
|
216
205
|
*/
|
217
206
|
|
218
|
-
|
219
|
-
|
207
|
+
ol,
|
208
|
+
ul,
|
209
|
+
menu {
|
210
|
+
list-style: none;
|
220
211
|
}
|
221
212
|
|
222
213
|
/*
|
223
|
-
|
214
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
215
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
216
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
224
217
|
*/
|
225
218
|
|
226
|
-
|
227
|
-
|
219
|
+
img,
|
220
|
+
svg,
|
221
|
+
video,
|
222
|
+
canvas,
|
223
|
+
audio,
|
224
|
+
iframe,
|
225
|
+
embed,
|
226
|
+
object {
|
227
|
+
display: block; /* 1 */
|
228
|
+
vertical-align: middle; /* 2 */
|
228
229
|
}
|
229
230
|
|
230
231
|
/*
|
231
|
-
|
232
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
232
233
|
*/
|
233
234
|
|
234
|
-
|
235
|
-
|
235
|
+
img,
|
236
|
+
video {
|
237
|
+
max-width: 100%;
|
236
238
|
height: auto;
|
237
239
|
}
|
238
240
|
|
241
|
+
/*
|
242
|
+
Inherit font styles in all browsers.
|
243
|
+
*/
|
244
|
+
|
245
|
+
button,
|
246
|
+
input,
|
247
|
+
select,
|
248
|
+
optgroup,
|
249
|
+
textarea,
|
250
|
+
::file-selector-button {
|
251
|
+
font: inherit;
|
252
|
+
font-feature-settings: inherit;
|
253
|
+
font-variation-settings: inherit;
|
254
|
+
letter-spacing: inherit;
|
255
|
+
color: inherit;
|
256
|
+
}
|
257
|
+
|
258
|
+
/*
|
259
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
260
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
261
|
+
*/
|
262
|
+
|
263
|
+
::placeholder {
|
264
|
+
opacity: 1; /* 1 */
|
265
|
+
color: color-mix(in oklch, currentColor 50%, transparent); /* 2 */
|
266
|
+
}
|
267
|
+
|
268
|
+
/*
|
269
|
+
Prevent resizing textareas horizontally by default.
|
270
|
+
*/
|
271
|
+
|
272
|
+
textarea {
|
273
|
+
resize: vertical;
|
274
|
+
}
|
275
|
+
|
239
276
|
/*
|
240
277
|
Remove the inner padding in Chrome and Safari on macOS.
|
241
278
|
*/
|
@@ -283,67 +320,137 @@ progress {
|
|
283
320
|
}
|
284
321
|
|
285
322
|
/*
|
286
|
-
|
323
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
287
324
|
*/
|
288
325
|
|
289
|
-
|
290
|
-
|
326
|
+
:-moz-ui-invalid {
|
327
|
+
box-shadow: none;
|
291
328
|
}
|
292
329
|
|
293
330
|
/*
|
294
|
-
|
331
|
+
Correct the inability to style the border radius in iOS Safari.
|
295
332
|
*/
|
296
333
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
334
|
+
button,
|
335
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
336
|
+
::file-selector-button {
|
337
|
+
appearance: button;
|
301
338
|
}
|
302
339
|
|
303
340
|
/*
|
304
|
-
|
341
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
305
342
|
*/
|
306
343
|
|
307
|
-
|
308
|
-
|
344
|
+
::-webkit-inner-spin-button,
|
345
|
+
::-webkit-outer-spin-button {
|
346
|
+
height: auto;
|
309
347
|
}
|
310
348
|
|
311
349
|
/*
|
312
|
-
|
313
|
-
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
350
|
+
Apply consistent base form control styles across browsers.
|
314
351
|
*/
|
315
352
|
|
316
|
-
|
317
|
-
|
318
|
-
|
353
|
+
select,
|
354
|
+
textarea,
|
355
|
+
input:where(
|
356
|
+
[type='text'],
|
357
|
+
[type='email'],
|
358
|
+
[type='password'],
|
359
|
+
[type='date'],
|
360
|
+
[type='datetime-local'],
|
361
|
+
[type='month'],
|
362
|
+
[type='number'],
|
363
|
+
[type='search'],
|
364
|
+
[type='time'],
|
365
|
+
[type='week'],
|
366
|
+
[type='tel'],
|
367
|
+
[type='url']
|
368
|
+
) {
|
369
|
+
border-radius: 3px;
|
370
|
+
padding-inline: 4px;
|
371
|
+
padding-block: 2px;
|
372
|
+
color: light-dark(black, white);
|
373
|
+
background-color: light-dark(white, rgb(255 255 255 / 10%));
|
374
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 25%));
|
375
|
+
}
|
376
|
+
|
377
|
+
:where(select:not([multiple], [size])) option,
|
378
|
+
:where(select:not([multiple], [size])) optgroup {
|
379
|
+
color: FieldText;
|
380
|
+
background-color: Field;
|
381
|
+
}
|
382
|
+
|
383
|
+
:where(select:is([multiple], [size])) optgroup {
|
384
|
+
font-weight: bold;
|
385
|
+
}
|
386
|
+
|
387
|
+
:where(select:is([multiple], [size])) optgroup option {
|
388
|
+
padding-inline-start: 20px;
|
389
|
+
}
|
390
|
+
|
391
|
+
select:where(:disabled),
|
392
|
+
textarea:where(:disabled),
|
393
|
+
input:where(
|
394
|
+
[type='text'],
|
395
|
+
[type='email'],
|
396
|
+
[type='password'],
|
397
|
+
[type='date'],
|
398
|
+
[type='datetime-local'],
|
399
|
+
[type='month'],
|
400
|
+
[type='number'],
|
401
|
+
[type='search'],
|
402
|
+
[type='time'],
|
403
|
+
[type='week'],
|
404
|
+
[type='tel'],
|
405
|
+
[type='url']
|
406
|
+
):where(:disabled) {
|
407
|
+
opacity: 1;
|
408
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
409
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 10%));
|
410
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 15%));
|
319
411
|
}
|
320
412
|
|
321
413
|
/*
|
322
|
-
|
323
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
324
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
414
|
+
Apply consistent base button styles across browsers.
|
325
415
|
*/
|
326
416
|
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
vertical-align: middle; /* 2 */
|
417
|
+
button,
|
418
|
+
::file-selector-button,
|
419
|
+
input:where([type='button'], [type='reset'], [type='submit']) {
|
420
|
+
border-radius: 4px;
|
421
|
+
padding-inline: 4px;
|
422
|
+
padding-block: 2px;
|
423
|
+
color: light-dark(#000, #fff);
|
424
|
+
background-color: light-dark(rgb(0 0 0 / 5%), rgb(255 255 255 / 40%));
|
425
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 10%));
|
337
426
|
}
|
338
427
|
|
339
|
-
|
340
|
-
|
341
|
-
|
428
|
+
button:where(:hover),
|
429
|
+
::file-selector-button:where(:hover),
|
430
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:hover) {
|
431
|
+
background-color: light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 45%));
|
432
|
+
}
|
342
433
|
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
434
|
+
button:where(:active),
|
435
|
+
::file-selector-button:where(:active),
|
436
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:active) {
|
437
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 30%));
|
438
|
+
}
|
439
|
+
|
440
|
+
button:where(:disabled),
|
441
|
+
:where(input:disabled)::file-selector-button,
|
442
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:disabled) {
|
443
|
+
opacity: 1;
|
444
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 25%));
|
445
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 10%));
|
446
|
+
}
|
447
|
+
|
448
|
+
input:where([type='file']:disabled) {
|
449
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
450
|
+
}
|
451
|
+
|
452
|
+
::file-selector-button {
|
453
|
+
margin-inline-end: 4px;
|
347
454
|
}
|
348
455
|
|
349
456
|
/*
|