ngx-strata 0.5.1 → 0.5.2
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.
- package/assets/styles/components/_number-stepper.scss +7 -1
- package/assets/styles/components/action-menu.scss +16 -2
- package/assets/styles/components/input-field.scss +8 -2
- package/assets/styles/components/item.scss +15 -2
- package/assets/styles/components/modal.scss +237 -22
- package/assets/styles/components/notification.scss +26 -7
- package/assets/styles/components/select.scss +18 -0
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +26 -11
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/ngx-strata/SKILL.md +1 -1
- package/skills/ngx-strata/components/item.md +21 -9
- package/skills/ngx-strata/components/modal.md +36 -5
- package/skills/ngx-strata/components/notification.md +1 -1
- package/types/ngx-strata.d.ts +12 -3
|
@@ -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-
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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);
|
|
@@ -64,12 +74,6 @@ st-modal-footer {
|
|
|
64
74
|
padding: var(--st-modal-footer-padding);
|
|
65
75
|
border-top: 1px solid var(--st-modal-footer-border-color);
|
|
66
76
|
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
77
|
border-bottom-left-radius: var(--st-modal-border-radius);
|
|
74
78
|
border-bottom-right-radius: var(--st-modal-border-radius);
|
|
75
79
|
|
|
@@ -127,19 +131,56 @@ st-modal {
|
|
|
127
131
|
width: var(--st-modal-width);
|
|
128
132
|
max-width: min(var(--st-modal-max-width), calc(100vw - (var(--st-modal-viewport-margin) * 2)));
|
|
129
133
|
max-height: calc(100vh - (var(--st-modal-viewport-margin) * 2));
|
|
134
|
+
overflow: hidden;
|
|
130
135
|
|
|
131
136
|
st-modal-header {
|
|
132
137
|
flex-shrink: 0;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
.modal-content {
|
|
136
|
-
|
|
137
|
-
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
138
143
|
flex: 1;
|
|
139
144
|
min-height: 0;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
|
|
147
|
+
> * {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
flex: 1;
|
|
151
|
+
min-height: 0;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:not(:has(st-modal-body)):not(:has(st-modal-footer)) {
|
|
156
|
+
padding: var(--st-size-sm);
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
|
|
159
|
+
> * {
|
|
160
|
+
display: block;
|
|
161
|
+
flex: initial;
|
|
162
|
+
min-height: initial;
|
|
163
|
+
overflow: visible;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:has(st-modal-footer):not(:has(st-modal-body)) {
|
|
168
|
+
> * {
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
flex: 1;
|
|
172
|
+
min-height: 0;
|
|
173
|
+
overflow-y: auto;
|
|
174
|
+
padding: var(--st-size-sm) var(--st-size-sm) 0;
|
|
140
175
|
|
|
141
|
-
|
|
142
|
-
|
|
176
|
+
st-modal-footer {
|
|
177
|
+
position: sticky;
|
|
178
|
+
bottom: 0;
|
|
179
|
+
margin-top: auto;
|
|
180
|
+
margin-left: calc(-1 * var(--st-size-sm));
|
|
181
|
+
margin-right: calc(-1 * var(--st-size-sm));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
143
184
|
}
|
|
144
185
|
}
|
|
145
186
|
|
|
@@ -167,12 +208,122 @@ st-modal {
|
|
|
167
208
|
--st-modal-bg-color: var(--st-color-bg-raised);
|
|
168
209
|
}
|
|
169
210
|
|
|
211
|
+
&.st-modal-placement-center {
|
|
212
|
+
justify-self: center;
|
|
213
|
+
align-self: center;
|
|
214
|
+
animation: st-modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.st-modal-placement-right {
|
|
218
|
+
@media (min-width: 768px) {
|
|
219
|
+
justify-self: end;
|
|
220
|
+
align-self: stretch;
|
|
221
|
+
height: 100% !important;
|
|
222
|
+
height: 100dvh !important;
|
|
223
|
+
max-height: 100% !important;
|
|
224
|
+
max-height: 100dvh !important;
|
|
225
|
+
border-radius: 0 !important;
|
|
226
|
+
border-top: none !important;
|
|
227
|
+
border-right: none !important;
|
|
228
|
+
border-bottom: none !important;
|
|
229
|
+
border-left: 1px solid var(--st-border-faded) !important;
|
|
230
|
+
box-shadow: var(--st-shadow-4);
|
|
231
|
+
animation: st-modal-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
232
|
+
|
|
233
|
+
&.st-modal-size-xs {
|
|
234
|
+
--st-modal-max-width: 320px;
|
|
235
|
+
--st-modal-width: 320px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.st-modal-size-sm {
|
|
239
|
+
--st-modal-max-width: 400px;
|
|
240
|
+
--st-modal-width: 400px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&.st-modal-size-md {
|
|
244
|
+
--st-modal-max-width: 560px;
|
|
245
|
+
--st-modal-width: 560px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&.st-modal-size-lg {
|
|
249
|
+
--st-modal-max-width: 800px;
|
|
250
|
+
--st-modal-width: 800px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
st-modal-header {
|
|
254
|
+
border-top-left-radius: 0;
|
|
255
|
+
border-top-right-radius: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
st-modal-footer {
|
|
259
|
+
border-bottom-left-radius: 0;
|
|
260
|
+
border-bottom-right-radius: 0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&.st-modal-placement-left {
|
|
266
|
+
@media (min-width: 768px) {
|
|
267
|
+
justify-self: start;
|
|
268
|
+
align-self: stretch;
|
|
269
|
+
height: 100% !important;
|
|
270
|
+
height: 100dvh !important;
|
|
271
|
+
max-height: 100% !important;
|
|
272
|
+
max-height: 100dvh !important;
|
|
273
|
+
border-radius: 0 !important;
|
|
274
|
+
border-top: none !important;
|
|
275
|
+
border-left: none !important;
|
|
276
|
+
border-bottom: none !important;
|
|
277
|
+
border-right: 1px solid var(--st-border-faded) !important;
|
|
278
|
+
box-shadow: var(--st-shadow-4);
|
|
279
|
+
animation: st-modal-slide-in-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
280
|
+
|
|
281
|
+
&.st-modal-size-xs {
|
|
282
|
+
--st-modal-max-width: 320px;
|
|
283
|
+
--st-modal-width: 320px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.st-modal-size-sm {
|
|
287
|
+
--st-modal-max-width: 400px;
|
|
288
|
+
--st-modal-width: 400px;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&.st-modal-size-md {
|
|
292
|
+
--st-modal-max-width: 560px;
|
|
293
|
+
--st-modal-width: 560px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&.st-modal-size-lg {
|
|
297
|
+
--st-modal-max-width: 800px;
|
|
298
|
+
--st-modal-width: 800px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
st-modal-header {
|
|
302
|
+
border-top-left-radius: 0;
|
|
303
|
+
border-top-right-radius: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
st-modal-footer {
|
|
307
|
+
border-bottom-left-radius: 0;
|
|
308
|
+
border-bottom-right-radius: 0;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&.st-modal-placement-bottom {
|
|
314
|
+
@media (min-width: 768px) {
|
|
315
|
+
justify-self: center;
|
|
316
|
+
align-self: center;
|
|
317
|
+
animation: st-modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
170
321
|
&.hidden-under-other-modal {
|
|
171
322
|
filter: var(--st-modal-covered-modal-filter);
|
|
172
323
|
}
|
|
173
324
|
|
|
174
325
|
@media (max-width: 767.98px) {
|
|
175
|
-
&:not(.st-modal-size-xs):not(.st-modal-size-sm) {
|
|
326
|
+
&:not(.st-modal-size-xs):not(.st-modal-size-sm):not(.st-modal-placement-bottom) {
|
|
176
327
|
--st-modal-viewport-margin: 0px;
|
|
177
328
|
--st-modal-border-radius: 0px;
|
|
178
329
|
--st-modal-max-width: 100%;
|
|
@@ -194,22 +345,20 @@ st-modal {
|
|
|
194
345
|
box-shadow: none !important;
|
|
195
346
|
margin: 0 !important;
|
|
196
347
|
|
|
348
|
+
&.st-modal-placement-right {
|
|
349
|
+
animation: st-modal-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&.st-modal-placement-left {
|
|
353
|
+
animation: st-modal-slide-in-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
354
|
+
}
|
|
355
|
+
|
|
197
356
|
.modal-content {
|
|
198
357
|
display: flex;
|
|
199
358
|
flex-direction: column;
|
|
200
359
|
flex: 1;
|
|
201
360
|
min-height: 0;
|
|
202
361
|
|
|
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
362
|
> * {
|
|
214
363
|
display: flex;
|
|
215
364
|
flex-direction: column;
|
|
@@ -218,12 +367,40 @@ st-modal {
|
|
|
218
367
|
}
|
|
219
368
|
|
|
220
369
|
st-modal-footer {
|
|
221
|
-
margin-top: auto
|
|
370
|
+
margin-top: auto;
|
|
222
371
|
border-bottom-left-radius: 0;
|
|
223
372
|
border-bottom-right-radius: 0;
|
|
224
373
|
}
|
|
225
374
|
}
|
|
226
375
|
}
|
|
376
|
+
|
|
377
|
+
&.st-modal-placement-bottom {
|
|
378
|
+
position: fixed;
|
|
379
|
+
left: 0;
|
|
380
|
+
right: 0;
|
|
381
|
+
bottom: 0;
|
|
382
|
+
top: auto;
|
|
383
|
+
width: 100% !important;
|
|
384
|
+
max-width: 100% !important;
|
|
385
|
+
max-height: calc(100dvh - var(--st-size-xl)) !important;
|
|
386
|
+
border-radius: var(--st-border-radius-xl) var(--st-border-radius-xl) 0 0 !important;
|
|
387
|
+
border-left: none !important;
|
|
388
|
+
border-right: none !important;
|
|
389
|
+
border-bottom: none !important;
|
|
390
|
+
border-top: 1px solid var(--st-border-faded) !important;
|
|
391
|
+
box-shadow: var(--st-shadow-4) !important;
|
|
392
|
+
animation: st-modal-slide-in-bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
393
|
+
|
|
394
|
+
st-modal-header {
|
|
395
|
+
border-top-left-radius: var(--st-border-radius-xl);
|
|
396
|
+
border-top-right-radius: var(--st-border-radius-xl);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
st-modal-footer {
|
|
400
|
+
border-bottom-left-radius: 0;
|
|
401
|
+
border-bottom-right-radius: 0;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
227
404
|
}
|
|
228
405
|
}
|
|
229
406
|
|
|
@@ -271,4 +448,42 @@ st-modal-container {
|
|
|
271
448
|
grid-column: 1;
|
|
272
449
|
grid-row: 1;
|
|
273
450
|
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
@keyframes st-modal-fade-in {
|
|
454
|
+
from {
|
|
455
|
+
opacity: 0;
|
|
456
|
+
transform: scale(0.97);
|
|
457
|
+
}
|
|
458
|
+
to {
|
|
459
|
+
opacity: 1;
|
|
460
|
+
transform: scale(1);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
@keyframes st-modal-slide-in-right {
|
|
465
|
+
from {
|
|
466
|
+
transform: translateX(100%);
|
|
467
|
+
}
|
|
468
|
+
to {
|
|
469
|
+
transform: translateX(0);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
@keyframes st-modal-slide-in-left {
|
|
474
|
+
from {
|
|
475
|
+
transform: translateX(-100%);
|
|
476
|
+
}
|
|
477
|
+
to {
|
|
478
|
+
transform: translateX(0);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@keyframes st-modal-slide-in-bottom {
|
|
483
|
+
from {
|
|
484
|
+
transform: translateY(100%);
|
|
485
|
+
}
|
|
486
|
+
to {
|
|
487
|
+
transform: translateY(0);
|
|
488
|
+
}
|
|
274
489
|
}
|
|
@@ -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:
|
|
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:
|
|
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-
|
|
24
|
-
--st-notification-icon-color: var(--st-color-
|
|
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-
|
|
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
|
-
|
|
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
|
|