@itwin/itwinui-css 0.37.2 → 0.40.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 +563 -367
- package/css/breadcrumbs.css +26 -15
- package/css/button.css +192 -137
- package/css/code.css +2 -0
- package/css/color-picker.css +2 -0
- package/css/date-picker.css +2 -0
- package/css/header.css +134 -91
- package/css/information-panel.css +26 -0
- package/css/inputs.css +79 -43
- package/css/menu.css +3 -3
- package/css/side-navigation.css +27 -24
- package/css/table.css +9 -2
- package/css/tabs.css +15 -12
- package/css/tile.css +46 -40
- package/package.json +6 -2
- package/scss/breadcrumbs/breadcrumbs.scss +1 -1
- package/scss/button/borderless.scss +31 -46
- package/scss/button/button-group.scss +6 -15
- package/scss/button/button-icon.scss +12 -0
- package/scss/button/button.scss +28 -35
- package/scss/button/classes.scss +25 -3
- package/scss/button/cta.scss +22 -19
- package/scss/button/default.scss +29 -41
- package/scss/button/disabled.scss +3 -14
- package/scss/button/high-visibility.scss +22 -19
- package/scss/button/index.scss +1 -0
- package/scss/button/split-menu.scss +7 -8
- package/scss/code/codeblock.scss +4 -0
- package/scss/color-picker/color-picker.scss +16 -1
- package/scss/date-picker/date-picker.scss +2 -8
- package/scss/header/classes.scss +4 -0
- package/scss/header/header.scss +72 -60
- package/scss/information-panel/classes.scss +4 -0
- package/scss/information-panel/information-panel.scss +37 -0
- package/scss/inputs/checkbox-radio.scss +9 -9
- package/scss/inputs/checkbox.scss +36 -0
- package/scss/inputs/classes.scss +5 -1
- package/scss/inputs/labeled-inputs.scss +41 -16
- package/scss/inputs/radio-tile.scss +2 -4
- package/scss/keyboard/keyboard.scss +2 -4
- package/scss/location-marker/data-rich.scss +1 -2
- package/scss/menu/menu.scss +3 -11
- package/scss/modal/modal.scss +1 -2
- package/scss/progress-indicator/linear.scss +3 -10
- package/scss/progress-indicator/overlay.scss +3 -9
- package/scss/progress-indicator/radial.scss +4 -4
- package/scss/side-navigation/side-navigation.scss +32 -29
- package/scss/slider/slider.scss +5 -3
- package/scss/style/global.scss +1 -4
- package/scss/style/mixins.scss +17 -12
- package/scss/style/theme.scss +63 -208
- package/scss/table/table.scss +7 -19
- package/scss/table/variables.scss +2 -4
- package/scss/tabs/borderless.scss +3 -12
- package/scss/tabs/pill.scss +2 -8
- package/scss/tabs/tabs.scss +11 -8
- package/scss/tile/tile.scss +4 -2
- package/scss/time-picker/time-picker.scss +1 -4
- package/scss/toast-notification/categories.scss +1 -4
- package/scss/toast-notification/toast.scss +1 -3
- package/scss/toggle-switch/toggle-switch.scss +4 -8
- package/scss/tooltip/tooltip.scss +1 -2
- package/scss/user-icon/user-icon.scss +3 -6
- package/scss/wizard/wizard.scss +2 -1
package/scss/header/header.scss
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import '../user-icon/index';
|
|
5
5
|
@import '../icon/index';
|
|
6
|
+
@import '../button/index';
|
|
6
7
|
|
|
7
8
|
@mixin iui-page-header {
|
|
8
9
|
@include iui-reset;
|
|
10
|
+
|
|
9
11
|
display: flex;
|
|
10
12
|
justify-content: space-between;
|
|
11
13
|
width: 100%;
|
|
@@ -13,8 +15,7 @@
|
|
|
13
15
|
user-select: none;
|
|
14
16
|
box-sizing: border-box;
|
|
15
17
|
// iPhone notch support
|
|
16
|
-
padding: env(safe-area-inset-top) env(safe-area-inset-right) 0
|
|
17
|
-
env(safe-area-inset-left);
|
|
18
|
+
padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
|
|
18
19
|
@media (prefers-reduced-motion: no-preference) {
|
|
19
20
|
transition: height $iui-speed-fast ease-out;
|
|
20
21
|
}
|
|
@@ -32,9 +33,9 @@
|
|
|
32
33
|
height: 100%;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
@include iui-header-buttons;
|
|
36
|
+
@include iui-header-buttons;
|
|
37
37
|
|
|
38
|
+
> .iui-left {
|
|
38
39
|
> nav {
|
|
39
40
|
display: flex;
|
|
40
41
|
align-items: center;
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
&,
|
|
45
46
|
> nav {
|
|
46
47
|
overflow: hidden;
|
|
48
|
+
box-sizing: content-box;
|
|
47
49
|
margin-bottom: -$iui-xs;
|
|
48
50
|
padding-bottom: $iui-xs;
|
|
49
51
|
}
|
|
@@ -109,24 +111,21 @@
|
|
|
109
111
|
|
|
110
112
|
> .iui-right {
|
|
111
113
|
.iui-user-icon {
|
|
112
|
-
@include iui-user-icon-size(
|
|
113
|
-
$size: $iui-icons-large,
|
|
114
|
-
$font-size: $iui-font-size-small
|
|
115
|
-
);
|
|
114
|
+
@include iui-user-icon-size($size: $iui-icons-large, $font-size: $iui-font-size-small);
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
@media (max-width: 768px) {
|
|
121
120
|
&,
|
|
122
|
-
&.iui-slim
|
|
121
|
+
&.iui-slim {
|
|
123
122
|
.iui-left {
|
|
124
|
-
.iui-
|
|
123
|
+
.iui-button {
|
|
125
124
|
.iui-header-button-icon.iui-header-button-icon {
|
|
126
125
|
@include iui-display-none;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
.iui-header-button-icon + .iui-label {
|
|
128
|
+
.iui-header-button-icon + .iui-button-label {
|
|
130
129
|
margin-left: 0;
|
|
131
130
|
}
|
|
132
131
|
}
|
|
@@ -143,16 +142,12 @@
|
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
144
|
|
|
146
|
-
@mixin iui-header-button-icon(
|
|
147
|
-
$size: $iui-icons-large,
|
|
148
|
-
$border-radius: $iui-border-radius
|
|
149
|
-
) {
|
|
145
|
+
@mixin iui-header-button-icon($size: $iui-icons-large, $border-radius: $iui-border-radius) {
|
|
150
146
|
width: $size;
|
|
151
147
|
height: $size;
|
|
152
148
|
border-radius: $border-radius;
|
|
153
149
|
@media (prefers-reduced-motion: no-preference) {
|
|
154
|
-
transition: width $iui-speed-fast ease-out, height $iui-speed-fast ease-out,
|
|
155
|
-
margin $iui-speed-fast ease-out;
|
|
150
|
+
transition: width $iui-speed-fast ease-out, height $iui-speed-fast ease-out, margin $iui-speed-fast ease-out;
|
|
156
151
|
}
|
|
157
152
|
}
|
|
158
153
|
|
|
@@ -161,45 +156,63 @@
|
|
|
161
156
|
@include iui-header-button-icon;
|
|
162
157
|
}
|
|
163
158
|
|
|
164
|
-
|
|
159
|
+
// boost specificity
|
|
160
|
+
.iui-header-button.iui-header-button {
|
|
165
161
|
@include iui-header-button;
|
|
166
162
|
}
|
|
167
163
|
|
|
168
164
|
.iui-header-split-button {
|
|
169
165
|
@include iui-header-split-button;
|
|
170
166
|
}
|
|
167
|
+
}
|
|
171
168
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
@mixin iui-header-logo {
|
|
170
|
+
display: inline-flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
height: 100%;
|
|
177
174
|
|
|
175
|
+
@at-root {
|
|
176
|
+
a#{&}, // rendered as anchor element
|
|
177
|
+
button#{&}, // rendered as button element
|
|
178
178
|
&[role='button'] {
|
|
179
179
|
@include iui-header-button-focus;
|
|
180
180
|
cursor: pointer;
|
|
181
181
|
|
|
182
|
+
// #region resets for button
|
|
183
|
+
@include iui-reset;
|
|
184
|
+
font-family: inherit;
|
|
185
|
+
background-color: unset;
|
|
186
|
+
color: unset;
|
|
187
|
+
// #endregion
|
|
188
|
+
|
|
182
189
|
&:hover,
|
|
183
|
-
&:focus
|
|
190
|
+
&:focus {
|
|
184
191
|
@include themed {
|
|
185
|
-
background-color: t(iui-color-
|
|
192
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:not(:focus-visible):not(:hover) {
|
|
196
|
+
@include themed {
|
|
197
|
+
background-color: t(iui-color-background-1);
|
|
198
|
+
}
|
|
186
199
|
}
|
|
187
200
|
}
|
|
188
201
|
}
|
|
202
|
+
}
|
|
189
203
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
204
|
+
.iui-header-button-icon {
|
|
205
|
+
margin: 0 $iui-l;
|
|
206
|
+
@include themed {
|
|
207
|
+
fill: t(iui-icons-color-actionable);
|
|
195
208
|
}
|
|
209
|
+
}
|
|
196
210
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
211
|
+
> .iui-label {
|
|
212
|
+
margin-right: $iui-sm;
|
|
213
|
+
font-size: $iui-font-size-leading;
|
|
214
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
215
|
+
transition: font-size $iui-speed-fast ease-out;
|
|
203
216
|
}
|
|
204
217
|
}
|
|
205
218
|
}
|
|
@@ -220,13 +233,18 @@
|
|
|
220
233
|
}
|
|
221
234
|
|
|
222
235
|
@mixin iui-header-button {
|
|
236
|
+
@include iui-button-size(large, borderless);
|
|
237
|
+
|
|
238
|
+
gap: 0;
|
|
223
239
|
max-width: 25vw;
|
|
240
|
+
height: 100%;
|
|
241
|
+
border-radius: 0;
|
|
224
242
|
overflow: hidden;
|
|
225
243
|
padding-right: $iui-s;
|
|
226
244
|
|
|
227
245
|
@include iui-header-button-focus;
|
|
228
246
|
|
|
229
|
-
> .iui-label {
|
|
247
|
+
> .iui-button-label {
|
|
230
248
|
text-align: left;
|
|
231
249
|
font-size: $iui-font-size;
|
|
232
250
|
overflow: hidden;
|
|
@@ -247,10 +265,14 @@
|
|
|
247
265
|
}
|
|
248
266
|
}
|
|
249
267
|
|
|
250
|
-
> .iui-icon {
|
|
268
|
+
> .iui-button-icon {
|
|
251
269
|
flex-shrink: 0;
|
|
252
270
|
}
|
|
253
271
|
|
|
272
|
+
> * + * {
|
|
273
|
+
margin-left: $iui-sm;
|
|
274
|
+
}
|
|
275
|
+
|
|
254
276
|
.iui-header-button-icon {
|
|
255
277
|
padding: $iui-xs;
|
|
256
278
|
@include iui-header-button-icon($iui-icons-default, $iui-border-radius);
|
|
@@ -279,11 +301,11 @@
|
|
|
279
301
|
height: $iui-icons-small;
|
|
280
302
|
padding: $iui-xxs;
|
|
281
303
|
}
|
|
304
|
+
}
|
|
282
305
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
306
|
+
.iui-button-label {
|
|
307
|
+
.iui-description {
|
|
308
|
+
@include iui-display-none;
|
|
287
309
|
}
|
|
288
310
|
}
|
|
289
311
|
}
|
|
@@ -324,10 +346,7 @@
|
|
|
324
346
|
|
|
325
347
|
&:last-child:hover {
|
|
326
348
|
@include themed {
|
|
327
|
-
background-color: rgba(
|
|
328
|
-
t(iui-color-foreground-primary-rgb),
|
|
329
|
-
t(iui-opacity-6)
|
|
330
|
-
);
|
|
349
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
331
350
|
}
|
|
332
351
|
}
|
|
333
352
|
}
|
|
@@ -357,25 +376,19 @@
|
|
|
357
376
|
// Blue background and darker blue bottom line
|
|
358
377
|
@include themed {
|
|
359
378
|
box-shadow: 0 $iui-xxs 0 0 t(iui-color-foreground-primary);
|
|
360
|
-
background-color: rgba(
|
|
361
|
-
t(iui-color-foreground-primary-rgb),
|
|
362
|
-
t(iui-opacity-6)
|
|
363
|
-
);
|
|
379
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
364
380
|
}
|
|
365
381
|
|
|
366
382
|
.iui-header-button-icon {
|
|
367
383
|
@include themed {
|
|
368
384
|
fill: t(iui-icons-color-primary);
|
|
369
|
-
background-color: rgba(
|
|
370
|
-
t(iui-color-foreground-primary-rgb),
|
|
371
|
-
t(iui-opacity-6)
|
|
372
|
-
);
|
|
385
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
373
386
|
}
|
|
374
387
|
}
|
|
375
388
|
}
|
|
376
389
|
|
|
377
390
|
// Blue text
|
|
378
|
-
.iui-label {
|
|
391
|
+
.iui-button-label {
|
|
379
392
|
@include themed {
|
|
380
393
|
color: t(iui-color-foreground-primary);
|
|
381
394
|
}
|
|
@@ -384,8 +397,7 @@
|
|
|
384
397
|
// Focus styling - blue outline
|
|
385
398
|
&:focus {
|
|
386
399
|
@include themed {
|
|
387
|
-
box-shadow: t(iui-focus-box-shadow),
|
|
388
|
-
0 $iui-xxs 0 0 t(iui-color-foreground-primary);
|
|
400
|
+
box-shadow: t(iui-focus-box-shadow), 0 $iui-xxs 0 0 t(iui-color-foreground-primary);
|
|
389
401
|
}
|
|
390
402
|
}
|
|
391
403
|
|
|
@@ -400,8 +412,7 @@
|
|
|
400
412
|
&:disabled {
|
|
401
413
|
@include themed {
|
|
402
414
|
background-color: rgba(t(iui-color-foreground-body-rgb), 0.05);
|
|
403
|
-
box-shadow: 0 $iui-xxs 0 0
|
|
404
|
-
rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
415
|
+
box-shadow: 0 $iui-xxs 0 0 rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
405
416
|
}
|
|
406
417
|
|
|
407
418
|
.iui-label {
|
|
@@ -410,7 +421,8 @@
|
|
|
410
421
|
}
|
|
411
422
|
}
|
|
412
423
|
|
|
413
|
-
.iui-icon
|
|
424
|
+
.iui-icon,
|
|
425
|
+
svg {
|
|
414
426
|
@include themed {
|
|
415
427
|
fill: t(iui-icons-color-actionable-disabled);
|
|
416
428
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
|
+
@import '../inputs/labeled-inputs';
|
|
4
5
|
|
|
5
6
|
@mixin iui-information-panel-wrapper {
|
|
6
7
|
position: relative;
|
|
@@ -13,6 +14,8 @@
|
|
|
13
14
|
display: flex;
|
|
14
15
|
flex-direction: column;
|
|
15
16
|
box-sizing: border-box;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
max-height: 100%;
|
|
16
19
|
z-index: 2; // Needs to be higher than table's column resizers.
|
|
17
20
|
@media (prefers-reduced-motion: no-preference) {
|
|
18
21
|
transition: transform $iui-speed-fast ease-out, opacity $iui-speed-fast ease;
|
|
@@ -74,6 +77,7 @@
|
|
|
74
77
|
width: $iui-icons-large;
|
|
75
78
|
height: $iui-icons-large;
|
|
76
79
|
margin-right: $iui-s;
|
|
80
|
+
flex-shrink: 0;
|
|
77
81
|
@include themed {
|
|
78
82
|
fill: t(iui-icons-color);
|
|
79
83
|
}
|
|
@@ -138,6 +142,7 @@
|
|
|
138
142
|
}
|
|
139
143
|
}
|
|
140
144
|
}
|
|
145
|
+
|
|
141
146
|
@mixin iui-information-panel-horizontal {
|
|
142
147
|
left: 0;
|
|
143
148
|
bottom: 0;
|
|
@@ -187,3 +192,35 @@
|
|
|
187
192
|
top: $iui-m * -0.5;
|
|
188
193
|
}
|
|
189
194
|
}
|
|
195
|
+
|
|
196
|
+
/// Labels and inputs aligned using css grid
|
|
197
|
+
@mixin iui-information-body-content {
|
|
198
|
+
display: grid;
|
|
199
|
+
|
|
200
|
+
.iui-input-label {
|
|
201
|
+
font-weight: $iui-font-weight-normal;
|
|
202
|
+
@include themed {
|
|
203
|
+
color: t(iui-text-color-muted);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&:not(.iui-inline) {
|
|
208
|
+
// add bottom margin between pairs of label+input
|
|
209
|
+
> *:nth-child(even):not(:last-child) {
|
|
210
|
+
margin-bottom: $iui-baseline;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.iui-inline {
|
|
215
|
+
row-gap: $iui-baseline;
|
|
216
|
+
grid-template-columns: auto 1fr;
|
|
217
|
+
align-items: center;
|
|
218
|
+
|
|
219
|
+
.iui-input-label {
|
|
220
|
+
@include iui-input-label-inline;
|
|
221
|
+
// right align labels
|
|
222
|
+
justify-self: end;
|
|
223
|
+
text-align: end;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -47,8 +47,7 @@
|
|
|
47
47
|
width: $iui-sm;
|
|
48
48
|
height: $iui-sm;
|
|
49
49
|
|
|
50
|
-
>
|
|
51
|
-
> circle {
|
|
50
|
+
> * {
|
|
52
51
|
opacity: 0;
|
|
53
52
|
@media (prefers-reduced-motion: no-preference) {
|
|
54
53
|
transition: opacity $iui-speed-fast ease;
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
&:hover > input:enabled ~ .iui-checkbox-checkmark,
|
|
85
84
|
&:hover > input:enabled ~ .iui-radio-dot {
|
|
86
85
|
@include themed {
|
|
87
|
-
border:
|
|
86
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
88
87
|
}
|
|
89
88
|
@media (prefers-reduced-motion: no-preference) {
|
|
90
89
|
transition: all $iui-speed-fast ease-out;
|
|
@@ -96,14 +95,14 @@
|
|
|
96
95
|
input:indeterminate ~ .iui-checkbox-checkmark,
|
|
97
96
|
input:checked ~ .iui-radio-dot {
|
|
98
97
|
@include themed {
|
|
99
|
-
border:
|
|
98
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-3));
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
// Show check, partial, or dot depending on type
|
|
104
|
-
input:checked ~ .iui-checkbox-checkmark
|
|
105
|
-
input:indeterminate ~ .iui-checkbox-checkmark
|
|
106
|
-
input:checked ~ .iui-radio-dot
|
|
103
|
+
input:checked ~ .iui-checkbox-checkmark .iui-check,
|
|
104
|
+
input:indeterminate ~ .iui-checkbox-checkmark .iui-check-partial,
|
|
105
|
+
input:checked ~ .iui-radio-dot circle {
|
|
107
106
|
opacity: 1;
|
|
108
107
|
@media (prefers-reduced-motion: no-preference) {
|
|
109
108
|
transition: opacity $iui-speed-fast ease;
|
|
@@ -141,8 +140,9 @@
|
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
// Styles disabled checks
|
|
144
|
-
input:disabled ~ .iui-checkbox-checkmark
|
|
145
|
-
input:disabled ~ .iui-
|
|
143
|
+
input:disabled ~ .iui-checkbox-checkmark path,
|
|
144
|
+
input:disabled ~ .iui-checkbox-checkmark g,
|
|
145
|
+
input:disabled ~ .iui-radio-dot circle {
|
|
146
146
|
@include themed {
|
|
147
147
|
fill: t(iui-icons-color-actionable-disabled);
|
|
148
148
|
}
|
|
@@ -26,4 +26,40 @@
|
|
|
26
26
|
cursor: wait;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
&-visibility {
|
|
31
|
+
// Adds hover to everything that is not disabled
|
|
32
|
+
&:hover > input:enabled ~ .iui-checkbox-checkmark {
|
|
33
|
+
@include themed {
|
|
34
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input ~ .iui-checkbox-checkmark,
|
|
39
|
+
&:hover > input:enabled ~ .iui-checkbox-checkmark {
|
|
40
|
+
border: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input ~ .iui-checkbox-checkmark {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.iui-checkbox-checkmark svg:not(.iui-radial) {
|
|
48
|
+
width: $iui-icons-default;
|
|
49
|
+
height: $iui-icons-default;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input:checked ~ .iui-checkbox-checkmark .iui-uncheck,
|
|
53
|
+
input:indeterminate ~ .iui-checkbox-checkmark .iui-uncheck {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
input ~ .iui-checkbox-checkmark .iui-uncheck {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
transition: opacity $iui-speed-fast ease;
|
|
60
|
+
@include themed {
|
|
61
|
+
fill: t(iui-icons-color-actionable);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
29
65
|
}
|
package/scss/inputs/classes.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@include iui-input-container;
|
|
7
7
|
|
|
8
8
|
> .iui-label {
|
|
9
|
-
@include iui-input-label;
|
|
9
|
+
@include iui-input-container-label;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.iui-input-icon {
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.iui-input-label {
|
|
40
|
+
@include iui-input-label;
|
|
41
|
+
}
|
|
42
|
+
|
|
39
43
|
.iui-input {
|
|
40
44
|
@include iui-input;
|
|
41
45
|
}
|
|
@@ -56,17 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// #region Cursors
|
|
59
|
-
cursor
|
|
60
|
-
|
|
61
|
-
@at-root {
|
|
62
|
-
label#{&} {
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
|
-
&.iui-disabled {
|
|
66
|
-
cursor: not-allowed;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
59
|
+
@include iui-input-label-cursor;
|
|
70
60
|
|
|
71
61
|
&.iui-disabled {
|
|
72
62
|
label {
|
|
@@ -151,17 +141,31 @@
|
|
|
151
141
|
}
|
|
152
142
|
}
|
|
153
143
|
|
|
144
|
+
/// Cursor styling for the label.
|
|
145
|
+
@mixin iui-input-label-cursor {
|
|
146
|
+
cursor: default;
|
|
147
|
+
|
|
148
|
+
@at-root {
|
|
149
|
+
label#{&} {
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
|
|
152
|
+
&.iui-disabled {
|
|
153
|
+
cursor: not-allowed;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
154
159
|
/// Text label for an input.
|
|
155
160
|
/// Supports .iui-required modifier to show red asterisk.
|
|
156
|
-
@mixin iui-input-label {
|
|
161
|
+
@mixin iui-input-label-styling {
|
|
157
162
|
font-weight: $iui-font-weight-semibold;
|
|
158
|
-
grid-area: label;
|
|
159
|
-
align-self: center;
|
|
160
163
|
margin-bottom: $iui-component-offset;
|
|
161
164
|
|
|
162
165
|
&.iui-required {
|
|
163
166
|
&::after {
|
|
164
|
-
content: '
|
|
167
|
+
content: '*';
|
|
168
|
+
margin-left: $iui-xs;
|
|
165
169
|
@include themed {
|
|
166
170
|
color: t(iui-color-foreground-negative);
|
|
167
171
|
}
|
|
@@ -169,7 +173,7 @@
|
|
|
169
173
|
}
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
/// Modifier on iui-input-label to place it inline.
|
|
176
|
+
/// Modifier on iui-input-label-styling to place it inline.
|
|
173
177
|
@mixin iui-input-label-inline {
|
|
174
178
|
margin: 0 $iui-m 0 0;
|
|
175
179
|
// stylelint-disable -- fix position in IE
|
|
@@ -181,6 +185,27 @@
|
|
|
181
185
|
}
|
|
182
186
|
}
|
|
183
187
|
|
|
188
|
+
/// Label inside the input-container grid.
|
|
189
|
+
@mixin iui-input-container-label {
|
|
190
|
+
@include iui-input-label-styling;
|
|
191
|
+
grid-area: label;
|
|
192
|
+
align-self: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/// Independent label outside the grid.
|
|
196
|
+
/// Supports .iui-inline modifier to place it inline.
|
|
197
|
+
@mixin iui-input-label {
|
|
198
|
+
@include iui-input-label-styling;
|
|
199
|
+
@include iui-input-label-cursor;
|
|
200
|
+
display: block;
|
|
201
|
+
|
|
202
|
+
&.iui-inline {
|
|
203
|
+
@include iui-input-label-inline;
|
|
204
|
+
display: inline-flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
184
209
|
/// Message shown below input
|
|
185
210
|
@mixin iui-input-message {
|
|
186
211
|
font-size: $iui-font-size-small;
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
@include themed {
|
|
39
|
-
border: 1px solid
|
|
40
|
-
rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
39
|
+
border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
41
40
|
background-color: t(iui-color-background-1);
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -189,8 +188,7 @@
|
|
|
189
188
|
z-index: 3;
|
|
190
189
|
|
|
191
190
|
@include themed {
|
|
192
|
-
border: 2px solid
|
|
193
|
-
rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
191
|
+
border: 2px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
194
192
|
}
|
|
195
193
|
}
|
|
196
194
|
}
|
|
@@ -22,14 +22,12 @@
|
|
|
22
22
|
@include themed {
|
|
23
23
|
background-color: t(iui-color-background-1);
|
|
24
24
|
border: 1px solid t(iui-color-background-5);
|
|
25
|
-
box-shadow: 0 1px 1px t(iui-color-background-5),
|
|
26
|
-
0 1px 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
|
|
25
|
+
box-shadow: 0 1px 1px t(iui-color-background-5), 0 1px 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
&:hover {
|
|
30
29
|
@include themed {
|
|
31
|
-
box-shadow: 0 0 0 t(iui-color-background-5),
|
|
32
|
-
0 0 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
|
|
30
|
+
box-shadow: 0 0 0 t(iui-color-background-5), 0 0 0 0 rgba(255, 255, 255, t(iui-opacity-5)) inset;
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
}
|
package/scss/menu/menu.scss
CHANGED
|
@@ -10,6 +10,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
10
10
|
box-shadow: $iui-elevation-2;
|
|
11
11
|
@include themed {
|
|
12
12
|
background-color: t(iui-color-background-1);
|
|
13
|
+
color: t(iui-text-color);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -46,9 +47,6 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
46
47
|
cursor: pointer;
|
|
47
48
|
box-sizing: border-box;
|
|
48
49
|
line-height: normal;
|
|
49
|
-
@include themed {
|
|
50
|
-
color: t(iui-text-color);
|
|
51
|
-
}
|
|
52
50
|
|
|
53
51
|
+ #{&} {
|
|
54
52
|
margin-top: -1px;
|
|
@@ -85,10 +83,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
85
83
|
|
|
86
84
|
&:hover {
|
|
87
85
|
@include themed {
|
|
88
|
-
background-color: rgba(
|
|
89
|
-
t(iui-color-foreground-primary-rgb),
|
|
90
|
-
t(iui-opacity-6)
|
|
91
|
-
);
|
|
86
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
92
87
|
}
|
|
93
88
|
}
|
|
94
89
|
|
|
@@ -116,10 +111,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
116
111
|
&,
|
|
117
112
|
&:hover {
|
|
118
113
|
@include themed {
|
|
119
|
-
background-color: rgba(
|
|
120
|
-
t(iui-color-foreground-primary-rgb),
|
|
121
|
-
t(iui-opacity-5)
|
|
122
|
-
);
|
|
114
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
|
|
123
115
|
outline: $iui-active-outline;
|
|
124
116
|
outline-offset: -1px;
|
|
125
117
|
}
|
package/scss/modal/modal.scss
CHANGED
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
visibility: hidden;
|
|
15
15
|
opacity: 0;
|
|
16
16
|
@media (prefers-reduced-motion: no-preference) {
|
|
17
|
-
transition: visibility 0s linear $iui-speed-fast,
|
|
18
|
-
opacity $iui-speed-fast ease-out;
|
|
17
|
+
transition: visibility 0s linear $iui-speed-fast, opacity $iui-speed-fast ease-out;
|
|
19
18
|
}
|
|
20
19
|
@include themed {
|
|
21
20
|
background-color: rgba(0, 0, 0, t(iui-opacity-4));
|
|
@@ -73,10 +73,7 @@
|
|
|
73
73
|
> span {
|
|
74
74
|
&::selection {
|
|
75
75
|
@include themed {
|
|
76
|
-
background-color: rgba(
|
|
77
|
-
t(iui-color-foreground-positive-rgb),
|
|
78
|
-
t(iui-opacity-4)
|
|
79
|
-
);
|
|
76
|
+
background-color: rgba(t(iui-color-foreground-positive-rgb), t(iui-opacity-4));
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
}
|
|
@@ -106,10 +103,7 @@
|
|
|
106
103
|
> span {
|
|
107
104
|
&::selection {
|
|
108
105
|
@include themed {
|
|
109
|
-
background-color: rgba(
|
|
110
|
-
t(iui-color-foreground-negative-rgb),
|
|
111
|
-
t(iui-opacity-4)
|
|
112
|
-
);
|
|
106
|
+
background-color: rgba(t(iui-color-foreground-negative-rgb), t(iui-opacity-4));
|
|
113
107
|
}
|
|
114
108
|
}
|
|
115
109
|
}
|
|
@@ -136,6 +130,5 @@
|
|
|
136
130
|
}
|
|
137
131
|
}
|
|
138
132
|
width: 100%;
|
|
139
|
-
animation: iui-progress-indicator-linear-animate-indeterminate 1.5s infinite
|
|
140
|
-
linear;
|
|
133
|
+
animation: iui-progress-indicator-linear-animate-indeterminate 1.5s infinite linear;
|
|
141
134
|
}
|