@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,219 +1,223 @@
1
- /* frontend/src/web-components/s-datatable-component.module.css */
1
+ @layer components {
2
2
 
3
- /* import delle custom properties gestito da jit-props */
3
+ /* frontend/src/web-components/s-datatable-component.module.css */
4
4
 
5
+ /* import delle custom properties gestito da jit-props */
5
6
 
6
- /* purgecss start ignore */
7
7
 
8
- /* .datatable-wrapper.no-header .datatable-container {
8
+ /* purgecss start ignore */
9
+
10
+ /* .datatable-wrapper.no-header .datatable-container {
9
11
  border-top: 1px solid #d9d9d9;
10
12
  } */
11
- .datatableWrapper {
12
- margin-block: var(--size-md);
13
- }
13
+ .datatableWrapper {
14
+ margin-block: var(--size-md);
15
+ }
14
16
 
15
- .topArea {
16
- display: flex;
17
- flex-flow: row nowrap;
18
- gap: 2rem;
19
- align-items: center;
20
- justify-content: flex-end;
21
- padding-block-end: var(--size-xs);
17
+ .topArea {
18
+ display: flex;
19
+ flex-flow: row nowrap;
20
+ gap: 2rem;
21
+ align-items: center;
22
+ justify-content: flex-end;
23
+ padding-block-end: var(--size-xs);
22
24
 
23
- /* stylelint-disable-next-line selector-class-pattern */
24
- &:has(.info), &:has(:global(.datatable-top-slot)) {
25
- justify-content: space-between;
25
+ /* stylelint-disable-next-line selector-class-pattern */
26
+ &:has(.info), &:has(:global(.datatable-top-slot)) {
27
+ justify-content: space-between;
28
+ }
26
29
  }
27
- }
28
30
 
29
- .searchWrapper {
30
- max-width: 50%;
31
- }
31
+ .searchWrapper {
32
+ max-width: 50%;
33
+ }
32
34
 
33
- .table {
34
- margin-block: 0;
35
- border-block: var(--_border); /* definito in minimo table */
35
+ .table {
36
+ margin-block: 0;
37
+ border-block: var(--_border); /* definito in minimo table */
36
38
 
37
- thead {
38
- th:has(.sortBtn) {
39
- padding-inline-end: 0;
39
+ thead {
40
+ th:has(.sortBtn) {
41
+ padding-inline-end: 0;
42
+ }
40
43
  }
41
- }
42
44
 
43
- }
45
+ }
44
46
 
45
- /* cella unica per indicare l'assenza di record */
46
- .empty {
47
- /* stylelint-disable-next-line declaration-no-important */
48
- padding-block: var(--size-sm) !important;
49
- font-style: italic;
50
- color: var(--text-muted);
51
- /* stylelint-disable-next-line declaration-no-important */
52
- text-align: center !important;
53
- }
47
+ /* cella unica per indicare l'assenza di record */
48
+ .empty {
49
+ /* stylelint-disable-next-line declaration-no-important */
50
+ padding-block: var(--size-sm) !important;
51
+ font-style: italic;
52
+ color: var(--text-muted);
53
+ /* stylelint-disable-next-line declaration-no-important */
54
+ text-align: center !important;
55
+ }
54
56
 
55
- .hasIcon {
56
- /* stylelint-disable-next-line declaration-no-important */
57
- text-align: center !important;
58
- svg {
59
- display: inline-block;
60
- width: 1.05em;
57
+ .hasIcon {
58
+ /* stylelint-disable-next-line declaration-no-important */
59
+ text-align: center !important;
60
+ svg {
61
+ display: inline-block;
62
+ width: 1.05em;
63
+ }
61
64
  }
62
- }
63
65
 
64
66
 
65
- [data-sortable='true'] {
67
+ [data-sortable='true'] {
66
68
 
67
- @media (hover: hover) {
68
- &:hover {
69
- background-color: var(--sdt-thead-hover-background-color);
69
+ @media (hover: hover) {
70
+ &:hover {
71
+ background-color: var(--sdt-thead-hover-background-color);
72
+ }
70
73
  }
71
- }
72
74
 
73
- .sortBtn {
74
- padding: 0 1.5em 0 0;
75
- &::after {
76
- position: absolute;
77
- top: 50%;
78
- right: .1em;
79
- display: block;
80
- width: 1em;
81
- height: 1em;
82
- translate: 0 -50%;
75
+ .sortBtn {
76
+ padding: 0 1.5em 0 0;
77
+ &::after {
78
+ position: absolute;
79
+ top: 50%;
80
+ right: .1em;
81
+ display: block;
82
+ width: 1em;
83
+ height: 1em;
84
+ translate: 0 -50%;
85
+ }
83
86
  }
84
- }
85
87
 
86
- &:not(.sortAscending):not(.sortDescending){
87
- .sortBtn::after {
88
- content: url('../../icons/arrows-down-up.svg?cssInline');
89
- opacity: .4;
88
+ &:not(.sortAscending):not(.sortDescending){
89
+ .sortBtn::after {
90
+ content: url('../../icons/arrows-down-up.svg?cssInline');
91
+ opacity: .4;
92
+ }
90
93
  }
91
94
  }
92
- }
93
- .sortAscending {
94
- .sortBtn::after {
95
- content: url('../../icons/arrow-up.svg?cssInline');
95
+ .sortAscending {
96
+ .sortBtn::after {
97
+ content: url('../../icons/arrow-up.svg?cssInline');
98
+ }
96
99
  }
97
- }
98
- .sortDescending {
99
- .sortBtn::after {
100
- content: url('../../icons/arrow-down.svg?cssInline');
100
+ .sortDescending {
101
+ .sortBtn::after {
102
+ content: url('../../icons/arrow-down.svg?cssInline');
103
+ }
101
104
  }
102
- }
103
105
 
104
- .sortBtn {
105
- position: relative;
106
- display: block;
107
- width: 100%;
108
- height: 100%;
109
-
110
- padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
111
- line-height: var(--table-cell-line-height);
106
+ .sortBtn {
107
+ position: relative;
108
+ display: block;
109
+ width: 100%;
110
+ height: 100%;
112
111
 
113
- text-align: start;
114
- }
112
+ padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
113
+ line-height: var(--table-cell-line-height);
115
114
 
116
- /* stylelint-disable selector-class-pattern */
117
- :global(.text-start), :global(.text-left) {
118
- .sortBtn {
119
115
  text-align: start;
120
116
  }
121
- }
122
- :global(.text-end), :global(.text-right) {
123
- .sortBtn {
124
- text-align: end;
125
- }
126
- }
127
- :global(.text-center) {
128
- .sortBtn {
129
- text-align: center;
130
- }
131
- }
132
- /* stylelint-enable selector-class-pattern */
133
-
134
- .bottomArea {
135
- display: flex;
136
- flex-flow: row wrap;
137
- gap: var(--size-md);
138
- align-content: center;
139
- align-items: center;
140
- justify-content: flex-end;
141
- margin-block-start: var(--size-xs);
142
- }
143
- .info {
144
- font-size: var(--font-size-sm);
145
- font-style: italic;
146
- color: var(--text-muted);
147
- }
148
-
149
- /* pagination */
150
- /* .paginationNav {} */
151
- .paginationList, .paginationListItem, .paginationListItemBtn {
152
- padding: 0;
153
- margin: 0;
154
- }
155
-
156
- .paginationList {
157
- display: flex;
158
- flex-flow: row wrap;
159
- gap: 0;
160
- align-items: stretch;
161
- justify-content: flex-start;
162
- list-style: none;
163
- }
164
- .paginationListItem {
165
- border: var(--sdt-pagination-border);
166
- border-style: solid solid solid none;
167
117
 
168
- &:first-child {
169
- border-inline-start-style: solid;
170
- border-radius: var(--radius-xxs) 0 0 var(--radius-xxs);
118
+ /* stylelint-disable selector-class-pattern */
119
+ :global(.text-start), :global(.text-left) {
120
+ .sortBtn {
121
+ text-align: start;
122
+ }
171
123
  }
172
- &:last-child {
173
- border-radius: 0 var(--radius-xxs) var(--radius-xxs) 0;
124
+ :global(.text-end), :global(.text-right) {
125
+ .sortBtn {
126
+ text-align: end;
127
+ }
174
128
  }
175
-
176
- @media (hover: hover) {
177
- &:hover {
178
- color: var(--sdt-hover-color);
179
- background-color: var(--sdt-hover-background-color);
129
+ :global(.text-center) {
130
+ .sortBtn {
131
+ text-align: center;
180
132
  }
181
133
  }
134
+ /* stylelint-enable selector-class-pattern */
135
+
136
+ .bottomArea {
137
+ display: flex;
138
+ flex-flow: row wrap;
139
+ gap: var(--size-md);
140
+ align-content: center;
141
+ align-items: center;
142
+ justify-content: flex-end;
143
+ margin-block-start: var(--size-xs);
144
+ }
145
+ .info {
146
+ font-size: var(--font-size-sm);
147
+ font-style: italic;
148
+ color: var(--text-muted);
149
+ }
150
+
151
+ /* pagination */
152
+ /* .paginationNav {} */
153
+ .paginationList, .paginationListItem, .paginationListItemBtn {
154
+ padding: 0;
155
+ margin: 0;
156
+ }
157
+
158
+ .paginationList {
159
+ display: flex;
160
+ flex-flow: row wrap;
161
+ gap: 0;
162
+ align-items: stretch;
163
+ justify-content: flex-start;
164
+ list-style: none;
165
+ }
166
+ .paginationListItem {
167
+ border: var(--sdt-pagination-border);
168
+ border-style: solid solid solid none;
169
+
170
+ &:first-child {
171
+ border-inline-start-style: solid;
172
+ border-radius: var(--radius-xxs) 0 0 var(--radius-xxs);
173
+ }
174
+ &:last-child {
175
+ border-radius: 0 var(--radius-xxs) var(--radius-xxs) 0;
176
+ }
182
177
 
183
- }
184
-
185
- .paginationDisabled {
186
- pointer-events: none;
178
+ @media (hover: hover) {
179
+ &:hover {
180
+ color: var(--sdt-hover-color);
181
+ background-color: var(--sdt-hover-background-color);
182
+ }
183
+ }
187
184
 
188
- .paginationListItemBtn {
189
- opacity: .7;
190
185
  }
191
- }
192
186
 
193
- .paginationActive {
194
- color: var(--sdt-hover-color);
195
- background-color: var(--sdt-hover-background-color);
196
- }
187
+ .paginationDisabled {
188
+ pointer-events: none;
197
189
 
198
- .paginationListItemBtn {
199
- display: flex;
200
- align-items: center;
201
- justify-content: center;
202
- height: 100%;
203
- padding: var(--sdt-pagination-padding-block) var(--sdt-pagination-padding-inline);
204
- color: inherit;
205
- background-color: transparent;
206
- border: none;
190
+ .paginationListItemBtn {
191
+ opacity: .7;
192
+ }
193
+ }
207
194
 
208
- &.hasSvg {
209
- padding-inline: calc(var(--sdt-pagination-padding-inline) / 2);
195
+ .paginationActive {
196
+ color: var(--sdt-hover-color);
197
+ background-color: var(--sdt-hover-background-color);
210
198
  }
211
199
 
212
- svg {
213
- width: 1em;
214
- aspect-ratio: 1;
215
- fill: currentColor;
200
+ .paginationListItemBtn {
201
+ display: flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ height: 100%;
205
+ padding: var(--sdt-pagination-padding-block) var(--sdt-pagination-padding-inline);
206
+ color: inherit;
207
+ background-color: transparent;
208
+ border: none;
209
+
210
+ &.hasSvg {
211
+ padding-inline: calc(var(--sdt-pagination-padding-inline) / 2);
212
+ }
213
+
214
+ svg {
215
+ width: 1em;
216
+ aspect-ratio: 1;
217
+ fill: currentColor;
218
+ }
216
219
  }
217
- }
218
220
 
219
- /* purgecss end ignore */
221
+ /* purgecss end ignore */
222
+
223
+ }
@@ -1,45 +0,0 @@
1
- /* TODO rivedere e completare */
2
-
3
- a:link, .btn-link {
4
- /* TODO rivedere, forse più complicato del necessario */
5
- &:not(.btn) {
6
- font-weight: var(--font-weight-semibold);
7
- color: var(--link-color);
8
- text-decoration: none;
9
- }
10
- }
11
-
12
- a:not(.btn) {
13
- text-decoration: none;
14
- &:link {
15
- color: var(--link-color);
16
- }
17
- &:visited {
18
- color: var(--link-visited-color);
19
- }
20
- }
21
-
22
- a:not(.btn), .btn-link {
23
- &:focus {
24
- outline: none;
25
- }
26
-
27
- &:focus-visible {
28
- outline: 1px solid color-mix(in srgb, var(--link-color) 60%, transparent);
29
- outline-offset: 2px;
30
- }
31
- @media (hover: hover) {
32
- &:hover {
33
- text-decoration: underline;
34
- text-underline-offset: 2px;
35
- }
36
- }
37
- &:active {
38
- /* TODO rivedere, sostituire con colori specifici da custom props */
39
- /* stylelint-disable-next-line declaration-no-important */
40
- color: var(--body-background-color) !important;
41
- outline: 2px solid var(--link-color);
42
- background-color: var(--link-color);
43
- offset: 0;
44
- }
45
- }