srcdev-nuxt-forms 2.4.15 → 2.4.17
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.
|
@@ -169,10 +169,13 @@ onMounted(() => {
|
|
|
169
169
|
--_input-text-wrapper-opacity: 1;
|
|
170
170
|
--_input-text-wrapper-box-shadow: var(--_focus-box-shadow);
|
|
171
171
|
--_input-text-wrapper-margin-inline: 0;
|
|
172
|
+
--_input-text-wrapper-padding-block: 0;
|
|
172
173
|
|
|
173
174
|
&.underlined {
|
|
174
175
|
--_input-text-core-color: var(--theme-form-input-text-color-underlined);
|
|
175
|
-
--_input-text-wrapper-background-color: var(--theme-form-input-bg-underlined);
|
|
176
|
+
/* --_input-text-wrapper-background-color: var(--theme-form-input-bg-underlined); */
|
|
177
|
+
--_input-text-wrapper-background-color: transparent;
|
|
178
|
+
--_input-text-wrapper-padding-block: 0.5rem;
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
&.outlined {
|
|
@@ -229,6 +232,7 @@ onMounted(() => {
|
|
|
229
232
|
opacity: var(--_input-text-wrapper-opacity);
|
|
230
233
|
|
|
231
234
|
margin-inline: var(--_input-text-wrapper-margin-inline);
|
|
235
|
+
padding-block: var(--_input-text-wrapper-padding-block);
|
|
232
236
|
|
|
233
237
|
&:not(.normal) {
|
|
234
238
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -172,22 +172,29 @@ watch(
|
|
|
172
172
|
/* Label vars */
|
|
173
173
|
--_label-text-color: var(--theme-form-input-text-label-color-normal);
|
|
174
174
|
--_label-text-margin-block: 0.8rem;
|
|
175
|
-
--_label-text-size: var(--step-
|
|
176
|
-
--_label-text-weight:
|
|
175
|
+
--_label-text-size: var(--step-2);
|
|
176
|
+
--_label-text-weight: normal;
|
|
177
177
|
--_label-text-line-height: 1.5;
|
|
178
178
|
--_label-text-background-color: var(--_input-text-with-label-background-color);
|
|
179
179
|
|
|
180
180
|
&.underlined {
|
|
181
181
|
--_label-text-color: var(--theme-form-input-text-label-color-underlined);
|
|
182
|
-
--_label-offset:
|
|
183
|
-
--_input-text-with-label-background-color: var(--theme-form-input-bg-underlined);
|
|
184
|
-
--_input-text-
|
|
182
|
+
--_label-offset: 1rem 0;
|
|
183
|
+
/* --_input-text-with-label-background-color: var(--theme-form-input-bg-underlined); */
|
|
184
|
+
--_input-text-with-label-background-color: rgba(255, 255, 255, 0.1);
|
|
185
|
+
|
|
186
|
+
--_input-text-wrapper-underlined-border-radius-top-left: 0;
|
|
187
|
+
--_input-text-wrapper-underlined-border-radius-top-right: 0;
|
|
188
|
+
--_input-text-wrapper-underlined-border-radius-bottom-left: 4px;
|
|
189
|
+
--_input-text-wrapper-underlined-border-radius-bottom-right: 4px;
|
|
190
|
+
|
|
191
|
+
--_label-text-background-color: transparent;
|
|
185
192
|
|
|
186
193
|
&:has(.input-text-wrapper.active),
|
|
187
194
|
&:has(.input-text-wrapper.dirty) {
|
|
188
|
-
--_label-offset: 0 -
|
|
189
|
-
--_label-text-weight:
|
|
190
|
-
|
|
195
|
+
--_label-offset: 0 -4.2rem;
|
|
196
|
+
--_label-text-weight: bolder;
|
|
197
|
+
--_label-text-size: var(--step-1);
|
|
191
198
|
/* line-height: 1.5; */
|
|
192
199
|
/* padding: 0.2rem 1.2rem; */
|
|
193
200
|
}
|
|
@@ -205,14 +212,14 @@ watch(
|
|
|
205
212
|
&:has(.input-text-wrapper.dirty) {
|
|
206
213
|
--_label-offset: 1rem -2.8rem;
|
|
207
214
|
--_label-text-weight: normal;
|
|
208
|
-
/*
|
|
215
|
+
/* --_label-text-size: var(--step-1); */
|
|
209
216
|
/* line-height: 1.5; */
|
|
210
217
|
/* padding: 0.2rem 1.2rem; */
|
|
211
218
|
}
|
|
212
219
|
}
|
|
213
220
|
|
|
214
221
|
&:not(.normal) {
|
|
215
|
-
--_input-text-with-label-margin-block-start:
|
|
222
|
+
--_input-text-with-label-margin-block-start: 3em;
|
|
216
223
|
|
|
217
224
|
&:has(.input-text-wrapper.active),
|
|
218
225
|
&:has(.input-text-wrapper.dirty) {
|
|
@@ -234,9 +241,14 @@ watch(
|
|
|
234
241
|
|
|
235
242
|
background-color: var(--_input-text-with-label-background-color);
|
|
236
243
|
border-radius: var(--_input-text-wrapper-border-radius);
|
|
244
|
+
/* overflow: clip; */
|
|
237
245
|
|
|
238
246
|
&.underlined {
|
|
239
247
|
border-bottom: var(--_input-text-wrapper-border-underlined);
|
|
248
|
+
border-top-left-radius: var(--_input-text-wrapper-underlined-border-radius-top-left);
|
|
249
|
+
border-top-right-radius: var(--_input-text-wrapper-underlined-border-radius-top-right);
|
|
250
|
+
border-bottom-left-radius: var(--_input-text-wrapper-underlined-border-radius-bottom-left);
|
|
251
|
+
border-bottom-right-radius: var(--_input-text-wrapper-underlined-border-radius-bottom-right);
|
|
240
252
|
}
|
|
241
253
|
|
|
242
254
|
&.outlined {
|
|
@@ -275,6 +287,11 @@ watch(
|
|
|
275
287
|
translate: var(--_label-offset);
|
|
276
288
|
width: fit-content;
|
|
277
289
|
transition: font-size 0.2s ease-in-out, translate 0.2s ease-in-out;
|
|
290
|
+
|
|
291
|
+
&:not(.normal) {
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
}
|
|
278
295
|
}
|
|
279
296
|
}
|
|
280
297
|
</style>
|
|
@@ -32,10 +32,10 @@ defineProps({
|
|
|
32
32
|
.form-field {
|
|
33
33
|
--_gutter-width: 0rem;
|
|
34
34
|
--_max-width: 400px;
|
|
35
|
-
--_background-color:
|
|
35
|
+
--_background-color: transparent;
|
|
36
36
|
--_border-radius: 0.4rem;
|
|
37
37
|
|
|
38
|
-
background-color: var(--
|
|
38
|
+
background-color: var(--_background-color);
|
|
39
39
|
border-radius: var(--_border-radius);
|
|
40
40
|
margin-inline: auto;
|
|
41
41
|
margin-block: 1lh;
|
|
@@ -47,6 +47,10 @@ defineProps({
|
|
|
47
47
|
background-color: var(--theme-error-surface);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
&:has(.underline) {
|
|
51
|
+
--_background-color: var(--theme-form-input-bg-underlined);
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
.form-field-inner {
|
|
51
55
|
background-color: var(--_background-color);
|
|
52
56
|
border-radius: var(--_border-radius);
|
package/package.json
CHANGED