@massimo-cassandro/minimo 1.20.16 → 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 (52) hide show
  1. package/package.json +1 -1
  2. package/src/components/autocomplete/autocomplete.css +113 -109
  3. package/src/components/inner-nav/inner-nav.css +13 -9
  4. package/src/components/modal-alert/modal-alert.module.css +157 -153
  5. package/src/components/modal-popup/modal-popup.module.css +89 -85
  6. package/src/components/overlay/overlay.css +14 -10
  7. package/src/components/sf-macro/sf-macro.css +60 -56
  8. package/src/components/slide-up-down-toggle/slide-up-down-toggle.module.css +33 -29
  9. package/src/components/snackbar/snackbar.module.css +93 -89
  10. package/src/components/spinner/spinner-circle-basic.css +18 -14
  11. package/src/components/spinner/spinner.module.css +8 -4
  12. package/src/components/unsplash-page/unsplash-page.module.css +260 -256
  13. package/src/css/alerts.css +55 -53
  14. package/src/css/badge.css +16 -12
  15. package/src/css/buttons/btn-close.css +57 -53
  16. package/src/css/buttons/buttons-primary.css +38 -34
  17. package/src/css/buttons/buttons-secondary.css +38 -34
  18. package/src/css/buttons/buttons.css +84 -80
  19. package/src/css/buttons/status-buttons.css +66 -63
  20. package/src/css/container.css +9 -5
  21. package/src/css/data-formats.css +28 -24
  22. package/src/css/details.css +17 -13
  23. package/src/css/dimensions.css +13 -9
  24. package/src/css/display.css +27 -23
  25. package/src/css/flex.css +39 -35
  26. package/src/css/forms/fieldset.css +47 -43
  27. package/src/css/forms/form-collections.css +16 -12
  28. package/src/css/forms/form-disabled-readonly.css +31 -27
  29. package/src/css/forms/form-group.css +15 -11
  30. package/src/css/forms/form-utilities.css +32 -28
  31. package/src/css/forms/forms.css +136 -134
  32. package/src/css/forms/input-group.css +47 -43
  33. package/src/css/forms/switch.css +50 -46
  34. package/src/css/forms/validation.css +26 -22
  35. package/src/css/grid.css +66 -62
  36. package/src/css/headings.css +32 -28
  37. package/src/css/icons.css +41 -37
  38. package/src/css/layout-base.css +16 -12
  39. package/src/css/links.css +40 -36
  40. package/src/css/margin-padding-bootstrap-media.css +1836 -1832
  41. package/src/css/margin-padding-bootstrap.css +445 -441
  42. package/src/css/margin-padding-media.css +1836 -1832
  43. package/src/css/margin-padding.css +445 -441
  44. package/src/css/overflow.css +7 -3
  45. package/src/css/position.css +5 -1
  46. package/src/css/reset.css +47 -44
  47. package/src/css/svg.css +6 -2
  48. package/src/css/table.css +59 -55
  49. package/src/css/text.css +96 -92
  50. package/src/css/visibility.css +23 -19
  51. package/src/minimo.css +2 -0
  52. package/src/web-components/s-datatable-component/s-datatable-component.module.css +175 -171
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.20.16",
3
+ "version": "1.21.0",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -1,146 +1,150 @@
1
- /* basato sul css di @tarekraafat/autocomplete.js */
1
+ @layer components {
2
2
 
3
+ /* basato sul css di @tarekraafat/autocomplete.js */
3
4
 
4
- .hmenu-subsection-emulazione {
5
- overflow-y: visible;
6
- }
7
5
 
8
- .ac-autocomplete-wrapper { /* assegnato all'elemento .form-group */
9
-
10
- --ac-color: #333;
11
- --ac-bg-color: #fff;
12
- --ac-border-color: #666;
13
- --ac-danger-color: #c00;
14
- --ac-box-shadow: 0 0 10px rgb(0 0 0 / .6);
15
- --ac-list-item-bg: #fff;
16
- --ac-hover-color: var(--secondary-100);
17
-
18
- position: relative;
19
-
20
- ul {
21
- position: absolute;
22
- top: 100%;
23
- right: 0;
24
- left: 0;
25
- z-index: 1000;
26
- max-height: 14rem;
27
- padding: 0;
28
- margin: .2rem 0 0;
29
- overflow-y: scroll;
30
- color: var(--ac-color);
31
- outline: none;
32
- background-color: var(--ac-bg-color);
33
- border: 1px solid var(--ac-border-color);
34
- border-radius: .6rem;
35
- box-shadow: var(--ac-box-shadow);
36
-
37
- &[hidden],
38
- &:empty {
39
- display: block;
40
- opacity: 0;
41
- transform: scale(0);
42
- }
6
+ .hmenu-subsection-emulazione {
7
+ overflow-y: visible;
8
+ }
43
9
 
44
- li {
10
+ .ac-autocomplete-wrapper { /* assegnato all'elemento .form-group */
11
+
12
+ --ac-color: #333;
13
+ --ac-bg-color: #fff;
14
+ --ac-border-color: #666;
15
+ --ac-danger-color: #c00;
16
+ --ac-box-shadow: 0 0 10px rgb(0 0 0 / .6);
17
+ --ac-list-item-bg: #fff;
18
+ --ac-hover-color: var(--secondary-100);
19
+
20
+ position: relative;
21
+
22
+ ul {
23
+ position: absolute;
24
+ top: 100%;
25
+ right: 0;
26
+ left: 0;
27
+ z-index: 1000;
28
+ max-height: 14rem;
45
29
  padding: 0;
46
- margin: .3rem;
47
- text-align: left;
48
- list-style: none;
30
+ margin: .2rem 0 0;
31
+ overflow-y: scroll;
32
+ color: var(--ac-color);
33
+ outline: none;
34
+ background-color: var(--ac-bg-color);
35
+ border: 1px solid var(--ac-border-color);
36
+ border-radius: .6rem;
37
+ box-shadow: var(--ac-box-shadow);
38
+
39
+ &[hidden],
40
+ &:empty {
41
+ display: block;
42
+ opacity: 0;
43
+ transform: scale(0);
44
+ }
49
45
 
50
- /* stylelint-disable declaration-no-important, max-nesting-depth, selector-max-compound-selectors */
51
- > div {
46
+ li {
47
+ padding: 0;
48
+ margin: .3rem;
49
+ text-align: left;
50
+ list-style: none;
52
51
 
53
- padding: .3rem .5rem;
54
- background-color: var(--ac-list-item-bg);
55
- border-radius: .35rem;
56
- transition: all .2s ease;
52
+ /* stylelint-disable declaration-no-important, max-nesting-depth, selector-max-compound-selectors */
53
+ > div {
57
54
 
58
- .badge {
59
- color: #fff;
60
- background-color: var(--ac-hover-color);
61
- }
55
+ padding: .3rem .5rem;
56
+ background-color: var(--ac-list-item-bg);
57
+ border-radius: .35rem;
58
+ transition: all .2s ease;
62
59
 
63
- &:hover {
64
- cursor: pointer;
65
- background-color: var(--ac-hover-color) !important;
66
- &, .text-muted {
67
- color: #fff !important;
68
- }
69
60
  .badge {
70
- color: var(--ac-hover-color) !important;
71
- background-color: color-mix(in srgb, #fff 70%, transparent) !important;
61
+ color: #fff;
62
+ background-color: var(--ac-hover-color);
72
63
  }
73
64
 
74
- mark {
75
- border-color: currentColor;
65
+ &:hover {
66
+ cursor: pointer;
67
+ background-color: var(--ac-hover-color) !important;
68
+ &, .text-muted {
69
+ color: #fff !important;
70
+ }
71
+ .badge {
72
+ color: var(--ac-hover-color) !important;
73
+ background-color: color-mix(in srgb, #fff 70%, transparent) !important;
74
+ }
75
+
76
+ mark {
77
+ border-color: currentColor;
78
+ }
76
79
  }
77
- }
78
80
 
79
- &.alert-item{
81
+ &.alert-item{
80
82
 
81
83
 
82
- &, .text-muted {
83
- color: var(--text-muted) !important;
84
- }
85
- background-color: color-mix(in srgb, var(--ac-danger-color) 1%, transparent);
86
- &:hover {
87
84
  &, .text-muted {
88
- color: rgb(255 255 255) !important;
85
+ color: var(--text-muted) !important;
86
+ }
87
+ background-color: color-mix(in srgb, var(--ac-danger-color) 1%, transparent);
88
+ &:hover {
89
+ &, .text-muted {
90
+ color: rgb(255 255 255) !important;
91
+ }
89
92
  }
90
93
  }
91
- }
92
94
 
93
- mark {
94
- padding: 0;
95
- color: currentColor;
96
- background-color: transparent;
97
- border-bottom: 4px double var(--ac-danger-color);
95
+ mark {
96
+ padding: 0;
97
+ color: currentColor;
98
+ background-color: transparent;
99
+ border-bottom: 4px double var(--ac-danger-color);
98
100
 
99
- /* stylelint-disable-next-line max-nesting-depth selector-max-type */
100
- /* &::selection {
101
+ /* stylelint-disable-next-line max-nesting-depth selector-max-type */
102
+ /* &::selection {
101
103
  color: rgba(#ffffff, 0);
102
104
  background-color: rgba(#ffffff, 0);
103
105
  } */
106
+ }
104
107
  }
105
- }
106
- /* stylelint-enable declaration-no-important, max-nesting-depth, selector-max-compound-selectors */
108
+ /* stylelint-enable declaration-no-important, max-nesting-depth, selector-max-compound-selectors */
107
109
 
108
- /* &[aria-selected='true'] {
110
+ /* &[aria-selected='true'] {
109
111
  background-color: var(--ada-grigio-2);
110
112
  } */
113
+ }
111
114
  }
112
- }
113
115
 
114
- .no-result {
115
- padding: .4rem .6rem;
116
- color: var(--ac-danger-color);
116
+ .no-result {
117
+ padding: .4rem .6rem;
118
+ color: var(--ac-danger-color);
119
+ }
117
120
  }
118
- }
119
121
 
120
122
 
121
- /* badge multiple select */
122
- .ac-badge {
123
- margin: 0 .5rem .2rem 0;
124
- font-size: .85rem;
125
- line-height: 1;
126
- white-space: nowrap;
123
+ /* badge multiple select */
124
+ .ac-badge {
125
+ margin: 0 .5rem .2rem 0;
126
+ font-size: .85rem;
127
+ line-height: 1;
128
+ white-space: nowrap;
129
+
130
+ &:has(.ac-badge-btn:hover) {
131
+ /* stylelint-disable-next-line declaration-no-important */
132
+ background-color: var(--ac-danger-color) !important;
133
+ }
134
+ }
135
+ .ac-badge-btn {
136
+ display: inline-flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ padding: 0;
140
+ margin-left: 4px;
141
+ font-size: 1.2em;
142
+ line-height: 1;
143
+ color: currentColor;
144
+ background-color: transparent;
145
+ border: none;
146
+ border-radius: 50%;
127
147
 
128
- &:has(.ac-badge-btn:hover) {
129
- /* stylelint-disable-next-line declaration-no-important */
130
- background-color: var(--ac-danger-color) !important;
131
148
  }
132
- }
133
- .ac-badge-btn {
134
- display: inline-flex;
135
- align-items: center;
136
- justify-content: center;
137
- padding: 0;
138
- margin-left: 4px;
139
- font-size: 1.2em;
140
- line-height: 1;
141
- color: currentColor;
142
- background-color: transparent;
143
- border: none;
144
- border-radius: 50%;
145
149
 
146
150
  }
@@ -1,13 +1,17 @@
1
- /*! minimo - Inner Nav */
1
+ @layer components {
2
2
 
3
- .inner-nav-main, .inner-nav {
4
- display: flex;
5
- gap: var(--inner-nav-gap);
6
- justify-content: flex-end;
7
- margin-block: var(--inner-nav-margin-block);
8
- /* text-align: end; */
3
+ /*! minimo - Inner Nav */
9
4
 
10
- @media print {
11
- display: none;
5
+ .inner-nav-main, .inner-nav {
6
+ display: flex;
7
+ gap: var(--inner-nav-gap);
8
+ justify-content: flex-end;
9
+ margin-block: var(--inner-nav-margin-block);
10
+ /* text-align: end; */
11
+
12
+ @media print {
13
+ display: none;
14
+ }
12
15
  }
16
+
13
17
  }
@@ -1,199 +1,203 @@
1
- /*! minimo - Modal Alert */
2
-
3
- .malert {
4
- width: 600px;
5
- max-width: 90vw;
6
- padding: 0;
7
- margin: auto;
8
- background-color: var(--malert-background-color);
9
- border: none;
10
- border-radius: var(--malert-border-radius);
11
- box-shadow: var(--malert-box-shadow, var(--default-box-shadow));
12
- /* box-shadow: 2px 2px 12px #000; */
13
-
14
- &::backdrop {
15
- overscroll-behavior: contain;
16
- background-color: var(--malert-backdrop);
17
- }
1
+ @layer components {
2
+
3
+ /*! minimo - Modal Alert */
4
+
5
+ .malert {
6
+ width: 600px;
7
+ max-width: 90vw;
8
+ padding: 0;
9
+ margin: auto;
10
+ background-color: var(--malert-background-color);
11
+ border: none;
12
+ border-radius: var(--malert-border-radius);
13
+ box-shadow: var(--malert-box-shadow, var(--default-box-shadow));
14
+ /* box-shadow: 2px 2px 12px #000; */
15
+
16
+ &::backdrop {
17
+ overscroll-behavior: contain;
18
+ background-color: var(--malert-backdrop);
19
+ }
18
20
 
19
- &, * {
20
- box-sizing: border-box;
21
+ &, * {
22
+ box-sizing: border-box;
23
+ }
21
24
  }
22
- }
23
25
 
24
- .success {
25
- --_malert-color-bg: var(--malert-success-bg);
26
- --_malert-color-fg: var(--malert-success-fg);
27
- }
28
- .info {
29
- --_malert-color-bg: var(--malert-info-bg);
30
- --_malert-color-fg: var(--malert-info-fg);
31
- }
32
- .warning {
33
- --_malert-color-bg: var(--malert-warning-bg);
34
- --_malert-color-fg: var(--malert-warning-fg);
35
- }
36
- .error {
37
- --_malert-color-bg: var(--malert-error-bg);
38
- --_malert-color-fg: var(--malert-error-fg);
39
- }
40
- .confirm {
41
- --_malert-color-bg: var(--malert-confirm-bg);
42
- --_malert-color-fg: var(--malert-confirm-fg);
43
- }
26
+ .success {
27
+ --_malert-color-bg: var(--malert-success-bg);
28
+ --_malert-color-fg: var(--malert-success-fg);
29
+ }
30
+ .info {
31
+ --_malert-color-bg: var(--malert-info-bg);
32
+ --_malert-color-fg: var(--malert-info-fg);
33
+ }
34
+ .warning {
35
+ --_malert-color-bg: var(--malert-warning-bg);
36
+ --_malert-color-fg: var(--malert-warning-fg);
37
+ }
38
+ .error {
39
+ --_malert-color-bg: var(--malert-error-bg);
40
+ --_malert-color-fg: var(--malert-error-fg);
41
+ }
42
+ .confirm {
43
+ --_malert-color-bg: var(--malert-confirm-bg);
44
+ --_malert-color-fg: var(--malert-confirm-fg);
45
+ }
44
46
 
45
47
 
46
- .innerWrapper{
47
- display: flex;
48
- flex-flow: column nowrap;
49
- /* gap: .7rem; */
50
- align-items: stretch;
51
- justify-content: flex-start;
48
+ .innerWrapper{
49
+ display: flex;
50
+ flex-flow: column nowrap;
51
+ /* gap: .7rem; */
52
+ align-items: stretch;
53
+ justify-content: flex-start;
52
54
 
53
- @media screen and (min-width: 600px) {
54
- flex-direction: row;
55
+ @media screen and (min-width: 600px) {
56
+ flex-direction: row;
57
+ }
55
58
  }
56
- }
57
59
 
58
60
 
59
- .mMark {
60
- display: flex;
61
- align-items: center;
62
- justify-content: center;
63
- width: 100%;
64
- padding: .4rem;
65
- background-color: var(--_malert-color-bg);
61
+ .mMark {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ width: 100%;
66
+ padding: .4rem;
67
+ background-color: var(--_malert-color-bg);
66
68
 
67
- svg {
68
- width: 100px;
69
- aspect-ratio: 1;
70
- background-color: transparent;
71
- fill: var(--_malert-color-fg);
72
- }
69
+ svg {
70
+ width: 100px;
71
+ aspect-ratio: 1;
72
+ background-color: transparent;
73
+ fill: var(--_malert-color-fg);
74
+ }
73
75
 
74
- @media screen and (min-width: 600px) {
75
- flex-direction: row;
76
- align-items: flex-start;
77
- width: auto;
78
- padding: 1rem;
79
- /* svg {
76
+ @media screen and (min-width: 600px) {
77
+ flex-direction: row;
78
+ align-items: flex-start;
79
+ width: auto;
80
+ padding: 1rem;
81
+ /* svg {
80
82
  width: 100px;
81
83
  } */
84
+ }
82
85
  }
83
- }
84
86
 
85
- .mBody {
86
- display: flex;
87
- flex: 1;
88
- flex-flow: column nowrap;
89
- gap: .5rem;
90
- align-items: stretch;
91
- justify-content: flex-start;
92
- padding: .5rem;
87
+ .mBody {
88
+ display: flex;
89
+ flex: 1;
90
+ flex-flow: column nowrap;
91
+ gap: .5rem;
92
+ align-items: stretch;
93
+ justify-content: flex-start;
94
+ padding: .5rem;
93
95
 
94
- text-align: center;
96
+ text-align: center;
95
97
 
96
- @media screen and (min-width: 600px) {
97
- padding: 1rem;
98
- text-align: left;
98
+ @media screen and (min-width: 600px) {
99
+ padding: 1rem;
100
+ text-align: left;
101
+ }
99
102
  }
100
- }
101
103
 
102
- .mHeading {
103
- font-family: var(--malert-heading-font-family);
104
- font-size: var(--malert-heading-font-size);
105
- font-weight: var(--malert-heading-font-weight);
106
- line-height: var(--malert-heading-line-height);
107
- }
108
- .mText {
109
- font-family: var(--malert-text-font-family);
110
- font-size: var(--malert-text-font-size);
111
- }
104
+ .mHeading {
105
+ font-family: var(--malert-heading-font-family);
106
+ font-size: var(--malert-heading-font-size);
107
+ font-weight: var(--malert-heading-font-weight);
108
+ line-height: var(--malert-heading-line-height);
109
+ }
110
+ .mText {
111
+ font-family: var(--malert-text-font-family);
112
+ font-size: var(--malert-text-font-size);
113
+ }
112
114
 
113
- .mBtns {
114
- display: flex;
115
- flex-flow: column nowrap;
116
- gap: 1rem;
117
- align-items: center;
118
- justify-content: flex-end;
115
+ .mBtns {
116
+ display: flex;
117
+ flex-flow: column nowrap;
118
+ gap: 1rem;
119
+ align-items: center;
120
+ justify-content: flex-end;
119
121
 
120
- padding-top: 1rem;
121
- margin-top: auto;
122
+ padding-top: 1rem;
123
+ margin-top: auto;
122
124
 
123
- @media screen and (min-width: 600px) {
124
- flex-direction: row-reverse;
125
- justify-content: space-between;
125
+ @media screen and (min-width: 600px) {
126
+ flex-direction: row-reverse;
127
+ justify-content: space-between;
128
+ }
126
129
  }
127
- }
128
130
 
129
131
 
130
- .mAnimated {
131
- transform: translateY(-500%);
132
- animation: dialog-in .3s ease-out;
132
+ .mAnimated {
133
+ transform: translateY(-500%);
134
+ animation: dialog-in .3s ease-out;
133
135
 
134
- &[open] {
135
- transform: none;
136
+ &[open] {
137
+ transform: none;
138
+ }
136
139
  }
137
- }
138
140
 
139
- @keyframes dialog-in {
140
- from {
141
- opacity: 0;
142
- transform: translateY(-50%);
143
- }
144
- to {
145
- opacity: 1;
146
- transform: translateY(0);
141
+ @keyframes dialog-in {
142
+ from {
143
+ opacity: 0;
144
+ transform: translateY(-50%);
145
+ }
146
+ to {
147
+ opacity: 1;
148
+ transform: translateY(0);
149
+ }
147
150
  }
148
- }
149
151
 
150
152
 
151
- /* confirm button */
153
+ /* confirm button */
152
154
 
153
155
 
154
- .btnConfirm {
155
- --_button-bg-color: var(--malert-confirm-btn-bg);
156
- --_button-fg-color: var(--malert-confirm-btn-fg);
157
- --_button-border-color: var(--malert-confirm-btn-border-color);
156
+ .btnConfirm {
157
+ --_button-bg-color: var(--malert-confirm-btn-bg);
158
+ --_button-fg-color: var(--malert-confirm-btn-fg);
159
+ --_button-border-color: var(--malert-confirm-btn-border-color);
158
160
 
159
- @media (hover: hover) {
160
- &:hover {
161
- --_button-bg-color: var(--malert-confirm-btn-hover-bg);
162
- --_button-fg-color: var(--malert-confirm-btn-hover-fg);
163
- --_button-border-color: var(--malert-confirm-btn-hover-border-color);
161
+ @media (hover: hover) {
162
+ &:hover {
163
+ --_button-bg-color: var(--malert-confirm-btn-hover-bg);
164
+ --_button-fg-color: var(--malert-confirm-btn-hover-fg);
165
+ --_button-border-color: var(--malert-confirm-btn-hover-border-color);
166
+ }
167
+ }
168
+ &:focus {
169
+ outline: none;
164
170
  }
165
- }
166
- &:focus {
167
- outline: none;
168
- }
169
171
 
170
- &:focus-visible, &:active {
171
- outline: var(--malert-confirm-btn-focus-outline-width) solid var(--malert-confirm-btn-focus-outline-color);
172
- /* outline-offset: 4px; */
173
- }
172
+ &:focus-visible, &:active {
173
+ outline: var(--malert-confirm-btn-focus-outline-width) solid var(--malert-confirm-btn-focus-outline-color);
174
+ /* outline-offset: 4px; */
175
+ }
174
176
 
175
- &:active {
176
- --_button-bg-color: var(--malert-confirm-btn-active-bg);
177
- --_button-fg-color: var(--malert-confirm-btn-active-fg);
178
- --_button-border-color: var(--malert-confirm-btn-active-border-color);
179
- }
177
+ &:active {
178
+ --_button-bg-color: var(--malert-confirm-btn-active-bg);
179
+ --_button-fg-color: var(--malert-confirm-btn-active-fg);
180
+ --_button-border-color: var(--malert-confirm-btn-active-border-color);
181
+ }
180
182
 
181
183
 
182
- &.btnHollow {
184
+ &.btnHollow {
183
185
 
184
- --_button-bg-color: var(--malert-confirm-btn-hollow-bg);
185
- --_button-fg-color: var(--malert-confirm-btn-hollow-fg);
186
- /* --_button-border-color: var(--__btn-o-primary-border-color); */
186
+ --_button-bg-color: var(--malert-confirm-btn-hollow-bg);
187
+ --_button-fg-color: var(--malert-confirm-btn-hollow-fg);
188
+ /* --_button-border-color: var(--__btn-o-primary-border-color); */
187
189
 
188
190
 
189
- @media (hover: hover) {
190
- &:hover {
191
- --_button-bg-color: var(--malert-confirm-btn-hollow-hover-bg);
192
- --_button-fg-color: var(--malert-confirm-btn-hollow-hover-fg);
193
- /* --_button-border-color: var(--__btn-o-primary-hover-border-color); */
191
+ @media (hover: hover) {
192
+ &:hover {
193
+ --_button-bg-color: var(--malert-confirm-btn-hollow-hover-bg);
194
+ --_button-fg-color: var(--malert-confirm-btn-hollow-hover-fg);
195
+ /* --_button-border-color: var(--__btn-o-primary-hover-border-color); */
196
+ }
194
197
  }
198
+
195
199
  }
196
200
 
197
- }
201
+ } /* end btnConfirm */
198
202
 
199
- } /* end btnConfirm */
203
+ }