@progressiveui/styles 11.0.8 → 11.0.9
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/package.json +2 -2
- package/scss/components/modal/_modal.scss +157 -22
- package/styles.css +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressiveui/styles",
|
|
3
3
|
"description": "Styles for the Progressive UI Design System",
|
|
4
|
-
"version": "11.0.
|
|
4
|
+
"version": "11.0.9",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Robert Gühne <polyxo.de>",
|
|
7
7
|
"homepage": "https://www.polyxo.de",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"@carbon/test-utils": "^10.3.0",
|
|
36
36
|
"css": "^3.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "7ac338e858a7e2ea569ac819bba6334261771725"
|
|
39
39
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2016, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
1
|
@use "mixins" as *;
|
|
8
2
|
@use "../../breakpoint" as *;
|
|
9
3
|
@use "../../config" as *;
|
|
@@ -90,7 +84,7 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
90
84
|
flex-direction: column;
|
|
91
85
|
background-color: $background-main;
|
|
92
86
|
overflow: hidden;
|
|
93
|
-
&:before {
|
|
87
|
+
/* &:before {
|
|
94
88
|
position: absolute;
|
|
95
89
|
top: 0;
|
|
96
90
|
left: 0;
|
|
@@ -98,13 +92,13 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
98
92
|
height: 4px;
|
|
99
93
|
content: "";
|
|
100
94
|
background: $action-default-fill-primary-default;
|
|
101
|
-
}
|
|
95
|
+
} */
|
|
102
96
|
//border-top: $modal-border-top;
|
|
103
97
|
// border-radius: $modal-border-radius;
|
|
104
98
|
min-width: 100%;
|
|
105
99
|
//max-height: 100%;
|
|
106
100
|
height: 100%;
|
|
107
|
-
padding: $spacing-08 $spacing-05 0rem $spacing-05;
|
|
101
|
+
// padding: $spacing-08 $spacing-05 0rem $spacing-05;
|
|
108
102
|
|
|
109
103
|
@include breakpoint("md") {
|
|
110
104
|
height: auto;
|
|
@@ -117,7 +111,7 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
117
111
|
min-width: 768px;
|
|
118
112
|
}
|
|
119
113
|
|
|
120
|
-
padding: $spacing-08 $spacing-09 0 $spacing-09;
|
|
114
|
+
// padding: $spacing-08 $spacing-09 0 $spacing-09;
|
|
121
115
|
}
|
|
122
116
|
|
|
123
117
|
@media (min-width: 1024px) {
|
|
@@ -146,9 +140,37 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
146
140
|
}
|
|
147
141
|
|
|
148
142
|
.#{$prefix}--modal-header {
|
|
149
|
-
|
|
143
|
+
padding: $spacing-05;
|
|
144
|
+
@include breakpoint-up("md") {
|
|
145
|
+
padding: $spacing-07;
|
|
146
|
+
padding-top: calc($spacing-07 - 2px);
|
|
147
|
+
}
|
|
148
|
+
padding-bottom: 0;
|
|
149
|
+
|
|
150
150
|
display: flex;
|
|
151
151
|
justify-content: space-between;
|
|
152
|
+
position: relative;
|
|
153
|
+
z-index: 1;
|
|
154
|
+
|
|
155
|
+
&:after {
|
|
156
|
+
content: "";
|
|
157
|
+
display: block;
|
|
158
|
+
position: absolute;
|
|
159
|
+
left: 0;
|
|
160
|
+
bottom: -15px;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: 15px;
|
|
163
|
+
z-index: -1;
|
|
164
|
+
background-color: $background-main;
|
|
165
|
+
-webkit-mask-image: -webkit-gradient(
|
|
166
|
+
linear,
|
|
167
|
+
left top,
|
|
168
|
+
left bottom,
|
|
169
|
+
from(rgba(0, 0, 0, 1)),
|
|
170
|
+
to(rgba(0, 0, 0, 0))
|
|
171
|
+
);
|
|
172
|
+
margin-top: $spacing-08;
|
|
173
|
+
}
|
|
152
174
|
}
|
|
153
175
|
|
|
154
176
|
.#{$prefix}--modal-header__label {
|
|
@@ -170,7 +192,13 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
170
192
|
|
|
171
193
|
.#{$prefix}--modal-content {
|
|
172
194
|
//overflow-y: auto;
|
|
173
|
-
|
|
195
|
+
padding: $spacing-05;
|
|
196
|
+
padding-top: $spacing-05;
|
|
197
|
+
@include breakpoint-up("md") {
|
|
198
|
+
padding: $spacing-07;
|
|
199
|
+
padding-top: $spacing-05;
|
|
200
|
+
}
|
|
201
|
+
|
|
174
202
|
color: $text-body-default;
|
|
175
203
|
|
|
176
204
|
> * {
|
|
@@ -182,25 +210,31 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
182
210
|
margin-top: auto;
|
|
183
211
|
text-align: right;
|
|
184
212
|
background-color: $modal-footer-background-color;
|
|
185
|
-
margin-left: -$spacing-05; // calcRem(-24px);
|
|
186
|
-
margin-right: -$spacing-05; // calcRem(-24px);
|
|
187
|
-
padding: $spacing-05
|
|
213
|
+
//margin-left: -$spacing-05; // calcRem(-24px);
|
|
214
|
+
//margin-right: -$spacing-05; // calcRem(-24px);
|
|
215
|
+
padding: $spacing-05;
|
|
216
|
+
|
|
188
217
|
border-radius: 0 0 $modal-border-radius $modal-border-radius;
|
|
189
218
|
.#{$prefix}--link + .#{$prefix}--btn {
|
|
190
219
|
margin-left: $spacing-05;
|
|
191
220
|
}
|
|
192
221
|
|
|
193
222
|
@include breakpoint("md") {
|
|
194
|
-
margin-left: calcRem(-48px);
|
|
195
|
-
margin-right: calcRem(-48px);
|
|
196
|
-
padding: $spacing-
|
|
223
|
+
// margin-left: calcRem(-48px);
|
|
224
|
+
// margin-right: calcRem(-48px);
|
|
225
|
+
padding: $spacing-05 $spacing-06;
|
|
197
226
|
}
|
|
198
227
|
}
|
|
199
228
|
|
|
200
229
|
.#{$prefix}--modal-close {
|
|
201
230
|
position: absolute;
|
|
202
|
-
top: calcRem(
|
|
203
|
-
right: calcRem(
|
|
231
|
+
top: calcRem(8px);
|
|
232
|
+
right: calcRem(6px);
|
|
233
|
+
@include breakpoint-up("md") {
|
|
234
|
+
top: calcRem(22px);
|
|
235
|
+
right: calcRem(18px);
|
|
236
|
+
}
|
|
237
|
+
|
|
204
238
|
padding: 0;
|
|
205
239
|
overflow: hidden;
|
|
206
240
|
cursor: pointer;
|
|
@@ -216,8 +250,8 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
216
250
|
.#{$prefix}--modal-close__icon {
|
|
217
251
|
transition: 200ms;
|
|
218
252
|
// fill: var(--ui-05); // TODO change $field-border
|
|
219
|
-
width:
|
|
220
|
-
height:
|
|
253
|
+
width: 1.5rem;
|
|
254
|
+
height: 1.5rem;
|
|
221
255
|
color: $text-body-default;
|
|
222
256
|
}
|
|
223
257
|
|
|
@@ -225,3 +259,104 @@ $modal-footer-background-color: $layer-primary !default; //TODO use $layer token
|
|
|
225
259
|
background-size: cover;
|
|
226
260
|
}
|
|
227
261
|
}
|
|
262
|
+
|
|
263
|
+
.#{$prefix}--modal--mobile-dialog {
|
|
264
|
+
.#{$prefix}--modal-container {
|
|
265
|
+
@include breakpoint-down("md") {
|
|
266
|
+
min-width: 50%;
|
|
267
|
+
width: 90%;
|
|
268
|
+
max-width: 90%;
|
|
269
|
+
height: auto;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.#{$prefix}--modal--scroll-inside {
|
|
275
|
+
.#{$prefix}--modal-content {
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
}
|
|
278
|
+
.#{$prefix}--modal-container {
|
|
279
|
+
// max-height: 90vh;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.#{$prefix}--modal--desktop-fullscreen {
|
|
284
|
+
@include breakpoint-up("md") {
|
|
285
|
+
.#{$prefix}--modal-inner {
|
|
286
|
+
align-self: center;
|
|
287
|
+
width: 100%;
|
|
288
|
+
height: 100%;
|
|
289
|
+
border-radius: 0;
|
|
290
|
+
}
|
|
291
|
+
.#{$prefix}--modal-container {
|
|
292
|
+
width: 100%;
|
|
293
|
+
height: 100%;
|
|
294
|
+
border-radius: 0;
|
|
295
|
+
max-width: 100%;
|
|
296
|
+
|
|
297
|
+
width: 100%;
|
|
298
|
+
height: 100%;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.#{$prefix}--modal--mobile-fullscreen {
|
|
304
|
+
@include breakpoint-down("md") {
|
|
305
|
+
.#{$prefix}--modal-header {
|
|
306
|
+
padding-bottom: calc(env(safe-area-inset-top) + $spacing-05);
|
|
307
|
+
}
|
|
308
|
+
.#{$prefix}--modal-close {
|
|
309
|
+
top: calc(env(safe-area-inset-top) + calcRem(8px));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.#{$prefix}--modal-inner {
|
|
313
|
+
align-self: center;
|
|
314
|
+
width: 100%;
|
|
315
|
+
height: 100%;
|
|
316
|
+
border-radius: 0;
|
|
317
|
+
}
|
|
318
|
+
.#{$prefix}--modal-container {
|
|
319
|
+
width: 100%;
|
|
320
|
+
height: 100%;
|
|
321
|
+
border-radius: 0;
|
|
322
|
+
max-width: 100%;
|
|
323
|
+
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.#{$prefix}--modal--mobile-bottomsheet {
|
|
331
|
+
@include breakpoint-down("md") {
|
|
332
|
+
.#{$prefix}--modal-inner {
|
|
333
|
+
align-self: flex-end;
|
|
334
|
+
width: 100%;
|
|
335
|
+
height: auto;
|
|
336
|
+
border-radius: $modal-border-radius $modal-border-radius 0 0;
|
|
337
|
+
}
|
|
338
|
+
.#{$prefix}--modal-footer {
|
|
339
|
+
padding-bottom: calc(env(safe-area-inset-bottom) + $spacing-05);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/*
|
|
345
|
+
|
|
346
|
+
@include breakpoint-down(lg) {
|
|
347
|
+
.wfp--modal--tall {
|
|
348
|
+
// padding-top: 0 !important;
|
|
349
|
+
.wfp--modal-header {
|
|
350
|
+
padding-top: calc(env(safe-area-inset-bottom) + 2rem) !important;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.wfp--modal-close {
|
|
354
|
+
top: calc(env(safe-area-inset-bottom) + 2rem) !important;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.wfp--modal-footer {
|
|
359
|
+
padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
*/
|