@itwin/itwinui-css 0.54.1 → 0.57.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 +872 -473
- package/css/anchor.css +21 -17
- package/css/breadcrumbs.css +308 -56
- package/css/button.css +9 -12
- package/css/footer.css +1 -17
- package/css/global.css +14 -17
- package/css/header.css +3 -2
- package/css/inputs.css +18 -168
- package/css/menu.css +21 -0
- package/css/popover.css +2 -2
- package/css/radio-tile.css +217 -0
- package/css/table.css +12 -11
- package/css/tabs.css +4 -0
- package/css/tag.css +55 -64
- package/css/text.css +9 -3
- package/css/tile.css +29 -17
- package/css/toast-notification.css +1 -1
- package/css/toggle-switch.css +65 -0
- package/package.json +5 -3
- package/scss/anchor/classes.scss +4 -0
- package/scss/breadcrumbs/breadcrumbs.scss +74 -18
- package/scss/breadcrumbs/classes.scss +9 -0
- package/scss/button/button.scss +17 -16
- package/scss/button/classes.scss +4 -0
- package/scss/button/cta.scss +3 -1
- package/scss/button/default.scss +0 -2
- package/scss/button/high-visibility.scss +3 -1
- package/scss/classes.scss +3 -2
- package/scss/header/header.scss +8 -1
- package/scss/index.scss +3 -2
- package/scss/inputs/checkbox.scss +11 -6
- package/scss/inputs/classes.scss +0 -4
- package/scss/inputs/index.scss +0 -1
- package/scss/inputs/labeled-inputs.scss +1 -1
- package/scss/menu/menu.scss +27 -0
- package/scss/popover/popover.scss +2 -2
- package/scss/radio-tile/classes.scss +31 -0
- package/scss/radio-tile/index.scss +3 -0
- package/scss/radio-tile/radio-tile.scss +209 -0
- package/scss/style/anchor.scss +19 -16
- package/scss/style/global.scss +4 -0
- package/scss/table/paginator.scss +4 -0
- package/scss/tabs/tabs.scss +6 -0
- package/scss/tag/classes.scss +14 -1
- package/scss/tag/tag.scss +45 -46
- package/scss/text/skeleton.scss +13 -7
- package/scss/tile/tile.scss +19 -13
- package/scss/toast-notification/classes.scss +1 -1
- package/scss/toggle-switch/toggle-switch.scss +50 -2
- package/scss/inputs/radio-tile.scss +0 -200
package/scss/button/default.scss
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
@include themed {
|
|
11
11
|
background-color: t(iui-color-background-1);
|
|
12
12
|
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
13
|
-
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
14
13
|
}
|
|
15
14
|
@include iui-focus($offset: -2px, $thickness: 2px);
|
|
16
15
|
|
|
@@ -19,7 +18,6 @@
|
|
|
19
18
|
@include themed {
|
|
20
19
|
background-color: t(iui-color-background-1-overlay);
|
|
21
20
|
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
22
|
-
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
23
21
|
}
|
|
24
22
|
@include iui-notification-marker-hover;
|
|
25
23
|
}
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
@import './button-icon';
|
|
7
7
|
|
|
8
8
|
@mixin iui-button-high-visibility {
|
|
9
|
+
--_iui-button-text-color: var(--iui-color-foreground-accessory);
|
|
10
|
+
|
|
9
11
|
@include themed {
|
|
10
12
|
background-color: t(iui-color-background-primary);
|
|
11
13
|
border-color: t(iui-color-background-primary);
|
|
12
14
|
color: t(iui-color-foreground-accessory);
|
|
13
15
|
}
|
|
16
|
+
color: var(--_iui-button-text-color);
|
|
14
17
|
@include iui-focus($color: var(--iui-color-foreground-accessory), $offset: -3px, $thickness: 1px);
|
|
15
18
|
|
|
16
19
|
&:hover,
|
|
@@ -18,7 +21,6 @@
|
|
|
18
21
|
@include themed {
|
|
19
22
|
background-color: t(iui-color-background-primary-overlay);
|
|
20
23
|
border-color: t(iui-color-background-primary-overlay);
|
|
21
|
-
color: t(iui-color-foreground-accessory);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
package/scss/classes.scss
CHANGED
|
@@ -28,8 +28,11 @@
|
|
|
28
28
|
@import './notification-marker/classes';
|
|
29
29
|
@import './popover/classes';
|
|
30
30
|
@import './progress-indicator/classes';
|
|
31
|
+
@import './radio-tile/classes';
|
|
31
32
|
@import './side-navigation/classes';
|
|
33
|
+
@import './skip-to-content/classes';
|
|
32
34
|
@import './slider/classes';
|
|
35
|
+
@import './surface/classes';
|
|
33
36
|
@import './table/classes';
|
|
34
37
|
@import './tabs/classes';
|
|
35
38
|
@import './tag/classes';
|
|
@@ -42,5 +45,3 @@
|
|
|
42
45
|
@import './tree/classes';
|
|
43
46
|
@import './user-icon/classes';
|
|
44
47
|
@import './wizard/classes';
|
|
45
|
-
@import './skip-to-content/classes';
|
|
46
|
-
@import './surface/classes';
|
package/scss/header/header.scss
CHANGED
|
@@ -161,6 +161,10 @@
|
|
|
161
161
|
@include iui-header-button;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
.iui-header-dropdown-button.iui-header-dropdown-button {
|
|
165
|
+
@include iui-header-dropdown-button;
|
|
166
|
+
}
|
|
167
|
+
|
|
164
168
|
.iui-header-split-button {
|
|
165
169
|
@include iui-header-split-button;
|
|
166
170
|
}
|
|
@@ -239,7 +243,6 @@
|
|
|
239
243
|
height: 100%;
|
|
240
244
|
border-radius: 0;
|
|
241
245
|
overflow: hidden;
|
|
242
|
-
padding-right: $iui-s;
|
|
243
246
|
|
|
244
247
|
@include iui-header-button-focus;
|
|
245
248
|
|
|
@@ -313,6 +316,10 @@
|
|
|
313
316
|
}
|
|
314
317
|
}
|
|
315
318
|
|
|
319
|
+
@mixin iui-header-dropdown-button {
|
|
320
|
+
padding-right: $iui-s;
|
|
321
|
+
}
|
|
322
|
+
|
|
316
323
|
@mixin iui-header-split-button {
|
|
317
324
|
&,
|
|
318
325
|
> * {
|
package/scss/index.scss
CHANGED
|
@@ -26,8 +26,11 @@
|
|
|
26
26
|
@import './notification-marker/index';
|
|
27
27
|
@import './popover/index';
|
|
28
28
|
@import './progress-indicator/index';
|
|
29
|
+
@import './radio-tile/index';
|
|
29
30
|
@import './side-navigation/index';
|
|
31
|
+
@import './skip-to-content/index';
|
|
30
32
|
@import './slider/index';
|
|
33
|
+
@import './surface/index';
|
|
31
34
|
@import './table/index';
|
|
32
35
|
@import './tabs/index';
|
|
33
36
|
@import './tag/index';
|
|
@@ -40,5 +43,3 @@
|
|
|
40
43
|
@import './tree/index';
|
|
41
44
|
@import './user-icon/index';
|
|
42
45
|
@import './wizard/index';
|
|
43
|
-
@import './skip-to-content/index';
|
|
44
|
-
@import './surface/index';
|
|
@@ -66,6 +66,13 @@
|
|
|
66
66
|
|
|
67
67
|
@include iui-focus($thickness: 2px);
|
|
68
68
|
|
|
69
|
+
&:disabled {
|
|
70
|
+
--_iui-checkbox-svg-color: var(--iui-icons-color-actionable-disabled);
|
|
71
|
+
--_iui-checkbox-border-color: var(--iui-color-background-border);
|
|
72
|
+
--_iui-checkbox-background-color: var(--iui-color-background-disabled);
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
&.iui-checkbox-visibility {
|
|
70
77
|
--_iui-checkbox-checkmark-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m8 2.99051a8.81883 8.81883 0 0 0 -8 4.95062 8.74664 8.74664 0 0 0 8 5.06836 8.63266 8.63266 0 0 0 8-5.06836 8.83631 8.83631 0 0 0 -8-4.95062zm-1.31445 1.86981a1.47663 1.47663 0 1 1 -1.47663 1.47668 1.47665 1.47665 0 0 1 1.47663-1.47668zm1.31445 6.64917a7.17486 7.17486 0 0 1 -6.30475-3.55237 7.4952 7.4952 0 0 1 2.81475-2.6336 3.83956 3.83956 0 1 0 6.98126.00244 7.522 7.522 0 0 1 2.81774 2.63916 7.09785 7.09785 0 0 1 -6.309 3.54437z" /></svg>');
|
|
71
78
|
--_iui-checkbox-indeterminate-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m8 3v7.9a4.01179 4.01179 0 0 0 4-4 6.7509 6.7509 0 0 0 -.2-1.4l.1.1a6.89429 6.89429 0 0 1 2.4 2.4 8.39088 8.39088 0 0 1 -2.3 2.3 6.89412 6.89412 0 0 1 -3.9 1.2c-.03345 0-.06653-.00677-.1-.0072v1.5072a8.90686 8.90686 0 0 0 8-5 8.90686 8.90686 0 0 0 -8-5z" opacity=".33" /><path d="m8 0a1 1 0 0 0 -1 1v2.07135a8.91637 8.91637 0 0 0 -7 4.92865 8.91637 8.91637 0 0 0 7 4.92865v2.07135a1 1 0 0 0 2 0v-14a1 1 0 0 0 -1-1zm-1.5 4.9a1.55426 1.55426 0 0 1 .5.087v2.81451a1.40746 1.40746 0 0 1 -.5.09849 1.538 1.538 0 0 1 -1.5-1.5 1.53794 1.53794 0 0 1 1.5-1.5zm-2.3 5.4a6.97279 6.97279 0 0 1 -2.5-2.3 6.89429 6.89429 0 0 1 2.4-2.4c.1 0 .1-.1.2-.1a3.194 3.194 0 0 0 -.3 1.4 4.0047 4.0047 0 0 0 3 3.857v.65289a6.37491 6.37491 0 0 1 -2.8-1.10989z" /></svg>');
|
|
@@ -82,13 +89,11 @@
|
|
|
82
89
|
--_iui-checkbox-border-color: transparent;
|
|
83
90
|
--_iui-checkbox-background-color: rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
|
|
84
91
|
}
|
|
85
|
-
}
|
|
86
92
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
cursor: not-allowed;
|
|
93
|
+
&:where(:disabled) {
|
|
94
|
+
--_iui-checkbox-svg-color: var(--iui-icons-color-actionable-disabled);
|
|
95
|
+
--_iui-checkbox-background-color: var(--iui-color-background-disabled);
|
|
96
|
+
}
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
&.iui-loading {
|
package/scss/inputs/classes.scss
CHANGED
package/scss/inputs/index.scss
CHANGED
package/scss/menu/menu.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import '../icon/index';
|
|
5
|
+
@import '../text/index';
|
|
5
6
|
|
|
6
7
|
$iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
7
8
|
|
|
@@ -149,6 +150,32 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
|
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
}
|
|
153
|
+
|
|
154
|
+
&-skeleton {
|
|
155
|
+
--iui-menu-item-content-skeleton-max-width: 30%;
|
|
156
|
+
cursor: auto;
|
|
157
|
+
|
|
158
|
+
.iui-content {
|
|
159
|
+
max-width: var(--iui-menu-item-content-skeleton-max-width);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.iui-menu-label {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: $iui-font-size;
|
|
165
|
+
vertical-align: middle;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.iui-menu-description {
|
|
169
|
+
width: 70%;
|
|
170
|
+
height: $iui-font-size-small;
|
|
171
|
+
vertical-align: middle;
|
|
172
|
+
margin-top: $iui-xs;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:hover {
|
|
176
|
+
background-color: unset;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
152
179
|
}
|
|
153
180
|
|
|
154
181
|
@mixin iui-menu-content {
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
.iui-radio-tile {
|
|
6
|
+
@include iui-radio-tile;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.iui-radio-tile-content {
|
|
10
|
+
@include iui-radio-tile-content;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.iui-radio-tile-container {
|
|
14
|
+
@include iui-radio-tile-container;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.iui-radio-tile-input {
|
|
18
|
+
@include iui-radio-tile-input;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.iui-radio-tile-icon {
|
|
22
|
+
@include iui-radio-tile-icon;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.iui-radio-tile-label {
|
|
26
|
+
@include iui-radio-tile-label;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.iui-radio-tile-sublabel {
|
|
30
|
+
@include iui-radio-tile-sublabel;
|
|
31
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
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 '../style/index';
|
|
4
|
+
@import '../icon/index';
|
|
5
|
+
|
|
6
|
+
@mixin iui-radio-tile {
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
@include themed {
|
|
9
|
+
-webkit-tap-highlight-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:first-of-type > .iui-radio-tile-content {
|
|
13
|
+
border-radius: $iui-border-radius 0 0 $iui-border-radius;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:last-of-type > .iui-radio-tile-content {
|
|
17
|
+
border-radius: 0 $iui-border-radius $iui-border-radius 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:not(:first-of-type) > .iui-radio-tile-content {
|
|
21
|
+
margin-left: -1px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@mixin iui-radio-tile-content {
|
|
25
|
+
width: $iui-xl * 5;
|
|
26
|
+
height: 100%;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding: $iui-s;
|
|
29
|
+
position: relative;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
32
|
+
transition: border-color $iui-speed-fast ease-out;
|
|
33
|
+
}
|
|
34
|
+
@include themed {
|
|
35
|
+
border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
36
|
+
background-color: t(iui-color-background-1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
z-index: 2;
|
|
41
|
+
@include themed {
|
|
42
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.iui-radio-tile-icon {
|
|
46
|
+
@media (forced-colors: active) {
|
|
47
|
+
fill: CanvasText;
|
|
48
|
+
}
|
|
49
|
+
@include themed {
|
|
50
|
+
fill: t(iui-icons-color-actionable);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin iui-radio-tile-container {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
user-select: none;
|
|
60
|
+
// Create stacking context
|
|
61
|
+
position: relative;
|
|
62
|
+
z-index: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin iui-radio-tile-input {
|
|
66
|
+
width: 0;
|
|
67
|
+
height: 0;
|
|
68
|
+
appearance: none;
|
|
69
|
+
opacity: 0;
|
|
70
|
+
position: absolute;
|
|
71
|
+
@include focus-visible {
|
|
72
|
+
+ * {
|
|
73
|
+
outline-offset: -4px;
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
outline-color: Highlight;
|
|
76
|
+
}
|
|
77
|
+
@include themed {
|
|
78
|
+
outline: 2px solid t(iui-color-foreground-primary);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:checked + * {
|
|
84
|
+
padding: $iui-s - 1;
|
|
85
|
+
z-index: 3;
|
|
86
|
+
@media (forced-colors: active) {
|
|
87
|
+
border-color: Highlight;
|
|
88
|
+
}
|
|
89
|
+
@include themed {
|
|
90
|
+
border: 2px solid t(iui-color-foreground-primary);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.iui-radio-tile-icon {
|
|
94
|
+
@media (forced-colors: active) {
|
|
95
|
+
fill: Highlight;
|
|
96
|
+
}
|
|
97
|
+
@include themed {
|
|
98
|
+
fill: t(iui-icons-color-primary);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::after {
|
|
103
|
+
content: '';
|
|
104
|
+
width: $iui-icons-default;
|
|
105
|
+
height: $iui-icons-default;
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: $iui-s;
|
|
108
|
+
right: $iui-s;
|
|
109
|
+
mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6,14L0,8l2-2l4,4l8-8l2,2L6,14z" /></svg>');
|
|
110
|
+
@media (forced-colors: active) {
|
|
111
|
+
background-color: Highlight;
|
|
112
|
+
}
|
|
113
|
+
@include themed {
|
|
114
|
+
background-color: t(iui-color-foreground-primary);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:disabled + * {
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
z-index: 0;
|
|
122
|
+
@include themed {
|
|
123
|
+
border-color: t(iui-color-background-disabled);
|
|
124
|
+
background-color: t(iui-color-background-disabled);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::after {
|
|
128
|
+
@media (forced-colors: active) {
|
|
129
|
+
background-color: GrayText;
|
|
130
|
+
}
|
|
131
|
+
@include themed {
|
|
132
|
+
background-color: t(iui-icons-color-actionable-disabled);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.iui-radio-tile-icon {
|
|
137
|
+
filter: $iui-icons-color-multicolor-disabled;
|
|
138
|
+
@media (forced-colors: active) {
|
|
139
|
+
fill: GrayText;
|
|
140
|
+
}
|
|
141
|
+
@include themed {
|
|
142
|
+
fill: t(iui-icons-color-actionable-disabled);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.iui-radio-tile-label,
|
|
147
|
+
.iui-radio-tile-sublabel {
|
|
148
|
+
@media (forced-colors: active) {
|
|
149
|
+
color: GrayText;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.iui-radio-tile-label {
|
|
154
|
+
@include themed {
|
|
155
|
+
color: t(iui-text-color-muted);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:disabled:checked + * {
|
|
161
|
+
z-index: 3;
|
|
162
|
+
@media (forced-colors: active) {
|
|
163
|
+
border-color: GrayText;
|
|
164
|
+
}
|
|
165
|
+
@include themed {
|
|
166
|
+
border: 2px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@mixin iui-radio-tile-icon {
|
|
172
|
+
width: $iui-icons-xl;
|
|
173
|
+
height: $iui-icons-xl;
|
|
174
|
+
display: block;
|
|
175
|
+
margin: 0 auto;
|
|
176
|
+
padding-top: round($iui-baseline * 0.5);
|
|
177
|
+
padding-bottom: $iui-baseline;
|
|
178
|
+
|
|
179
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
180
|
+
transition: fill $iui-speed-fast ease-out;
|
|
181
|
+
}
|
|
182
|
+
@media (forced-colors: active) {
|
|
183
|
+
fill: CanvasText;
|
|
184
|
+
}
|
|
185
|
+
@include themed {
|
|
186
|
+
fill: t(iui-icons-color);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin iui-radio-tile-label {
|
|
191
|
+
font-size: $iui-font-size;
|
|
192
|
+
font-weight: $iui-font-weight-semibold;
|
|
193
|
+
line-height: $iui-line-height;
|
|
194
|
+
text-align: center;
|
|
195
|
+
word-break: break-word;
|
|
196
|
+
@include themed {
|
|
197
|
+
color: t(iui-text-color);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@mixin iui-radio-tile-sublabel {
|
|
202
|
+
font-size: $iui-font-size-small;
|
|
203
|
+
line-height: round($iui-baseline * 1.375);
|
|
204
|
+
text-align: center;
|
|
205
|
+
word-break: break-word;
|
|
206
|
+
@include themed {
|
|
207
|
+
color: t(iui-text-color-muted);
|
|
208
|
+
}
|
|
209
|
+
}
|
package/scss/style/anchor.scss
CHANGED
|
@@ -3,26 +3,11 @@
|
|
|
3
3
|
@import './index';
|
|
4
4
|
|
|
5
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
6
|
@include iui-anchor-status('primary');
|
|
9
7
|
border-radius: $iui-border-radius;
|
|
8
|
+
box-sizing: border-box;
|
|
10
9
|
cursor: pointer;
|
|
11
10
|
|
|
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
11
|
@include iui-anchor-underline('on-hover');
|
|
27
12
|
|
|
28
13
|
@media (prefers-contrast: more) {
|
|
@@ -44,6 +29,24 @@
|
|
|
44
29
|
}
|
|
45
30
|
}
|
|
46
31
|
|
|
32
|
+
@mixin iui-anchor-external {
|
|
33
|
+
--_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>");
|
|
34
|
+
|
|
35
|
+
&::after {
|
|
36
|
+
content: '';
|
|
37
|
+
display: inline-block;
|
|
38
|
+
width: 1.5ch;
|
|
39
|
+
height: 1.5ch;
|
|
40
|
+
margin-left: 0.5ch;
|
|
41
|
+
vertical-align: -0.1ch;
|
|
42
|
+
background-color: currentColor;
|
|
43
|
+
mask: var(--_iui-anchor-external-svg);
|
|
44
|
+
@media (forced-colors: active) {
|
|
45
|
+
background-color: LinkText;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
47
50
|
@mixin iui-anchor-status($status: primary) {
|
|
48
51
|
@include iui-focus($color: var(--iui-color-foreground-#{$status}), $offset: 1px);
|
|
49
52
|
@include themed {
|
package/scss/style/global.scss
CHANGED
|
@@ -73,6 +73,10 @@
|
|
|
73
73
|
@include iui-button-borderless;
|
|
74
74
|
width: $iui-component-height;
|
|
75
75
|
|
|
76
|
+
&.iui-active {
|
|
77
|
+
@include iui-button-active;
|
|
78
|
+
}
|
|
79
|
+
|
|
76
80
|
// Adds stripe above active button
|
|
77
81
|
--_iui-button-active-stripe-inset: calc(100% - #{$iui-xs}) #{$iui-xxs} #{$iui-xxs};
|
|
78
82
|
|
package/scss/tabs/tabs.scss
CHANGED
package/scss/tag/classes.scss
CHANGED
|
@@ -7,8 +7,21 @@
|
|
|
7
7
|
@include iui-tag;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
.iui-tag-basic {
|
|
11
|
+
@include iui-tag-basic;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.iui-tag-label {
|
|
15
|
+
@include iui-tag-label;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.iui-tag-button {
|
|
19
|
+
@include iui-tag-button;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
a.iui-tag-basic {
|
|
11
23
|
@include iui-anchor;
|
|
24
|
+
@include iui-focus($offset: 1px);
|
|
12
25
|
}
|
|
13
26
|
|
|
14
27
|
.iui-tag-container {
|