@itwin/itwinui-css 0.61.0 → 0.63.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/CHANGELOG.md +26 -0
- package/css/alert.css +5 -0
- package/css/all.css +370 -82
- package/css/code.css +2 -0
- package/css/color-picker.css +5 -5
- package/css/dialog.css +3 -1
- package/css/expandable-block.css +5 -0
- package/css/file-upload.css +6 -0
- package/css/footer.css +28 -28
- package/css/header.css +5 -0
- package/css/icon.css +30 -0
- package/css/side-navigation.css +5 -0
- package/css/slider.css +161 -46
- package/css/table.css +2 -2
- package/css/tabs.css +6 -0
- package/css/tile.css +102 -0
- package/css/tree.css +5 -0
- package/package.json +12 -8
- package/scss/code/codeblock.scss +1 -0
- package/scss/color-picker/color-picker.scss +35 -31
- package/scss/dialog/dialog.scss +3 -1
- package/scss/footer/classes.scss +16 -0
- package/scss/footer/footer.scss +38 -41
- package/scss/icon/mixins.scss +3 -0
- package/scss/slider/classes.scss +13 -0
- package/scss/slider/slider.scss +146 -36
- package/scss/table/table.scss +5 -1
- package/scss/tabs/default.scss +8 -0
- package/scss/tile/classes.scss +12 -0
- package/scss/tile/tile.scss +49 -0
package/scss/slider/slider.scss
CHANGED
|
@@ -9,30 +9,18 @@ $tick-height: $iui-baseline; // 11px
|
|
|
9
9
|
|
|
10
10
|
@mixin iui-slider-component-container {
|
|
11
11
|
display: flex;
|
|
12
|
-
min-height: $iui-baseline * 2;
|
|
13
|
-
|
|
14
|
-
.iui-slider-min,
|
|
15
|
-
.iui-slider-max {
|
|
16
|
-
user-select: all;
|
|
17
|
-
margin-top: $iui-xxs;
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin-top: $iui-xs;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.iui-slider-min {
|
|
26
|
-
margin-right: $iui-sm;
|
|
27
|
-
text-align: right;
|
|
13
|
+
&.iui-disabled {
|
|
14
|
+
@include iui-slider-disabled;
|
|
28
15
|
}
|
|
16
|
+
}
|
|
29
17
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
18
|
+
@mixin iui-slider-endpoints {
|
|
19
|
+
user-select: all;
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
@include iui-
|
|
21
|
+
svg {
|
|
22
|
+
@include iui-icons-default;
|
|
23
|
+
margin-top: $iui-xs;
|
|
36
24
|
}
|
|
37
25
|
}
|
|
38
26
|
|
|
@@ -49,12 +37,12 @@ $tick-height: $iui-baseline; // 11px
|
|
|
49
37
|
|
|
50
38
|
@mixin iui-slider-rail {
|
|
51
39
|
position: absolute;
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: $track-height;
|
|
54
|
-
top: $iui-sm;
|
|
55
40
|
@include themed {
|
|
56
41
|
background-color: t(iui-color-background-border);
|
|
57
42
|
}
|
|
43
|
+
@media (forced-colors: active) {
|
|
44
|
+
background-color: CanvasText;
|
|
45
|
+
}
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
@mixin iui-slider-thumb {
|
|
@@ -62,10 +50,6 @@ $tick-height: $iui-baseline; // 11px
|
|
|
62
50
|
height: $thumb-height;
|
|
63
51
|
width: $thumb-height;
|
|
64
52
|
border-radius: 100%;
|
|
65
|
-
top: $track-height + 1; // position center of thumb in center of track
|
|
66
|
-
transform: translateX(
|
|
67
|
-
(-$thumb-height - 2) * 0.5
|
|
68
|
-
); // Adjust the left (set in code) by radius of thumb so thumb center is at value position
|
|
69
53
|
z-index: 1;
|
|
70
54
|
cursor: grab;
|
|
71
55
|
@include iui-focus($thickness: 2px);
|
|
@@ -73,6 +57,10 @@ $tick-height: $iui-baseline; // 11px
|
|
|
73
57
|
background: t(iui-color-background-1);
|
|
74
58
|
border: 1px solid t(iui-color-background-border);
|
|
75
59
|
}
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
background: Canvas;
|
|
62
|
+
border: 1px solid CanvasText;
|
|
63
|
+
}
|
|
76
64
|
|
|
77
65
|
&:active {
|
|
78
66
|
cursor: grabbing;
|
|
@@ -82,17 +70,17 @@ $tick-height: $iui-baseline; // 11px
|
|
|
82
70
|
@mixin iui-slider-track {
|
|
83
71
|
pointer-events: none;
|
|
84
72
|
position: absolute;
|
|
85
|
-
height: $track-height;
|
|
86
|
-
left: 0;
|
|
87
73
|
top: $iui-sm;
|
|
88
74
|
@include themed {
|
|
89
75
|
background-color: t(iui-color-foreground-primary);
|
|
90
76
|
}
|
|
77
|
+
@media (forced-colors: active) {
|
|
78
|
+
background-color: Highlight;
|
|
79
|
+
}
|
|
91
80
|
}
|
|
92
81
|
|
|
93
82
|
@mixin iui-slider-ticks {
|
|
94
83
|
position: relative;
|
|
95
|
-
padding-top: $iui-m;
|
|
96
84
|
display: flex;
|
|
97
85
|
pointer-events: none;
|
|
98
86
|
justify-content: space-between;
|
|
@@ -103,12 +91,15 @@ $tick-height: $iui-baseline; // 11px
|
|
|
103
91
|
display: flex;
|
|
104
92
|
pointer-events: none;
|
|
105
93
|
justify-content: center;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
94
|
+
align-items: center;
|
|
95
|
+
|
|
96
|
+
&::before {
|
|
97
|
+
@include themed {
|
|
98
|
+
background-color: t(iui-color-background-4);
|
|
99
|
+
}
|
|
100
|
+
@media (forced-colors: active) {
|
|
101
|
+
background-color: CanvasText;
|
|
102
|
+
}
|
|
112
103
|
}
|
|
113
104
|
}
|
|
114
105
|
}
|
|
@@ -127,12 +118,19 @@ $tick-height: $iui-baseline; // 11px
|
|
|
127
118
|
background-color: t(iui-color-background-4);
|
|
128
119
|
border-color: t(iui-color-background-4);
|
|
129
120
|
}
|
|
121
|
+
@media (forced-colors: active) {
|
|
122
|
+
background-color: GrayText;
|
|
123
|
+
border-color: GrayText;
|
|
124
|
+
}
|
|
130
125
|
}
|
|
131
126
|
|
|
132
127
|
.iui-slider-track {
|
|
133
128
|
@include themed {
|
|
134
129
|
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
135
130
|
}
|
|
131
|
+
@media (forced-colors: active) {
|
|
132
|
+
background-color: GrayText;
|
|
133
|
+
}
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
.iui-slider-min,
|
|
@@ -142,5 +140,117 @@ $tick-height: $iui-baseline; // 11px
|
|
|
142
140
|
@include themed {
|
|
143
141
|
color: t(iui-text-color-muted);
|
|
144
142
|
}
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
color: GrayText;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@mixin iui-slider-horizontal {
|
|
150
|
+
min-height: $iui-baseline * 2;
|
|
151
|
+
|
|
152
|
+
.iui-slider-rail {
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: $track-height;
|
|
155
|
+
top: $iui-sm;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.iui-slider-thumb {
|
|
159
|
+
top: $track-height + 1; // position center of thumb in center of track
|
|
160
|
+
transform: translateX(
|
|
161
|
+
-50%
|
|
162
|
+
); // Adjust the left (set in code) by radius of thumb so thumb center is at value position
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.iui-slider-track {
|
|
166
|
+
height: $track-height;
|
|
167
|
+
left: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.iui-slider-ticks {
|
|
171
|
+
padding-top: $iui-m;
|
|
172
|
+
|
|
173
|
+
.iui-slider-tick {
|
|
174
|
+
flex-direction: column;
|
|
175
|
+
width: 1px;
|
|
176
|
+
|
|
177
|
+
&::before {
|
|
178
|
+
content: '';
|
|
179
|
+
width: 1px;
|
|
180
|
+
height: $tick-height;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.iui-slider-min,
|
|
186
|
+
.iui-slider-max {
|
|
187
|
+
margin-top: $iui-xxs;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.iui-slider-min {
|
|
191
|
+
margin-right: $iui-sm;
|
|
192
|
+
text-align: right;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.iui-slider-max {
|
|
196
|
+
margin-left: $iui-sm;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@mixin iui-slider-vertical {
|
|
201
|
+
flex-direction: column-reverse;
|
|
202
|
+
min-width: $iui-baseline * 2;
|
|
203
|
+
height: 100%;
|
|
204
|
+
|
|
205
|
+
.iui-slider-rail {
|
|
206
|
+
width: $track-height;
|
|
207
|
+
height: 100%;
|
|
208
|
+
left: $iui-sm;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.iui-slider-thumb {
|
|
212
|
+
transform: translateY(
|
|
213
|
+
50%
|
|
214
|
+
); // Adjust the bottom (set in code) by radius of thumb so thumb center is at value position
|
|
215
|
+
left: $track-height + 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.iui-slider-track {
|
|
219
|
+
width: $track-height;
|
|
220
|
+
bottom: 0;
|
|
221
|
+
left: $iui-sm;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.iui-slider-ticks {
|
|
225
|
+
padding-left: $iui-m;
|
|
226
|
+
flex-direction: column-reverse;
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
height: 100%;
|
|
229
|
+
|
|
230
|
+
.iui-slider-tick {
|
|
231
|
+
flex: row;
|
|
232
|
+
height: 1px;
|
|
233
|
+
|
|
234
|
+
&::before {
|
|
235
|
+
content: '';
|
|
236
|
+
width: $tick-height;
|
|
237
|
+
height: 1px;
|
|
238
|
+
margin-right: $tick-height * 1;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.iui-slider-min,
|
|
244
|
+
.iui-slider-max {
|
|
245
|
+
margin-left: $iui-xxs;
|
|
246
|
+
text-align: center;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.iui-slider-min {
|
|
250
|
+
margin-top: $iui-sm;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.iui-slider-max {
|
|
254
|
+
margin-bottom: $iui-sm;
|
|
145
255
|
}
|
|
146
256
|
}
|
package/scss/table/table.scss
CHANGED
|
@@ -195,7 +195,11 @@
|
|
|
195
195
|
|
|
196
196
|
&.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected) .iui-cell {
|
|
197
197
|
@include themed {
|
|
198
|
-
background
|
|
198
|
+
background: linear-gradient(
|
|
199
|
+
rgba(t(iui-color-foreground-body-rgb), 0.02),
|
|
200
|
+
rgba(t(iui-color-foreground-body-rgb), 0.02)
|
|
201
|
+
),
|
|
202
|
+
linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
205
|
|
package/scss/tabs/default.scss
CHANGED
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
~ .iui-tabs-content {
|
|
57
57
|
margin-top: -1px;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
:where(.iui-button) {
|
|
61
|
+
height: 100%;
|
|
62
|
+
}
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
|
|
@@ -72,6 +76,10 @@
|
|
|
72
76
|
~ .iui-tabs-content {
|
|
73
77
|
margin-left: -1px;
|
|
74
78
|
}
|
|
79
|
+
|
|
80
|
+
:where(.iui-button) {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
|
package/scss/tile/classes.scss
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
.iui-tile {
|
|
6
6
|
@include iui-tile;
|
|
7
|
+
|
|
8
|
+
&.iui-positive {
|
|
9
|
+
@include iui-tile-status(positive);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.iui-warning {
|
|
13
|
+
@include iui-tile-status(warning);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.iui-negative {
|
|
17
|
+
@include iui-tile-status(negative);
|
|
18
|
+
}
|
|
7
19
|
}
|
|
8
20
|
|
|
9
21
|
.iui-tile-thumbnail-type-indicator {
|
package/scss/tile/tile.scss
CHANGED
|
@@ -87,6 +87,35 @@
|
|
|
87
87
|
-webkit-line-clamp: 2;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
//#region Statuses
|
|
92
|
+
&.iui-progress {
|
|
93
|
+
cursor: progress;
|
|
94
|
+
font-style: italic;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&[aria-disabled='true'] {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
|
|
100
|
+
.iui-tile-name-label {
|
|
101
|
+
color: var(--iui-text-color-muted);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.iui-thumbnail-icon,
|
|
105
|
+
.iui-tile-thumbnail-picture {
|
|
106
|
+
filter: grayscale(100%);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:hover .iui-tile-thumbnail-picture,
|
|
110
|
+
&:focus-within .iui-tile-thumbnail-picture {
|
|
111
|
+
transform: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.iui-tile-more-options {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//#endregion Statuses
|
|
90
119
|
}
|
|
91
120
|
|
|
92
121
|
@mixin iui-tile-content {
|
|
@@ -319,3 +348,23 @@
|
|
|
319
348
|
@include visually-hidden;
|
|
320
349
|
}
|
|
321
350
|
}
|
|
351
|
+
|
|
352
|
+
@mixin iui-tile-status($status) {
|
|
353
|
+
@include iui-text-selection($status);
|
|
354
|
+
|
|
355
|
+
.iui-tile-thumbnail {
|
|
356
|
+
box-shadow: 0 $iui-xs 0 var(--iui-color-foreground-#{$status});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@at-root &.iui-folder .iui-tile-thumbnail {
|
|
360
|
+
box-shadow: $iui-xs 0 0 var(--iui-color-foreground-#{$status});
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.iui-tile-name-label {
|
|
364
|
+
color: var(--iui-color-foreground-#{$status});
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.iui-tile-status-icon {
|
|
368
|
+
fill: var(--iui-color-foreground-#{$status});
|
|
369
|
+
}
|
|
370
|
+
}
|