@massimo-cassandro/minimo 1.20.15 → 1.21.0

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.
Files changed (56) hide show
  1. package/design-tokens/_src/link.minimo.tokens.mjs +35 -4
  2. package/package.json +1 -1
  3. package/src/components/autocomplete/autocomplete.css +113 -109
  4. package/src/components/inner-nav/inner-nav.css +13 -9
  5. package/src/components/modal-alert/modal-alert.js +13 -13
  6. package/src/components/modal-alert/modal-alert.module.css +157 -153
  7. package/src/components/modal-popup/modal-popup.module.css +89 -85
  8. package/src/components/overlay/overlay.css +14 -10
  9. package/src/components/sf-macro/sf-macro.css +60 -56
  10. package/src/components/slide-up-down-toggle/slide-up-down-toggle.module.css +33 -29
  11. package/src/components/snackbar/snackbar.module.css +93 -89
  12. package/src/components/spinner/spinner-circle-basic.css +18 -14
  13. package/src/components/spinner/spinner.module.css +8 -4
  14. package/src/components/unsplash-page/unsplash-page.module.css +260 -256
  15. package/src/css/alerts.css +55 -53
  16. package/src/css/badge.css +16 -12
  17. package/src/css/buttons/btn-close.css +57 -53
  18. package/src/css/buttons/buttons-primary.css +38 -34
  19. package/src/css/buttons/buttons-secondary.css +38 -34
  20. package/src/css/buttons/buttons.css +84 -80
  21. package/src/css/buttons/status-buttons.css +66 -63
  22. package/src/css/container.css +9 -5
  23. package/src/css/data-formats.css +28 -24
  24. package/src/css/details.css +17 -13
  25. package/src/css/dimensions.css +13 -9
  26. package/src/css/display.css +27 -23
  27. package/src/css/flex.css +39 -35
  28. package/src/css/forms/fieldset.css +47 -43
  29. package/src/css/forms/form-collections.css +16 -12
  30. package/src/css/forms/form-disabled-readonly.css +31 -27
  31. package/src/css/forms/form-group.css +15 -11
  32. package/src/css/forms/form-utilities.css +32 -28
  33. package/src/css/forms/forms.css +136 -134
  34. package/src/css/forms/input-group.css +47 -43
  35. package/src/css/forms/switch.css +50 -46
  36. package/src/css/forms/validation.css +26 -22
  37. package/src/css/grid.css +66 -62
  38. package/src/css/headings.css +32 -28
  39. package/src/css/icons.css +41 -37
  40. package/src/css/layout-base.css +16 -12
  41. package/src/css/links.css +49 -0
  42. package/src/css/margin-padding-bootstrap-media.css +1836 -1832
  43. package/src/css/margin-padding-bootstrap.css +445 -441
  44. package/src/css/margin-padding-media.css +1836 -1832
  45. package/src/css/margin-padding.css +445 -441
  46. package/src/css/overflow.css +7 -3
  47. package/src/css/position.css +5 -1
  48. package/src/css/reset.css +47 -44
  49. package/src/css/svg.css +6 -2
  50. package/src/css/table.css +59 -55
  51. package/src/css/text.css +96 -92
  52. package/src/css/visibility.css +23 -19
  53. package/src/custom-properties.css +9 -3
  54. package/src/minimo.css +3 -1
  55. package/src/web-components/s-datatable-component/s-datatable-component.module.css +175 -171
  56. package/src/css/anchors.css +0 -45
@@ -1,31 +1,35 @@
1
- /* da BS5 */
2
- .was-validated {
1
+ @layer base {
3
2
 
4
- /* includes static field which container has is-valid / is-invalid class */
5
- .form-group:has(:valid), .form-group:has(.is-valid), .form-group.is-valid .form-control-static{
6
- --_status-color: var(--status-success-color);
7
- }
8
- .form-group:has(:invalid), .form-group:has(.is-invalid), .form-group.is-invalid .form-control-static{
9
- --_status-color: var(--status-danger-color);
10
- }
3
+ /* da BS5 */
4
+ .was-validated {
11
5
 
12
- .form-label {
13
- color: var(--_status-color);
14
- }
15
-
16
- .form-control, .form-control-static {
17
- outline: var(--form-validation-outline-width) solid var(--_status-color);
18
- outline-offset: var(--form-validation-outline-offset);
6
+ /* includes static field which container has is-valid / is-invalid class */
7
+ .form-group:has(:valid), .form-group:has(.is-valid), .form-group.is-valid .form-control-static{
8
+ --_status-color: var(--status-success-color);
9
+ }
10
+ .form-group:has(:invalid), .form-group:has(.is-invalid), .form-group.is-invalid .form-control-static{
11
+ --_status-color: var(--status-danger-color);
12
+ }
19
13
 
20
- &:focus {
21
- outline: none;
14
+ .form-label {
15
+ color: var(--_status-color);
22
16
  }
23
17
 
24
- &:focus-visible {
25
- /* background-color: var(--_status-color); */
26
- outline: var(--form-control-focus-outline-width) solid var(--_status-color);
27
- outline-offset: var(--form-control-focus-outline-offset);
18
+ .form-control, .form-control-static {
19
+ outline: var(--form-validation-outline-width) solid var(--_status-color);
20
+ outline-offset: var(--form-validation-outline-offset);
21
+
22
+ &:focus {
23
+ outline: none;
24
+ }
25
+
26
+ &:focus-visible {
27
+ /* background-color: var(--_status-color); */
28
+ outline: var(--form-control-focus-outline-width) solid var(--_status-color);
29
+ outline-offset: var(--form-control-focus-outline-offset);
30
+ }
28
31
  }
32
+
29
33
  }
30
34
 
31
35
  }
package/src/css/grid.css CHANGED
@@ -1,79 +1,83 @@
1
- /* TODO unificare regole comuni flex e grid */
2
-
3
- .grid {
4
- --_cols: 1;
5
- /* --_min-col-width: calc((100% - calc(var(--_cols) * var(--flex-grid-gap))) / var(--grid-cols)); */
6
-
7
- display: grid;
8
- /* grid-template-columns: repeat(var(--_cols), minmax(var(--grid-min-col-width), 1fr)); */
9
- grid-template-columns: repeat(var(--_cols), minmax(0, 1fr));
10
- grid-auto-flow: row;
11
- gap: var(--flex-grid-gap);
12
- /* align-items: center; */
13
- /* justify-items: start; */
14
-
15
- &.justify-content-end {
16
- justify-content: end;
17
- }
1
+ @layer base {
2
+
3
+ /* TODO unificare regole comuni flex e grid */
18
4
 
5
+ .grid {
6
+ --_cols: 1;
7
+ /* --_min-col-width: calc((100% - calc(var(--_cols) * var(--flex-grid-gap))) / var(--grid-cols)); */
19
8
 
20
- @media (--media-medium-viewport-up) {
21
- --_cols: 2;
9
+ display: grid;
10
+ /* grid-template-columns: repeat(var(--_cols), minmax(var(--grid-min-col-width), 1fr)); */
11
+ grid-template-columns: repeat(var(--_cols), minmax(0, 1fr));
12
+ grid-auto-flow: row;
13
+ gap: var(--flex-grid-gap);
14
+ /* align-items: center; */
15
+ /* justify-items: start; */
22
16
 
23
- > .span-2, > .span-3, > .span-4 {
24
- grid-column-start: span 2;
17
+ &.justify-content-end {
18
+ justify-content: end;
25
19
  }
26
- }
27
20
 
28
- @media (--media-large-viewport-up) {
29
- --_cols: 4;
30
21
 
31
- /* versione a 3, 5, 6, 8 colonne */
32
- &.grid-2 {
22
+ @media (--media-medium-viewport-up) {
33
23
  --_cols: 2;
34
- }
35
- &.grid-3 {
36
- --_cols: 3;
37
- }
38
- &.grid-5 {
39
- --_cols: 5;
40
- }
41
- &.grid-6 {
42
- --_cols: 6;
43
- }
44
- &.grid-8 {
45
- --_cols: 8;
46
- }
47
24
 
48
- > .span-2 {
49
- grid-column-start: span 2;
50
- }
51
- > .span-3 {
52
- grid-column-start: span 3;
25
+ > .span-2, > .span-3, > .span-4 {
26
+ grid-column-start: span 2;
27
+ }
53
28
  }
54
29
 
55
- > .span-4 {
56
- grid-column-start: span 4;
30
+ @media (--media-large-viewport-up) {
31
+ --_cols: 4;
32
+
33
+ /* versione a 3, 5, 6, 8 colonne */
34
+ &.grid-2 {
35
+ --_cols: 2;
36
+ }
37
+ &.grid-3 {
38
+ --_cols: 3;
39
+ }
40
+ &.grid-5 {
41
+ --_cols: 5;
42
+ }
43
+ &.grid-6 {
44
+ --_cols: 6;
45
+ }
46
+ &.grid-8 {
47
+ --_cols: 8;
48
+ }
49
+
50
+ > .span-2 {
51
+ grid-column-start: span 2;
52
+ }
53
+ > .span-3 {
54
+ grid-column-start: span 3;
55
+ }
56
+
57
+ > .span-4 {
58
+ grid-column-start: span 4;
59
+ }
60
+ } /* end @media */
61
+
62
+ /* grid items */
63
+ > .grid-item-last {
64
+ grid-column: -2 / -1;
65
+ }
66
+ > .grid-full-row {
67
+ grid-column: 1 / -1;
57
68
  }
58
- } /* end @media */
59
69
 
60
- /* grid items */
61
- > .grid-item-last {
62
- grid-column: -2 / -1;
63
- }
64
- > .grid-full-row {
65
- grid-column: 1 / -1;
66
70
  }
67
71
 
68
- }
72
+ .grid-new-row {
73
+ grid-column-start: 1;
74
+ }
69
75
 
70
- .grid-new-row {
71
- grid-column-start: 1;
72
- }
76
+ .justify-self-end {
77
+ justify-self: end;
78
+ }
79
+ .justify-self-start {
80
+ justify-self: start;
81
+ }
73
82
 
74
- .justify-self-end {
75
- justify-self: end;
76
- }
77
- .justify-self-start {
78
- justify-self: start;
79
83
  }
@@ -1,35 +1,39 @@
1
+ @layer base {
1
2
 
2
- h1, h2, h3, .h3, h4, .h4 {
3
- line-height: 1.2;
4
- color: var(--headings-color);
5
- text-align: var(--headings-text-align);
6
- }
7
3
 
8
- h1 {
9
- margin: 0 0 var(--font-size-xl);
10
- font-size: var(--headings-h1-font-size);
11
- font-weight: var(--headings-h1-font-weight);
4
+ h1, h2, h3, .h3, h4, .h4 {
5
+ line-height: 1.2;
6
+ color: var(--headings-color);
7
+ text-align: var(--headings-text-align);
8
+ }
9
+
10
+ h1 {
11
+ margin: 0 0 var(--font-size-xl);
12
+ font-size: var(--headings-h1-font-size);
13
+ font-weight: var(--headings-h1-font-weight);
12
14
 
13
- small {
14
- display: block;
15
- font-size: .85em;
16
- color: var(--text-muted);
15
+ small {
16
+ display: block;
17
+ font-size: .85em;
18
+ color: var(--text-muted);
19
+ }
17
20
  }
18
- }
19
21
 
20
- h2, h3, .h3, h4, .h4 {
21
- font-weight: var(--headings-font-weight);
22
- }
23
- h2 {
24
- margin: var(--font-size-xl) 0 var(--font-size-md);
25
- font-size: var(--headings-h2-font-size);
26
- }
22
+ h2, h3, .h3, h4, .h4 {
23
+ font-weight: var(--headings-font-weight);
24
+ }
25
+ h2 {
26
+ margin: var(--font-size-xl) 0 var(--font-size-md);
27
+ font-size: var(--headings-h2-font-size);
28
+ }
29
+
30
+ h3, .h3 {
31
+ margin: var(--font-size-lg) 0 var(--font-size-base);
32
+ font-size: var(--headings-h3-font-size);
33
+ }
34
+ h4, .h4 {
35
+ margin: var(--font-size-base) 0 var(--font-size-sm);
36
+ font-size: var(--headings-h4-font-size);
37
+ }
27
38
 
28
- h3, .h3 {
29
- margin: var(--font-size-lg) 0 var(--font-size-base);
30
- font-size: var(--headings-h3-font-size);
31
- }
32
- h4, .h4 {
33
- margin: var(--font-size-base) 0 var(--font-size-sm);
34
- font-size: var(--headings-h4-font-size);
35
39
  }
package/src/css/icons.css CHANGED
@@ -1,46 +1,48 @@
1
+ @layer base {
1
2
 
2
- .icon {
3
- position: relative;
4
- display: inline-block;
5
- width: 1em;
6
- aspect-ratio: 1;
7
3
 
8
- fill: currentColor;
9
- stroke: none;
4
+ .icon {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 1em;
8
+ aspect-ratio: 1;
10
9
 
11
- /* fill: none;
10
+ fill: currentColor;
11
+ stroke: none;
12
+
13
+ /* fill: none;
12
14
  stroke: currentColor;
13
15
  stroke-linecap: round;
14
16
  stroke-linejoin: round;
15
17
  stroke-width: 4px; */
16
18
 
17
- /* &.icon-bold{
19
+ /* &.icon-bold{
18
20
  stroke-width: 8px;
19
21
  } */
20
22
 
21
- &.icon-lg {
22
- width: 1.2em;
23
- height: 1.2em;
24
- }
25
- &.icon-xl {
26
- width: 1.4em;
27
- height: 1.4em;
28
- }
29
- &.icon-xxl {
30
- width: 2em;
31
- height: 2em;
32
- }
33
- &.icon-4xl {
34
- width: 8em;
35
- height: 8em;
36
- }
23
+ &.icon-lg {
24
+ width: 1.2em;
25
+ height: 1.2em;
26
+ }
27
+ &.icon-xl {
28
+ width: 1.4em;
29
+ height: 1.4em;
30
+ }
31
+ &.icon-xxl {
32
+ width: 2em;
33
+ height: 2em;
34
+ }
35
+ &.icon-4xl {
36
+ width: 8em;
37
+ height: 8em;
38
+ }
37
39
 
38
- /* &.fill-icon {
40
+ /* &.fill-icon {
39
41
  fill: currentColor;
40
42
  stroke: none;
41
43
  } */
42
44
 
43
- /* &.ratio3x4 {
45
+ /* &.ratio3x4 {
44
46
  height: auto;
45
47
  aspect-ratio: 3 / 4;
46
48
  }
@@ -48,18 +50,18 @@
48
50
  height: auto;
49
51
  aspect-ratio: 3 / 5;
50
52
  } */
51
- &.baseline-shift-20 {
52
- translate: 0 20%;
53
- }
54
- &.baseline-shift-30 {
55
- translate: 0 30%;
56
- }
57
- &.baseline-negative-shift-20 {
58
- translate: 0 -20%;
53
+ &.baseline-shift-20 {
54
+ translate: 0 20%;
55
+ }
56
+ &.baseline-shift-30 {
57
+ translate: 0 30%;
58
+ }
59
+ &.baseline-negative-shift-20 {
60
+ translate: 0 -20%;
61
+ }
59
62
  }
60
- }
61
63
 
62
- /* .duotone-light, .duotone-medium, .duotone-dark {
64
+ /* .duotone-light, .duotone-medium, .duotone-dark {
63
65
  fill: currentColor;
64
66
  stroke: none;
65
67
  }
@@ -73,3 +75,5 @@
73
75
  fill-opacity: .7;
74
76
  } */
75
77
 
78
+
79
+ }
@@ -1,14 +1,18 @@
1
- html, body {
2
- /* height: 100%; */
3
- padding: 0;
4
- margin: 0;
5
- scroll-behavior: smooth;
6
- font-family: var(--font-family);
7
- font-size: var(--font-size-base);
8
- font-style: var(--font-style-base);
9
- line-height: var(--line-height-base);
10
- color: var(--text-color);
11
- accent-color: var(--accent);
12
- background-color: var(--body-background-color);
1
+ @layer base {
2
+
3
+ html, body {
4
+ /* height: 100%; */
5
+ padding: 0;
6
+ margin: 0;
7
+ scroll-behavior: smooth;
8
+ font-family: var(--font-family);
9
+ font-size: var(--font-size-base);
10
+ font-style: var(--font-style-base);
11
+ line-height: var(--line-height-base);
12
+ color: var(--text-color);
13
+ accent-color: var(--accent);
14
+ background-color: var(--body-background-color);
15
+
16
+ }
13
17
 
14
18
  }
@@ -0,0 +1,49 @@
1
+ @layer base {
2
+
3
+ /* TODO rivedere e completare */
4
+
5
+ a:link, .btn-link {
6
+ /* TODO rivedere, forse più complicato del necessario */
7
+ &:not(.btn) {
8
+ font-weight: var(--link-font-weight);
9
+ color: var(--link-color);
10
+ text-decoration: var(--link-text-decoration);
11
+ }
12
+ }
13
+
14
+ a:not(.btn) {
15
+ text-decoration: none;
16
+ &:link {
17
+ color: var(--link-color);
18
+ }
19
+ &:visited {
20
+ color: var(--link-visited-color);
21
+ }
22
+ }
23
+
24
+ a:not(.btn), .btn-link {
25
+ &:focus {
26
+ outline: none;
27
+ }
28
+
29
+ &:focus-visible {
30
+ outline: var(--link-focus-outline-width) solid color-mix(in srgb, var(--link-focus-outline-color) 60%, transparent);
31
+ outline-offset: var(--link-focus-outline-offset);
32
+ }
33
+ @media (hover: hover) {
34
+ &:hover {
35
+ color: var(--link-hover-color);
36
+ text-decoration: var(--link-hover-text-decoration);
37
+ text-underline-offset: var(--link-hover-text-underline-offset);
38
+ }
39
+ }
40
+ &:active {
41
+ /* TODO rivedere, sostituire con colori specifici da custom props */
42
+ /* stylelint-disable-next-line declaration-no-important */
43
+ color: var(--link-active-color) !important;
44
+ background-color: var(--link-active-background-color);
45
+ offset: 0;
46
+ }
47
+ }
48
+
49
+ }