@itwin/itwinui-css 0.34.0 → 0.36.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.
package/css/all.css CHANGED
@@ -661,6 +661,7 @@ html.iui-theme-dark{
661
661
  padding:0;
662
662
  border:none;
663
663
  vertical-align:baseline;
664
+ font-family:inherit;
664
665
  display:inline-flex;
665
666
  align-items:center;
666
667
  vertical-align:middle;
@@ -1097,8 +1098,6 @@ html.iui-theme-dark{
1097
1098
  box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
1098
1099
  background-color:#FFF;
1099
1100
  background-color:var(--iui-color-background-1);
1100
- max-width:336px;
1101
- max-height:334px;
1102
1101
  box-sizing:border-box;
1103
1102
  border-radius:3px;
1104
1103
  display:inline-flex;
@@ -1107,17 +1106,28 @@ html.iui-theme-dark{
1107
1106
  -moz-user-select:none;
1108
1107
  -ms-user-select:none;
1109
1108
  user-select:none;
1110
- overflow-y:auto; }
1109
+ overflow-y:auto;
1110
+ flex-direction:column;
1111
+ max-width:336px;
1112
+ max-height:495px; }
1111
1113
  @supports (overflow-y: overlay){
1112
1114
  .iui-color-picker{
1113
1115
  overflow-y:overlay; } }
1114
- .iui-color-picker.iui-advanced{
1115
- max-width:261px;
1116
- flex-direction:column; }
1116
+ @supports (row-gap: 11px){
1117
+ .iui-color-picker{
1118
+ row-gap:11px; } }
1119
+ .iui-color-picker > div:not(:last-child){
1120
+ margin-bottom:11px; }
1121
+ @supports (row-gap: 11px){
1122
+ .iui-color-picker > div:not(:last-child){
1123
+ margin-bottom:0; } }
1117
1124
 
1118
1125
  .iui-color-palette{
1119
1126
  display:flex;
1120
- flex-wrap:wrap; }
1127
+ flex-wrap:wrap;
1128
+ align-content:flex-start;
1129
+ min-height:24px;
1130
+ min-width:24px; }
1121
1131
  @supports (gap: 8px){
1122
1132
  .iui-color-palette{
1123
1133
  gap:8px; } }
@@ -1126,6 +1136,27 @@ html.iui-theme-dark{
1126
1136
  width:24px;
1127
1137
  padding:0; }
1128
1138
 
1139
+ .iui-color-input{
1140
+ display:flex;
1141
+ align-items:center; }
1142
+ .iui-color-input .iui-button{
1143
+ margin-right:4px; }
1144
+ .iui-color-input-fields{
1145
+ display:flex;
1146
+ width:100%; }
1147
+ .iui-color-input-fields .iui-input:not(:last-child){
1148
+ margin-right:2px; }
1149
+ .iui-color-input-fields input{
1150
+ text-transform:uppercase; }
1151
+ .iui-color-input-fields input[type=number]{
1152
+ -webkit-appearance:textfield;
1153
+ -moz-appearance:textfield;
1154
+ appearance:textfield;
1155
+ text-align:right; }
1156
+ .iui-color-input-fields input[type=number]::-webkit-inner-spin-button{
1157
+ -webkit-appearance:none;
1158
+ appearance:none; }
1159
+
1129
1160
  .iui-color-swatch{
1130
1161
  height:24px;
1131
1162
  width:24px;
@@ -1160,32 +1191,51 @@ html.iui-theme-dark{
1160
1191
  box-shadow:inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)), 0 0 0 2px rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-3));
1161
1192
  box-shadow:inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)), 0 0 0 2px rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-3)); }
1162
1193
 
1163
- .iui-saved-colors{
1164
- margin-top:11px;
1194
+ .iui-color-picker-section-label{
1165
1195
  margin-bottom:5.5px;
1166
1196
  overflow:hidden;
1167
1197
  text-overflow:ellipsis;
1198
+ white-space:nowrap;
1168
1199
  flex-shrink:0; }
1169
1200
 
1170
1201
  .iui-color-selection-wrapper{
1171
- display:flex; }
1202
+ display:flex;
1203
+ flex-direction:column; }
1172
1204
 
1173
1205
  .iui-color-field{
1174
1206
  position:relative;
1175
1207
  cursor:crosshair;
1176
- width:209px;
1177
- height:209px;
1178
- background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--color));
1179
- background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--color)); }
1208
+ width:100%;
1209
+ min-width:312px;
1210
+ height:242px;
1211
+ background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--hue));
1212
+ background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--hue)); }
1180
1213
 
1181
- .iui-color-slider{
1182
- margin-left:12px;
1183
- margin-right:8px;
1184
- position:relative;
1185
- width:8px;
1186
- border-radius:3px;
1187
- background:linear-gradient(#F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%);
1188
- background:linear-gradient(#F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%); }
1214
+ .iui-hue-slider .iui-slider-rail{
1215
+ height:8px;
1216
+ background:linear-gradient(to right, #F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%);
1217
+ background:linear-gradient(to right, #F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%); }
1218
+
1219
+ .iui-hue-slider .iui-slider-thumb{
1220
+ top:7px; }
1221
+
1222
+ .iui-opacity-slider .iui-slider-rail{
1223
+ height:8px;
1224
+ background-image:repeating-linear-gradient(45deg, #EEF0F3 25%, transparent 25%, transparent 75%, #EEF0F3 75%, #EEF0F3), repeating-linear-gradient(45deg, #EEF0F3 25%, #C7CCD1 25%, #C7CCD1 75%, #EEF0F3 75%, #EEF0F3);
1225
+ background-position:0 0, 4px 4px;
1226
+ background-size:8px 8px;
1227
+ background-image:repeating-linear-gradient(45deg, var(--iui-color-background-3) 25%, transparent 25%, transparent 75%, var(--iui-color-background-3) 75%, var(--iui-color-background-3)), repeating-linear-gradient(45deg, var(--iui-color-background-3) 25%, var(--iui-color-background-5) 25%, var(--iui-color-background-5) 75%, var(--iui-color-background-3) 75%, var(--iui-color-background-3));
1228
+ background-position:0 0, 4px 4px;
1229
+ background-size:8px 8px; }
1230
+ .iui-opacity-slider .iui-slider-rail::before{
1231
+ display:block;
1232
+ content:'';
1233
+ width:100%;
1234
+ height:100%;
1235
+ background-image:linear-gradient(to right, transparent 0%, var(--selected-color) 100%); }
1236
+
1237
+ .iui-opacity-slider .iui-slider-thumb{
1238
+ top:7px; }
1189
1239
 
1190
1240
  .iui-color-dot{
1191
1241
  position:absolute;
@@ -1195,21 +1245,11 @@ html.iui-theme-dark{
1195
1245
  height:16px;
1196
1246
  border-radius:50%;
1197
1247
  transform:translate(-8px, -8px);
1198
- cursor:-webkit-grab;
1199
- cursor:grab;
1248
+ cursor:crosshair;
1200
1249
  box-shadow:white 0 0 0 1px, inset 0 0 0 1px rgba(255, 255, 255, 0.1);
1201
1250
  background-color:var(--selected-color);
1202
1251
  box-shadow:rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-1)) 0 0 0 1px, inset 0 0 0 1px rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-6));
1203
1252
  background-color:var(--selected-color); }
1204
- .iui-color-dot:active{
1205
- cursor:-webkit-grabbing;
1206
- cursor:grabbing; }
1207
- .iui-color-dot.iui-white{
1208
- transform:translate(-4px, -9px);
1209
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
1210
- background-color:#FFF;
1211
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
1212
- background-color:#FFF; }
1213
1253
  .iui-color-dot:hover{
1214
1254
  box-shadow:0 0 1px 3px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
1215
1255
  box-shadow:0 0 1px 3px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)); }
@@ -1356,7 +1396,7 @@ html.iui-theme-dark{
1356
1396
  transition:background-color 0.2s ease-out; } }
1357
1397
  .iui-expandable-block > .iui-header > .iui-icon,
1358
1398
  .iui-expandable-block > .iui-header > .iui-status-icon{
1359
- display:block;
1399
+ display:inline-flex;
1360
1400
  flex-shrink:0;
1361
1401
  width:16px;
1362
1402
  height:16px; }
@@ -1463,6 +1503,15 @@ html.iui-theme-dark{
1463
1503
  background-color:var(--iui-color-background-4); }
1464
1504
  .iui-expandable-block.iui-expanded > .iui-header > .iui-icon{
1465
1505
  transform:rotate(90deg); }
1506
+ .iui-expandable-block.iui-small .iui-header{
1507
+ padding:5.5px 8px; }
1508
+ .iui-expandable-block.iui-small .iui-header > .iui-icon{
1509
+ width:12px;
1510
+ height:12px; }
1511
+ .iui-expandable-block.iui-small .iui-header > .iui-expandable-block-label{
1512
+ margin-left:8px; }
1513
+ .iui-expandable-block.iui-small .iui-header > .iui-status-icon{
1514
+ margin-left:8px; }
1466
1515
 
1467
1516
  .iui-fieldset{
1468
1517
  margin:0;
@@ -4304,11 +4353,9 @@ html.iui-theme-dark{
4304
4353
 
4305
4354
  .iui-side-navigation-submenu{
4306
4355
  min-width:192px;
4307
- width:384px;
4308
4356
  max-width:50vw;
4309
4357
  height:100%;
4310
4358
  box-sizing:border-box;
4311
- padding:0 12px 11px;
4312
4359
  overflow-x:hidden;
4313
4360
  overflow-y:auto;
4314
4361
  overflow-y:overlay;
@@ -4324,6 +4371,12 @@ html.iui-theme-dark{
4324
4371
  @media (prefers-reduced-motion: no-preference){
4325
4372
  .iui-side-navigation-submenu.iui-enter-active, .iui-side-navigation-submenu.iui-exit-active{
4326
4373
  transition:opacity 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out; } }
4374
+ .iui-side-navigation-submenu.iui-enter-active, .iui-side-navigation-submenu.iui-exit-active{
4375
+ display:flex; }
4376
+ .iui-side-navigation-submenu-content{
4377
+ padding:0 12px 11px;
4378
+ flex-shrink:0;
4379
+ box-sizing:border-box; }
4327
4380
  .iui-side-navigation-submenu-header{
4328
4381
  height:55px;
4329
4382
  display:flex;
@@ -4346,9 +4399,9 @@ html.iui-theme-dark{
4346
4399
  white-space:nowrap;
4347
4400
  overflow:hidden;
4348
4401
  text-overflow:ellipsis; }
4349
- .iui-side-navigation-submenu-header-label-actions{
4350
- flex-shrink:0;
4351
- margin-left:8px; }
4402
+ .iui-side-navigation-submenu-header-actions{
4403
+ flex-shrink:0;
4404
+ margin-left:8px; }
4352
4405
 
4353
4406
  .iui-side-navigation-wrapper{
4354
4407
  display:flex;
@@ -4356,7 +4409,8 @@ html.iui-theme-dark{
4356
4409
  height:100%; }
4357
4410
 
4358
4411
  .iui-slider-component-container{
4359
- display:flex; }
4412
+ display:flex;
4413
+ min-height:22px; }
4360
4414
  .iui-slider-component-container .iui-slider-min,
4361
4415
  .iui-slider-component-container .iui-slider-max{
4362
4416
  -webkit-user-select:all;
@@ -4608,11 +4662,13 @@ html.iui-theme-dark{
4608
4662
  overflow-x:hidden;
4609
4663
  overflow-y:scroll;
4610
4664
  overflow-y:overlay;
4665
+ display:flex;
4666
+ flex-direction:column;
4667
+ flex-grow:1;
4611
4668
  background-color:#FFF;
4612
4669
  background-color:var(--iui-color-background-1); }
4613
4670
  .iui-table-body .iui-row{
4614
4671
  display:flex;
4615
- flex-grow:1;
4616
4672
  border:solid 1px transparent;
4617
4673
  border-bottom-color:#DCE0E3;
4618
4674
  border-bottom-color:var(--iui-color-background-4); }
@@ -4750,6 +4806,11 @@ html.iui-theme-dark{
4750
4806
  .iui-table-body > .iui-table-empty{
4751
4807
  text-align:center;
4752
4808
  padding:32px;
4809
+ display:flex;
4810
+ flex-direction:column;
4811
+ justify-content:center;
4812
+ align-items:center;
4813
+ flex-grow:1;
4753
4814
  color:rgba(0, 0, 0, 0.4);
4754
4815
  background-color:#FFF;
4755
4816
  color:var(--iui-text-color-muted);
@@ -4816,7 +4877,6 @@ html.iui-theme-dark{
4816
4877
  border:none;
4817
4878
  vertical-align:baseline;
4818
4879
  display:flex;
4819
- flex:1;
4820
4880
  justify-content:space-around;
4821
4881
  align-items:center;
4822
4882
  min-height:55px;
package/css/button.css CHANGED
@@ -7,6 +7,7 @@
7
7
  padding:0;
8
8
  border:none;
9
9
  vertical-align:baseline;
10
+ font-family:inherit;
10
11
  display:inline-flex;
11
12
  align-items:center;
12
13
  vertical-align:middle;
@@ -10,8 +10,6 @@
10
10
  box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
11
11
  background-color:#FFF;
12
12
  background-color:var(--iui-color-background-1);
13
- max-width:336px;
14
- max-height:334px;
15
13
  box-sizing:border-box;
16
14
  border-radius:3px;
17
15
  display:inline-flex;
@@ -20,17 +18,28 @@
20
18
  -moz-user-select:none;
21
19
  -ms-user-select:none;
22
20
  user-select:none;
23
- overflow-y:auto; }
21
+ overflow-y:auto;
22
+ flex-direction:column;
23
+ max-width:336px;
24
+ max-height:495px; }
24
25
  @supports (overflow-y: overlay){
25
26
  .iui-color-picker{
26
27
  overflow-y:overlay; } }
27
- .iui-color-picker.iui-advanced{
28
- max-width:261px;
29
- flex-direction:column; }
28
+ @supports (row-gap: 11px){
29
+ .iui-color-picker{
30
+ row-gap:11px; } }
31
+ .iui-color-picker > div:not(:last-child){
32
+ margin-bottom:11px; }
33
+ @supports (row-gap: 11px){
34
+ .iui-color-picker > div:not(:last-child){
35
+ margin-bottom:0; } }
30
36
 
31
37
  .iui-color-palette{
32
38
  display:flex;
33
- flex-wrap:wrap; }
39
+ flex-wrap:wrap;
40
+ align-content:flex-start;
41
+ min-height:24px;
42
+ min-width:24px; }
34
43
  @supports (gap: 8px){
35
44
  .iui-color-palette{
36
45
  gap:8px; } }
@@ -39,6 +48,27 @@
39
48
  width:24px;
40
49
  padding:0; }
41
50
 
51
+ .iui-color-input{
52
+ display:flex;
53
+ align-items:center; }
54
+ .iui-color-input .iui-button{
55
+ margin-right:4px; }
56
+ .iui-color-input-fields{
57
+ display:flex;
58
+ width:100%; }
59
+ .iui-color-input-fields .iui-input:not(:last-child){
60
+ margin-right:2px; }
61
+ .iui-color-input-fields input{
62
+ text-transform:uppercase; }
63
+ .iui-color-input-fields input[type=number]{
64
+ -webkit-appearance:textfield;
65
+ -moz-appearance:textfield;
66
+ appearance:textfield;
67
+ text-align:right; }
68
+ .iui-color-input-fields input[type=number]::-webkit-inner-spin-button{
69
+ -webkit-appearance:none;
70
+ appearance:none; }
71
+
42
72
  .iui-color-swatch{
43
73
  height:24px;
44
74
  width:24px;
@@ -73,32 +103,51 @@
73
103
  box-shadow:inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)), 0 0 0 2px rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-3));
74
104
  box-shadow:inset 0 0 0 1px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)), 0 0 0 2px rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-3)); }
75
105
 
76
- .iui-saved-colors{
77
- margin-top:11px;
106
+ .iui-color-picker-section-label{
78
107
  margin-bottom:5.5px;
79
108
  overflow:hidden;
80
109
  text-overflow:ellipsis;
110
+ white-space:nowrap;
81
111
  flex-shrink:0; }
82
112
 
83
113
  .iui-color-selection-wrapper{
84
- display:flex; }
114
+ display:flex;
115
+ flex-direction:column; }
85
116
 
86
117
  .iui-color-field{
87
118
  position:relative;
88
119
  cursor:crosshair;
89
- width:209px;
90
- height:209px;
91
- background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--color));
92
- background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--color)); }
120
+ width:100%;
121
+ min-width:312px;
122
+ height:242px;
123
+ background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--hue));
124
+ background-image:linear-gradient(0deg, black, transparent), linear-gradient(90deg, white, var(--hue)); }
93
125
 
94
- .iui-color-slider{
95
- margin-left:12px;
96
- margin-right:8px;
97
- position:relative;
98
- width:8px;
99
- border-radius:3px;
100
- background:linear-gradient(#F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%);
101
- background:linear-gradient(#F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%); }
126
+ .iui-hue-slider .iui-slider-rail{
127
+ height:8px;
128
+ background:linear-gradient(to right, #F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%);
129
+ background:linear-gradient(to right, #F00 0%, #FF0 17%, lime 33%, cyan 50%, #03F 67%, #C3F 83%, #F00 100%); }
130
+
131
+ .iui-hue-slider .iui-slider-thumb{
132
+ top:7px; }
133
+
134
+ .iui-opacity-slider .iui-slider-rail{
135
+ height:8px;
136
+ background-image:repeating-linear-gradient(45deg, #EEF0F3 25%, transparent 25%, transparent 75%, #EEF0F3 75%, #EEF0F3), repeating-linear-gradient(45deg, #EEF0F3 25%, #C7CCD1 25%, #C7CCD1 75%, #EEF0F3 75%, #EEF0F3);
137
+ background-position:0 0, 4px 4px;
138
+ background-size:8px 8px;
139
+ background-image:repeating-linear-gradient(45deg, var(--iui-color-background-3) 25%, transparent 25%, transparent 75%, var(--iui-color-background-3) 75%, var(--iui-color-background-3)), repeating-linear-gradient(45deg, var(--iui-color-background-3) 25%, var(--iui-color-background-5) 25%, var(--iui-color-background-5) 75%, var(--iui-color-background-3) 75%, var(--iui-color-background-3));
140
+ background-position:0 0, 4px 4px;
141
+ background-size:8px 8px; }
142
+ .iui-opacity-slider .iui-slider-rail::before{
143
+ display:block;
144
+ content:'';
145
+ width:100%;
146
+ height:100%;
147
+ background-image:linear-gradient(to right, transparent 0%, var(--selected-color) 100%); }
148
+
149
+ .iui-opacity-slider .iui-slider-thumb{
150
+ top:7px; }
102
151
 
103
152
  .iui-color-dot{
104
153
  position:absolute;
@@ -108,21 +157,11 @@
108
157
  height:16px;
109
158
  border-radius:50%;
110
159
  transform:translate(-8px, -8px);
111
- cursor:-webkit-grab;
112
- cursor:grab;
160
+ cursor:crosshair;
113
161
  box-shadow:white 0 0 0 1px, inset 0 0 0 1px rgba(255, 255, 255, 0.1);
114
162
  background-color:var(--selected-color);
115
163
  box-shadow:rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-1)) 0 0 0 1px, inset 0 0 0 1px rgba(var(--iui-color-foreground-accessory-rgb), var(--iui-opacity-6));
116
164
  background-color:var(--selected-color); }
117
- .iui-color-dot:active{
118
- cursor:-webkit-grabbing;
119
- cursor:grabbing; }
120
- .iui-color-dot.iui-white{
121
- transform:translate(-4px, -9px);
122
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
123
- background-color:#FFF;
124
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
125
- background-color:#FFF; }
126
165
  .iui-color-dot:hover{
127
166
  box-shadow:0 0 1px 3px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
128
167
  box-shadow:0 0 1px 3px rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5)); }
@@ -34,7 +34,7 @@
34
34
  transition:background-color 0.2s ease-out; } }
35
35
  .iui-expandable-block > .iui-header > .iui-icon,
36
36
  .iui-expandable-block > .iui-header > .iui-status-icon{
37
- display:block;
37
+ display:inline-flex;
38
38
  flex-shrink:0;
39
39
  width:16px;
40
40
  height:16px; }
@@ -141,3 +141,12 @@
141
141
  background-color:var(--iui-color-background-4); }
142
142
  .iui-expandable-block.iui-expanded > .iui-header > .iui-icon{
143
143
  transform:rotate(90deg); }
144
+ .iui-expandable-block.iui-small .iui-header{
145
+ padding:5.5px 8px; }
146
+ .iui-expandable-block.iui-small .iui-header > .iui-icon{
147
+ width:12px;
148
+ height:12px; }
149
+ .iui-expandable-block.iui-small .iui-header > .iui-expandable-block-label{
150
+ margin-left:8px; }
151
+ .iui-expandable-block.iui-small .iui-header > .iui-status-icon{
152
+ margin-left:8px; }
@@ -120,11 +120,9 @@
120
120
 
121
121
  .iui-side-navigation-submenu{
122
122
  min-width:192px;
123
- width:384px;
124
123
  max-width:50vw;
125
124
  height:100%;
126
125
  box-sizing:border-box;
127
- padding:0 12px 11px;
128
126
  overflow-x:hidden;
129
127
  overflow-y:auto;
130
128
  overflow-y:overlay;
@@ -140,6 +138,12 @@
140
138
  @media (prefers-reduced-motion: no-preference){
141
139
  .iui-side-navigation-submenu.iui-enter-active, .iui-side-navigation-submenu.iui-exit-active{
142
140
  transition:opacity 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out; } }
141
+ .iui-side-navigation-submenu.iui-enter-active, .iui-side-navigation-submenu.iui-exit-active{
142
+ display:flex; }
143
+ .iui-side-navigation-submenu-content{
144
+ padding:0 12px 11px;
145
+ flex-shrink:0;
146
+ box-sizing:border-box; }
143
147
  .iui-side-navigation-submenu-header{
144
148
  height:55px;
145
149
  display:flex;
@@ -162,9 +166,9 @@
162
166
  white-space:nowrap;
163
167
  overflow:hidden;
164
168
  text-overflow:ellipsis; }
165
- .iui-side-navigation-submenu-header-label-actions{
166
- flex-shrink:0;
167
- margin-left:8px; }
169
+ .iui-side-navigation-submenu-header-actions{
170
+ flex-shrink:0;
171
+ margin-left:8px; }
168
172
 
169
173
  .iui-side-navigation-wrapper{
170
174
  display:flex;
package/css/slider.css CHANGED
@@ -3,7 +3,8 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  .iui-slider-component-container{
6
- display:flex; }
6
+ display:flex;
7
+ min-height:22px; }
7
8
  .iui-slider-component-container .iui-slider-min,
8
9
  .iui-slider-component-container .iui-slider-max{
9
10
  -webkit-user-select:all;
package/css/table.css CHANGED
@@ -119,11 +119,13 @@
119
119
  overflow-x:hidden;
120
120
  overflow-y:scroll;
121
121
  overflow-y:overlay;
122
+ display:flex;
123
+ flex-direction:column;
124
+ flex-grow:1;
122
125
  background-color:#FFF;
123
126
  background-color:var(--iui-color-background-1); }
124
127
  .iui-table-body .iui-row{
125
128
  display:flex;
126
- flex-grow:1;
127
129
  border:solid 1px transparent;
128
130
  border-bottom-color:#DCE0E3;
129
131
  border-bottom-color:var(--iui-color-background-4); }
@@ -261,6 +263,11 @@
261
263
  .iui-table-body > .iui-table-empty{
262
264
  text-align:center;
263
265
  padding:32px;
266
+ display:flex;
267
+ flex-direction:column;
268
+ justify-content:center;
269
+ align-items:center;
270
+ flex-grow:1;
264
271
  color:rgba(0, 0, 0, 0.4);
265
272
  background-color:#FFF;
266
273
  color:var(--iui-text-color-muted);
@@ -327,7 +334,6 @@
327
334
  border:none;
328
335
  vertical-align:baseline;
329
336
  display:flex;
330
- flex:1;
331
337
  justify-content:space-around;
332
338
  align-items:center;
333
339
  min-height:55px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -9,6 +9,7 @@ $iui-button-padding-large: $iui-xs * 6;
9
9
 
10
10
  @mixin iui-button {
11
11
  @include iui-reset;
12
+ font-family: inherit;
12
13
  display: inline-flex;
13
14
  align-items: center;
14
15
  vertical-align: middle;
@@ -10,12 +10,16 @@
10
10
  @include iui-color-palette;
11
11
  }
12
12
 
13
+ .iui-color-input {
14
+ @include iui-color-input;
15
+ }
16
+
13
17
  .iui-color-swatch {
14
18
  @include iui-color-swatch;
15
19
  }
16
20
 
17
- .iui-saved-colors {
18
- @include iui-saved-colors;
21
+ .iui-color-picker-section-label {
22
+ @include iui-color-picker-section-label;
19
23
  }
20
24
 
21
25
  .iui-color-selection-wrapper {
@@ -26,8 +30,12 @@
26
30
  @include iui-color-field;
27
31
  }
28
32
 
29
- .iui-color-slider {
30
- @include iui-color-slider;
33
+ .iui-hue-slider {
34
+ @include iui-hue-slider;
35
+ }
36
+
37
+ .iui-opacity-slider {
38
+ @include iui-opacity-slider;
31
39
  }
32
40
 
33
41
  .iui-color-dot {
@@ -4,7 +4,7 @@
4
4
  @import '../menu/index';
5
5
  @import '../button/borderless';
6
6
 
7
- $iui-color-field-size: $iui-baseline * 19;
7
+ $iui-color-picker-content-width: ($iui-l * 10) + ($iui-s * 9); // (10 swatches per row) + (gaps)
8
8
  $iui-color-swatch-border-radius: 5px;
9
9
  $iui-inset-box-shadow: inset 0 0 0 1px rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
10
10
  $iui-active-box-shadow: 0 0 0 $iui-xxs rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-3));
@@ -13,24 +13,27 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
13
13
 
14
14
  @mixin iui-color-picker {
15
15
  @include iui-dropdown;
16
- max-width: ($iui-l * 10) + ($iui-s * 9) + ($iui-sm * 2);
17
- // max-width: (10 swatches per row) + (gaps) + (container padding)
18
- max-height: ($iui-l * 10) + ($iui-s * 9) + ($iui-baseline * 2);
19
- // max-height: (10 rows) + (gaps) + (container padding)
20
16
  box-sizing: border-box;
21
17
  border-radius: $iui-border-radius;
22
18
  display: inline-flex;
23
19
  padding: $iui-baseline $iui-sm;
24
20
  user-select: none;
25
21
  overflow-y: auto;
22
+ flex-direction: column;
23
+ max-width: $iui-color-picker-content-width + ($iui-sm * 2);
24
+ max-height: $iui-baseline * 45;
26
25
  @supports (overflow-y: overlay) {
27
26
  overflow-y: overlay;
28
27
  }
28
+ @supports (row-gap: $iui-baseline) {
29
+ row-gap: $iui-baseline;
30
+ }
29
31
 
30
- &.iui-advanced {
31
- max-width: ($iui-color-field-size) + ($iui-sm) + ($iui-s) + ($iui-s) + ($iui-sm * 2);
32
- // max-width: (color field width) + (color slider margins) + (color slider width) + (container padding);
33
- flex-direction: column;
32
+ > div:not(:last-child) {
33
+ margin-bottom: $iui-baseline;
34
+ @supports (row-gap: $iui-baseline) {
35
+ margin-bottom: 0;
36
+ }
34
37
  }
35
38
  }
36
39
 
@@ -94,6 +97,9 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
94
97
  //Contains the color swatches
95
98
  display: flex;
96
99
  flex-wrap: wrap;
100
+ align-content: flex-start;
101
+ min-height: $iui-l;
102
+ min-width: $iui-l;
97
103
  @supports (gap: $iui-s) {
98
104
  gap: $iui-s;
99
105
  }
@@ -105,39 +111,67 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
105
111
  }
106
112
  }
107
113
 
108
- @mixin iui-saved-colors {
109
- margin-top: $iui-baseline;
114
+ @mixin iui-color-input {
115
+ display: flex;
116
+ align-items: center;
117
+
118
+ .iui-button {
119
+ margin-right: $iui-xs;
120
+ }
121
+
122
+ &-fields {
123
+ display: flex;
124
+ width: 100%;
125
+
126
+ .iui-input:not(:last-child) {
127
+ margin-right: $iui-xxs;
128
+ }
129
+
130
+ input {
131
+ text-transform: uppercase;
132
+ }
133
+
134
+ input[type=number] {
135
+ appearance: textfield;
136
+ text-align: right;
137
+
138
+ &::-webkit-inner-spin-button {
139
+ appearance: none;
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ @mixin iui-color-picker-section-label {
110
146
  margin-bottom: $iui-baseline * 0.5;
111
147
  overflow: hidden;
112
148
  text-overflow: ellipsis;
149
+ white-space: nowrap;
113
150
  flex-shrink: 0;
114
151
  }
115
152
 
116
153
  @mixin iui-color-selection-wrapper {
117
154
  display: flex;
155
+ flex-direction: column;
118
156
  }
119
157
 
120
158
  @mixin iui-color-field {
121
159
  position: relative;
122
160
  cursor: crosshair;
123
- width: $iui-color-field-size;
124
- height: $iui-color-field-size;
125
-
161
+ width: 100%;
162
+ min-width: $iui-color-picker-content-width;
163
+ height: $iui-baseline * 22;
126
164
  @include themed {
127
165
  background-image: linear-gradient(0deg, rgb(0, 0, 0), transparent),
128
- linear-gradient(90deg, rgb(255, 255, 255), var(--color));
166
+ linear-gradient(90deg, rgb(255, 255, 255), var(--hue));
129
167
  }
130
168
  }
131
169
 
132
- @mixin iui-color-slider {
133
- margin-left: $iui-sm;
134
- margin-right: $iui-s;
135
- position: relative;
136
- width: $iui-s;
137
- border-radius: $iui-border-radius;
138
-
139
- @include themed {
140
- background: linear-gradient(
170
+ @mixin iui-hue-slider {
171
+ .iui-slider-rail {
172
+ height: $iui-s;
173
+ @include themed {
174
+ background: linear-gradient(to right,
141
175
  $iui-color-system-red 0%,
142
176
  $iui-color-system-yellow 17%,
143
177
  rgb(0, 255, 0) 33%,
@@ -146,6 +180,39 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
146
180
  $iui-color-system-magenta 83%,
147
181
  $iui-color-system-red 100%
148
182
  );
183
+ }
184
+ }
185
+
186
+ .iui-slider-thumb {
187
+ top: 7px;
188
+ }
189
+ }
190
+
191
+ @mixin iui-opacity-slider {
192
+ .iui-slider-rail {
193
+ height: $iui-s;
194
+ @include themed {
195
+ // Checkered transparency background pattern.
196
+ background-image: repeating-linear-gradient(45deg, t(iui-color-background-3) 25%, transparent 25%, transparent 75%, t(iui-color-background-3) 75%, t(iui-color-background-3)), repeating-linear-gradient(45deg, t(iui-color-background-3) 25%, t(iui-color-background-5) 25%, t(iui-color-background-5) 75%, t(iui-color-background-3) 75%, t(iui-color-background-3));
197
+ background-position: 0 0, ($iui-s * 0.5) ($iui-s * 0.5);
198
+ background-size: $iui-s $iui-s;
199
+ }
200
+
201
+ &::before {
202
+ display: block;
203
+ content: '';
204
+ width: 100%;
205
+ height: 100%;
206
+ background-image:
207
+ linear-gradient(to right,
208
+ transparent 0%,
209
+ var(--selected-color) 100%
210
+ );
211
+ }
212
+ }
213
+
214
+ .iui-slider-thumb {
215
+ top: 7px;
149
216
  }
150
217
  }
151
218
 
@@ -157,25 +224,13 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
157
224
  height: $iui-m;
158
225
  border-radius: 50%;
159
226
  transform: translate(-$iui-s, -$iui-s);
160
- cursor: grab;
227
+ cursor: crosshair;
161
228
  @include themed {
162
229
  box-shadow: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-1)) 0 0 0 $iui-xxs - 1,
163
230
  inset 0 0 0 $iui-xxs - 1 rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-6));
164
231
  background-color: var(--selected-color);
165
232
  }
166
233
 
167
- &:active {
168
- cursor: grabbing;
169
- }
170
-
171
- &.iui-white {
172
- transform: translate(-4px, -9px);
173
- @include themed {
174
- box-shadow: $iui-elevation-2;
175
- background-color: #FFF;
176
- }
177
- }
178
-
179
234
  &:hover {
180
235
  @include themed {
181
236
  box-shadow: $iui-hover-box-shadow;
@@ -32,7 +32,7 @@
32
32
 
33
33
  > .iui-icon,
34
34
  > .iui-status-icon {
35
- display: block;
35
+ display: inline-flex;
36
36
  flex-shrink: 0;
37
37
  width: $iui-icons-default;
38
38
  height: $iui-icons-default;
@@ -149,4 +149,21 @@
149
149
  }
150
150
  }
151
151
  }
152
+
153
+ &.iui-small .iui-header {
154
+ padding: ($iui-baseline * 0.5) $iui-s;
155
+
156
+ > .iui-icon {
157
+ width: $iui-icons-small;
158
+ height: $iui-icons-small;
159
+ }
160
+
161
+ > .iui-expandable-block-label {
162
+ margin-left: $iui-s;
163
+ }
164
+
165
+ > .iui-status-icon {
166
+ margin-left: $iui-s;
167
+ }
168
+ }
152
169
  }
@@ -3,7 +3,7 @@
3
3
  @import './index';
4
4
 
5
5
  @each $status in primary, positive, warning, negative, accessory {
6
- &.iui-notification-#{$status} {
6
+ .iui-notification-#{$status} {
7
7
  @include iui-notification-marker($status: $status);
8
8
  }
9
9
  }
@@ -174,11 +174,9 @@
174
174
 
175
175
  @mixin iui-side-navigation-submenu {
176
176
  min-width: $iui-3xl * 2;
177
- width: $iui-3xl * 4;
178
177
  max-width: 50vw;
179
178
  height: 100%;
180
179
  box-sizing: border-box;
181
- padding: 0 $iui-sm $iui-baseline;
182
180
  overflow-x: hidden;
183
181
  overflow-y: auto;
184
182
  overflow-y: overlay;
@@ -190,6 +188,17 @@
190
188
 
191
189
  @include iui-transition-group;
192
190
 
191
+ &.iui-enter-active,
192
+ &.iui-exit-active {
193
+ display: flex;
194
+ }
195
+
196
+ &-content {
197
+ padding: 0 $iui-sm $iui-baseline;
198
+ flex-shrink: 0;
199
+ box-sizing: border-box;
200
+ }
201
+
193
202
  &-header {
194
203
  height: $iui-baseline * 5;
195
204
  display: flex;
@@ -211,11 +220,11 @@
211
220
  overflow: hidden;
212
221
  text-overflow: ellipsis;
213
222
  }
223
+ }
214
224
 
215
- &-actions {
216
- flex-shrink: 0;
217
- margin-left: $iui-s;
218
- }
225
+ &-actions {
226
+ flex-shrink: 0;
227
+ margin-left: $iui-s;
219
228
  }
220
229
  }
221
230
  }
@@ -9,6 +9,7 @@ $tick-height: $iui-baseline; // 11px
9
9
 
10
10
  @mixin iui-slider-component-container {
11
11
  display: flex;
12
+ min-height: $iui-baseline * 2;
12
13
 
13
14
  .iui-slider-min,
14
15
  .iui-slider-max {
@@ -140,7 +140,7 @@
140
140
  }
141
141
 
142
142
  /// Classes for react-transition-group
143
- /// Used for expand/collapse transitions. Needs height to be set in JS.
143
+ /// Used for expand/collapse transitions. Needs height/width to be set in JS.
144
144
  @mixin iui-transition-group {
145
145
  &.iui-enter,
146
146
  &.iui-exit-active {
@@ -8,7 +8,6 @@
8
8
  @mixin iui-paginator {
9
9
  @include iui-reset;
10
10
  display: flex;
11
- flex: 1;
12
11
  justify-content: space-around;
13
12
  align-items: center;
14
13
  min-height: $iui-baseline * 5;
@@ -126,6 +126,9 @@
126
126
  overflow-x: hidden;
127
127
  overflow-y: scroll;
128
128
  overflow-y: overlay;
129
+ display: flex;
130
+ flex-direction: column;
131
+ flex-grow: 1;
129
132
 
130
133
  @include themed {
131
134
  background-color: t(iui-color-background-1);
@@ -133,7 +136,6 @@
133
136
 
134
137
  .iui-row {
135
138
  display: flex;
136
- flex-grow: 1;
137
139
  border: solid 1px transparent;
138
140
  @media (prefers-reduced-motion: no-preference) {
139
141
  transition: border $iui-speed-fast ease-out;
@@ -292,6 +294,11 @@
292
294
  > .iui-table-empty {
293
295
  text-align: center;
294
296
  padding: $iui-xl;
297
+ display: flex;
298
+ flex-direction: column;
299
+ justify-content: center;
300
+ align-items: center;
301
+ flex-grow: 1;
295
302
  @include themed {
296
303
  color: t(iui-text-color-muted);
297
304
  background-color: t(iui-color-background-1);