opui-css 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/op.css +52 -52
- package/dist/theme-one/components.css +3869 -3869
- package/dist/theme-one/theme-one.css +4404 -4404
- package/dist/theme-two/components.css +3591 -3591
- package/dist/theme-two/theme-two.css +4121 -4121
- package/package.json +9 -10
- package/src/core/normalize.css +196 -196
- package/src/core/utils.css +60 -60
- package/src/open-props.css +10 -10
- package/src/themes/theme-one/components/accordion.css +172 -172
- package/src/themes/theme-one/components/alert.css +85 -85
- package/src/themes/theme-one/components/avatar.css +68 -68
- package/src/themes/theme-one/components/badge.css +101 -101
- package/src/themes/theme-one/components/button-group.css +69 -69
- package/src/themes/theme-one/components/button.css +281 -281
- package/src/themes/theme-one/components/card.css +82 -82
- package/src/themes/theme-one/components/checkbox-radio.css +123 -123
- package/src/themes/theme-one/components/chip.css +135 -135
- package/src/themes/theme-one/components/definition-list.css +68 -68
- package/src/themes/theme-one/components/dialog.css +59 -59
- package/src/themes/theme-one/components/divider.css +7 -7
- package/src/themes/theme-one/components/field-group.css +83 -83
- package/src/themes/theme-one/components/field.css +494 -494
- package/src/themes/theme-one/components/icon-button.css +40 -40
- package/src/themes/theme-one/components/link.css +21 -21
- package/src/themes/theme-one/components/list.css +318 -318
- package/src/themes/theme-one/components/progress.css +83 -83
- package/src/themes/theme-one/components/range.css +121 -121
- package/src/themes/theme-one/components/rich-text.css +210 -210
- package/src/themes/theme-one/components/select.css +163 -163
- package/src/themes/theme-one/components/snackbar.css +148 -148
- package/src/themes/theme-one/components/spinner.css +38 -38
- package/src/themes/theme-one/components/switch.css +225 -225
- package/src/themes/theme-one/components/tab-buttons.css +120 -120
- package/src/themes/theme-one/components/table.css +92 -92
- package/src/themes/theme-one/components/text-field.css +57 -57
- package/src/themes/theme-one/components/textarea.css +25 -25
- package/src/themes/theme-one/components/toggle-button-group.css +135 -135
- package/src/themes/theme-one/components/tooltip.css +94 -94
- package/src/themes/theme-one/components/typography.css +209 -209
- package/src/themes/theme-one/components.css +37 -37
- package/src/themes/theme-one/imports.css +16 -16
- package/src/themes/theme-one/theme.css +163 -163
- package/src/themes/theme-two/components/accordion.css +172 -172
- package/src/themes/theme-two/components/alert.css +85 -85
- package/src/themes/theme-two/components/avatar.css +68 -68
- package/src/themes/theme-two/components/badge.css +101 -101
- package/src/themes/theme-two/components/button-group.css +50 -50
- package/src/themes/theme-two/components/button.css +229 -229
- package/src/themes/theme-two/components/card.css +82 -82
- package/src/themes/theme-two/components/checkbox-radio.css +123 -123
- package/src/themes/theme-two/components/chip.css +135 -135
- package/src/themes/theme-two/components/definition-list.css +68 -68
- package/src/themes/theme-two/components/dialog.css +59 -59
- package/src/themes/theme-two/components/divider.css +7 -7
- package/src/themes/theme-two/components/field-group.css +83 -83
- package/src/themes/theme-two/components/field.css +281 -281
- package/src/themes/theme-two/components/icon-button.css +40 -40
- package/src/themes/theme-two/components/link.css +21 -21
- package/src/themes/theme-two/components/list.css +318 -318
- package/src/themes/theme-two/components/progress.css +83 -83
- package/src/themes/theme-two/components/range.css +121 -121
- package/src/themes/theme-two/components/rich-text.css +210 -210
- package/src/themes/theme-two/components/select.css +162 -162
- package/src/themes/theme-two/components/snackbar.css +148 -148
- package/src/themes/theme-two/components/spinner.css +38 -38
- package/src/themes/theme-two/components/switch.css +225 -225
- package/src/themes/theme-two/components/tab-buttons.css +120 -120
- package/src/themes/theme-two/components/table.css +99 -99
- package/src/themes/theme-two/components/text-field.css +57 -57
- package/src/themes/theme-two/components/textarea.css +25 -25
- package/src/themes/theme-two/components/toggle-button-group.css +135 -135
- package/src/themes/theme-two/components/tooltip.css +94 -94
- package/src/themes/theme-two/components/typography.css +209 -209
- package/src/themes/theme-two/components.css +37 -37
- package/src/themes/theme-two/imports.css +16 -16
- package/src/themes/theme-two/theme.css +158 -158
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(nav.tabs) {
|
|
3
|
-
--_bg-color: transparent;
|
|
4
|
-
|
|
5
|
-
& > [role="tablist"] {
|
|
6
|
-
button {
|
|
7
|
-
outline-color: transparent;
|
|
8
|
-
outline-offset: -4px;
|
|
9
|
-
|
|
10
|
-
&[aria-selected="true"] {
|
|
11
|
-
&:focus-visible {
|
|
12
|
-
outline: 2px solid var(--text-color-1);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Underlined */
|
|
19
|
-
&.underlined {
|
|
20
|
-
/* Tab list */
|
|
21
|
-
& > [role="tablist"] {
|
|
22
|
-
border-bottom: 1px solid var(--border-color);
|
|
23
|
-
|
|
24
|
-
button {
|
|
25
|
-
--_ripple-color: light-dark(
|
|
26
|
-
color-mix(in oklch, var(--gray-2) 80%, var(--color-8)),
|
|
27
|
-
color-mix(in oklch, var(--gray-13) 80%, var(--color-8))
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
background: var(--_bg-color) var(--ripple, none);
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
line-height: var(--font-lineheight-4);
|
|
33
|
-
padding: var(--size-2) var(--size-3);
|
|
34
|
-
|
|
35
|
-
&:focus-visible {
|
|
36
|
-
border-radius: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&[aria-selected="true"] {
|
|
40
|
-
border-block-end: 2px solid var(--primary);
|
|
41
|
-
color: var(--primary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
45
|
-
transition: background-color 0.2s var(--ease-out-3),
|
|
46
|
-
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
47
|
-
outline-offset 0.05s var(--ease-1);
|
|
48
|
-
|
|
49
|
-
/*** Ripple effect */
|
|
50
|
-
background-position: center;
|
|
51
|
-
transition: background var(--button-ripple-duration);
|
|
52
|
-
&:where(:not(:active):hover) {
|
|
53
|
-
--ripple: radial-gradient(
|
|
54
|
-
circle,
|
|
55
|
-
transparent 1%,
|
|
56
|
-
var(--_ripple-color) 1%
|
|
57
|
-
)
|
|
58
|
-
center/15000%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:where(:hover:active) {
|
|
62
|
-
background-size: var(--button-ripple-size);
|
|
63
|
-
transition: background 0s;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: light-dark(
|
|
68
|
-
oklch(from var(--primary) calc(l * 0.75) none h / 5%),
|
|
69
|
-
oklch(from var(--primary) calc(l * 1.25) none h / 5%)
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Filled */
|
|
78
|
-
&.filled {
|
|
79
|
-
--_bg-color: var(--surface-default);
|
|
80
|
-
--_radius: var(--border-radius);
|
|
81
|
-
--_selected-bg: var(--surface-filled);
|
|
82
|
-
|
|
83
|
-
& > [role="tablist"] {
|
|
84
|
-
background-color: var(--_bg-color);
|
|
85
|
-
border: var(--border-width) solid var(--border-color);
|
|
86
|
-
border-radius: var(--_radius);
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
padding: 0.792ex;
|
|
89
|
-
width: fit-content;
|
|
90
|
-
|
|
91
|
-
button {
|
|
92
|
-
background-color: var(--_bg-color);
|
|
93
|
-
border-radius: var(--_radius);
|
|
94
|
-
line-height: var(--font-lineheight-4);
|
|
95
|
-
padding-inline: var(--size-3);
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
background-color: oklch(from var(--_bg-color) calc(l * 1.25) c h);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&[aria-selected="true"] {
|
|
102
|
-
background-color: var(--_selected-bg);
|
|
103
|
-
|
|
104
|
-
&:hover {
|
|
105
|
-
background-color: oklch(
|
|
106
|
-
from var(--_selected-bg) calc(l * 1.25) c h
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
112
|
-
transition: background-color 0.2s var(--ease-out-3),
|
|
113
|
-
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
114
|
-
outline-offset 0.05s var(--ease-1);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
@layer components.root {
|
|
2
|
+
:where(nav.tabs) {
|
|
3
|
+
--_bg-color: transparent;
|
|
4
|
+
|
|
5
|
+
& > [role="tablist"] {
|
|
6
|
+
button {
|
|
7
|
+
outline-color: transparent;
|
|
8
|
+
outline-offset: -4px;
|
|
9
|
+
|
|
10
|
+
&[aria-selected="true"] {
|
|
11
|
+
&:focus-visible {
|
|
12
|
+
outline: 2px solid var(--text-color-1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Underlined */
|
|
19
|
+
&.underlined {
|
|
20
|
+
/* Tab list */
|
|
21
|
+
& > [role="tablist"] {
|
|
22
|
+
border-bottom: 1px solid var(--border-color);
|
|
23
|
+
|
|
24
|
+
button {
|
|
25
|
+
--_ripple-color: light-dark(
|
|
26
|
+
color-mix(in oklch, var(--gray-2) 80%, var(--color-8)),
|
|
27
|
+
color-mix(in oklch, var(--gray-13) 80%, var(--color-8))
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
background: var(--_bg-color) var(--ripple, none);
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
line-height: var(--font-lineheight-4);
|
|
33
|
+
padding: var(--size-2) var(--size-3);
|
|
34
|
+
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
border-radius: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[aria-selected="true"] {
|
|
40
|
+
border-block-end: 2px solid var(--primary);
|
|
41
|
+
color: var(--primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
45
|
+
transition: background-color 0.2s var(--ease-out-3),
|
|
46
|
+
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
47
|
+
outline-offset 0.05s var(--ease-1);
|
|
48
|
+
|
|
49
|
+
/*** Ripple effect */
|
|
50
|
+
background-position: center;
|
|
51
|
+
transition: background var(--button-ripple-duration);
|
|
52
|
+
&:where(:not(:active):hover) {
|
|
53
|
+
--ripple: radial-gradient(
|
|
54
|
+
circle,
|
|
55
|
+
transparent 1%,
|
|
56
|
+
var(--_ripple-color) 1%
|
|
57
|
+
)
|
|
58
|
+
center/15000%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:where(:hover:active) {
|
|
62
|
+
background-size: var(--button-ripple-size);
|
|
63
|
+
transition: background 0s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: light-dark(
|
|
68
|
+
oklch(from var(--primary) calc(l * 0.75) none h / 5%),
|
|
69
|
+
oklch(from var(--primary) calc(l * 1.25) none h / 5%)
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Filled */
|
|
78
|
+
&.filled {
|
|
79
|
+
--_bg-color: var(--surface-default);
|
|
80
|
+
--_radius: var(--border-radius);
|
|
81
|
+
--_selected-bg: var(--surface-filled);
|
|
82
|
+
|
|
83
|
+
& > [role="tablist"] {
|
|
84
|
+
background-color: var(--_bg-color);
|
|
85
|
+
border: var(--border-width) solid var(--border-color);
|
|
86
|
+
border-radius: var(--_radius);
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
padding: 0.792ex;
|
|
89
|
+
width: fit-content;
|
|
90
|
+
|
|
91
|
+
button {
|
|
92
|
+
background-color: var(--_bg-color);
|
|
93
|
+
border-radius: var(--_radius);
|
|
94
|
+
line-height: var(--font-lineheight-4);
|
|
95
|
+
padding-inline: var(--size-3);
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background-color: oklch(from var(--_bg-color) calc(l * 1.25) c h);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[aria-selected="true"] {
|
|
102
|
+
background-color: var(--_selected-bg);
|
|
103
|
+
|
|
104
|
+
&:hover {
|
|
105
|
+
background-color: oklch(
|
|
106
|
+
from var(--_selected-bg) calc(l * 1.25) c h
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
112
|
+
transition: background-color 0.2s var(--ease-out-3),
|
|
113
|
+
border-color 0.2s var(--ease-out-3), color 0.2s var(--ease-out-3),
|
|
114
|
+
outline-offset 0.05s var(--ease-1);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(table) {
|
|
3
|
-
border-collapse: collapse;
|
|
4
|
-
display: block;
|
|
5
|
-
margin: var(--size-3) 0;
|
|
6
|
-
max-inline-size: 100%;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
/* Rows */
|
|
10
|
-
tr {
|
|
11
|
-
background-color: var(--surface-default);
|
|
12
|
-
border-top: 1px solid var(--border-color);
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
background-color: oklch(from var(--surface-filled) l c h / 75%);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Cells */
|
|
20
|
-
th,
|
|
21
|
-
td {
|
|
22
|
-
border: 1px solid var(--border-color);
|
|
23
|
-
padding: var(--size-1) var(--size-2);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
th {
|
|
27
|
-
background-color: var(--surface-filled);
|
|
28
|
-
color: var(--text-color-1);
|
|
29
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
text-align: start;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
td {
|
|
35
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Caption */
|
|
39
|
-
caption {
|
|
40
|
-
caption-side: bottom;
|
|
41
|
-
color: var(--text-color-2);
|
|
42
|
-
font-size: var(--font-size-sm, 0.75rem);
|
|
43
|
-
padding: var(--size-2) 0;
|
|
44
|
-
text-align: start;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Footer */
|
|
48
|
-
tfoot {
|
|
49
|
-
border-top: 2px solid var(--border-color);
|
|
50
|
-
|
|
51
|
-
tr {
|
|
52
|
-
background-color: var(--surface-filled);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
td {
|
|
56
|
-
color: var(--text-color-1);
|
|
57
|
-
font-weight: 600;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* Column group */
|
|
62
|
-
colgroup col {
|
|
63
|
-
border: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@container (width < 60ch) {
|
|
67
|
-
th,
|
|
68
|
-
td {
|
|
69
|
-
padding: var(--size-1) 0.875rem;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* Dense */
|
|
74
|
-
&.dense {
|
|
75
|
-
th,
|
|
76
|
-
td {
|
|
77
|
-
padding: var(--size-1) var(--size-2);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
caption {
|
|
81
|
-
padding: var(--size-1) 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@container (width < 60ch) {
|
|
85
|
-
th,
|
|
86
|
-
td {
|
|
87
|
-
padding: var(--size-1) var(--size-2);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
@layer components.root {
|
|
2
|
+
:where(table) {
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
display: block;
|
|
5
|
+
margin: var(--size-3) 0;
|
|
6
|
+
max-inline-size: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
/* Rows */
|
|
10
|
+
tr {
|
|
11
|
+
background-color: var(--surface-default);
|
|
12
|
+
border-top: 1px solid var(--border-color);
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
background-color: oklch(from var(--surface-filled) l c h / 75%);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Cells */
|
|
20
|
+
th,
|
|
21
|
+
td {
|
|
22
|
+
border: 1px solid var(--border-color);
|
|
23
|
+
padding: var(--size-1) var(--size-2);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
th {
|
|
27
|
+
background-color: var(--surface-filled);
|
|
28
|
+
color: var(--text-color-1);
|
|
29
|
+
font-size: var(--font-size-sm, 0.75rem);
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
text-align: start;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
td {
|
|
35
|
+
font-size: var(--font-size-sm, 0.75rem);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Caption */
|
|
39
|
+
caption {
|
|
40
|
+
caption-side: bottom;
|
|
41
|
+
color: var(--text-color-2);
|
|
42
|
+
font-size: var(--font-size-sm, 0.75rem);
|
|
43
|
+
padding: var(--size-2) 0;
|
|
44
|
+
text-align: start;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Footer */
|
|
48
|
+
tfoot {
|
|
49
|
+
border-top: 2px solid var(--border-color);
|
|
50
|
+
|
|
51
|
+
tr {
|
|
52
|
+
background-color: var(--surface-filled);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
td {
|
|
56
|
+
color: var(--text-color-1);
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Column group */
|
|
62
|
+
colgroup col {
|
|
63
|
+
border: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@container (width < 60ch) {
|
|
67
|
+
th,
|
|
68
|
+
td {
|
|
69
|
+
padding: var(--size-1) 0.875rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Dense */
|
|
74
|
+
&.dense {
|
|
75
|
+
th,
|
|
76
|
+
td {
|
|
77
|
+
padding: var(--size-1) var(--size-2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
caption {
|
|
81
|
+
padding: var(--size-1) 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@container (width < 60ch) {
|
|
85
|
+
th,
|
|
86
|
+
td {
|
|
87
|
+
padding: var(--size-1) var(--size-2);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
:where(
|
|
3
|
-
.field:has(
|
|
4
|
-
:where(
|
|
5
|
-
input[type="date"],
|
|
6
|
-
input[type="datetime-local"],
|
|
7
|
-
input[type="email"],
|
|
8
|
-
input[type="month"],
|
|
9
|
-
input[type="number"],
|
|
10
|
-
input[type="password"],
|
|
11
|
-
input[type="search"],
|
|
12
|
-
input[type="tel"],
|
|
13
|
-
input[type="text"],
|
|
14
|
-
input[type="time"],
|
|
15
|
-
input[type="url"],
|
|
16
|
-
input[type="week"]
|
|
17
|
-
)
|
|
18
|
-
)
|
|
19
|
-
) {
|
|
20
|
-
/* Sizes */
|
|
21
|
-
&.small {
|
|
22
|
-
input {
|
|
23
|
-
padding-inline: var(--size-2);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Autosuggest */
|
|
29
|
-
:where(.field:has(input[list])) {
|
|
30
|
-
/* Hide native arrow */
|
|
31
|
-
input::-webkit-calendar-picker-indicator {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
pointer-events: none;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
:where(
|
|
39
|
-
.field:has(input[list]:placeholder-shown),
|
|
40
|
-
.field:has(input[list]):where(:focus-within, :hover)
|
|
41
|
-
) {
|
|
42
|
-
/* Arrow */
|
|
43
|
-
&::after {
|
|
44
|
-
block-size: 0;
|
|
45
|
-
border-block-start: 5px solid;
|
|
46
|
-
border-inline: 5px solid transparent;
|
|
47
|
-
content: "";
|
|
48
|
-
display: inline-block;
|
|
49
|
-
flex-shrink: 0;
|
|
50
|
-
inline-size: 0;
|
|
51
|
-
inset: 50% var(--size-3) auto auto;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
position: absolute;
|
|
54
|
-
translate: 0 -50%;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
@layer components.extended {
|
|
2
|
+
:where(
|
|
3
|
+
.field:has(
|
|
4
|
+
:where(
|
|
5
|
+
input[type="date"],
|
|
6
|
+
input[type="datetime-local"],
|
|
7
|
+
input[type="email"],
|
|
8
|
+
input[type="month"],
|
|
9
|
+
input[type="number"],
|
|
10
|
+
input[type="password"],
|
|
11
|
+
input[type="search"],
|
|
12
|
+
input[type="tel"],
|
|
13
|
+
input[type="text"],
|
|
14
|
+
input[type="time"],
|
|
15
|
+
input[type="url"],
|
|
16
|
+
input[type="week"]
|
|
17
|
+
)
|
|
18
|
+
)
|
|
19
|
+
) {
|
|
20
|
+
/* Sizes */
|
|
21
|
+
&.small {
|
|
22
|
+
input {
|
|
23
|
+
padding-inline: var(--size-2);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Autosuggest */
|
|
29
|
+
:where(.field:has(input[list])) {
|
|
30
|
+
/* Hide native arrow */
|
|
31
|
+
input::-webkit-calendar-picker-indicator {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
:where(
|
|
39
|
+
.field:has(input[list]:placeholder-shown),
|
|
40
|
+
.field:has(input[list]):where(:focus-within, :hover)
|
|
41
|
+
) {
|
|
42
|
+
/* Arrow */
|
|
43
|
+
&::after {
|
|
44
|
+
block-size: 0;
|
|
45
|
+
border-block-start: 5px solid;
|
|
46
|
+
border-inline: 5px solid transparent;
|
|
47
|
+
content: "";
|
|
48
|
+
display: inline-block;
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
inline-size: 0;
|
|
51
|
+
inset: 50% var(--size-3) auto auto;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
translate: 0 -50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
@layer components.extended {
|
|
2
|
-
:where(.field:has(textarea)) {
|
|
3
|
-
textarea {
|
|
4
|
-
block-size: auto;
|
|
5
|
-
field-sizing: content;
|
|
6
|
-
min-block-size: 5rem;
|
|
7
|
-
resize: vertical;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* Size */
|
|
11
|
-
&.small {
|
|
12
|
-
textarea {
|
|
13
|
-
min-block-size: var(--_height);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Auto-fit */
|
|
18
|
-
&.auto-fit {
|
|
19
|
-
textarea {
|
|
20
|
-
min-block-size: var(--_height);
|
|
21
|
-
resize: both;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
@layer components.extended {
|
|
2
|
+
:where(.field:has(textarea)) {
|
|
3
|
+
textarea {
|
|
4
|
+
block-size: auto;
|
|
5
|
+
field-sizing: content;
|
|
6
|
+
min-block-size: 5rem;
|
|
7
|
+
resize: vertical;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Size */
|
|
11
|
+
&.small {
|
|
12
|
+
textarea {
|
|
13
|
+
min-block-size: var(--_height);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Auto-fit */
|
|
18
|
+
&.auto-fit {
|
|
19
|
+
textarea {
|
|
20
|
+
min-block-size: var(--_height);
|
|
21
|
+
resize: both;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|