@itwin/itwinui-css 0.57.0 → 0.59.1
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/css/all.css +388 -230
- package/css/breadcrumbs.css +50 -47
- package/css/dialog.css +201 -0
- package/css/information-panel.css +2 -2
- package/css/side-navigation.css +1 -1
- package/css/table.css +137 -51
- package/package.json +1 -1
- package/scss/breadcrumbs/breadcrumbs.scss +5 -2
- package/scss/breadcrumbs/classes.scss +3 -0
- package/scss/classes.scss +1 -1
- package/scss/dialog/classes.scss +47 -0
- package/scss/dialog/dialog.scss +213 -0
- package/scss/{modal → dialog}/index.scss +1 -1
- package/scss/index.scss +1 -1
- package/scss/information-panel/information-panel.scss +2 -2
- package/scss/side-navigation/side-navigation.scss +2 -2
- package/scss/style/elevation.scss +6 -5
- package/scss/table/classes.scss +16 -0
- package/scss/table/condensed.scss +4 -1
- package/scss/table/extra-condensed.scss +8 -1
- package/scss/table/table.scss +138 -38
- package/css/modal.css +0 -132
- package/scss/modal/classes.scss +0 -15
- package/scss/modal/modal.scss +0 -155
package/css/table.css
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
vertical-align:baseline;
|
|
11
11
|
display:flex;
|
|
12
12
|
flex-direction:column;
|
|
13
|
+
isolation:isolate;
|
|
13
14
|
}
|
|
14
15
|
.iui-table *{
|
|
15
16
|
box-sizing:border-box;
|
|
@@ -37,36 +38,57 @@
|
|
|
37
38
|
margin-left:auto;
|
|
38
39
|
}
|
|
39
40
|
.iui-table.iui-condensed .iui-table-header .iui-cell,
|
|
40
|
-
.iui-table.iui-condensed .iui-row .iui-cell,
|
|
41
41
|
.iui-table.iui-condensed .iui-paginator{
|
|
42
42
|
min-height:44px;
|
|
43
43
|
}
|
|
44
|
+
.iui-table.iui-condensed .iui-row .iui-cell{
|
|
45
|
+
min-height:46px;
|
|
46
|
+
}
|
|
44
47
|
.iui-table.iui-extra-condensed .iui-table-header .iui-cell,
|
|
45
|
-
.iui-table.iui-extra-condensed .iui-row .iui-cell,
|
|
46
48
|
.iui-table.iui-extra-condensed .iui-paginator{
|
|
47
49
|
min-height:33px;
|
|
48
50
|
}
|
|
51
|
+
.iui-table.iui-extra-condensed .iui-row .iui-cell{
|
|
52
|
+
min-height:35px;
|
|
53
|
+
}
|
|
54
|
+
.iui-table.iui-extra-condensed .iui-table-header .iui-cell{
|
|
55
|
+
padding-block:2.75px;
|
|
56
|
+
}
|
|
49
57
|
|
|
50
|
-
.iui-table-header{
|
|
51
|
-
-webkit-user-select:none;
|
|
52
|
-
-moz-user-select:none;
|
|
53
|
-
-ms-user-select:none;
|
|
54
|
-
user-select:none;
|
|
58
|
+
.iui-table-header-wrapper{
|
|
55
59
|
overflow:hidden;
|
|
60
|
+
display:flex;
|
|
56
61
|
flex-shrink:0;
|
|
57
|
-
background-color:#edeff2;
|
|
58
|
-
background-color:var(--iui-color-background-3);
|
|
59
62
|
}
|
|
60
63
|
@supports not (overflow: overlay){
|
|
61
|
-
.iui-table-header{
|
|
64
|
+
.iui-table-header-wrapper{
|
|
62
65
|
overflow-y:scroll;
|
|
63
66
|
}
|
|
64
67
|
}
|
|
68
|
+
|
|
69
|
+
.iui-table-header{
|
|
70
|
+
display:flex;
|
|
71
|
+
-webkit-user-select:none;
|
|
72
|
+
-moz-user-select:none;
|
|
73
|
+
-ms-user-select:none;
|
|
74
|
+
user-select:none;
|
|
75
|
+
min-width:100%;
|
|
76
|
+
flex-shrink:0;
|
|
77
|
+
}
|
|
65
78
|
.iui-table-header .iui-row{
|
|
66
79
|
display:flex;
|
|
67
80
|
flex-grow:1;
|
|
68
|
-
|
|
69
|
-
|
|
81
|
+
min-width:100%;
|
|
82
|
+
}
|
|
83
|
+
.iui-table-header .iui-cell{
|
|
84
|
+
min-height:55px;
|
|
85
|
+
background-color:#edeff2;
|
|
86
|
+
background-color:var(--iui-color-background-3);
|
|
87
|
+
}
|
|
88
|
+
.iui-table-header .iui-cell:not(.iui-slot){
|
|
89
|
+
-moz-column-gap:4px;
|
|
90
|
+
column-gap:4px;
|
|
91
|
+
padding-block:5.5px;
|
|
70
92
|
}
|
|
71
93
|
.iui-table-header .iui-cell:not(.iui-slot):focus-visible{
|
|
72
94
|
outline:1px solid var(--iui-color-foreground-primary);
|
|
@@ -85,11 +107,7 @@
|
|
|
85
107
|
cursor:-webkit-grabbing;
|
|
86
108
|
cursor:grabbing;
|
|
87
109
|
}
|
|
88
|
-
.iui-table-header .iui-cell:not(.iui-slot)
|
|
89
|
-
margin-left:4px;
|
|
90
|
-
margin-right:8px;
|
|
91
|
-
}
|
|
92
|
-
.iui-table-header .iui-cell:not(.iui-slot) > .iui-filter-button:not(.iui-active){
|
|
110
|
+
.iui-table-header .iui-cell:not(.iui-slot) .iui-filter-button:not(.iui-active){
|
|
93
111
|
visibility:hidden;
|
|
94
112
|
}
|
|
95
113
|
.iui-table-header .iui-cell:not(.iui-slot) > .iui-resizer{
|
|
@@ -165,6 +183,21 @@
|
|
|
165
183
|
fill:var(--iui-icons-color-actionable);
|
|
166
184
|
}
|
|
167
185
|
|
|
186
|
+
.iui-table-header-actions-container{
|
|
187
|
+
display:flex;
|
|
188
|
+
flex-grow:1;
|
|
189
|
+
align-items:center;
|
|
190
|
+
flex-wrap:wrap;
|
|
191
|
+
justify-content:flex-end;
|
|
192
|
+
margin-right:12px;
|
|
193
|
+
}
|
|
194
|
+
.iui-table-header-actions-container .iui-cell-end-icon{
|
|
195
|
+
width:28px;
|
|
196
|
+
height:28px;
|
|
197
|
+
margin-right:initial;
|
|
198
|
+
margin-left:auto;
|
|
199
|
+
}
|
|
200
|
+
|
|
168
201
|
.iui-table-body{
|
|
169
202
|
overflow-y:scroll;
|
|
170
203
|
overflow:overlay;
|
|
@@ -182,28 +215,33 @@
|
|
|
182
215
|
.iui-table-body.iui-scroll-snapping .iui-row{
|
|
183
216
|
scroll-snap-align:start none;
|
|
184
217
|
}
|
|
185
|
-
.iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected){
|
|
218
|
+
.iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected) .iui-cell{
|
|
186
219
|
background-color:rgba(0, 0, 0, 0.02);
|
|
187
220
|
background-color:rgba(var(--iui-color-foreground-body-rgb), 0.02);
|
|
188
221
|
}
|
|
189
222
|
.iui-table-body .iui-row{
|
|
190
223
|
min-width:100%;
|
|
191
224
|
display:flex;
|
|
192
|
-
|
|
225
|
+
}
|
|
226
|
+
.iui-table-body .iui-row .iui-cell{
|
|
227
|
+
border-top:solid 1px transparent;
|
|
228
|
+
border-bottom:solid 1px transparent;
|
|
193
229
|
border-bottom-color:#c7ccd1;
|
|
194
230
|
border-bottom-color:var(--iui-color-background-border);
|
|
231
|
+
background-color:white;
|
|
232
|
+
background-color:var(--iui-color-background-1);
|
|
195
233
|
}
|
|
196
234
|
@media (prefers-reduced-motion: no-preference){
|
|
197
|
-
.iui-table-body .iui-row{
|
|
235
|
+
.iui-table-body .iui-row .iui-cell{
|
|
198
236
|
transition:border 0.2s ease-out;
|
|
199
237
|
}
|
|
200
238
|
}
|
|
201
239
|
.iui-table-body .iui-row > .iui-slot > .iui-more-options{
|
|
202
240
|
visibility:hidden;
|
|
203
241
|
}
|
|
204
|
-
.iui-table-body .iui-row:hover:not(.iui-disabled)
|
|
205
|
-
background-
|
|
206
|
-
background-color
|
|
242
|
+
.iui-table-body .iui-row:hover:not(.iui-disabled) .iui-cell{
|
|
243
|
+
background:linear-gradient(rgba(0, 138, 224, 0.1), rgba(0, 138, 224, 0.1)), linear-gradient(white, white);
|
|
244
|
+
background:linear-gradient(rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
|
|
207
245
|
}
|
|
208
246
|
.iui-table-body .iui-row:hover:not(.iui-disabled) > .iui-slot:not(.iui-disabled) > .iui-more-options{
|
|
209
247
|
visibility:visible;
|
|
@@ -218,9 +256,10 @@
|
|
|
218
256
|
}
|
|
219
257
|
.iui-table-body .iui-row.iui-row-expanded{
|
|
220
258
|
overflow:hidden;
|
|
259
|
+
}
|
|
260
|
+
.iui-table-body .iui-row.iui-row-expanded .iui-cell{
|
|
221
261
|
border-left-color:#dde1e4;
|
|
222
262
|
border-right-color:#dde1e4;
|
|
223
|
-
border-bottom-color:transparent;
|
|
224
263
|
border-left-color:var(--iui-color-background-4);
|
|
225
264
|
border-right-color:var(--iui-color-background-4);
|
|
226
265
|
border-bottom-color:transparent;
|
|
@@ -236,6 +275,10 @@
|
|
|
236
275
|
}
|
|
237
276
|
.iui-table-body .iui-row.iui-expanded-content{
|
|
238
277
|
overflow:hidden;
|
|
278
|
+
border-left:1px solid transparent;
|
|
279
|
+
border-right:1px solid transparent;
|
|
280
|
+
border-bottom:1px solid #c7ccd1;
|
|
281
|
+
border-bottom:1px solid var(--iui-color-background-border);
|
|
239
282
|
}
|
|
240
283
|
.iui-table-body .iui-row.iui-expanded-content.iui-enter{
|
|
241
284
|
opacity:0;
|
|
@@ -259,26 +302,26 @@
|
|
|
259
302
|
transition:opacity 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out;
|
|
260
303
|
}
|
|
261
304
|
}
|
|
262
|
-
.iui-table-body .iui-row:not(.iui-selected) + .iui-selected, .iui-table-body .iui-row.iui-selected:first-child{
|
|
305
|
+
.iui-table-body .iui-row:not(.iui-selected) + .iui-selected .iui-cell, .iui-table-body .iui-row.iui-selected:first-child .iui-cell{
|
|
263
306
|
border-bottom-color:transparent;
|
|
264
307
|
}
|
|
265
|
-
.iui-table-body .iui-row.iui-selected{
|
|
308
|
+
.iui-table-body .iui-row.iui-selected .iui-cell{
|
|
266
309
|
border-color:#008ae0;
|
|
267
|
-
background:rgba(0, 138, 224, 0.1);
|
|
310
|
+
background:linear-gradient(rgba(0, 138, 224, 0.1), rgba(0, 138, 224, 0.1)), linear-gradient(white, white);
|
|
268
311
|
border-color:var(--iui-color-foreground-primary);
|
|
269
|
-
background:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
|
|
312
|
+
background:linear-gradient(rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
|
|
270
313
|
}
|
|
271
|
-
.iui-table-body .iui-row.iui-selected + .iui-selected{
|
|
314
|
+
.iui-table-body .iui-row.iui-selected + .iui-selected .iui-cell{
|
|
272
315
|
border-bottom-color:transparent;
|
|
273
316
|
border-top-color:rgba(0, 138, 224, 0.4);
|
|
274
317
|
border-top-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
|
|
275
318
|
}
|
|
276
|
-
.iui-table-body .iui-row.iui-selected:last-child{
|
|
319
|
+
.iui-table-body .iui-row.iui-selected:last-child .iui-cell{
|
|
277
320
|
border-bottom-color:#008ae0;
|
|
278
321
|
border-bottom-color:var(--iui-color-foreground-primary);
|
|
279
322
|
}
|
|
280
|
-
.iui-table-body .iui-row.iui-selected + :not(.iui-selected),
|
|
281
|
-
.iui-table-body .iui-row.iui-selected + .iui-expanded-content + :not(.iui-selected){
|
|
323
|
+
.iui-table-body .iui-row.iui-selected + :not(.iui-selected) .iui-cell,
|
|
324
|
+
.iui-table-body .iui-row.iui-selected + .iui-expanded-content + .iui-row:not(.iui-selected) .iui-cell{
|
|
282
325
|
border-top-color:#008ae0;
|
|
283
326
|
border-top-color:var(--iui-color-foreground-primary);
|
|
284
327
|
}
|
|
@@ -319,17 +362,17 @@
|
|
|
319
362
|
.iui-table-body .iui-row.iui-expanded-content.iui-disabled .iui-user-icon{
|
|
320
363
|
filter:grayscale(100%);
|
|
321
364
|
}
|
|
322
|
-
.iui-table-body .iui-row.iui-positive,
|
|
365
|
+
.iui-table-body .iui-row.iui-positive .iui-cell:first-of-type,
|
|
323
366
|
.iui-table-body .iui-row.iui-positive + .iui-expanded-content{
|
|
324
367
|
box-shadow:inset 2px 0 0 0 #53a21a;
|
|
325
368
|
box-shadow:inset 2px 0 0 0 var(--iui-icons-color-positive);
|
|
326
369
|
}
|
|
327
|
-
.iui-table-body .iui-row.iui-positive::-moz-selection, .iui-table-body .iui-row.iui-positive *::-moz-selection, .iui-table-body .iui-row.iui-positive + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-positive + .iui-expanded-content *::-moz-selection{
|
|
370
|
+
.iui-table-body .iui-row.iui-positive .iui-cell:first-of-type::-moz-selection, .iui-table-body .iui-row.iui-positive .iui-cell:first-of-type *::-moz-selection, .iui-table-body .iui-row.iui-positive + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-positive + .iui-expanded-content *::-moz-selection{
|
|
328
371
|
background-color:rgba(83, 162, 26, 0.2);
|
|
329
372
|
background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
|
|
330
373
|
}
|
|
331
|
-
.iui-table-body .iui-row.iui-positive::selection,
|
|
332
|
-
.iui-table-body .iui-row.iui-positive *::selection,
|
|
374
|
+
.iui-table-body .iui-row.iui-positive .iui-cell:first-of-type::selection,
|
|
375
|
+
.iui-table-body .iui-row.iui-positive .iui-cell:first-of-type *::selection,
|
|
333
376
|
.iui-table-body .iui-row.iui-positive + .iui-expanded-content::selection,
|
|
334
377
|
.iui-table-body .iui-row.iui-positive + .iui-expanded-content *::selection{
|
|
335
378
|
background-color:rgba(83, 162, 26, 0.2);
|
|
@@ -339,17 +382,17 @@
|
|
|
339
382
|
fill:#53a21a;
|
|
340
383
|
fill:var(--iui-icons-color-positive);
|
|
341
384
|
}
|
|
342
|
-
.iui-table-body .iui-row.iui-warning,
|
|
385
|
+
.iui-table-body .iui-row.iui-warning .iui-cell:first-of-type,
|
|
343
386
|
.iui-table-body .iui-row.iui-warning + .iui-expanded-content{
|
|
344
387
|
box-shadow:inset 2px 0 0 0 #f18d13;
|
|
345
388
|
box-shadow:inset 2px 0 0 0 var(--iui-icons-color-warning);
|
|
346
389
|
}
|
|
347
|
-
.iui-table-body .iui-row.iui-warning::-moz-selection, .iui-table-body .iui-row.iui-warning *::-moz-selection, .iui-table-body .iui-row.iui-warning + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-warning + .iui-expanded-content *::-moz-selection{
|
|
390
|
+
.iui-table-body .iui-row.iui-warning .iui-cell:first-of-type::-moz-selection, .iui-table-body .iui-row.iui-warning .iui-cell:first-of-type *::-moz-selection, .iui-table-body .iui-row.iui-warning + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-warning + .iui-expanded-content *::-moz-selection{
|
|
348
391
|
background-color:rgba(241, 141, 19, 0.2);
|
|
349
392
|
background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
|
|
350
393
|
}
|
|
351
|
-
.iui-table-body .iui-row.iui-warning::selection,
|
|
352
|
-
.iui-table-body .iui-row.iui-warning *::selection,
|
|
394
|
+
.iui-table-body .iui-row.iui-warning .iui-cell:first-of-type::selection,
|
|
395
|
+
.iui-table-body .iui-row.iui-warning .iui-cell:first-of-type *::selection,
|
|
353
396
|
.iui-table-body .iui-row.iui-warning + .iui-expanded-content::selection,
|
|
354
397
|
.iui-table-body .iui-row.iui-warning + .iui-expanded-content *::selection{
|
|
355
398
|
background-color:rgba(241, 141, 19, 0.2);
|
|
@@ -359,17 +402,17 @@
|
|
|
359
402
|
fill:#f18d13;
|
|
360
403
|
fill:var(--iui-icons-color-warning);
|
|
361
404
|
}
|
|
362
|
-
.iui-table-body .iui-row.iui-negative,
|
|
405
|
+
.iui-table-body .iui-row.iui-negative .iui-cell:first-of-type,
|
|
363
406
|
.iui-table-body .iui-row.iui-negative + .iui-expanded-content{
|
|
364
407
|
box-shadow:inset 2px 0 0 0 #d10a0a;
|
|
365
408
|
box-shadow:inset 2px 0 0 0 var(--iui-icons-color-negative);
|
|
366
409
|
}
|
|
367
|
-
.iui-table-body .iui-row.iui-negative::-moz-selection, .iui-table-body .iui-row.iui-negative *::-moz-selection, .iui-table-body .iui-row.iui-negative + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-negative + .iui-expanded-content *::-moz-selection{
|
|
410
|
+
.iui-table-body .iui-row.iui-negative .iui-cell:first-of-type::-moz-selection, .iui-table-body .iui-row.iui-negative .iui-cell:first-of-type *::-moz-selection, .iui-table-body .iui-row.iui-negative + .iui-expanded-content::-moz-selection, .iui-table-body .iui-row.iui-negative + .iui-expanded-content *::-moz-selection{
|
|
368
411
|
background-color:rgba(209, 10, 10, 0.2);
|
|
369
412
|
background-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
|
|
370
413
|
}
|
|
371
|
-
.iui-table-body .iui-row.iui-negative::selection,
|
|
372
|
-
.iui-table-body .iui-row.iui-negative *::selection,
|
|
414
|
+
.iui-table-body .iui-row.iui-negative .iui-cell:first-of-type::selection,
|
|
415
|
+
.iui-table-body .iui-row.iui-negative .iui-cell:first-of-type *::selection,
|
|
373
416
|
.iui-table-body .iui-row.iui-negative + .iui-expanded-content::selection,
|
|
374
417
|
.iui-table-body .iui-row.iui-negative + .iui-expanded-content *::selection{
|
|
375
418
|
background-color:rgba(209, 10, 10, 0.2);
|
|
@@ -400,12 +443,18 @@
|
|
|
400
443
|
display:flex;
|
|
401
444
|
flex-grow:1;
|
|
402
445
|
min-width:64px;
|
|
403
|
-
min-height:
|
|
446
|
+
min-height:57px;
|
|
404
447
|
padding-left:16px;
|
|
405
448
|
flex-basis:64px;
|
|
406
449
|
position:relative;
|
|
407
450
|
word-break:break-word;
|
|
408
451
|
}
|
|
452
|
+
.iui-cell:first-of-type{
|
|
453
|
+
border-left:solid 1px transparent;
|
|
454
|
+
}
|
|
455
|
+
.iui-cell:last-of-type{
|
|
456
|
+
border-right:solid 1px transparent;
|
|
457
|
+
}
|
|
409
458
|
.iui-cell.iui-slot{
|
|
410
459
|
width:48px;
|
|
411
460
|
padding:0;
|
|
@@ -416,12 +465,19 @@
|
|
|
416
465
|
align-items:center;
|
|
417
466
|
flex-basis:48px;
|
|
418
467
|
}
|
|
468
|
+
.iui-cell.iui-cell-sticky{
|
|
469
|
+
position:-webkit-sticky;
|
|
470
|
+
position:sticky;
|
|
471
|
+
z-index:1;
|
|
472
|
+
left:var(--iui-table-sticky-left, initial);
|
|
473
|
+
right:var(--iui-table-sticky-right, initial);
|
|
474
|
+
}
|
|
419
475
|
.iui-cell:not(.iui-slot):last-child{
|
|
420
476
|
padding-right:16px;
|
|
421
477
|
}
|
|
422
478
|
.iui-cell.iui-positive{
|
|
423
|
-
background-
|
|
424
|
-
background-color
|
|
479
|
+
background:linear-gradient(rgba(83, 162, 26, 0.1), rgba(83, 162, 26, 0.1)), linear-gradient(white, white);
|
|
480
|
+
background:linear-gradient(rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
|
|
425
481
|
}
|
|
426
482
|
.iui-cell.iui-positive::-moz-selection, .iui-cell.iui-positive *::-moz-selection{
|
|
427
483
|
background-color:rgba(83, 162, 26, 0.2);
|
|
@@ -433,8 +489,8 @@
|
|
|
433
489
|
background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
|
|
434
490
|
}
|
|
435
491
|
.iui-cell.iui-warning{
|
|
436
|
-
background-
|
|
437
|
-
background-color
|
|
492
|
+
background:linear-gradient(rgba(241, 141, 19, 0.1), rgba(241, 141, 19, 0.1)), linear-gradient(white, white);
|
|
493
|
+
background:linear-gradient(rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
|
|
438
494
|
}
|
|
439
495
|
.iui-cell.iui-warning::-moz-selection, .iui-cell.iui-warning *::-moz-selection{
|
|
440
496
|
background-color:rgba(241, 141, 19, 0.2);
|
|
@@ -446,8 +502,8 @@
|
|
|
446
502
|
background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
|
|
447
503
|
}
|
|
448
504
|
.iui-cell.iui-negative{
|
|
449
|
-
background-
|
|
450
|
-
background-color
|
|
505
|
+
background:linear-gradient(rgba(209, 10, 10, 0.1), rgba(209, 10, 10, 0.1)), linear-gradient(white, white);
|
|
506
|
+
background:linear-gradient(rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-6)), rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-6))), linear-gradient(var(--iui-color-background-1), var(--iui-color-background-1));
|
|
451
507
|
}
|
|
452
508
|
.iui-cell.iui-negative::-moz-selection, .iui-cell.iui-negative *::-moz-selection{
|
|
453
509
|
background-color:rgba(209, 10, 10, 0.2);
|
|
@@ -470,6 +526,36 @@
|
|
|
470
526
|
background-color:var(--iui-color-background-1);
|
|
471
527
|
}
|
|
472
528
|
|
|
529
|
+
.iui-cell-shadow-left{
|
|
530
|
+
position:absolute;
|
|
531
|
+
top:-1px;
|
|
532
|
+
bottom:-1px;
|
|
533
|
+
width:24px;
|
|
534
|
+
pointer-events:none;
|
|
535
|
+
left:0;
|
|
536
|
+
transform:translate(-100%);
|
|
537
|
+
box-shadow:inset -10px 0 5px -10px rgba(0, 0, 0, 0.25);
|
|
538
|
+
}
|
|
539
|
+
.iui-table-header .iui-cell-shadow-left{
|
|
540
|
+
top:0;
|
|
541
|
+
bottom:0;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.iui-cell-shadow-right{
|
|
545
|
+
position:absolute;
|
|
546
|
+
top:-1px;
|
|
547
|
+
bottom:-1px;
|
|
548
|
+
width:24px;
|
|
549
|
+
pointer-events:none;
|
|
550
|
+
right:0;
|
|
551
|
+
transform:translate(100%);
|
|
552
|
+
box-shadow:inset 10px 0 5px -10px rgba(0, 0, 0, 0.25);
|
|
553
|
+
}
|
|
554
|
+
.iui-table-header .iui-cell-shadow-right{
|
|
555
|
+
top:0;
|
|
556
|
+
bottom:0;
|
|
557
|
+
}
|
|
558
|
+
|
|
473
559
|
.iui-paginator{
|
|
474
560
|
margin:0;
|
|
475
561
|
padding:0;
|
package/package.json
CHANGED
package/scss/classes.scss
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@import './code/classes';
|
|
13
13
|
@import './color-picker/classes';
|
|
14
14
|
@import './date-picker/classes';
|
|
15
|
+
@import './dialog/classes';
|
|
15
16
|
@import './expandable-block/classes';
|
|
16
17
|
@import './fieldset/classes';
|
|
17
18
|
@import './file-upload/classes';
|
|
@@ -23,7 +24,6 @@
|
|
|
23
24
|
@import './keyboard/classes';
|
|
24
25
|
@import './location-marker/classes';
|
|
25
26
|
@import './menu/classes';
|
|
26
|
-
@import './modal/classes';
|
|
27
27
|
@import './non-ideal-state/classes';
|
|
28
28
|
@import './notification-marker/classes';
|
|
29
29
|
@import './popover/classes';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
+
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
+
@import './index';
|
|
4
|
+
|
|
5
|
+
.iui-dialog-backdrop {
|
|
6
|
+
@include iui-dialog-backdrop;
|
|
7
|
+
|
|
8
|
+
&.iui-dialog-backdrop-relative {
|
|
9
|
+
@include iui-dialog-backdrop-relative;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.iui-dialog {
|
|
14
|
+
@include iui-dialog;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.iui-dialog-default {
|
|
18
|
+
@include iui-dialog-default;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.iui-dialog-full-page {
|
|
22
|
+
@include iui-dialog-full-page;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.iui-dialog-draggable {
|
|
26
|
+
@include iui-dialog-draggable;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.iui-dialog-title {
|
|
30
|
+
@include iui-dialog-title;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.iui-dialog-title-bar {
|
|
34
|
+
@include iui-dialog-title-bar;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.iui-dialog-content {
|
|
38
|
+
@include iui-dialog-content;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.iui-dialog-button-bar {
|
|
42
|
+
@include iui-dialog-button-bar;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.iui-dialog-animation {
|
|
46
|
+
@include iui-dialog-animation;
|
|
47
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
|
+
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
|
+
@import '../style/index';
|
|
4
|
+
@import '../icon/index';
|
|
5
|
+
|
|
6
|
+
@mixin iui-dialog-backdrop {
|
|
7
|
+
@include iui-reset;
|
|
8
|
+
z-index: 999;
|
|
9
|
+
isolation: isolate;
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
@include themed {
|
|
16
|
+
background-color: rgba(0, 0, 0, t(iui-opacity-4));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Small/Resizable Dialog Animations for CSS
|
|
20
|
+
visibility: hidden;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transition: visibility $iui-speed-instant linear $iui-speed-fast, opacity $iui-speed-fast ease-out;
|
|
23
|
+
|
|
24
|
+
&.iui-dialog-visible {
|
|
25
|
+
visibility: visible;
|
|
26
|
+
opacity: 1;
|
|
27
|
+
// remove delay for entry animation so dialog is instantly visible
|
|
28
|
+
transition-delay: $iui-speed-instant;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin iui-dialog-backdrop-relative {
|
|
33
|
+
position: relative;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin iui-dialog {
|
|
38
|
+
border-radius: $iui-border-radius;
|
|
39
|
+
box-shadow: $iui-elevation-24;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
position: absolute;
|
|
42
|
+
padding: $iui-baseline $iui-m;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
padding: $iui-baseline $iui-m;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
@include themed {
|
|
47
|
+
background-color: t(iui-color-background-1);
|
|
48
|
+
}
|
|
49
|
+
@media (forced-colors: active) {
|
|
50
|
+
border: 1px solid;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin iui-dialog-default {
|
|
55
|
+
.iui-dialog {
|
|
56
|
+
left: 50%;
|
|
57
|
+
top: 33%;
|
|
58
|
+
transform: translate(-50%, -33%);
|
|
59
|
+
max-width: 50%;
|
|
60
|
+
min-width: 380px;
|
|
61
|
+
max-height: 100vh;
|
|
62
|
+
|
|
63
|
+
@media screen and (max-width: 400px) {
|
|
64
|
+
max-width: 95%;
|
|
65
|
+
width: 95%;
|
|
66
|
+
min-width: 95%;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin iui-dialog-full-page {
|
|
72
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
73
|
+
transition: visibility $iui-speed-instant linear $iui-speed-slow, opacity $iui-speed ease-out $iui-speed-fast;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.iui-dialog {
|
|
77
|
+
border-radius: 0;
|
|
78
|
+
height: 100vh;
|
|
79
|
+
width: 100vw;
|
|
80
|
+
top: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
max-width: initial;
|
|
83
|
+
min-width: initial;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
will-change: transform;
|
|
87
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
88
|
+
transform: translateY(100%);
|
|
89
|
+
transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
|
|
90
|
+
transform $iui-speed-fast ease-in;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.iui-dialog-visible .iui-dialog {
|
|
95
|
+
transform: translateY(0);
|
|
96
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
97
|
+
transition: transform $iui-speed ease-out;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin iui-dialog-draggable {
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
z-index: 998;
|
|
106
|
+
|
|
107
|
+
.iui-dialog {
|
|
108
|
+
pointer-events: initial;
|
|
109
|
+
max-width: 100vw;
|
|
110
|
+
max-height: 100vh;
|
|
111
|
+
min-width: 380px;
|
|
112
|
+
min-height: 144px;
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
padding: 0;
|
|
116
|
+
@include themed {
|
|
117
|
+
border: 1px solid t(iui-color-background-border);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@mixin iui-dialog-animation {
|
|
123
|
+
// Full Page Dialog Animations for React
|
|
124
|
+
&-enter .iui-dialog-full-page .iui-dialog {
|
|
125
|
+
transform: translateY(100%);
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-enter-active .iui-dialog-full-page .iui-dialog {
|
|
130
|
+
transform: translateY(0);
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Small Dialog Animations for React
|
|
135
|
+
&-enter .iui-dialog-backdrop {
|
|
136
|
+
visibility: hidden;
|
|
137
|
+
opacity: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-enter-active .iui-dialog-backdrop {
|
|
141
|
+
visibility: visible;
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@mixin iui-dialog-title {
|
|
147
|
+
font-size: inherit;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
line-height: 1.5;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@mixin iui-dialog-title-bar {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
margin-bottom: $iui-baseline;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
font-size: $iui-font-size-subheading;
|
|
161
|
+
|
|
162
|
+
@at-root .iui-dialog-draggable & {
|
|
163
|
+
user-select: none;
|
|
164
|
+
font-size: $iui-font-size-leading;
|
|
165
|
+
padding: round($iui-baseline * 0.5) $iui-m;
|
|
166
|
+
cursor: grab;
|
|
167
|
+
@include themed {
|
|
168
|
+
background-color: t(iui-color-background-3);
|
|
169
|
+
border-bottom: 1px solid t(iui-color-background-border);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:active {
|
|
173
|
+
cursor: grabbing;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@mixin iui-dialog-content {
|
|
179
|
+
flex-grow: 2;
|
|
180
|
+
margin: 0 -#{$iui-m};
|
|
181
|
+
padding: 0 $iui-m;
|
|
182
|
+
overflow-y: auto;
|
|
183
|
+
overflow-y: overlay;
|
|
184
|
+
|
|
185
|
+
@at-root .iui-dialog-draggable & {
|
|
186
|
+
margin: 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin iui-dialog-button-bar {
|
|
191
|
+
margin-top: $iui-baseline;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: flex-end;
|
|
195
|
+
|
|
196
|
+
@at-root .iui-dialog-draggable & {
|
|
197
|
+
padding: 0 $iui-m $iui-baseline $iui-m;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// #region IE support
|
|
201
|
+
> .iui-button:not(:last-child) {
|
|
202
|
+
margin-right: $iui-s;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@supports (column-gap: $iui-s) {
|
|
206
|
+
column-gap: $iui-s;
|
|
207
|
+
|
|
208
|
+
> .iui-button:not(:last-child) {
|
|
209
|
+
margin-right: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// #endregion IE support
|
|
213
|
+
}
|