@itwin/itwinui-css 0.53.2 → 0.54.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/alert.css +61 -43
- package/css/all.css +427 -102
- package/css/anchor.css +68 -0
- package/css/breadcrumbs.css +48 -5
- package/css/color-picker.css +4 -0
- package/css/footer.css +48 -5
- package/css/global.css +47 -5
- package/css/skip-to-content.css +2 -1
- package/css/table.css +9 -9
- package/css/tag.css +47 -5
- package/css/toast-notification.css +94 -27
- package/css/tree.css +2 -2
- package/package.json +1 -1
- package/scss/alert/alert.scss +5 -25
- package/scss/anchor/anchor.scss +3 -0
- package/scss/anchor/classes.scss +7 -0
- package/scss/anchor/index.scss +3 -0
- package/scss/breadcrumbs/breadcrumbs.scss +2 -1
- package/scss/classes.scss +1 -0
- package/scss/color-picker/color-picker.scss +4 -0
- package/scss/footer/footer.scss +1 -0
- package/scss/index.scss +1 -0
- package/scss/skip-to-content/skip-to-content.scss +2 -1
- package/scss/style/anchor.scss +79 -0
- package/scss/style/global.scss +1 -0
- package/scss/style/mixins.scss +0 -17
- package/scss/table/table.scss +5 -5
- package/scss/tag/classes.scss +1 -0
- package/scss/toast-notification/categories.scss +3 -20
- package/scss/toast-notification/toast.scss +5 -6
- package/scss/tree/tree.scss +2 -2
package/scss/alert/alert.scss
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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 '../
|
|
4
|
+
@import '../anchor/index';
|
|
5
5
|
@import '../icon/index';
|
|
6
|
+
@import '../text/index';
|
|
6
7
|
|
|
7
8
|
@mixin iui-alert {
|
|
8
9
|
@include iui-reset;
|
|
@@ -27,22 +28,12 @@
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
&-link {
|
|
31
|
+
@include iui-anchor-underline('on-initial');
|
|
32
|
+
border-radius: $iui-border-radius;
|
|
30
33
|
cursor: pointer;
|
|
31
34
|
margin-left: $iui-s;
|
|
32
|
-
text-decoration: underline;
|
|
33
35
|
user-select: none;
|
|
34
36
|
white-space: nowrap;
|
|
35
|
-
@include iui-focus;
|
|
36
|
-
@include themed {
|
|
37
|
-
color: t(iui-color-foreground-primary);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
@include themed {
|
|
43
|
-
color: t(iui-color-foreground-primary-overlay);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
37
|
}
|
|
47
38
|
|
|
48
39
|
> .iui-button {
|
|
@@ -83,18 +74,7 @@
|
|
|
83
74
|
}
|
|
84
75
|
|
|
85
76
|
#{$rootSelector}-link {
|
|
86
|
-
|
|
87
|
-
@include themed {
|
|
88
|
-
color: t(iui-color-foreground-#{$statusColor});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
@include themed {
|
|
93
|
-
color: t(iui-color-foreground-#{$statusColor}-overlay);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@include iui-focus($color: var(--iui-color-foreground-#{$statusColor}), $offset: 2px);
|
|
77
|
+
@include iui-anchor-status($statusColor);
|
|
98
78
|
}
|
|
99
79
|
|
|
100
80
|
> .iui-button {
|
|
@@ -1,8 +1,9 @@
|
|
|
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 '../
|
|
4
|
+
@import '../anchor/index';
|
|
5
5
|
@import '../button/borderless';
|
|
6
|
+
@import '../icon/index';
|
|
6
7
|
|
|
7
8
|
@mixin iui-breadcrumbs {
|
|
8
9
|
@include iui-reset;
|
package/scss/classes.scss
CHANGED
|
@@ -49,6 +49,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
|
|
|
49
49
|
margin-right: $iui-xs;
|
|
50
50
|
position: relative;
|
|
51
51
|
background-color: var(--iui-color-swatch-background);
|
|
52
|
+
forced-color-adjust: none;
|
|
52
53
|
@include iui-transparent-background;
|
|
53
54
|
@supports (gap: $iui-s) {
|
|
54
55
|
margin-bottom: 0;
|
|
@@ -172,6 +173,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
|
|
|
172
173
|
cursor: crosshair;
|
|
173
174
|
width: 100%;
|
|
174
175
|
height: $iui-baseline * 19;
|
|
176
|
+
forced-color-adjust: none;
|
|
175
177
|
background-image: linear-gradient(0deg, rgb(0, 0, 0), transparent),
|
|
176
178
|
linear-gradient(90deg, rgb(255, 255, 255), var(--iui-color-field-hue));
|
|
177
179
|
|
|
@@ -183,6 +185,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
|
|
|
183
185
|
@mixin iui-hue-slider {
|
|
184
186
|
.iui-slider-rail {
|
|
185
187
|
height: $iui-s;
|
|
188
|
+
forced-color-adjust: none;
|
|
186
189
|
@include themed {
|
|
187
190
|
background: linear-gradient(
|
|
188
191
|
to right,
|
|
@@ -205,6 +208,7 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
|
|
|
205
208
|
@mixin iui-opacity-slider {
|
|
206
209
|
.iui-slider-rail {
|
|
207
210
|
height: $iui-s;
|
|
211
|
+
forced-color-adjust: none;
|
|
208
212
|
@include iui-transparent-background($size: $iui-s);
|
|
209
213
|
|
|
210
214
|
&::before {
|
package/scss/footer/footer.scss
CHANGED
package/scss/index.scss
CHANGED
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
position: fixed;
|
|
16
16
|
text-align: center;
|
|
17
17
|
left: 50%;
|
|
18
|
-
opacity: 0;
|
|
19
18
|
top: $iui-baseline * 2;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
z-index: 99;
|
|
20
21
|
transform: translateX(-50%) translateY(-170%);
|
|
21
22
|
transition: background-color $iui-speed-fast ease-in-out;
|
|
22
23
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
@mixin iui-anchor {
|
|
6
|
+
--_iui-anchor-external-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
|
|
7
|
+
|
|
8
|
+
@include iui-anchor-status('primary');
|
|
9
|
+
border-radius: $iui-border-radius;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
|
|
12
|
+
&-external::after {
|
|
13
|
+
content: '';
|
|
14
|
+
display: inline-block;
|
|
15
|
+
width: 1.5ch;
|
|
16
|
+
height: 1.5ch;
|
|
17
|
+
margin-left: 0.5ch;
|
|
18
|
+
vertical-align: -0.1ch;
|
|
19
|
+
background-color: currentColor;
|
|
20
|
+
mask: var(--_iui-anchor-external-svg);
|
|
21
|
+
@media (forced-colors: active) {
|
|
22
|
+
background-color: LinkText;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include iui-anchor-underline('on-hover');
|
|
27
|
+
|
|
28
|
+
@media (prefers-contrast: more) {
|
|
29
|
+
@include iui-anchor-underline('on-initial');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@at-root {
|
|
33
|
+
.iui-theme-light &,
|
|
34
|
+
.iui-theme-dark & {
|
|
35
|
+
@include iui-anchor-underline('on-hover');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@at-root {
|
|
40
|
+
.iui-theme-light-hc &,
|
|
41
|
+
.iui-theme-dark-hc & {
|
|
42
|
+
@include iui-anchor-underline('on-initial');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin iui-anchor-status($status: primary) {
|
|
48
|
+
@include iui-focus($color: var(--iui-color-foreground-#{$status}), $offset: 1px);
|
|
49
|
+
@include themed {
|
|
50
|
+
color: t(iui-color-foreground-#{$status});
|
|
51
|
+
-webkit-tap-highlight-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-5));
|
|
52
|
+
}
|
|
53
|
+
@if $status != primary {
|
|
54
|
+
@include iui-text-selection($status);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
@include themed {
|
|
59
|
+
color: t(iui-color-foreground-#{$status}-overlay);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/// $behavior should be one of: 'on-hover' or 'on-initial'
|
|
65
|
+
@mixin iui-anchor-underline($behavior: 'on-hover') {
|
|
66
|
+
@if $behavior == 'on-hover' {
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
text-decoration: underline;
|
|
71
|
+
}
|
|
72
|
+
} @else {
|
|
73
|
+
text-decoration: underline;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
package/scss/style/global.scss
CHANGED
package/scss/style/mixins.scss
CHANGED
|
@@ -46,23 +46,6 @@
|
|
|
46
46
|
vertical-align: baseline;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@mixin iui-anchor {
|
|
50
|
-
@include iui-focus($offset: 2px);
|
|
51
|
-
border-radius: $iui-border-radius;
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
@include themed {
|
|
55
|
-
color: t(iui-color-foreground-primary);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
@include themed {
|
|
60
|
-
color: t(iui-color-foreground-primary-overlay);
|
|
61
|
-
}
|
|
62
|
-
text-decoration: underline;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
49
|
@mixin iui-text-selection($status: primary) {
|
|
67
50
|
&::selection,
|
|
68
51
|
*::selection {
|
package/scss/table/table.scss
CHANGED
|
@@ -196,12 +196,12 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
> .iui-slot > .iui-more-options {
|
|
199
|
+
> .iui-slot:not(.iui-disabled) > .iui-more-options {
|
|
200
200
|
visibility: visible;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
&:
|
|
204
|
+
&:focus-within > .iui-slot:not(.iui-disabled) > .iui-more-options {
|
|
205
205
|
visibility: visible;
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
|
|
299
|
-
&.iui-
|
|
298
|
+
.iui-cell.iui-disabled,
|
|
299
|
+
&.iui-expanded-content.iui-disabled {
|
|
300
300
|
font-style: italic;
|
|
301
301
|
cursor: not-allowed;
|
|
302
302
|
@include themed {
|
|
303
303
|
color: t(iui-text-color-muted);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
&.iui-slot:hover > .iui-more-options {
|
|
307
307
|
visibility: hidden;
|
|
308
308
|
}
|
|
309
309
|
|
package/scss/tag/classes.scss
CHANGED
|
@@ -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 '../anchor/index';
|
|
4
5
|
@import './toast';
|
|
5
6
|
|
|
6
7
|
/// category must be one of: positive, negative, primary (informational), warning
|
|
@@ -19,25 +20,7 @@
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@include themed {
|
|
25
|
-
color: t(iui-color-foreground-#{$category});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
@include themed {
|
|
30
|
-
color: t(iui-color-foreground-#{$category}-overlay);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
> .iui-anchor {
|
|
36
|
-
outline-color: var(--iui-color-foreground-#{$category});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
> .iui-button {
|
|
40
|
-
outline-color: var(--iui-color-foreground-#{$category});
|
|
41
|
-
}
|
|
23
|
+
> .iui-toast-anchor {
|
|
24
|
+
@include iui-anchor-status($category);
|
|
42
25
|
}
|
|
43
26
|
}
|
|
@@ -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 '../anchor/index';
|
|
4
5
|
@import '../icon/index';
|
|
5
6
|
|
|
6
7
|
@mixin iui-toast {
|
|
@@ -53,16 +54,14 @@
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
&-anchor {
|
|
58
|
+
@include iui-anchor-underline('on-initial');
|
|
59
|
+
border-radius: $iui-border-radius;
|
|
60
|
+
cursor: pointer;
|
|
57
61
|
font-size: $iui-font-size-small;
|
|
58
62
|
margin-right: $iui-m;
|
|
59
63
|
user-select: none;
|
|
60
|
-
text-decoration: underline;
|
|
61
64
|
white-space: nowrap;
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
text-decoration: none;
|
|
65
|
-
}
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
> .iui-button {
|
package/scss/tree/tree.scss
CHANGED
|
@@ -54,11 +54,11 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
|
|
|
54
54
|
|
|
55
55
|
&-icon {
|
|
56
56
|
@include iui-icons-default;
|
|
57
|
-
|
|
57
|
+
margin: 0 $iui-expander-inline-padding;
|
|
58
58
|
flex-shrink: 0;
|
|
59
59
|
|
|
60
60
|
&:first-child {
|
|
61
|
-
margin-left: $iui-expander-button-width;
|
|
61
|
+
margin-left: $iui-expander-button-width + $iui-expander-inline-padding;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|