@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,5 +1,7 @@
1
- /*! minimo - Unsplash Page */
2
- /*
1
+ @layer components {
2
+
3
+ /*! minimo - Unsplash Page */
4
+ /*
3
5
 
4
6
  custom propeties:
5
7
 
@@ -30,320 +32,322 @@ custom propeties:
30
32
  */
31
33
 
32
34
 
33
- /* stylelint-disable declaration-no-important */
35
+ /* stylelint-disable declaration-no-important */
34
36
 
35
- html, body {
36
- height: 100%;
37
- padding: 0;
38
- margin: 0;
37
+ html, body {
38
+ height: 100%;
39
+ padding: 0;
40
+ margin: 0;
39
41
 
40
- }
42
+ }
41
43
 
42
- *, *::before, *::after {
43
- box-sizing: border-box !important;
44
- }
44
+ *, *::before, *::after {
45
+ box-sizing: border-box !important;
46
+ }
45
47
 
46
48
 
47
- .bodyNoScroll {
48
- padding: 0 !important;
49
- margin: 0 !important;
50
- overflow: hidden !important;
49
+ .bodyNoScroll {
50
+ padding: 0 !important;
51
+ margin: 0 !important;
52
+ overflow: hidden !important;
51
53
 
52
54
 
53
- }
54
- /* stylelint-enable declaration-no-important */
55
+ }
56
+ /* stylelint-enable declaration-no-important */
55
57
 
56
- .container {
58
+ .container {
57
59
 
58
- position: relative;
59
- width: 100dvw;
60
- height: 100dvh;
60
+ position: relative;
61
+ width: 100dvw;
62
+ height: 100dvh;
61
63
 
62
64
 
63
- font-family: var(--uspg-font-family, sans-serif);
64
- font-size: var(--uspg-font-size, 1rem);
65
- font-variation-settings: var(--uspg-font-variation-settings, unset);
66
- font-weight: var(--uspg-font-weight, 400);
67
- line-height: var(--uspg-line-height, 1.4);
65
+ font-family: var(--uspg-font-family, sans-serif);
66
+ font-size: var(--uspg-font-size, 1rem);
67
+ font-variation-settings: var(--uspg-font-variation-settings, unset);
68
+ font-weight: var(--uspg-font-weight, 400);
69
+ line-height: var(--uspg-line-height, 1.4);
68
70
 
69
- background-color: #333;
71
+ background-color: #333;
70
72
 
71
- a {
72
- &:is(:link, :visited) {
73
- text-decoration: var(--uspg-link-decoration);
74
- }
75
- &:link {
76
- color: var(--uspg-link-color);
77
- }
78
- &:visited {
79
- color: var(--uspg-link-visited-color);
80
- }
81
- &:focus {
82
- outline: none;
83
- }
84
- &:focus-visible {
85
- outline: var(--uspg-link-focus-outline-width) var(--uspg-link-focus-outline-style) var(--uspg-link-focus-outline-color);
86
- outline-offset: var(--uspg-link-focus-outline-offset);
87
- }
88
- @media (hover: hover) {
89
- &:hover {
90
- color: var(--uspg-link-hover-color);
91
- text-decoration: var(--uspg-link-hover-decoration);
92
- background-color: var(--uspg-link-hover-background-color);
73
+ a {
74
+ &:is(:link, :visited) {
75
+ text-decoration: var(--uspg-link-decoration);
76
+ }
77
+ &:link {
78
+ color: var(--uspg-link-color);
79
+ }
80
+ &:visited {
81
+ color: var(--uspg-link-visited-color);
82
+ }
83
+ &:focus {
84
+ outline: none;
85
+ }
86
+ &:focus-visible {
87
+ outline: var(--uspg-link-focus-outline-width) var(--uspg-link-focus-outline-style) var(--uspg-link-focus-outline-color);
88
+ outline-offset: var(--uspg-link-focus-outline-offset);
89
+ }
90
+ @media (hover: hover) {
91
+ &:hover {
92
+ color: var(--uspg-link-hover-color);
93
+ text-decoration: var(--uspg-link-hover-decoration);
94
+ background-color: var(--uspg-link-hover-background-color);
95
+ }
96
+ }
97
+ &:active {
98
+ color: var(--uspg-link-active-color);
93
99
  }
94
- }
95
- &:active {
96
- color: var(--uspg-link-active-color);
97
100
  }
98
101
  }
99
- }
100
-
101
- .canvas {
102
- position: absolute;
103
- /* z-index: -1; */
104
- width: 100%;
105
- height: 100%;
106
- }
107
-
108
- .unsplashPhoto { /* img */
109
- position: relative;
110
- z-index: 0;
111
- display: block;
112
- width: 100dvw;
113
- height: 100dvh;
114
- object-fit: cover;
115
- object-position: center;
116
-
117
- /* font-size: 1.2rem; */
118
- /* color: #999; */
119
- /* text-align: center; */
120
-
121
- }
122
-
123
- .unsplashPhoto, .credits {
124
- opacity: 0;
125
- transition: opacity .3s linear;
126
102
 
127
- .show & {
128
- opacity: 1;
103
+ .canvas {
104
+ position: absolute;
105
+ /* z-index: -1; */
106
+ width: 100%;
107
+ height: 100%;
129
108
  }
130
- }
131
-
132
- .messageBox {
133
- position: absolute;
134
- bottom: 0;
135
- display: flex;
136
- flex-flow: column nowrap;
137
- gap: 3rem;
138
- align-items: center;
139
- justify-content: center;
140
- width: 100%;
141
- overflow: hidden;
142
109
 
110
+ .unsplashPhoto { /* img */
111
+ position: relative;
112
+ z-index: 0;
113
+ display: block;
114
+ width: 100dvw;
115
+ height: 100dvh;
116
+ object-fit: cover;
117
+ object-position: center;
143
118
 
144
- }
119
+ /* font-size: 1.2rem; */
120
+ /* color: #999; */
121
+ /* text-align: center; */
145
122
 
146
- .message, .credits {
147
- color: var(--uspg-text-color, #fff);
148
- background-color: var(--uspg-bg-color, hsl(0deg 0% 0% / .7));
149
- }
123
+ }
150
124
 
151
- .message {
152
- position: relative;
153
- width: max-content;
154
- max-width: 90dvw;
155
- padding: 1rem 2rem;
156
- text-align: center;
157
- transition: translate .3s ease-in-out;
125
+ .unsplashPhoto, .credits {
126
+ opacity: 0;
127
+ transition: opacity .3s linear;
158
128
 
159
- h1 {
160
- margin: 0;
161
- font-size: var(--uspg-h1-font-size, 2rem);
162
- font-variation-settings: var(--uspg-h1-font-variation-settings, unset);
163
- font-weight: var(--uspg-h1-font-weight, 700);
164
- line-height: var(--uspg-h1-line-height, 1.25);
165
- color: var(--uspg-h1-color, var(--uspg-text-color, #fff));
129
+ .show & {
130
+ opacity: 1;
131
+ }
166
132
  }
167
133
 
168
- p {
169
- margin: .5rem 0 0;
170
- }
134
+ .messageBox {
135
+ position: absolute;
136
+ bottom: 0;
137
+ display: flex;
138
+ flex-flow: column nowrap;
139
+ gap: 3rem;
140
+ align-items: center;
141
+ justify-content: center;
142
+ width: 100%;
143
+ overflow: hidden;
144
+
171
145
 
172
- @media screen and (min-width: 768px) {
173
- max-width: 60dvw;
174
146
  }
175
147
 
176
- .backLink {
177
- margin-top: 1rem;
148
+ .message, .credits {
149
+ color: var(--uspg-text-color, #fff);
150
+ background-color: var(--uspg-bg-color, hsl(0deg 0% 0% / .7));
178
151
  }
179
152
 
180
- .arrowWrapper {
181
- --_arrow-size: 2rem;
182
- --_arrow-position: calc(var(--_arrow-size) * .25 * -1);
153
+ .message {
154
+ position: relative;
155
+ width: max-content;
156
+ max-width: 90dvw;
157
+ padding: 1rem 2rem;
158
+ text-align: center;
159
+ transition: translate .3s ease-in-out;
160
+
161
+ h1 {
162
+ margin: 0;
163
+ font-size: var(--uspg-h1-font-size, 2rem);
164
+ font-variation-settings: var(--uspg-h1-font-variation-settings, unset);
165
+ font-weight: var(--uspg-h1-font-weight, 700);
166
+ line-height: var(--uspg-h1-line-height, 1.25);
167
+ color: var(--uspg-h1-color, var(--uspg-text-color, #fff));
168
+ }
183
169
 
184
- position: absolute;
185
- bottom: var(--_arrow-position);
186
- left: var(--_arrow-position);
187
- width: var(--_arrow-size);
188
- height: var(--_arrow-size);
189
- color: var(--uspg-icon-fill-color, #333);
190
- cursor: w-resize;
191
- background-color: var(--uspg-icon-box-bg, var(--uspg-link-color, #fc0));
192
- border-radius: 50%;
193
- /* transition: all .2s ease-in-out; */
194
- /* duration | easing-function | delay | iteration-count | direction | name */
195
- animation: .2s ease-in 2s 2 reverse icon-shaking;
170
+ p {
171
+ margin: .5rem 0 0;
172
+ }
196
173
 
197
- @media (hover: hover) {
198
- &:hover {
199
- background-color: var(--uspg-icon-hover-box-bg, #fff);
200
- }
174
+ @media screen and (min-width: 768px) {
175
+ max-width: 60dvw;
201
176
  }
202
177
 
203
- svg {
204
- display: block;
205
- width: 100%;
206
- aspect-ratio: 1;
207
- background-color: transparent;
208
- fill: #000;
178
+ .backLink {
179
+ margin-top: 1rem;
209
180
  }
210
- }
211
181
 
212
- &.hidden {
213
- translate: calc(-1 * (50dvw + 50% - 2rem));
214
182
  .arrowWrapper {
215
- right: var(--_arrow-position);
216
- left: auto;
217
- cursor: e-resize;
218
- rotate: .5turn;
219
- }
220
- }
183
+ --_arrow-size: 2rem;
184
+ --_arrow-position: calc(var(--_arrow-size) * .25 * -1);
185
+
186
+ position: absolute;
187
+ bottom: var(--_arrow-position);
188
+ left: var(--_arrow-position);
189
+ width: var(--_arrow-size);
190
+ height: var(--_arrow-size);
191
+ color: var(--uspg-icon-fill-color, #333);
192
+ cursor: w-resize;
193
+ background-color: var(--uspg-icon-box-bg, var(--uspg-link-color, #fc0));
194
+ border-radius: 50%;
195
+ /* transition: all .2s ease-in-out; */
196
+ /* duration | easing-function | delay | iteration-count | direction | name */
197
+ animation: .2s ease-in 2s 2 reverse icon-shaking;
198
+
199
+ @media (hover: hover) {
200
+ &:hover {
201
+ background-color: var(--uspg-icon-hover-box-bg, #fff);
202
+ }
203
+ }
221
204
 
222
- }
205
+ svg {
206
+ display: block;
207
+ width: 100%;
208
+ aspect-ratio: 1;
209
+ background-color: transparent;
210
+ fill: #000;
211
+ }
212
+ }
223
213
 
224
- @keyframes icon-shaking {
225
- 0% { transform: translateX(0); }
226
- 40% { transform: translateX(20px); }
227
- 80% { transform: translateX(-5px); }
228
- 100% { transform: translateX(0); }
229
- }
214
+ &.hidden {
215
+ translate: calc(-1 * (50dvw + 50% - 2rem));
216
+ .arrowWrapper {
217
+ right: var(--_arrow-position);
218
+ left: auto;
219
+ cursor: e-resize;
220
+ rotate: .5turn;
221
+ }
222
+ }
230
223
 
231
- .credits {
232
- display: flex;
233
- flex-flow: column wrap;
234
- gap: .5rem;
235
- align-items: center;
236
- justify-content: center;
237
- width: 100%;
238
- padding: .2rem 1rem;
239
- font-size: var(--uspg-credits-font-size, .8em);
240
- font-weight: var(--uspg-credits-font-weight, 400);
241
- line-height: var(--uspg-credits-line-height, 1.3);
242
-
243
-
244
- @media screen and (min-width: 768px) {
245
- flex-direction: row;
246
- justify-content: space-between;
247
224
  }
248
- }
249
-
250
225
 
251
- /* link a scomparsa alla pagina della foto */
252
- .unsplashPhotoLink {
253
- position: absolute;
254
- top: 1rem;
255
- right: 1rem;
226
+ @keyframes icon-shaking {
227
+ 0% { transform: translateX(0); }
228
+ 40% { transform: translateX(20px); }
229
+ 80% { transform: translateX(-5px); }
230
+ 100% { transform: translateX(0); }
231
+ }
256
232
 
257
- a {
233
+ .credits {
258
234
  display: flex;
235
+ flex-flow: column wrap;
236
+ gap: .5rem;
259
237
  align-items: center;
260
238
  justify-content: center;
261
- width: 2.5rem;
262
- aspect-ratio: 1;
263
- padding: 4px;
264
- color: #fff;
265
- background-color: rgb(0 0 0 / .5);
266
- border-radius: 50%;
239
+ width: 100%;
240
+ padding: .2rem 1rem;
241
+ font-size: var(--uspg-credits-font-size, .8em);
242
+ font-weight: var(--uspg-credits-font-weight, 400);
243
+ line-height: var(--uspg-credits-line-height, 1.3);
267
244
 
268
- &:active {
269
- color: var(--uspg-icon-fill-color, #333);
270
- background-color: var(--uspg-icon-box-bg, var(--uspg-link-color, #fc0));
271
245
 
272
- svg {
273
- opacity: 1;
274
- filter: none;
275
- }
246
+ @media screen and (min-width: 768px) {
247
+ flex-direction: row;
248
+ justify-content: space-between;
276
249
  }
277
250
  }
278
- svg {
279
- display: block;
280
- width: 100%;
281
- aspect-ratio: 1;
282
- background-color: transparent;
283
- opacity: .6;
284
- fill: #fff;
285
- }
286
251
 
287
- @media (hover: hover) {
288
252
 
289
- .show &:hover {
290
- svg {
291
- opacity: 1;
253
+ /* link a scomparsa alla pagina della foto */
254
+ .unsplashPhotoLink {
255
+ position: absolute;
256
+ top: 1rem;
257
+ right: 1rem;
258
+
259
+ a {
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ width: 2.5rem;
264
+ aspect-ratio: 1;
265
+ padding: 4px;
266
+ color: #fff;
267
+ background-color: rgb(0 0 0 / .5);
268
+ border-radius: 50%;
269
+
270
+ &:active {
271
+ color: var(--uspg-icon-fill-color, #333);
272
+ background-color: var(--uspg-icon-box-bg, var(--uspg-link-color, #fc0));
273
+
274
+ svg {
275
+ opacity: 1;
276
+ filter: none;
277
+ }
292
278
  }
293
279
  }
280
+ svg {
281
+ display: block;
282
+ width: 100%;
283
+ aspect-ratio: 1;
284
+ background-color: transparent;
285
+ opacity: .6;
286
+ fill: #fff;
287
+ }
288
+
289
+ @media (hover: hover) {
294
290
 
295
- &.showOnHover {
296
- opacity: 0;
297
291
  .show &:hover {
298
- opacity: 1;
292
+ svg {
293
+ opacity: 1;
294
+ }
295
+ }
296
+
297
+ &.showOnHover {
298
+ opacity: 0;
299
+ .show &:hover {
300
+ opacity: 1;
301
+ }
299
302
  }
300
303
  }
301
304
  }
302
- }
303
305
 
304
306
 
305
- /* https://wweb.dev/resources/loader-generator/ */
306
- .loaderWrapper {
307
+ /* https://wweb.dev/resources/loader-generator/ */
308
+ .loaderWrapper {
309
+
310
+ position: absolute;
311
+ top: 40%;
312
+ left: 50%;
313
+ /* z-index: -1; */
314
+ transform: translate(-50%, -50%);
315
+ }
316
+ .loader {
317
+ width: 80px;
318
+ aspect-ratio: 1;
319
+ background: conic-gradient(#000, var(--uspg-loader-color, hsl(0deg 0% 100% / .6))) content-box;
320
+ border-radius: 50%;
321
+ /* stylelint-disable-next-line property-no-vendor-prefix */
322
+ -webkit-mask:
323
+ repeating-conic-gradient(
324
+ #0000 0deg,
325
+ #000 1deg calc(360deg / 10 - 10deg - 1deg),
326
+ #0000 calc(360deg / 10 - 10deg) calc(360deg / 10)
327
+ ),
328
+ radial-gradient(
329
+ farthest-side,
330
+ #0000 calc(98% - 10px),
331
+ #000 calc(100% - 10px)
332
+ );
333
+ mask:
334
+ repeating-conic-gradient(
335
+ #0000 0deg,
336
+ #000 1deg calc(360deg / 10 - 10deg - 1deg),
337
+ #0000 calc(360deg / 10 - 10deg) calc(360deg / 10)
338
+ ),
339
+ radial-gradient(
340
+ farthest-side,
341
+ #0000 calc(98% - 10px),
342
+ #000 calc(100% - 10px)
343
+ );
344
+
345
+ /* stylelint-disable-next-line property-no-vendor-prefix */
346
+ -webkit-mask-composite: destination-in;
347
+ mask-composite: intersect;
348
+ animation: spin 1000ms infinite steps(10);
349
+ }
350
+ @keyframes spin { to { transform: rotate(1turn); } }
307
351
 
308
- position: absolute;
309
- top: 40%;
310
- left: 50%;
311
- /* z-index: -1; */
312
- transform: translate(-50%, -50%);
313
- }
314
- .loader {
315
- width: 80px;
316
- aspect-ratio: 1;
317
- background: conic-gradient(#000, var(--uspg-loader-color, hsl(0deg 0% 100% / .6))) content-box;
318
- border-radius: 50%;
319
- /* stylelint-disable-next-line property-no-vendor-prefix */
320
- -webkit-mask:
321
- repeating-conic-gradient(
322
- #0000 0deg,
323
- #000 1deg calc(360deg / 10 - 10deg - 1deg),
324
- #0000 calc(360deg / 10 - 10deg) calc(360deg / 10)
325
- ),
326
- radial-gradient(
327
- farthest-side,
328
- #0000 calc(98% - 10px),
329
- #000 calc(100% - 10px)
330
- );
331
- mask:
332
- repeating-conic-gradient(
333
- #0000 0deg,
334
- #000 1deg calc(360deg / 10 - 10deg - 1deg),
335
- #0000 calc(360deg / 10 - 10deg) calc(360deg / 10)
336
- ),
337
- radial-gradient(
338
- farthest-side,
339
- #0000 calc(98% - 10px),
340
- #000 calc(100% - 10px)
341
- );
342
-
343
- /* stylelint-disable-next-line property-no-vendor-prefix */
344
- -webkit-mask-composite: destination-in;
345
- mask-composite: intersect;
346
- animation: spin 1000ms infinite steps(10);
347
- }
348
- @keyframes spin { to { transform: rotate(1turn); } }
349
352
 
353
+ }