@acorex/styles 22.3.3 → 22.3.5
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/components/_editor-container.css +20 -25
- package/package.json +1 -1
- package/themes/default.css +44 -10
|
@@ -34,10 +34,7 @@
|
|
|
34
34
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
35
35
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
36
36
|
),
|
|
37
|
-
linear-gradient(
|
|
38
|
-
var(--ax-comp-editor-surface-overlay-rest),
|
|
39
|
-
var(--ax-comp-editor-surface-overlay-rest)
|
|
40
|
-
);
|
|
37
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-rest), var(--ax-comp-editor-surface-overlay-rest));
|
|
41
38
|
transform: none;
|
|
42
39
|
transition-property: box-shadow, border-color, background-color, color;
|
|
43
40
|
transition-duration: var(--ax-comp-editor-transition-duration);
|
|
@@ -68,9 +65,22 @@
|
|
|
68
65
|
.ax-input,
|
|
69
66
|
.ax-editor {
|
|
70
67
|
font-size: inherit;
|
|
68
|
+
color: rgba(var(--ax-sys-color-on-lightest-surface));
|
|
71
69
|
|
|
72
70
|
@apply w-full flex-1 py-2 outline-0 outline-transparent;
|
|
73
71
|
}
|
|
72
|
+
|
|
73
|
+
.ax-input:-webkit-autofill,
|
|
74
|
+
.ax-input:-webkit-autofill:hover,
|
|
75
|
+
.ax-input:-webkit-autofill:focus,
|
|
76
|
+
.ax-input:-webkit-autofill:active,
|
|
77
|
+
textarea:-webkit-autofill,
|
|
78
|
+
textarea:-webkit-autofill:hover,
|
|
79
|
+
textarea:-webkit-autofill:focus,
|
|
80
|
+
textarea:-webkit-autofill:active {
|
|
81
|
+
-webkit-text-fill-color: rgba(var(--ax-sys-color-on-lightest-surface), 1) !important;
|
|
82
|
+
caret-color: rgba(var(--ax-sys-color-on-lightest-surface), 1);
|
|
83
|
+
}
|
|
74
84
|
.ax-placeholder {
|
|
75
85
|
@apply opacity-50;
|
|
76
86
|
}
|
|
@@ -124,7 +134,7 @@
|
|
|
124
134
|
|
|
125
135
|
ax-prefix:has(> ax-button),
|
|
126
136
|
ax-suffix:has(> ax-button) {
|
|
127
|
-
@apply size-auto!
|
|
137
|
+
@apply size-auto! max-h-none! w-auto! shrink-0 items-stretch! self-stretch!;
|
|
128
138
|
}
|
|
129
139
|
|
|
130
140
|
ax-prefix {
|
|
@@ -170,10 +180,7 @@
|
|
|
170
180
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
171
181
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
172
182
|
),
|
|
173
|
-
linear-gradient(
|
|
174
|
-
var(--ax-comp-editor-surface-overlay-rest),
|
|
175
|
-
var(--ax-comp-editor-surface-overlay-rest)
|
|
176
|
-
);
|
|
183
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-rest), var(--ax-comp-editor-surface-overlay-rest));
|
|
177
184
|
transform: none;
|
|
178
185
|
}
|
|
179
186
|
|
|
@@ -189,10 +196,7 @@
|
|
|
189
196
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
190
197
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
191
198
|
),
|
|
192
|
-
linear-gradient(
|
|
193
|
-
var(--ax-comp-editor-surface-overlay-hover),
|
|
194
|
-
var(--ax-comp-editor-surface-overlay-hover)
|
|
195
|
-
);
|
|
199
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-hover), var(--ax-comp-editor-surface-overlay-hover));
|
|
196
200
|
}
|
|
197
201
|
|
|
198
202
|
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank).ax-state-readonly {
|
|
@@ -203,10 +207,7 @@
|
|
|
203
207
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
204
208
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
205
209
|
),
|
|
206
|
-
linear-gradient(
|
|
207
|
-
var(--ax-comp-editor-surface-overlay-readonly),
|
|
208
|
-
var(--ax-comp-editor-surface-overlay-readonly)
|
|
209
|
-
);
|
|
210
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-readonly), var(--ax-comp-editor-surface-overlay-readonly));
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
&:is(.ax-solid, .ax-outline, .ax-twotone, .ax-fill, .ax-flat, .ax-blank).ax-state-disabled {
|
|
@@ -217,10 +218,7 @@
|
|
|
217
218
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
218
219
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
219
220
|
),
|
|
220
|
-
linear-gradient(
|
|
221
|
-
var(--ax-comp-editor-surface-overlay-disabled),
|
|
222
|
-
var(--ax-comp-editor-surface-overlay-disabled)
|
|
223
|
-
);
|
|
221
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-disabled), var(--ax-comp-editor-surface-overlay-disabled));
|
|
224
222
|
opacity: var(--ax-sys-contrast-disabled-opacity, 1);
|
|
225
223
|
}
|
|
226
224
|
|
|
@@ -236,10 +234,7 @@
|
|
|
236
234
|
var(--ax-comp-editor-contrast-surface-overlay-rest),
|
|
237
235
|
var(--ax-comp-editor-contrast-surface-overlay-rest)
|
|
238
236
|
),
|
|
239
|
-
linear-gradient(
|
|
240
|
-
var(--ax-comp-editor-surface-overlay-focus),
|
|
241
|
-
var(--ax-comp-editor-surface-overlay-focus)
|
|
242
|
-
);
|
|
237
|
+
linear-gradient(var(--ax-comp-editor-surface-overlay-focus), var(--ax-comp-editor-surface-overlay-focus));
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
&.ax-state-error {
|
package/package.json
CHANGED
package/themes/default.css
CHANGED
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
input:-webkit-autofill,
|
|
9
9
|
input:-webkit-autofill:hover,
|
|
10
10
|
input:-webkit-autofill:focus,
|
|
11
|
+
input:-webkit-autofill:active,
|
|
11
12
|
textarea:-webkit-autofill,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
textarea:-webkit-autofill:hover,
|
|
14
|
+
textarea:-webkit-autofill:focus,
|
|
15
|
+
textarea:-webkit-autofill:active,
|
|
16
|
+
select:-webkit-autofill,
|
|
17
|
+
select:-webkit-autofill:hover,
|
|
18
|
+
select:-webkit-autofill:focus,
|
|
19
|
+
select:-webkit-autofill:active {
|
|
20
|
+
-webkit-text-fill-color: rgba(var(--ax-sys-color-on-lightest-surface), 1) !important;
|
|
21
|
+
caret-color: rgba(var(--ax-sys-color-on-lightest-surface), 1);
|
|
15
22
|
transition: background-color 9999s ease-in-out 0s;
|
|
16
23
|
}
|
|
17
24
|
|
|
@@ -41,11 +48,13 @@ select:-webkit-autofill {
|
|
|
41
48
|
html {
|
|
42
49
|
background-color: rgba(var(--ax-sys-color-lightest-surface));
|
|
43
50
|
color: rgba(var(--ax-sys-color-on-lightest-surface));
|
|
51
|
+
color-scheme: light;
|
|
44
52
|
}
|
|
45
53
|
|
|
46
54
|
html.ax-dark {
|
|
47
55
|
background-color: rgba(var(--ax-sys-color-darkest-surface));
|
|
48
56
|
color: rgba(var(--ax-sys-color-on-darkest-surface));
|
|
57
|
+
color-scheme: dark;
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
:root {
|
|
@@ -1265,6 +1274,7 @@ html.ax-dark {
|
|
|
1265
1274
|
* list/menu text does not stay dark-on-dark.
|
|
1266
1275
|
*/
|
|
1267
1276
|
color: rgba(var(--ax-sys-color-on-darkest-surface));
|
|
1277
|
+
color-scheme: dark;
|
|
1268
1278
|
}
|
|
1269
1279
|
|
|
1270
1280
|
/*
|
|
@@ -3396,7 +3406,7 @@ html.ax-dark {
|
|
|
3396
3406
|
}
|
|
3397
3407
|
|
|
3398
3408
|
@utility ax-state-readonly {
|
|
3399
|
-
@apply cursor-text
|
|
3409
|
+
@apply cursor-text *:cursor-text;
|
|
3400
3410
|
}
|
|
3401
3411
|
|
|
3402
3412
|
@utility ax-focus-ring {
|
|
@@ -3507,7 +3517,11 @@ html.ax-dark {
|
|
|
3507
3517
|
|
|
3508
3518
|
@utility ax-fill-interactive {
|
|
3509
3519
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3510
|
-
--ax-comp-ripple-color: color-mix(
|
|
3520
|
+
--ax-comp-ripple-color: color-mix(
|
|
3521
|
+
in oklab,
|
|
3522
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3523
|
+
transparent
|
|
3524
|
+
);
|
|
3511
3525
|
}
|
|
3512
3526
|
@apply ax-fill transition-colors outline-none;
|
|
3513
3527
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|
|
@@ -3551,7 +3565,11 @@ html.ax-dark {
|
|
|
3551
3565
|
|
|
3552
3566
|
@utility ax-flat-interactive {
|
|
3553
3567
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3554
|
-
--ax-comp-ripple-color: color-mix(
|
|
3568
|
+
--ax-comp-ripple-color: color-mix(
|
|
3569
|
+
in oklab,
|
|
3570
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3571
|
+
transparent
|
|
3572
|
+
);
|
|
3555
3573
|
}
|
|
3556
3574
|
@apply ax-flat transition-colors outline-none;
|
|
3557
3575
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|
|
@@ -3658,7 +3676,11 @@ html.ax-dark {
|
|
|
3658
3676
|
|
|
3659
3677
|
@utility ax-outline-interactive {
|
|
3660
3678
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3661
|
-
--ax-comp-ripple-color: color-mix(
|
|
3679
|
+
--ax-comp-ripple-color: color-mix(
|
|
3680
|
+
in oklab,
|
|
3681
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3682
|
+
transparent
|
|
3683
|
+
);
|
|
3662
3684
|
}
|
|
3663
3685
|
@apply ax-outline outline-none;
|
|
3664
3686
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|
|
@@ -3699,7 +3721,11 @@ html.ax-dark {
|
|
|
3699
3721
|
|
|
3700
3722
|
@utility ax-twotone-interactive {
|
|
3701
3723
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3702
|
-
--ax-comp-ripple-color: color-mix(
|
|
3724
|
+
--ax-comp-ripple-color: color-mix(
|
|
3725
|
+
in oklab,
|
|
3726
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3727
|
+
transparent
|
|
3728
|
+
);
|
|
3703
3729
|
}
|
|
3704
3730
|
@apply ax-twotone outline-none;
|
|
3705
3731
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|
|
@@ -3745,7 +3771,11 @@ html.ax-dark {
|
|
|
3745
3771
|
|
|
3746
3772
|
@utility ax-blank-interactive {
|
|
3747
3773
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3748
|
-
--ax-comp-ripple-color: color-mix(
|
|
3774
|
+
--ax-comp-ripple-color: color-mix(
|
|
3775
|
+
in oklab,
|
|
3776
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3777
|
+
transparent
|
|
3778
|
+
);
|
|
3749
3779
|
}
|
|
3750
3780
|
@apply ax-blank outline-none;
|
|
3751
3781
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|
|
@@ -3785,7 +3815,11 @@ html.ax-dark {
|
|
|
3785
3815
|
|
|
3786
3816
|
@utility ax-link-interactive {
|
|
3787
3817
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3788
|
-
--ax-comp-ripple-color: color-mix(
|
|
3818
|
+
--ax-comp-ripple-color: color-mix(
|
|
3819
|
+
in oklab,
|
|
3820
|
+
var(--ax-comp-ink, var(--ax-comp-bg, var(--color-on-lightest))) 25%,
|
|
3821
|
+
transparent
|
|
3822
|
+
);
|
|
3789
3823
|
}
|
|
3790
3824
|
@apply ax-link transition-colors outline-none;
|
|
3791
3825
|
&:not(.ax-state-disabled, .ax-state-loading, .ax-state-selected) {
|