@massimo-cassandro/minimo 0.5.3 → 0.5.5

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.
@@ -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
+ }
@@ -186,6 +186,10 @@
186
186
  "width": {
187
187
  "$type": "dimension",
188
188
  "$value": "4px"
189
+ },
190
+ "offset": {
191
+ "$type": "dimension",
192
+ "$value": "-2px"
189
193
  }
190
194
  }
191
195
  },
@@ -0,0 +1,16 @@
1
+ export default {
2
+ form: {
3
+ validation: {
4
+ outline: {
5
+ width: {
6
+ $type: 'dimension',
7
+ $value: '3px'
8
+ },
9
+ offset: {
10
+ $type: 'dimension',
11
+ $value: '-3px'
12
+ }
13
+ }
14
+ }
15
+ }
16
+ };
@@ -189,6 +189,10 @@ export default {
189
189
  width: {
190
190
  $value: '4px',
191
191
  $type: 'dimension'
192
+ },
193
+ offset: {
194
+ $value: '-2px',
195
+ $type: 'dimension'
192
196
  }
193
197
  }
194
198
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Light css framework",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -42,6 +42,7 @@
42
42
 
43
43
  &:focus {
44
44
  outline: var(--form-control-focus-outline-width) solid var(--form-control-focus-color);
45
+ outline-offset: var(--form-control-focus-outline-offset);
45
46
  }
46
47
  }
47
48
 
@@ -21,7 +21,7 @@
21
21
  font-size: var(--btn-font-size);
22
22
  background-color: var(--form-input-group-background-color);
23
23
  border: 1px solid var(--form-control-border-color);
24
- border-radius: var(--btn-border-radius);
24
+ border-radius: var(--form-control-border-radius);
25
25
  }
26
26
 
27
27
  > .btn, .input-group-text {
@@ -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: 2px solid var(--_status-color);
16
- outline-offset: 2px;
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(--btn-focus-outline-width) solid var(--_status-color);
21
- outline-offset: 0;
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
 
@@ -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);