ngx-strata 0.5.1 → 0.6.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.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9V3H15V1H17V3ZM20 9H4V19H20V9ZM19 5H5V7H19V5Z"></path></svg>
@@ -1,8 +1,9 @@
1
1
  st-number-stepper {
2
2
  --st-number-stepper-bg-color: var(--st-color-bg-raised);
3
- --st-number-stepper-bg-hover-color: var(--st-color-bg-raised);
3
+ --st-number-stepper-bg-hover-color: var(--st-color-input-hover);
4
4
  --st-number-stepper-text-color: var(--st-color-text-primary);
5
5
  --st-number-stepper-border-color: var(--st-border-muted);
6
+ --st-number-stepper-border-hover-color: var(--st-color-border-strong);
6
7
  --st-number-stepper-opacity-disabled: 0.55;
7
8
  --st-number-stepper-height: var(--st-interactive-element-height-md);
8
9
  --st-number-stepper-font-size: var(--st-font-md);
@@ -75,6 +76,7 @@ st-number-stepper {
75
76
 
76
77
  &:hover {
77
78
  background-color: var(--st-number-stepper-bg-hover-color);
79
+ border-color: var(--st-number-stepper-border-hover-color);
78
80
  }
79
81
  }
80
82
 
@@ -184,6 +186,7 @@ st-number-stepper {
184
186
  &.st-state-error,
185
187
  &.st-error {
186
188
  --st-number-stepper-border-color: var(--st-color-feedback-error-default);
189
+ --st-number-stepper-border-hover-color: var(--st-color-feedback-error-hover, var(--st-color-feedback-error-default));
187
190
 
188
191
  .st-stepper-wrapper:focus-within {
189
192
  outline-color: var(--st-color-feedback-error-default);
@@ -192,6 +195,7 @@ st-number-stepper {
192
195
 
193
196
  &.st-state-success {
194
197
  --st-number-stepper-border-color: var(--st-color-feedback-success-default);
198
+ --st-number-stepper-border-hover-color: var(--st-color-feedback-success-hover, var(--st-color-feedback-success-default));
195
199
 
196
200
  .st-stepper-wrapper:focus-within {
197
201
  outline-color: var(--st-color-feedback-success-default);
@@ -200,6 +204,7 @@ st-number-stepper {
200
204
 
201
205
  &.st-state-warning {
202
206
  --st-number-stepper-border-color: var(--st-color-feedback-warning-default);
207
+ --st-number-stepper-border-hover-color: var(--st-color-feedback-warning-hover, var(--st-color-feedback-warning-default));
203
208
 
204
209
  .st-stepper-wrapper:focus-within {
205
210
  outline-color: var(--st-color-feedback-warning-default);
@@ -244,6 +249,7 @@ st-number-stepper {
244
249
  .st-stepper-wrapper {
245
250
  &:hover {
246
251
  background-color: var(--st-number-stepper-bg-color);
252
+ border-color: var(--st-number-stepper-border-color);
247
253
  }
248
254
 
249
255
  &:focus-within {
@@ -1,4 +1,8 @@
1
1
  st-action-menu-item {
2
+ --st-action-menu-item-bg: transparent;
3
+ --st-action-menu-item-hover-bg: var(--st-color-control-bg-hover);
4
+ --st-action-menu-item-hover-label-color: var(--st-color-text-secondary);
5
+ --st-action-menu-item-border-radius: var(--st-border-radius-sm);
2
6
  box-sizing: border-box;
3
7
  --st-item-gap: var(--st-size-xs);
4
8
  width: 100%;
@@ -7,13 +11,23 @@ st-action-menu-item {
7
11
  padding: 6px 10px;
8
12
  min-height: var(--st-interactive-element-height-md);
9
13
  height: fit-content;
10
- border-radius: var(--st-border-radius-sm);
14
+ border-radius: var(--st-action-menu-item-border-radius);
15
+ background-color: var(--st-action-menu-item-bg);
11
16
  user-select: none;
12
17
  transition: background-color var(--st-transition-fast), color var(--st-transition-fast);
13
18
 
19
+ .st-label {
20
+ transition: color var(--st-transition-fast);
21
+ }
22
+
14
23
  &:hover {
15
- background-color: var(--st-color-control-bg-hover);
24
+ background-color: var(--st-action-menu-item-hover-bg);
16
25
  cursor: pointer;
26
+
27
+ &.st-label,
28
+ .st-label {
29
+ color: var(--st-action-menu-item-hover-label-color);
30
+ }
17
31
  }
18
32
 
19
33
  &.active {
@@ -1,8 +1,9 @@
1
1
  st-input-field {
2
2
  --st-input-field-bg-color: var(--st-color-bg-raised);
3
- --st-input-field-bg-hover-color: var(--st-color-bg-raised);
3
+ --st-input-field-bg-hover-color: var(--st-color-input-hover);
4
4
  --st-input-field-text-color: var(--st-color-text-primary);
5
5
  --st-input-field-border-color: var(--st-border-muted);
6
+ --st-input-field-border-hover-color: var(--st-color-border-strong);
6
7
  --st-input-field-opacity-disabled: 0.55;
7
8
  --st-input-field-height: var(--st-interactive-element-height-md);
8
9
  --st-input-field-font-size: var(--st-font-md);
@@ -61,8 +62,9 @@ st-input-field {
61
62
  outline: var(--st-focus-ring-width) var(--st-focus-ring-style) var(--st-focus-ring-color);
62
63
  outline-offset: var(--st-focus-ring-offset);
63
64
  }
64
- &:hover:not(:has(.affix:hover)) {
65
+ &:hover {
65
66
  background-color: var(--st-input-field-bg-hover-color);
67
+ border-color: var(--st-input-field-border-hover-color);
66
68
  }
67
69
  &:has(textarea) {
68
70
  height: auto;
@@ -169,6 +171,7 @@ st-input-field {
169
171
  &.st-state-error,
170
172
  &.st-error {
171
173
  --st-input-field-border-color: var(--st-color-feedback-error-default);
174
+ --st-input-field-border-hover-color: var(--st-color-feedback-error-hover, var(--st-color-feedback-error-default));
172
175
 
173
176
  .st-input-wrapper:focus-within {
174
177
  outline-color: var(--st-color-feedback-error-default);
@@ -177,6 +180,7 @@ st-input-field {
177
180
 
178
181
  &.st-state-success {
179
182
  --st-input-field-border-color: var(--st-color-feedback-success-default);
183
+ --st-input-field-border-hover-color: var(--st-color-feedback-success-hover, var(--st-color-feedback-success-default));
180
184
 
181
185
  .st-input-wrapper:focus-within {
182
186
  outline-color: var(--st-color-feedback-success-default);
@@ -185,6 +189,7 @@ st-input-field {
185
189
 
186
190
  &.st-state-warning {
187
191
  --st-input-field-border-color: var(--st-color-feedback-warning-default);
192
+ --st-input-field-border-hover-color: var(--st-color-feedback-warning-hover, var(--st-color-feedback-warning-default));
188
193
 
189
194
  .st-input-wrapper:focus-within {
190
195
  outline-color: var(--st-color-feedback-warning-default);
@@ -239,6 +244,7 @@ st-input-field {
239
244
  .st-input-wrapper {
240
245
  &:hover {
241
246
  background-color: var(--st-input-field-bg-color);
247
+ border-color: var(--st-input-field-border-color);
242
248
  }
243
249
 
244
250
  &:focus-within {
@@ -1,7 +1,10 @@
1
1
  st-item {
2
+ --st-item-bg: transparent;
3
+ --st-item-hover-bg: var(--st-color-control-bg-hover);
4
+ --st-item-hover-label-color: var(--st-color-text-secondary);
2
5
  --st-item-border-radius: var(--st-border-radius-md);
3
- box-sizing: border-box;
4
6
  --st-item-gap: var(--st-size-xs);
7
+ box-sizing: border-box;
5
8
  width: 100%;
6
9
  display: flex;
7
10
  position: relative;
@@ -12,13 +15,23 @@ st-item {
12
15
  padding-left: var(--st-size-xxs);
13
16
  padding-right: var(--st-size-xxs);
14
17
  border-radius: var(--st-item-border-radius);
18
+ background-color: var(--st-item-bg);
15
19
  transition: background-color var(--st-transition-fast);
16
20
 
21
+ .st-label {
22
+ transition: color var(--st-transition-fast);
23
+ }
24
+
17
25
  &.interactable {
18
26
  &:hover,
19
27
  &:focus-visible {
20
- background-color: var(--st-color-control-bg-hover);
28
+ background-color: var(--st-item-hover-bg);
21
29
  cursor: pointer;
30
+
31
+ &.st-label,
32
+ .st-label {
33
+ color: var(--st-item-hover-label-color);
34
+ }
22
35
  }
23
36
  }
24
37
 
@@ -49,6 +49,16 @@ st-modal-header {
49
49
  }
50
50
  }
51
51
 
52
+ st-modal-body {
53
+ --st-modal-body-padding: var(--st-size-sm);
54
+
55
+ display: block;
56
+ flex: 1;
57
+ min-height: 0;
58
+ overflow-y: auto;
59
+ padding: var(--st-modal-body-padding);
60
+ }
61
+
52
62
  st-modal-footer {
53
63
  --st-modal-footer-bg: var(--st-modal-bg-color, var(--st-color-bg-default));
54
64
  --st-modal-footer-border-color: var(--st-border);
@@ -60,16 +70,11 @@ st-modal-footer {
60
70
  align-items: center;
61
71
  flex-shrink: 0;
62
72
  flex-grow: 0;
73
+ margin-top: auto;
63
74
  gap: var(--st-modal-footer-gap);
64
75
  padding: var(--st-modal-footer-padding);
65
76
  border-top: 1px solid var(--st-modal-footer-border-color);
66
77
  background-color: var(--st-modal-footer-bg);
67
- position: sticky;
68
- bottom: 0;
69
- z-index: 5;
70
- margin-top: var(--st-size-sm);
71
- margin-left: calc(-1 * var(--st-size-sm));
72
- margin-right: calc(-1 * var(--st-size-sm));
73
78
  border-bottom-left-radius: var(--st-modal-border-radius);
74
79
  border-bottom-right-radius: var(--st-modal-border-radius);
75
80
 
@@ -127,19 +132,62 @@ st-modal {
127
132
  width: var(--st-modal-width);
128
133
  max-width: min(var(--st-modal-max-width), calc(100vw - (var(--st-modal-viewport-margin) * 2)));
129
134
  max-height: calc(100vh - (var(--st-modal-viewport-margin) * 2));
135
+ overflow: hidden;
130
136
 
131
137
  st-modal-header {
132
138
  flex-shrink: 0;
133
139
  }
134
140
 
135
141
  .modal-content {
136
- padding: var(--st-size-sm);
137
- overflow-y: auto;
142
+ display: flex;
143
+ flex-direction: column;
138
144
  flex: 1;
139
145
  min-height: 0;
146
+ overflow: hidden;
147
+
148
+ > *,
149
+ > * > form,
150
+ > * > div:only-child,
151
+ > * > section:only-child {
152
+ display: flex;
153
+ flex-direction: column;
154
+ flex: 1;
155
+ min-height: 0;
156
+ overflow: hidden;
157
+ }
158
+
159
+ &:not(:has(st-modal-body)):not(:has(st-modal-footer)) {
160
+ padding: var(--st-size-sm);
161
+ overflow-y: auto;
162
+
163
+ > * {
164
+ display: block;
165
+ flex: initial;
166
+ min-height: initial;
167
+ overflow: visible;
168
+ }
169
+ }
170
+
171
+ &:has(st-modal-footer):not(:has(st-modal-body)) {
172
+ > *,
173
+ > * > form,
174
+ > * > div:only-child,
175
+ > * > section:only-child {
176
+ display: flex;
177
+ flex-direction: column;
178
+ flex: 1;
179
+ min-height: 0;
180
+ overflow-y: auto;
181
+ padding: var(--st-size-sm) var(--st-size-sm) 0;
140
182
 
141
- &:has(st-modal-footer) {
142
- padding-bottom: 0;
183
+ st-modal-footer {
184
+ position: sticky;
185
+ bottom: 0;
186
+ margin-top: auto;
187
+ margin-left: calc(-1 * var(--st-size-sm));
188
+ margin-right: calc(-1 * var(--st-size-sm));
189
+ }
190
+ }
143
191
  }
144
192
  }
145
193
 
@@ -167,12 +215,122 @@ st-modal {
167
215
  --st-modal-bg-color: var(--st-color-bg-raised);
168
216
  }
169
217
 
218
+ &.st-modal-placement-center {
219
+ justify-self: center;
220
+ align-self: center;
221
+ animation: st-modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
222
+ }
223
+
224
+ &.st-modal-placement-right {
225
+ @media (min-width: 768px) {
226
+ justify-self: end;
227
+ align-self: stretch;
228
+ height: 100% !important;
229
+ height: 100dvh !important;
230
+ max-height: 100% !important;
231
+ max-height: 100dvh !important;
232
+ border-radius: 0 !important;
233
+ border-top: none !important;
234
+ border-right: none !important;
235
+ border-bottom: none !important;
236
+ border-left: 1px solid var(--st-border-faded) !important;
237
+ box-shadow: var(--st-shadow-4);
238
+ animation: st-modal-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
239
+
240
+ &.st-modal-size-xs {
241
+ --st-modal-max-width: 320px;
242
+ --st-modal-width: 320px;
243
+ }
244
+
245
+ &.st-modal-size-sm {
246
+ --st-modal-max-width: 400px;
247
+ --st-modal-width: 400px;
248
+ }
249
+
250
+ &.st-modal-size-md {
251
+ --st-modal-max-width: 560px;
252
+ --st-modal-width: 560px;
253
+ }
254
+
255
+ &.st-modal-size-lg {
256
+ --st-modal-max-width: 800px;
257
+ --st-modal-width: 800px;
258
+ }
259
+
260
+ st-modal-header {
261
+ border-top-left-radius: 0;
262
+ border-top-right-radius: 0;
263
+ }
264
+
265
+ st-modal-footer {
266
+ border-bottom-left-radius: 0;
267
+ border-bottom-right-radius: 0;
268
+ }
269
+ }
270
+ }
271
+
272
+ &.st-modal-placement-left {
273
+ @media (min-width: 768px) {
274
+ justify-self: start;
275
+ align-self: stretch;
276
+ height: 100% !important;
277
+ height: 100dvh !important;
278
+ max-height: 100% !important;
279
+ max-height: 100dvh !important;
280
+ border-radius: 0 !important;
281
+ border-top: none !important;
282
+ border-left: none !important;
283
+ border-bottom: none !important;
284
+ border-right: 1px solid var(--st-border-faded) !important;
285
+ box-shadow: var(--st-shadow-4);
286
+ animation: st-modal-slide-in-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
287
+
288
+ &.st-modal-size-xs {
289
+ --st-modal-max-width: 320px;
290
+ --st-modal-width: 320px;
291
+ }
292
+
293
+ &.st-modal-size-sm {
294
+ --st-modal-max-width: 400px;
295
+ --st-modal-width: 400px;
296
+ }
297
+
298
+ &.st-modal-size-md {
299
+ --st-modal-max-width: 560px;
300
+ --st-modal-width: 560px;
301
+ }
302
+
303
+ &.st-modal-size-lg {
304
+ --st-modal-max-width: 800px;
305
+ --st-modal-width: 800px;
306
+ }
307
+
308
+ st-modal-header {
309
+ border-top-left-radius: 0;
310
+ border-top-right-radius: 0;
311
+ }
312
+
313
+ st-modal-footer {
314
+ border-bottom-left-radius: 0;
315
+ border-bottom-right-radius: 0;
316
+ }
317
+ }
318
+ }
319
+
320
+ &.st-modal-placement-bottom {
321
+ @media (min-width: 768px) {
322
+ justify-self: center;
323
+ align-self: center;
324
+ animation: st-modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
325
+ }
326
+ }
327
+
170
328
  &.hidden-under-other-modal {
171
329
  filter: var(--st-modal-covered-modal-filter);
172
330
  }
173
331
 
174
332
  @media (max-width: 767.98px) {
175
- &:not(.st-modal-size-xs):not(.st-modal-size-sm) {
333
+ &:not(.st-modal-size-xs):not(.st-modal-size-sm):not(.st-modal-placement-bottom) {
176
334
  --st-modal-viewport-margin: 0px;
177
335
  --st-modal-border-radius: 0px;
178
336
  --st-modal-max-width: 100%;
@@ -194,23 +352,24 @@ st-modal {
194
352
  box-shadow: none !important;
195
353
  margin: 0 !important;
196
354
 
355
+ &.st-modal-placement-right {
356
+ animation: st-modal-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
357
+ }
358
+
359
+ &.st-modal-placement-left {
360
+ animation: st-modal-slide-in-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
361
+ }
362
+
197
363
  .modal-content {
198
364
  display: flex;
199
365
  flex-direction: column;
200
366
  flex: 1;
201
367
  min-height: 0;
202
368
 
203
- &:has(st-modal-footer) {
204
- &,
205
- :has(st-modal-footer) {
206
- display: flex;
207
- flex-direction: column;
208
- flex: 1;
209
- min-height: 0;
210
- }
211
- }
212
-
213
- > * {
369
+ > *,
370
+ > * > form,
371
+ > * > div:only-child,
372
+ > * > section:only-child {
214
373
  display: flex;
215
374
  flex-direction: column;
216
375
  flex: 1;
@@ -218,12 +377,40 @@ st-modal {
218
377
  }
219
378
 
220
379
  st-modal-footer {
221
- margin-top: auto !important;
380
+ margin-top: auto;
222
381
  border-bottom-left-radius: 0;
223
382
  border-bottom-right-radius: 0;
224
383
  }
225
384
  }
226
385
  }
386
+
387
+ &.st-modal-placement-bottom {
388
+ position: fixed;
389
+ left: 0;
390
+ right: 0;
391
+ bottom: 0;
392
+ top: auto;
393
+ width: 100% !important;
394
+ max-width: 100% !important;
395
+ max-height: calc(100dvh - var(--st-size-xl)) !important;
396
+ border-radius: var(--st-border-radius-xl) var(--st-border-radius-xl) 0 0 !important;
397
+ border-left: none !important;
398
+ border-right: none !important;
399
+ border-bottom: none !important;
400
+ border-top: 1px solid var(--st-border-faded) !important;
401
+ box-shadow: var(--st-shadow-4) !important;
402
+ animation: st-modal-slide-in-bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
403
+
404
+ st-modal-header {
405
+ border-top-left-radius: var(--st-border-radius-xl);
406
+ border-top-right-radius: var(--st-border-radius-xl);
407
+ }
408
+
409
+ st-modal-footer {
410
+ border-bottom-left-radius: 0;
411
+ border-bottom-right-radius: 0;
412
+ }
413
+ }
227
414
  }
228
415
  }
229
416
 
@@ -271,4 +458,42 @@ st-modal-container {
271
458
  grid-column: 1;
272
459
  grid-row: 1;
273
460
  }
461
+ }
462
+
463
+ @keyframes st-modal-fade-in {
464
+ from {
465
+ opacity: 0;
466
+ transform: scale(0.97);
467
+ }
468
+ to {
469
+ opacity: 1;
470
+ transform: scale(1);
471
+ }
472
+ }
473
+
474
+ @keyframes st-modal-slide-in-right {
475
+ from {
476
+ transform: translateX(100%);
477
+ }
478
+ to {
479
+ transform: translateX(0);
480
+ }
481
+ }
482
+
483
+ @keyframes st-modal-slide-in-left {
484
+ from {
485
+ transform: translateX(-100%);
486
+ }
487
+ to {
488
+ transform: translateX(0);
489
+ }
490
+ }
491
+
492
+ @keyframes st-modal-slide-in-bottom {
493
+ from {
494
+ transform: translateY(100%);
495
+ }
496
+ to {
497
+ transform: translateY(0);
498
+ }
274
499
  }
@@ -12,16 +12,16 @@ st-notification {
12
12
  --st-notification-min-height: calc(var(--st-space-12) + var(--st-space-1));
13
13
  --st-notification-padding-y: var(--st-space-3);
14
14
  --st-notification-padding-right: var(--st-space-4);
15
- --st-notification-accent-color: var(--st-color-feedback-info-default);
15
+ --st-notification-accent-color: transparent;
16
16
  --st-notification-accent-width: var(--st-space-1);
17
17
  --st-notification-accent-inset: var(--st-space-3);
18
18
  --st-notification-accent-radius: var(--st-border-radius-full);
19
- --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
19
+ --st-notification-padding-left: var(--st-space-4);
20
20
  --st-notification-gap: var(--st-space-3);
21
21
  --st-notification-content-gap: var(--st-space-1);
22
22
 
23
- --st-notification-icon-bg: var(--st-color-feedback-info-subtle);
24
- --st-notification-icon-color: var(--st-color-feedback-info-default);
23
+ --st-notification-icon-bg: var(--st-color-bg-subtle);
24
+ --st-notification-icon-color: var(--st-color-text-primary);
25
25
  --st-notification-icon-size: var(--st-space-8);
26
26
  --st-notification-icon-glyph-size: var(--st-space-4);
27
27
  --st-notification-icon-radius: var(--st-border-radius-md);
@@ -49,7 +49,7 @@ st-notification {
49
49
  --st-notification-focus-ring-color: var(--st-color-border-strong);
50
50
  --st-notification-focus-ring-offset: var(--st-focus-ring-offset);
51
51
 
52
- --st-notification-progress-color: var(--st-color-feedback-info-default);
52
+ --st-notification-progress-color: var(--st-color-border-strong);
53
53
  --st-notification-progress-height: 3px;
54
54
 
55
55
  position: relative;
@@ -57,8 +57,7 @@ st-notification {
57
57
  flex-direction: row;
58
58
  align-items: center;
59
59
  padding: var(--st-notification-padding-y) var(--st-notification-padding-right) var(--st-notification-padding-y) var(--st-notification-padding-left);
60
- min-width: var(--st-notification-min-width);
61
- max-width: var(--st-notification-max-width);
60
+ width: 100%;
62
61
  min-height: var(--st-notification-min-height);
63
62
  box-sizing: border-box;
64
63
  background-color: var(--st-notification-bg);
@@ -70,6 +69,12 @@ st-notification {
70
69
  overflow: hidden;
71
70
  pointer-events: auto;
72
71
 
72
+ @media (min-width: 768px) {
73
+ width: auto;
74
+ min-width: var(--st-notification-min-width);
75
+ max-width: var(--st-notification-max-width);
76
+ }
77
+
73
78
  &::before {
74
79
  content: '';
75
80
  position: absolute;
@@ -185,8 +190,17 @@ st-notification {
185
190
  animation-play-state: paused;
186
191
  }
187
192
 
193
+ &.st-theme-default {
194
+ --st-notification-accent-color: transparent;
195
+ --st-notification-padding-left: var(--st-space-4);
196
+ --st-notification-icon-bg: var(--st-color-bg-subtle);
197
+ --st-notification-icon-color: var(--st-color-text-primary);
198
+ --st-notification-progress-color: var(--st-color-border-strong);
199
+ }
200
+
188
201
  &.st-theme-info {
189
202
  --st-notification-accent-color: var(--st-color-feedback-info-default);
203
+ --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
190
204
  --st-notification-icon-bg: var(--st-color-feedback-info-subtle);
191
205
  --st-notification-icon-color: var(--st-color-feedback-info-default);
192
206
  --st-notification-progress-color: var(--st-color-feedback-info-default);
@@ -194,6 +208,7 @@ st-notification {
194
208
 
195
209
  &.st-theme-success {
196
210
  --st-notification-accent-color: var(--st-color-feedback-success-default);
211
+ --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
197
212
  --st-notification-icon-bg: var(--st-color-feedback-success-subtle);
198
213
  --st-notification-icon-color: var(--st-color-feedback-success-default);
199
214
  --st-notification-progress-color: var(--st-color-feedback-success-default);
@@ -201,6 +216,7 @@ st-notification {
201
216
 
202
217
  &.st-theme-warning {
203
218
  --st-notification-accent-color: var(--st-color-feedback-warning-default);
219
+ --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
204
220
  --st-notification-icon-bg: var(--st-color-feedback-warning-subtle);
205
221
  --st-notification-icon-color: var(--st-color-feedback-warning-default);
206
222
  --st-notification-progress-color: var(--st-color-feedback-warning-default);
@@ -208,6 +224,7 @@ st-notification {
208
224
 
209
225
  &.st-theme-danger {
210
226
  --st-notification-accent-color: var(--st-color-feedback-error-default);
227
+ --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
211
228
  --st-notification-icon-bg: var(--st-color-feedback-error-subtle);
212
229
  --st-notification-icon-color: var(--st-color-feedback-error-default);
213
230
  --st-notification-progress-color: var(--st-color-feedback-error-default);
@@ -215,6 +232,7 @@ st-notification {
215
232
 
216
233
  &.st-theme-brand {
217
234
  --st-notification-accent-color: var(--st-color-accent-default);
235
+ --st-notification-padding-left: calc(var(--st-notification-accent-inset) * 2 + var(--st-notification-accent-width));
218
236
  --st-notification-icon-bg: var(--st-color-accent-subtle);
219
237
  --st-notification-icon-color: var(--st-color-accent-default);
220
238
  --st-notification-progress-color: var(--st-color-accent-default);
@@ -256,6 +274,7 @@ st-notification-container {
256
274
  --st-notification-overflow-clear-hover-color: var(--st-color-text-primary);
257
275
  --st-notification-overflow-clear-hover-bg: var(--st-color-control-bg-hover);
258
276
 
277
+ box-sizing: border-box;
259
278
  width: 100%;
260
279
  height: 100%;
261
280
  position: fixed;
@@ -110,10 +110,19 @@ st-single-select {
110
110
  transition:
111
111
  background-color var(--st-transition-fast),
112
112
  color var(--st-transition-fast);
113
+
114
+ .st-label {
115
+ transition: color var(--st-transition-fast);
116
+ }
113
117
  }
114
118
 
115
119
  .single-select-item:hover {
116
120
  background-color: var(--st-color-control-bg-hover, var(--st-color-bg-default));
121
+
122
+ &.st-label,
123
+ .st-label {
124
+ color: var(--st-color-text-secondary);
125
+ }
117
126
  }
118
127
  }
119
128
  }
@@ -207,10 +216,19 @@ st-single-select {
207
216
  transition:
208
217
  background-color var(--st-transition-fast),
209
218
  color var(--st-transition-fast);
219
+
220
+ .st-label {
221
+ transition: color var(--st-transition-fast);
222
+ }
210
223
  }
211
224
 
212
225
  .single-select-item:hover {
213
226
  background-color: var(--st-color-control-bg-hover, var(--st-color-bg-default));
227
+
228
+ &.st-label,
229
+ .st-label {
230
+ color: var(--st-color-text-secondary);
231
+ }
214
232
  }
215
233
  }
216
234