@itcase/ui 1.8.133 → 1.8.135

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.
@@ -34,7 +34,31 @@
34
34
  .icon_fill {
35
35
  @each $type in accent, primary, secondary, tertiary, quaternary, surface,
36
36
  error, success, warning, info, danger {
37
- &_$(type) {
37
+ &_active_hover_$(type) {
38
+ &-item {
39
+ @each $color in primary, secondary, tertiary, quaternary {
40
+ &-$(color) {
41
+ &:hover {
42
+ & svg {
43
+ stroke: none;
44
+ fill: var(--color-$(type)-item-$(color));
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ @each $color in primary, secondary, tertiary, quaternary {
51
+ &-$(color) {
52
+ &:hover {
53
+ & svg {
54
+ stroke: none;
55
+ fill: var(--color-$(type)-fill-$(color));
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ &_active_$(type) {
38
62
  &-item {
39
63
  @each $color in primary, secondary, tertiary, quaternary {
40
64
  &-$(color) {
@@ -54,38 +78,7 @@
54
78
  }
55
79
  }
56
80
  }
57
- }
58
- @each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
59
- pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
60
- apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
61
- pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
62
- pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
63
- beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
64
- pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
65
- deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
66
- delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
67
- pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
68
- dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
69
- stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
70
- sonic-silver {
71
- &_$(palette) {
72
- &-item {
73
- & svg {
74
- stroke: none;
75
- fill: var(--color-palette-$(palette));
76
- }
77
- }
78
- & svg {
79
- stroke: none;
80
- fill: var(--color-palette-$(palette));
81
- }
82
- }
83
- }
84
- }
85
- .icon_fill_hover {
86
- @each $type in accent, primary, secondary, tertiary, quaternary, surface,
87
- error, success, warning, info, danger {
88
- &_$(type) {
81
+ &_hover_$(type) {
89
82
  &-item {
90
83
  @each $color in primary, secondary, tertiary, quaternary {
91
84
  &-$(color) {
@@ -99,6 +92,26 @@
99
92
  }
100
93
  }
101
94
  }
95
+ &_$(type) {
96
+ &-item {
97
+ @each $color in primary, secondary, tertiary, quaternary {
98
+ &-$(color) {
99
+ & svg {
100
+ stroke: none;
101
+ fill: var(--color-$(type)-item-$(color));
102
+ }
103
+ }
104
+ }
105
+ }
106
+ @each $color in primary, secondary, tertiary, quaternary {
107
+ &-$(color) {
108
+ & svg {
109
+ stroke: none;
110
+ fill: var(--color-$(type)-fill-$(color));
111
+ }
112
+ }
113
+ }
114
+ }
102
115
  }
103
116
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
104
117
  pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
@@ -113,136 +126,60 @@
113
126
  dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
114
127
  stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
115
128
  sonic-silver {
116
- &_$(palette) {
129
+ &_active_hover_$(palette) {
117
130
  &:hover {
118
131
  & svg {
119
132
  stroke: none;
120
- fill: var(--color-$(type)-fill-$(color));
133
+ fill: var(--color-palette-$(palette));
121
134
  }
122
135
  }
123
136
  &-item {
124
137
  &:hover {
125
138
  & svg {
126
139
  stroke: none;
127
- fill: var(--color-$(type)-item-$(color));
140
+ fill: var(--color-palette-$(palette));
128
141
  }
129
142
  }
130
143
  }
131
144
  }
132
- }
133
- }
134
- .icon_fill {
135
- &_active {
136
- @each $type in accent, primary, secondary, tertiary, quaternary, surface,
137
- error, success, warning, info, danger {
138
- &_$(type) {
139
- &-item {
140
- @each $color in primary, secondary, tertiary, quaternary {
141
- &-$(color) {
142
- & svg {
143
- stroke: none;
144
- fill: var(--color-$(type)-item-$(color));
145
- }
146
- }
147
- }
148
- }
149
- @each $color in primary, secondary, tertiary, quaternary {
150
- &-$(color) {
151
- & svg {
152
- stroke: none;
153
- fill: var(--color-$(type)-fill-$(color));
154
- }
155
- }
145
+ &_active_$(palette) {
146
+ &-item {
147
+ & svg {
148
+ stroke: none;
149
+ fill: var(--color-palette-$(palette));
156
150
  }
157
151
  }
152
+ & svg {
153
+ stroke: none;
154
+ fill: var(--color-palette-$(palette));
155
+ }
158
156
  }
159
- @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
160
- pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
161
- clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
162
- rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
163
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
164
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
165
- surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
166
- denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
167
- lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
168
- storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
169
- alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
170
- gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
171
- alto, athens-gray, sonic-silver {
172
- &_$(palette) {
173
- &-item {
157
+ &_hover_$(palette) {
158
+ &:hover {
159
+ & svg {
160
+ stroke: none;
161
+ fill: var(--color-$(type)-fill-$(color));
162
+ }
163
+ }
164
+ &-item {
165
+ &:hover {
174
166
  & svg {
175
167
  stroke: none;
176
- fill: var(--color-palette-$(palette));
168
+ fill: var(--color-$(type)-item-$(color));
177
169
  }
178
170
  }
171
+ }
172
+ }
173
+ &_$(palette) {
174
+ &-item {
179
175
  & svg {
180
176
  stroke: none;
181
177
  fill: var(--color-palette-$(palette));
182
178
  }
183
179
  }
184
- }
185
- }
186
- }
187
- .icon_fill {
188
- &_active {
189
- &_hover {
190
- @each $type in accent, primary, secondary, tertiary, quaternary, surface,
191
- error, success, warning, info, danger {
192
- &_$(type) {
193
- &-item {
194
- @each $color in primary, secondary, tertiary, quaternary {
195
- &-$(color) {
196
- &:hover {
197
- & svg {
198
- stroke: none;
199
- fill: var(--color-$(type)-item-$(color));
200
- }
201
- }
202
- }
203
- }
204
- }
205
- @each $color in primary, secondary, tertiary, quaternary {
206
- &-$(color) {
207
- &:hover {
208
- & svg {
209
- stroke: none;
210
- fill: var(--color-$(type)-fill-$(color));
211
- }
212
- }
213
- }
214
- }
215
- }
216
- }
217
- @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
218
- pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
219
- clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
220
- rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
221
- canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
222
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
223
- surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
224
- denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
225
- lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
226
- storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
227
- alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
228
- gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
229
- alto, athens-gray, sonic-silver {
230
- &_$(palette) {
231
- &:hover {
232
- & svg {
233
- stroke: none;
234
- fill: var(--color-palette-$(palette));
235
- }
236
- }
237
- &-item {
238
- &:hover {
239
- & svg {
240
- stroke: none;
241
- fill: var(--color-palette-$(palette));
242
- }
243
- }
244
- }
245
- }
180
+ & svg {
181
+ stroke: none;
182
+ fill: var(--color-palette-$(palette));
246
183
  }
247
184
  }
248
185
  }
@@ -273,9 +210,9 @@
273
210
  @each $size in 12, 14, 16, 20, 24, 32, 40 {
274
211
  &^^&_size_$(size) {
275
212
  & ^^^&__badge {
213
+ position: absolute;
276
214
  top: 0;
277
215
  right: 0;
278
- position: absolute;
279
216
  transform: translate(var(--icon-size-$(size)-badge-position));
280
217
  }
281
218
  }
@@ -18,6 +18,16 @@
18
18
  &:focus {
19
19
  outline: 0;
20
20
  }
21
+ &-absolute-header {
22
+ & .modal__header {
23
+ position: sticky;
24
+ top: 0;
25
+ z-index: 100;
26
+ }
27
+ & .modal__close {
28
+ position: absolute;
29
+ }
30
+ }
21
31
  &-wrapper {
22
32
  width: 100%;
23
33
  }
@@ -46,14 +56,16 @@
46
56
  &_size_$(size) {
47
57
  min-width: var(--modal-$(size)-min-width);
48
58
  min-height: var(--modal-$(size)-min-height);
49
- padding: var(--modal-$(size)-padding) 0;
50
59
  ^&__header {
51
- padding: 0 var(--modal-$(size)-padding);
52
60
  gap: var(--modal-$(size)-gap);
61
+ padding: var(--modal-$(size)-header-padding);
53
62
  }
54
- ^&__content {
55
- &-wrapper {
56
- padding: 0 var(--modal-$(size)-padding);
63
+ ^&__content-wrapper {
64
+ padding: var(--modal-$(size)-content-padding);
65
+ }
66
+ &^&__content-no-header {
67
+ ^^&__content-wrapper {
68
+ padding: var(--modal-$(size)-content-no-header-padding);
57
69
  }
58
70
  }
59
71
  }
@@ -62,26 +74,22 @@
62
74
  .modal {
63
75
  &-scroll {
64
76
  &_header_sticky {
77
+ max-height: 80vh;
78
+ overflow: hidden auto;
65
79
  ^^&__header {
66
80
  position: sticky;
67
81
  top: 0;
82
+ z-index: 100;
68
83
  }
69
84
  ^^&__content {
70
85
  &-wrapper {
71
86
  position: relative;
72
- overflow: hidden auto;
73
87
  display: flex;
74
88
  flex-direction: column;
75
89
  }
76
90
  }
77
91
  }
78
- &_true {
79
- max-height: 80vh;
80
- position: relative;
81
- overflow: hidden auto;
82
- display: flex;
83
- flex-direction: column;
84
- }
92
+ &_true,
85
93
  &_vertical {
86
94
  max-height: 80vh;
87
95
  position: relative;
@@ -99,23 +107,32 @@
99
107
  }
100
108
  :root {
101
109
  --modal-max-width: 500px;
102
- --modal-xl-padding: 24px;
110
+
103
111
  --modal-xl-gap: 24px;
112
+ --modal-xl-header-padding: 24px 24px 0 24px;
113
+ --modal-xl-content-padding: 0 24px 24px 24px;
114
+ --modal-xl-content-no-header-padding: 24px;
104
115
  --modal-xl-min-width: 500px;
105
116
  --modal-xl-min-height: 240px;
106
117
 
107
- --modal-l-padding: 24px;
108
118
  --modal-l-gap: 24px;
119
+ --modal-l-header-padding: 24px 24px 0 24px;
120
+ --modal-l-content-padding: 0 24px 24px 24px;
121
+ --modal-l-content-no-header-padding: 24px;
109
122
  --modal-l-min-width: 500px;
110
123
  --modal-l-min-height: 240px;
111
124
 
112
- --modal-m-padding: 24px;
113
125
  --modal-m-gap: 24px;
126
+ --modal-m-header-padding: 24px 24px 0 24px;
127
+ --modal-m-content-padding: 0 24px 24px 24px;
128
+ --modal-m-content-no-header-padding: 24px;
114
129
  --modal-m-min-width: 500px;
115
130
  --modal-m-min-height: 240px;
116
131
 
117
- --modal-s-padding: 24px;
118
132
  --modal-s-gap: 24px;
133
+ --modal-s-header-padding: 24px 24px 0 24px;
134
+ --modal-s-content-padding: 0 24px 24px 24px;
135
+ --modal-s-content-no-header-padding: 24px;
119
136
  --modal-s-min-width: 320px;
120
137
  --modal-s-min-height: 240px;
121
138
  }