@massimo-cassandro/minimo 0.10.2 → 0.10.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/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.form-collection-fset { /* fieldset */
|
|
2
|
+
padding: 0;
|
|
3
|
+
border: none;
|
|
4
|
+
|
|
5
|
+
.form-collection {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-flow: column nowrap;
|
|
8
|
+
gap: var(--size-xs);
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
|
|
12
|
+
&.form-collection-inline {
|
|
13
|
+
flex-flow: row wrap;
|
|
14
|
+
gap: var(--size-md);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/src/css/forms/forms.css
CHANGED
|
@@ -4,20 +4,31 @@
|
|
|
4
4
|
/* TODO classe grid specifica per i form ?? (.form-grid?) */
|
|
5
5
|
/* TODO customizable select */
|
|
6
6
|
|
|
7
|
-
.form-group:has([required]):not(:has([disabled]))
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
position:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
.form-group:has([required]):not(:has([disabled])) {
|
|
8
|
+
|
|
9
|
+
/* `>` excludes labels within form-collections */
|
|
10
|
+
> .form-label {
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-inline-start: var(--size-base);
|
|
13
|
+
&::before {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: -.15em;
|
|
16
|
+
left: 0;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
padding-inline-end: var(--size-xxs);
|
|
19
|
+
font-size: 2em;
|
|
20
|
+
color: var(--form-control-required-flag-color);
|
|
21
|
+
content: var(--form-control-required-flag-content);
|
|
22
|
+
}
|
|
19
23
|
}
|
|
24
|
+
}
|
|
20
25
|
|
|
26
|
+
/* single checkbozes and radios are centered */
|
|
27
|
+
.form-group:not(.form-collection-fset):has(.form-check:not(.form-check-top-label)) {
|
|
28
|
+
align-self: center;
|
|
29
|
+
.form-check {
|
|
30
|
+
margin-block-start: 0;
|
|
31
|
+
}
|
|
21
32
|
}
|
|
22
33
|
|
|
23
34
|
.form-label {
|
|
@@ -135,10 +146,9 @@ input::-webkit-calendar-picker-trigger-icon { /* solo in chromium, non in safari
|
|
|
135
146
|
}
|
|
136
147
|
|
|
137
148
|
|
|
138
|
-
|
|
139
|
-
|
|
140
149
|
textarea.form-control {
|
|
141
150
|
flex: 1;
|
|
151
|
+
min-height: calc(3.5lh + var(--form-control-padding-block) * 2);
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
|
package/src/index-template.css
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
/* @import '@minimo/css/forms/forms.css'; */
|
|
18
18
|
/* @import '@minimo/css/forms/fieldset.css'; */
|
|
19
|
+
/* @import '@minimo/css/forms/form-collections.css'; */
|
|
19
20
|
/* @import '@minimo/css/forms/form-group.css'; */
|
|
20
21
|
/* @import '@minimo/css/forms/input-group.css'; */
|
|
21
22
|
/* @import '@minimo/css/forms/form-disabled-readonly.css'; */
|