winduum 0.1.0 → 0.1.2
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/main.css +1 -1
- package/dist/tailwind.css +1 -0
- package/package.json +4 -1
- package/src/badge.html +1 -0
- package/src/btn.html +1 -0
- package/src/common.html +1 -0
- package/src/index.html +1 -0
- package/src/input.html +1 -0
- package/src/styles/Components/Dialog.css +1 -3
- package/src/styles/Components/Drawer.css +1 -3
- package/src/styles/Components/Dropdown.css +1 -3
- package/src/styles/Components/Table.css +1 -3
- package/src/styles/Libraries/Dialog.css +1 -3
- package/src/styles/Libraries/Hint.css +1 -3
- package/src/styles/Ui/Badge.css +89 -91
- package/src/styles/Ui/Btn.css +182 -184
- package/src/styles/Ui/Checkbox.css +94 -96
- package/src/styles/Ui/Heading.css +16 -18
- package/src/styles/Ui/Image.css +11 -13
- package/src/styles/Ui/Input.css +222 -224
- package/src/styles/Ui/Notice.css +34 -36
- package/src/styles/Ui/Progress.css +41 -43
- package/src/styles/Ui/Radio.css +3 -5
- package/src/styles/Ui/Select.css +23 -25
- package/src/styles/Ui/Switch.css +3 -3
- package/src/styles/Ui/Text.css +148 -150
- package/src/styles/Ui/Title.css +15 -17
- package/src/styles/main.css +0 -1
- package/src/styles/tailwind.css +1 -0
- package/src/tailwind.html +18 -0
- package/tailwind.config.cjs +61 -0
package/src/styles/Ui/Btn.css
CHANGED
|
@@ -1,196 +1,178 @@
|
|
|
1
|
-
|
|
2
|
-
:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
1
|
+
:where(.ui-btn) {
|
|
2
|
+
--color-current: var(--color-light);
|
|
3
|
+
--ui-btn-width: max-content;
|
|
4
|
+
--ui-btn-height: 2.25rem;
|
|
5
|
+
--ui-btn-py: 0.375rem;
|
|
6
|
+
--ui-btn-px: 0.75rem;
|
|
7
|
+
--ui-btn-border-radius: var(--rounded);
|
|
8
|
+
--ui-btn-font-size: 0.875rem;
|
|
9
|
+
--ui-btn-font-weight: var(--font-medium);
|
|
10
|
+
--ui-btn-bg: rgb(var(--color-accent) / var(--ui-btn-bg-opacity));
|
|
11
|
+
--ui-btn-bg-opacity: var(--tw-bg-opacity, 1);
|
|
12
|
+
--ui-btn-color: rgb(var(--color-current) / var(--ui-btn-color-opacity));
|
|
13
|
+
--ui-btn-color-opacity: var(--tw-text-opacity, 1);
|
|
14
|
+
--ui-btn-hover-filter: invert(1);
|
|
15
|
+
--ui-btn-hover-opacity: 0.2;
|
|
16
|
+
--ui-btn-focus-opacity: 0.3;
|
|
17
|
+
--ui-btn-disabled-opacity: 0.7;
|
|
18
|
+
--ui-btn-outline-width: 2px;
|
|
19
|
+
--ui-btn-outline-opacity: 0.5;
|
|
20
|
+
--ui-btn-icon-font-size: 1.25rem;
|
|
21
|
+
--ui-btn-gap: 0.375rem;
|
|
22
|
+
--ui-btn-loading-width: 1rem;
|
|
23
|
+
--ui-btn-loading-border-width: 2px;
|
|
24
|
+
|
|
25
|
+
width: var(--ui-btn-width);
|
|
26
|
+
height: var(--ui-btn-height);
|
|
27
|
+
padding: var(--ui-btn-py) var(--ui-btn-px);
|
|
28
|
+
border-radius: var(--ui-btn-border-radius);
|
|
29
|
+
font-size: var(--ui-btn-font-size);
|
|
30
|
+
font-weight: var(--ui-btn-font-weight);
|
|
31
|
+
background-color: var(--ui-btn-bg);
|
|
32
|
+
color: var(--ui-btn-color);
|
|
33
|
+
user-select: none;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
text-align: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
position: relative;
|
|
42
|
+
z-index: 0;
|
|
43
|
+
transition: var(--transition-opacity), var(--transition-background), var(--transition-color);
|
|
44
|
+
gap: var(--ui-btn-gap);
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
content: "";
|
|
52
|
+
background-color: rgb(var(--color-current));
|
|
53
|
+
filter: var(--ui-btn-hover-filter);
|
|
54
|
+
z-index: -1;
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transition: var(--transition-opacity);
|
|
57
|
+
}
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
& :where(svg) {
|
|
60
|
+
width: 1em;
|
|
61
|
+
height: 1em;
|
|
62
|
+
font-size: var(--ui-btn-icon-font-size);
|
|
63
|
+
}
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
&:where(.is-sm) {
|
|
66
|
+
--ui-btn-height: 2rem;
|
|
67
|
+
--ui-btn-px: 1rem;
|
|
68
|
+
}
|
|
70
69
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
&:where(.is-lg) {
|
|
71
|
+
--ui-btn-height: 3rem;
|
|
72
|
+
--ui-btn-px: 1.75rem;
|
|
73
|
+
}
|
|
75
74
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
&:where(.is-wide) {
|
|
76
|
+
padding-left: calc(var(--ui-btn-px) * 2);
|
|
77
|
+
padding-right: calc(var(--ui-btn-px) * 2);
|
|
78
|
+
}
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
&:where(.is-outline, .is-muted, .is-text) {
|
|
81
|
+
--color-current: var(--color-accent);
|
|
82
|
+
--ui-btn-hover-opacity: 0.1;
|
|
83
|
+
--ui-btn-hover-filter: none;
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
background-color: transparent;
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
87
|
+
&::before {
|
|
88
|
+
background-color: var(--ui-btn-bg);
|
|
91
89
|
}
|
|
90
|
+
}
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
&:where(.is-outline) {
|
|
93
|
+
--ui-btn-focus-opacity: 0.15;
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
outline: var(--ui-btn-outline-width) solid rgb(var(--color-accent) / var(--ui-btn-outline-opacity));
|
|
96
|
+
outline-offset: calc(var(--ui-btn-outline-width) * -1);
|
|
97
|
+
}
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
&:where(.is-outline-gradient) {
|
|
100
|
+
--ui-btn-focus-opacity: 0.15;
|
|
101
|
+
--color-accent: var(--color-default);
|
|
102
|
+
--color-current: var(--color-accent);
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:not(.is-loading) {
|
|
110
|
-
&::after {
|
|
111
|
-
content: "";
|
|
112
|
-
position: absolute;
|
|
113
|
-
background-color: rgb(var(--color-background));
|
|
114
|
-
inset: var(--ui-btn-outline-width);
|
|
115
|
-
border-radius: calc(var(--ui-btn-border-radius) / 1.25);
|
|
116
|
-
z-index: -1;
|
|
117
|
-
transition: var(--transition-opacity);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
104
|
+
&.is-loading.is-hover-fill {
|
|
105
|
+
--color-current: var(--color-light);
|
|
120
106
|
}
|
|
121
107
|
|
|
122
|
-
&:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
108
|
+
&:not(.is-loading) {
|
|
109
|
+
&::after {
|
|
110
|
+
content: "";
|
|
111
|
+
position: absolute;
|
|
112
|
+
background-color: rgb(var(--color-background));
|
|
113
|
+
inset: var(--ui-btn-outline-width);
|
|
114
|
+
border-radius: calc(var(--ui-btn-border-radius) / 1.25);
|
|
115
|
+
z-index: -1;
|
|
116
|
+
transition: var(--transition-opacity);
|
|
127
117
|
}
|
|
128
118
|
}
|
|
119
|
+
}
|
|
129
120
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
outline: var(--ui-btn-outline-width) solid rgb(var(--color-current) / var(--ui-btn-outline-opacity));
|
|
134
|
-
outline-offset: calc(var(--ui-btn-outline-width) * -1);
|
|
135
|
-
}
|
|
121
|
+
&:where(.is-muted) {
|
|
122
|
+
--ui-btn-hover-opacity: 0.3;
|
|
136
123
|
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
&::before {
|
|
125
|
+
opacity: 0.1;
|
|
139
126
|
}
|
|
127
|
+
}
|
|
140
128
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
--ui-btn-width: var(--ui-btn-height);
|
|
144
|
-
}
|
|
129
|
+
&:where(.is-raised) {
|
|
130
|
+
--ui-btn-outline-opacity: 0.1;
|
|
145
131
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
outline: var(--ui-btn-outline-width) solid rgb(var(--color-current) / var(--ui-btn-outline-opacity));
|
|
133
|
+
outline-offset: calc(var(--ui-btn-outline-width) * -1);
|
|
134
|
+
}
|
|
149
135
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
&:where(.is-hover-fill) {
|
|
137
|
+
--ui-btn-hover-opacity: 1;
|
|
138
|
+
}
|
|
153
139
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
140
|
+
&:where(.is-square, .is-circle) {
|
|
141
|
+
--ui-btn-py: var(--ui-btn-py);
|
|
142
|
+
--ui-btn-width: var(--ui-btn-height);
|
|
143
|
+
}
|
|
157
144
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
height: var(--ui-btn-loading-width);
|
|
162
|
-
content: "";
|
|
163
|
-
border: var(--ui-btn-loading-border-width) solid rgb(var(--color-current));
|
|
164
|
-
border-right-color: transparent;
|
|
165
|
-
border-radius: 50%;
|
|
166
|
-
animation: spin 0.45s infinite linear;
|
|
167
|
-
position: absolute;
|
|
168
|
-
margin-left: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
169
|
-
margin-top: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
170
|
-
left: 50%;
|
|
171
|
-
top: 50%;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
145
|
+
&:where(.is-circle) {
|
|
146
|
+
--ui-btn-border-radius: var(--rounded-full);
|
|
147
|
+
}
|
|
174
148
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
opacity: var(--ui-btn-hover-opacity);
|
|
179
|
-
}
|
|
149
|
+
&:where(.is-loading) {
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
color: transparent;
|
|
180
152
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
153
|
+
& > * {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
}
|
|
184
156
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
157
|
+
&::after {
|
|
158
|
+
z-index: 1;
|
|
159
|
+
width: var(--ui-btn-loading-width);
|
|
160
|
+
height: var(--ui-btn-loading-width);
|
|
161
|
+
content: "";
|
|
162
|
+
border: var(--ui-btn-loading-border-width) solid rgb(var(--color-current));
|
|
163
|
+
border-right-color: transparent;
|
|
164
|
+
border-radius: 50%;
|
|
165
|
+
animation: spin 0.45s infinite linear;
|
|
166
|
+
position: absolute;
|
|
167
|
+
margin-left: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
168
|
+
margin-top: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
169
|
+
left: 50%;
|
|
170
|
+
top: 50%;
|
|
191
171
|
}
|
|
172
|
+
}
|
|
192
173
|
|
|
193
|
-
|
|
174
|
+
&:not(:disabled):hover {
|
|
175
|
+
@media (hover: hover) and (pointer: fine) {
|
|
194
176
|
&::before {
|
|
195
177
|
opacity: var(--ui-btn-hover-opacity);
|
|
196
178
|
}
|
|
@@ -205,34 +187,50 @@
|
|
|
205
187
|
}
|
|
206
188
|
}
|
|
207
189
|
}
|
|
190
|
+
}
|
|
208
191
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
192
|
+
&:is(:not(:disabled):active, .is-active) {
|
|
193
|
+
&::before {
|
|
194
|
+
opacity: var(--ui-btn-hover-opacity);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.is-hover-fill {
|
|
198
|
+
--color-current: var(--color-light);
|
|
214
199
|
}
|
|
215
200
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
201
|
+
&.is-outline-gradient {
|
|
202
|
+
&::before, &::after {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
}
|
|
219
205
|
}
|
|
220
206
|
}
|
|
221
207
|
|
|
222
|
-
|
|
223
|
-
|
|
208
|
+
&:focus-visible {
|
|
209
|
+
z-index: 2;
|
|
210
|
+
box-shadow:
|
|
211
|
+
0 0 0 0 rgb(var(--color-current)),
|
|
212
|
+
0 0 0 max(2px, var(--ui-btn-outline-width)) rgb(var(--color-accent) / var(--ui-btn-focus-opacity));
|
|
213
|
+
}
|
|
224
214
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
215
|
+
&:disabled {
|
|
216
|
+
opacity: var(--ui-btn-disabled-opacity);
|
|
217
|
+
cursor: not-allowed;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
231
220
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
221
|
+
:where(.ui-btn-group) {
|
|
222
|
+
display: flex;
|
|
223
|
+
|
|
224
|
+
& :where(.ui-btn) {
|
|
225
|
+
&:not(:first-child) {
|
|
226
|
+
border-top-left-radius: 0;
|
|
227
|
+
border-bottom-left-radius: 0;
|
|
228
|
+
margin-left: calc(var(--ui-btn-outline-width) * -1);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&:not(:last-child) {
|
|
232
|
+
border-top-right-radius: 0;
|
|
233
|
+
border-bottom-right-radius: 0;
|
|
236
234
|
}
|
|
237
235
|
}
|
|
238
236
|
}
|
|
@@ -1,116 +1,114 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
--ui-checkbox-box-shadow: none;
|
|
1
|
+
:where(.ui-checkbox, .ui-radio) {
|
|
2
|
+
--ui-checkbox-width: 1.375rem;
|
|
3
|
+
--ui-checkbox-font-size: 0.875rem;
|
|
4
|
+
--ui-checkbox-gap: 0.625rem;
|
|
5
|
+
--ui-checkbox-bg-raw: var(--color-background);
|
|
6
|
+
--ui-checkbox-bg-opacity: 0.1;
|
|
7
|
+
--ui-checkbox-border-color-raw: var(--color-current);
|
|
8
|
+
--ui-checkbox-border-color-opacity: 0.2;
|
|
9
|
+
--ui-checkbox-checked-bg-raw: var(--color-accent);
|
|
10
|
+
--ui-checkbox-radius: 0.5rem;
|
|
11
|
+
--ui-checkbox-icon: var(--icon-check);
|
|
12
|
+
--ui-checkbox-icon-font-size: 1.125rem;
|
|
13
|
+
--ui-checkbox-validity-font-size: 0.875rem;
|
|
14
|
+
--ui-checkbox-validity-offset: 0.375rem;
|
|
15
|
+
--ui-checkbox-box-shadow: none;
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 0 var(--ui-checkbox-gap);
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
width: max-content;
|
|
22
|
+
font-size: var(--ui-checkbox-font-size);
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
& :where(label[for], input) {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
& em {
|
|
29
|
+
display: none;
|
|
30
|
+
width: 100%;
|
|
31
|
+
font-size: var(--ui-checkbox-validity-font-size);
|
|
32
|
+
color: rgb(var(--color-error));
|
|
33
|
+
font-style: normal;
|
|
34
|
+
margin-top: var(--ui-checkbox-validity-offset);
|
|
35
|
+
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
& a {
|
|
38
|
+
color: rgb(var(--color-accent));
|
|
39
|
+
text-decoration: underline;
|
|
40
|
+
}
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
& input {
|
|
43
|
+
--color-current: var(--color-light);
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
display: flex;
|
|
46
|
+
width: var(--ui-checkbox-width);
|
|
47
|
+
height: var(--ui-checkbox-width);
|
|
48
|
+
background-color: rgb(var(--ui-checkbox-bg-raw) / var(--tw-bg-opacity, var(--ui-checkbox-bg-opacity)));
|
|
49
|
+
border: 1px solid rgb(var(--ui-checkbox-border-color-raw) / var(--tw-border-opacity, var(--ui-checkbox-border-color-opacity)));
|
|
50
|
+
border-radius: var(--ui-checkbox-radius);
|
|
51
|
+
user-select: none;
|
|
52
|
+
outline: none;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
transition: var(--transition-border), var(--transition-background), var(--transition-shadow);
|
|
56
|
+
box-shadow: var(--ui-checkbox-box-shadow);
|
|
57
|
+
font-size: var(--ui-checkbox-icon-font-size);
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
&::before {
|
|
60
|
+
line-height: var(--ui-checkbox-icon-font-size);
|
|
61
|
+
text-indent: 0;
|
|
62
|
+
display: block;
|
|
63
|
+
transition: var(--transition-color), var(--transition-opacity), var(--transition-transform);
|
|
64
|
+
color: rgb(var(--color-current));
|
|
65
|
+
content: "";
|
|
66
|
+
background-color: currentColor;
|
|
67
|
+
mask: var(--ui-checkbox-icon);
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transform: scale(0);
|
|
70
|
+
will-change: transform;
|
|
71
|
+
width: 1em;
|
|
72
|
+
height: 1em;
|
|
73
|
+
}
|
|
75
74
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
&:is(:hover, :focus-visible) {
|
|
76
|
+
--ui-checkbox-bg-raw: var(--ui-checkbox-checked-bg-raw);
|
|
77
|
+
--ui-checkbox-border-color-raw: var(--ui-checkbox-checked-bg-raw);
|
|
78
|
+
--tw-border-opacity: 0.75;
|
|
79
|
+
--tw-bg-opacity: 0.1;
|
|
80
|
+
}
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
82
|
+
&:required {
|
|
83
|
+
& + * {
|
|
84
|
+
&::after {
|
|
85
|
+
color: rgb(var(--color-error));
|
|
86
|
+
content: " *";
|
|
89
87
|
}
|
|
90
88
|
}
|
|
89
|
+
}
|
|
91
90
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
91
|
+
@nest .is-validated &:invalid {
|
|
92
|
+
& ~ em {
|
|
93
|
+
display: block;
|
|
96
94
|
}
|
|
95
|
+
}
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
&:checked {
|
|
98
|
+
--tw-border-opacity: 0;
|
|
100
99
|
|
|
101
|
-
|
|
100
|
+
background-color: rgb(var(--ui-checkbox-checked-bg-raw));
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
&:focus {
|
|
103
|
+
--ui-checkbox-box-shadow:
|
|
104
|
+
0 0 0 0 rgb(var(--color-current)),
|
|
105
|
+
0 0 0 3px rgb(var(--ui-checkbox-checked-bg-raw) / 0.2),
|
|
106
|
+
0 1px 2px 0 rgb(var(--color-current) / 0.05);
|
|
107
|
+
}
|
|
109
108
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
109
|
+
&::before {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
transform: scale(1);
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--ui-heading-line-height-ratio: 0.375rem;
|
|
1
|
+
:where(.ui-heading) {
|
|
2
|
+
--ui-heading-font-family: var(--font-primary);
|
|
3
|
+
--ui-heading-font-weight: var(--font-semibold);
|
|
4
|
+
--ui-heading-font-size: 1.25rem;
|
|
5
|
+
--ui-heading-line-height: calc(var(--ui-heading-font-size) + var(--ui-heading-line-height-ratio));
|
|
6
|
+
--ui-heading-line-height-ratio: 0.375rem;
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
font-family: var(--ui-heading-font-family);
|
|
9
|
+
font-size: var(--ui-heading-font-size);
|
|
10
|
+
line-height: var(--ui-heading-line-height);
|
|
11
|
+
font-weight: var(--ui-heading-font-weight);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
&:where(.is-sm) {
|
|
14
|
+
--ui-heading-font-size: 1.125rem;
|
|
15
|
+
--ui-heading-line-height-ratio: 0.125rem;
|
|
16
|
+
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
&:where(.is-lg) {
|
|
19
|
+
--ui-heading-font-size: 1.875rem;
|
|
22
20
|
}
|
|
23
21
|
}
|