@massimo-cassandro/minimo 0.5.4 → 0.5.6
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/design-tokens/btn.minimo.tokens.jsonc +1 -1
- package/design-tokens/form-validation.minimo.tokens.jsonc +22 -0
- package/design-tokens/form.minimo.tokens.jsonc +4 -0
- package/design-tokens-src/btn.minimo.tokens.jsonc +1 -1
- package/design-tokens-src/form-validation.minimo.tokens.mjs +16 -0
- package/design-tokens-src/form.minimo.tokens.mjs +4 -0
- package/package.json +1 -1
- package/src/css/forms/forms.css +1 -0
- package/src/css/forms/validation.css +6 -4
- package/src/custom-properties-default.css +4 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"form": {
|
|
9
|
+
"validation": {
|
|
10
|
+
"outline": {
|
|
11
|
+
"width": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$value": "3px"
|
|
14
|
+
},
|
|
15
|
+
"offset": {
|
|
16
|
+
"$type": "dimension",
|
|
17
|
+
"$value": "-3px"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
package/src/css/forms/forms.css
CHANGED
|
@@ -11,14 +11,16 @@
|
|
|
11
11
|
.form-label {
|
|
12
12
|
color: var(--_status-color);
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
/* TODO .form-select è necessario? */
|
|
14
16
|
.form-control, .form-select {
|
|
15
|
-
outline:
|
|
16
|
-
outline-offset:
|
|
17
|
+
outline: var(--form-validation-outline-width) solid var(--_status-color);
|
|
18
|
+
outline-offset: var(--form-validation-outline-offset);
|
|
17
19
|
|
|
18
20
|
&:focus {
|
|
19
21
|
/* background-color: var(--_status-color); */
|
|
20
|
-
outline: var(--
|
|
21
|
-
outline-offset:
|
|
22
|
+
outline: var(--form-control-focus-outline-width) solid var(--_status-color);
|
|
23
|
+
outline-offset: var(--form-control-focus-outline-offset);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
--btn-font-size: var(--form-control-font-size);
|
|
34
34
|
--btn-font-style: var(--form-control-font-style);
|
|
35
35
|
--btn-font-weight: var(--form-control-font-weight);
|
|
36
|
-
--btn-hollow-border-width: var(--btn-border-width);
|
|
36
|
+
--btn-hollow-border-width: calc(var(--btn-border-width) * 2);
|
|
37
37
|
--btn-lg-focus-outline-width: .25rem;
|
|
38
38
|
--btn-lg-font-size: var(--font-size-lg);
|
|
39
39
|
--btn-lg-padding-block: var(--size-base);
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
--form-control-disabled-font-style: italic;
|
|
102
102
|
--form-control-disabled-opacity: .7;
|
|
103
103
|
--form-control-focus-color: hsl(205 69% 45% / .508);
|
|
104
|
+
--form-control-focus-outline-offset: -.125rem;
|
|
104
105
|
--form-control-focus-outline-width: .25rem;
|
|
105
106
|
--form-control-font-size: var(--font-size-base);
|
|
106
107
|
--form-control-font-style: normal;
|
|
@@ -149,6 +150,8 @@
|
|
|
149
150
|
--form-legend-color: var(--text-color);
|
|
150
151
|
--form-user-info-color: var(--text-muted);
|
|
151
152
|
--form-user-info-font-size: var(--font-size-xs);
|
|
153
|
+
--form-validation-outline-offset: -.1875rem;
|
|
154
|
+
--form-validation-outline-width: .1875rem;
|
|
152
155
|
--grid-cols: 3;
|
|
153
156
|
--grid-min-col-width: 6rem;
|
|
154
157
|
--headings-color: var(--text-color);
|