@itwin/itwinui-css 0.53.3 → 0.55.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/alert.css +61 -43
- package/css/all.css +536 -161
- package/css/anchor.css +68 -0
- package/css/breadcrumbs.css +48 -5
- package/css/footer.css +48 -5
- package/css/global.css +60 -5
- package/css/header.css +3 -2
- package/css/menu.css +21 -0
- package/css/popover.css +2 -2
- package/css/skip-to-content.css +2 -1
- package/css/table.css +9 -9
- package/css/tag.css +94 -45
- package/css/tile.css +29 -17
- package/css/toast-notification.css +94 -27
- package/package.json +5 -3
- 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/footer/footer.scss +1 -0
- package/scss/header/header.scss +8 -1
- package/scss/index.scss +1 -0
- package/scss/menu/menu.scss +27 -0
- package/scss/popover/popover.scss +2 -2
- package/scss/skip-to-content/skip-to-content.scss +2 -1
- package/scss/style/anchor.scss +79 -0
- package/scss/style/global.scss +5 -0
- package/scss/style/mixins.scss +0 -17
- package/scss/table/table.scss +5 -5
- package/scss/tag/classes.scss +15 -1
- package/scss/tag/tag.scss +45 -46
- package/scss/tile/tile.scss +19 -13
- package/scss/toast-notification/categories.scss +3 -20
- package/scss/toast-notification/toast.scss +5 -6
package/scss/tag/tag.scss
CHANGED
|
@@ -1,67 +1,66 @@
|
|
|
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 '../icon/index';
|
|
5
4
|
@import '../text/mixins';
|
|
5
|
+
@import '../button/index';
|
|
6
6
|
|
|
7
|
-
@mixin iui-tag {
|
|
7
|
+
@mixin iui-tag-base {
|
|
8
8
|
@include iui-reset;
|
|
9
|
-
@include iui-focus($offset: -2px, $thickness: 2px);
|
|
10
9
|
user-select: all;
|
|
11
10
|
text-transform: lowercase;
|
|
12
11
|
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin iui-tag-basic {
|
|
15
|
+
@include iui-tag-base;
|
|
13
16
|
|
|
14
17
|
&:not(a) {
|
|
15
18
|
@include themed {
|
|
16
19
|
color: t(iui-text-color-muted);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
}
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
> .iui-label {
|
|
40
|
-
@include iui-text;
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
text-overflow: ellipsis;
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
margin: 0 $iui-xs 0 $iui-s;
|
|
24
|
+
@mixin iui-tag {
|
|
25
|
+
@include iui-tag-base;
|
|
26
|
+
height: $iui-baseline * 3;
|
|
27
|
+
margin: $iui-component-offset 0;
|
|
28
|
+
border-radius: $iui-border-radius-round;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
padding: 0 $iui-xxs;
|
|
31
|
+
align-items: center;
|
|
32
|
+
transition: border-color $iui-speed-fast ease-out;
|
|
33
|
+
font-size: $iui-font-size;
|
|
34
|
+
text-transform: none;
|
|
35
|
+
cursor: default;
|
|
36
|
+
-webkit-tap-highlight-color: transparent;
|
|
37
|
+
@include themed {
|
|
38
|
+
border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
39
|
+
background-color: t(iui-color-background-1);
|
|
40
|
+
color: t(iui-text-color);
|
|
41
|
+
}
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
&:hover {
|
|
44
|
+
@include themed {
|
|
45
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
49
46
|
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
@mixin iui-tag-label {
|
|
51
|
+
@include iui-text;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
margin: 0 $iui-xs 0 $iui-s;
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
57
|
+
&:only-child {
|
|
58
|
+
margin: 0 $iui-s;
|
|
60
59
|
}
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
62
|
+
@mixin iui-tag-button {
|
|
63
|
+
border-radius: 50%;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
@mixin iui-tag-container {
|
|
@@ -69,15 +68,15 @@
|
|
|
69
68
|
color: t(iui-text-color-muted);
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
> a.iui-basic {
|
|
71
|
+
> a.iui-tag-basic {
|
|
73
72
|
margin: $iui-xxs;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
|
-
>
|
|
75
|
+
> *:not(last-child) {
|
|
77
76
|
margin-right: $iui-xs;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
> .iui-basic:not(:last-child)::after {
|
|
79
|
+
> .iui-tag-basic:not(:last-child)::after {
|
|
81
80
|
content: ',';
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
border-radius: $iui-border-radius;
|
|
95
94
|
padding: $iui-component-offset $iui-sm;
|
|
96
95
|
@include themed {
|
|
97
|
-
background-color: t(iui-color-background-
|
|
96
|
+
background-color: t(iui-color-background-3);
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
}
|
package/scss/tile/tile.scss
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
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 '../icon/index';
|
|
5
4
|
@import '../button/index';
|
|
5
|
+
@import '../icon/index';
|
|
6
|
+
@import '../surface/index';
|
|
6
7
|
|
|
7
8
|
@mixin iui-tile {
|
|
8
9
|
@include iui-reset;
|
|
10
|
+
@include iui-surface;
|
|
9
11
|
display: inline-flex;
|
|
10
12
|
flex-direction: column;
|
|
11
13
|
width: $iui-3xl * 3;
|
|
12
|
-
box-shadow: $iui-elevation-2;
|
|
13
14
|
backface-visibility: hidden;
|
|
14
|
-
@include iui-focus($offset: $iui-xxs, $thickness: $iui-xxs);
|
|
15
|
-
@include themed() {
|
|
16
|
-
background-color: t(iui-color-background-1);
|
|
17
|
-
color: t(iui-text-color);
|
|
18
|
-
}
|
|
19
15
|
|
|
20
16
|
&:hover,
|
|
21
17
|
&:focus-within {
|
|
@@ -27,10 +23,6 @@
|
|
|
27
23
|
.iui-tile-metadata:not(:last-child) {
|
|
28
24
|
width: calc(100% - #{$iui-xl});
|
|
29
25
|
}
|
|
30
|
-
|
|
31
|
-
.iui-tile-thumbnail-picture {
|
|
32
|
-
transform: translateZ(0) scale(1.1);
|
|
33
|
-
}
|
|
34
26
|
}
|
|
35
27
|
|
|
36
28
|
&.iui-new {
|
|
@@ -50,9 +42,23 @@
|
|
|
50
42
|
),
|
|
51
43
|
linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
|
|
52
44
|
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.iui-actionable {
|
|
48
|
+
@include iui-focus($offset: $iui-xxs, $thickness: $iui-xxs);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
transition: box-shadow $iui-speed-fast ease-in-out;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
box-shadow: $iui-elevation-8;
|
|
54
|
+
}
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
&:hover,
|
|
57
|
+
&:focus-within,
|
|
58
|
+
&.iui-selected {
|
|
59
|
+
.iui-tile-thumbnail-picture {
|
|
60
|
+
transform: translateZ(0) scale(1.1);
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
|
|
@@ -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 {
|