@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
|
@@ -2,65 +2,40 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import './button';
|
|
5
|
+
@import './disabled';
|
|
6
|
+
@import './button-icon';
|
|
5
7
|
|
|
6
8
|
@mixin iui-button-borderless {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
padding: 0 $iui-s;
|
|
10
|
-
|
|
11
|
-
// Sizes
|
|
12
|
-
&.iui-small {
|
|
13
|
-
padding: 0 $iui-xxs;
|
|
14
|
-
}
|
|
9
|
+
@include iui-button-borderless-base;
|
|
10
|
+
@include iui-button-size(medium, borderless);
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// If icon is by itself, button takes 1:1 size ratio
|
|
21
|
-
> .iui-icon:only-child {
|
|
22
|
-
margin-left: $iui-component-offset;
|
|
23
|
-
margin-right: $iui-component-offset;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:enabled:hover,
|
|
27
|
-
&:enabled:active,
|
|
28
|
-
&:focus-visible {
|
|
12
|
+
&:hover,
|
|
13
|
+
&:focus {
|
|
29
14
|
@include themed {
|
|
30
|
-
background-color: rgba(
|
|
31
|
-
t(iui-color-foreground-body-rgb),
|
|
32
|
-
t(iui-opacity-6)
|
|
33
|
-
);
|
|
15
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
34
16
|
border-color: transparent;
|
|
35
17
|
}
|
|
36
18
|
}
|
|
37
19
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
t(iui-opacity-6)
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
border-color: transparent;
|
|
20
|
+
&:focus:not(:focus-visible) {
|
|
21
|
+
@include iui-button-borderless-base;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.iui-active {
|
|
25
|
+
@include themed {
|
|
26
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
27
|
+
color: t(iui-color-foreground-primary);
|
|
50
28
|
}
|
|
29
|
+
border-color: transparent;
|
|
51
30
|
}
|
|
52
31
|
|
|
53
32
|
&[disabled],
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
&[disabled]:focus {
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
border-color: transparent;
|
|
33
|
+
&:disabled {
|
|
34
|
+
@include iui-button-disabled;
|
|
59
35
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
36
|
+
@include themed {
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
border-color: transparent;
|
|
64
39
|
}
|
|
65
40
|
|
|
66
41
|
&.iui-active {
|
|
@@ -70,3 +45,13 @@
|
|
|
70
45
|
}
|
|
71
46
|
}
|
|
72
47
|
}
|
|
48
|
+
|
|
49
|
+
@mixin iui-button-borderless-base {
|
|
50
|
+
border-color: transparent;
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
|
|
53
|
+
> .iui-button-icon:only-child {
|
|
54
|
+
margin-left: $iui-component-offset;
|
|
55
|
+
margin-right: $iui-component-offset;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -21,19 +21,16 @@
|
|
|
21
21
|
border-bottom-right-radius: $iui-border-radius;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
&.iui-default:not(:last-of-type) {
|
|
25
25
|
border-right: none;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
&.iui-default {
|
|
29
29
|
// Border trick for grouped default & disabled buttons
|
|
30
|
-
&:
|
|
30
|
+
&:not(:disabled) {
|
|
31
31
|
+ :disabled {
|
|
32
32
|
@include themed {
|
|
33
|
-
border-left-color: rgba(
|
|
34
|
-
t(iui-color-foreground-body-rgb),
|
|
35
|
-
t(iui-opacity-4)
|
|
36
|
-
);
|
|
33
|
+
border-left-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
|
|
@@ -41,10 +38,7 @@
|
|
|
41
38
|
&:active + .iui-button,
|
|
42
39
|
&:focus-visible + .iui-button {
|
|
43
40
|
@include themed {
|
|
44
|
-
border-left-color: rgba(
|
|
45
|
-
t(iui-color-foreground-body-rgb),
|
|
46
|
-
t(iui-opacity-1)
|
|
47
|
-
);
|
|
41
|
+
border-left-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
}
|
|
@@ -76,10 +70,7 @@
|
|
|
76
70
|
&:disabled {
|
|
77
71
|
&::after {
|
|
78
72
|
@include themed {
|
|
79
|
-
background-color: rgba(
|
|
80
|
-
t(iui-color-foreground-body-rgb),
|
|
81
|
-
t(iui-opacity-5)
|
|
82
|
-
);
|
|
73
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
|
|
83
74
|
}
|
|
84
75
|
}
|
|
85
76
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 for button icons
|
|
7
|
+
@mixin iui-button-icon {
|
|
8
|
+
width: $iui-icons-default;
|
|
9
|
+
height: $iui-icons-default;
|
|
10
|
+
transition: fill $iui-speed-fast ease-out;
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
}
|
package/scss/button/button.scss
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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 './disabled';
|
|
6
|
+
@import './button-icon';
|
|
5
7
|
|
|
6
8
|
$iui-button-padding: $iui-xs * 4;
|
|
7
9
|
$iui-button-padding-small: $iui-xs * 2;
|
|
@@ -28,58 +30,49 @@ $iui-button-padding-large: $iui-xs * 6;
|
|
|
28
30
|
white-space: nowrap;
|
|
29
31
|
border: 1px solid transparent;
|
|
30
32
|
@media (prefers-reduced-motion: no-preference) {
|
|
31
|
-
transition: color $iui-speed-fast ease-out,
|
|
32
|
-
background-color $iui-speed-fast ease-out,
|
|
33
|
+
transition: color $iui-speed-fast ease-out, background-color $iui-speed-fast ease-out,
|
|
33
34
|
border-color $iui-speed-fast ease-out;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
height: $iui-icons-default;
|
|
39
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
40
|
-
transition: fill $iui-speed-fast ease-out;
|
|
41
|
-
}
|
|
37
|
+
@include themed {
|
|
38
|
+
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
&:
|
|
41
|
+
&:hover {
|
|
45
42
|
text-decoration: none;
|
|
43
|
+
@include themed {
|
|
44
|
+
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
45
|
+
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
@include iui-focus;
|
|
49
|
-
@include iui-button-sizes;
|
|
50
|
-
}
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
&[disabled],
|
|
51
|
+
&:disabled {
|
|
52
|
+
@include iui-button-disabled;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
/// Mixin for applying padding and margins to various button sizes.
|
|
57
|
+
/// @arg size - must be one of: small, medium, large
|
|
58
|
+
/// @arg styleType - must be one of: default, borderless
|
|
59
|
+
@mixin iui-button-size($size: medium, $styleType: default) {
|
|
60
|
+
@if $size == medium {
|
|
61
|
+
padding: if($styleType == 'borderless', 0 $iui-s, 0 $iui-button-padding);
|
|
62
|
+
height: $iui-component-height;
|
|
63
|
+
gap: $iui-s;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
padding: 0 $iui-button-padding-small;
|
|
66
|
+
@if $size == small {
|
|
67
|
+
padding: if($styleType == 'borderless', 0 $iui-xxs, 0 $iui-button-padding-small);
|
|
64
68
|
height: $iui-component-height-small;
|
|
65
|
-
|
|
66
|
-
> .iui-icon + .iui-label,
|
|
67
|
-
> .iui-label + .iui-icon,
|
|
68
|
-
> .iui-icon + .iui-icon {
|
|
69
|
-
margin-left: $iui-xs;
|
|
70
|
-
}
|
|
69
|
+
gap: $iui-xs;
|
|
71
70
|
}
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
padding: 0 $iui-button-padding-large;
|
|
72
|
+
@if $size == large {
|
|
73
|
+
padding: if($styleType == 'borderless', 0 $iui-sm, 0 $iui-button-padding-large);
|
|
75
74
|
height: $iui-component-height-large;
|
|
76
75
|
font-size: $iui-font-size-leading;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
> .iui-icon + .iui-label,
|
|
80
|
-
> .iui-label + .iui-icon,
|
|
81
|
-
> .iui-icon + .iui-icon {
|
|
82
|
-
margin-left: $iui-sm;
|
|
83
|
-
}
|
|
76
|
+
gap: $iui-sm;
|
|
84
77
|
}
|
|
85
78
|
}
|
package/scss/button/classes.scss
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
.iui-button {
|
|
6
6
|
@include iui-button;
|
|
7
|
-
@include iui-button-
|
|
7
|
+
@include iui-button-size;
|
|
8
|
+
|
|
9
|
+
&.iui-default {
|
|
10
|
+
@include iui-button-default;
|
|
11
|
+
}
|
|
8
12
|
|
|
9
13
|
&.iui-high-visibility {
|
|
10
14
|
@include iui-button-high-visibility;
|
|
@@ -22,8 +26,22 @@
|
|
|
22
26
|
@include iui-button-borderless;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
@include iui-button-size(medium);
|
|
30
|
+
|
|
31
|
+
&.iui-small {
|
|
32
|
+
@include iui-button-size(small);
|
|
33
|
+
|
|
34
|
+
&.iui-borderless {
|
|
35
|
+
@include iui-button-size(small, borderless);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.iui-large {
|
|
40
|
+
@include iui-button-size(large);
|
|
41
|
+
|
|
42
|
+
&.iui-borderless {
|
|
43
|
+
@include iui-button-size(large, borderless);
|
|
44
|
+
}
|
|
27
45
|
}
|
|
28
46
|
}
|
|
29
47
|
|
|
@@ -35,3 +53,7 @@
|
|
|
35
53
|
@include iui-button-group;
|
|
36
54
|
@include iui-button-split-menu;
|
|
37
55
|
}
|
|
56
|
+
|
|
57
|
+
.iui-button-icon {
|
|
58
|
+
@include iui-button-icon;
|
|
59
|
+
}
|
package/scss/button/cta.scss
CHANGED
|
@@ -2,33 +2,36 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import './button';
|
|
5
|
+
@import './button-icon';
|
|
6
|
+
@import './disabled';
|
|
5
7
|
|
|
6
8
|
@mixin iui-button-cta {
|
|
7
|
-
@include
|
|
8
|
-
background-color: t(iui-color-background-positive);
|
|
9
|
-
border-color: t(iui-color-background-positive);
|
|
10
|
-
color: t(iui-color-foreground-accessory);
|
|
11
|
-
}
|
|
9
|
+
@include iui-button-cta-base;
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:enabled:hover,
|
|
20
|
-
&:enabled:active,
|
|
21
|
-
&:focus-visible {
|
|
11
|
+
&:hover,
|
|
12
|
+
&:active,
|
|
13
|
+
&:focus {
|
|
22
14
|
@include themed {
|
|
23
15
|
background-color: t(iui-color-background-positive-overlay);
|
|
24
16
|
border-color: t(iui-color-background-positive-overlay);
|
|
25
17
|
color: t(iui-color-foreground-accessory);
|
|
26
18
|
}
|
|
19
|
+
}
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
&:focus:not(:focus-visible) {
|
|
22
|
+
@include iui-button-cta-base;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[disabled],
|
|
26
|
+
&:disabled {
|
|
27
|
+
@include iui-button-disabled;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin iui-button-cta-base {
|
|
32
|
+
@include themed {
|
|
33
|
+
background-color: t(iui-color-background-positive);
|
|
34
|
+
border-color: t(iui-color-background-positive);
|
|
35
|
+
color: t(iui-color-foreground-accessory);
|
|
33
36
|
}
|
|
34
37
|
}
|
package/scss/button/default.scss
CHANGED
|
@@ -2,36 +2,26 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import './button';
|
|
5
|
+
@import './button-icon';
|
|
5
6
|
@import '../notification-marker/index';
|
|
7
|
+
@import './disabled';
|
|
6
8
|
|
|
7
9
|
@mixin iui-button-default {
|
|
8
|
-
@include
|
|
9
|
-
background-color: t(iui-color-background-1);
|
|
10
|
-
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
11
|
-
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
12
|
-
}
|
|
10
|
+
@include iui-button-default-base;
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:enabled:hover,
|
|
21
|
-
&:enabled:active,
|
|
22
|
-
&:focus-visible {
|
|
12
|
+
&:hover,
|
|
13
|
+
&:active,
|
|
14
|
+
&:focus {
|
|
23
15
|
@include themed {
|
|
24
16
|
background-color: t(iui-color-background-1-overlay);
|
|
25
17
|
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
26
18
|
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
|
|
27
19
|
}
|
|
28
20
|
@include iui-notification-marker-hover;
|
|
21
|
+
}
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
fill: t(iui-icons-color-actionable-hover);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
23
|
+
&:focus:not(:focus-visible) {
|
|
24
|
+
@include iui-button-default-base;
|
|
35
25
|
}
|
|
36
26
|
|
|
37
27
|
&.iui-dropdown {
|
|
@@ -47,29 +37,27 @@
|
|
|
47
37
|
}
|
|
48
38
|
}
|
|
49
39
|
|
|
50
|
-
&.iui-active
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
40
|
+
&.iui-active {
|
|
41
|
+
@include themed {
|
|
42
|
+
background: linear-gradient(
|
|
43
|
+
rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6)),
|
|
44
|
+
rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6))
|
|
45
|
+
),
|
|
46
|
+
linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
|
|
47
|
+
color: t(iui-color-foreground-primary);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
61
50
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
&[disabled],
|
|
52
|
+
&:disabled {
|
|
53
|
+
@include iui-button-disabled;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
67
56
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
57
|
+
@mixin iui-button-default-base {
|
|
58
|
+
@include themed {
|
|
59
|
+
background-color: t(iui-color-background-1);
|
|
60
|
+
border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
|
|
61
|
+
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-2));
|
|
74
62
|
}
|
|
75
63
|
}
|
|
@@ -1,24 +1,13 @@
|
|
|
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 './button';
|
|
4
|
+
@import './button-icon';
|
|
5
5
|
|
|
6
6
|
@mixin iui-button-disabled {
|
|
7
7
|
cursor: not-allowed;
|
|
8
8
|
@include themed {
|
|
9
|
-
background
|
|
9
|
+
background: t(iui-color-background-disabled);
|
|
10
10
|
border-color: t(iui-color-background-disabled);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
> .iui-label {
|
|
14
|
-
@include themed {
|
|
15
|
-
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
> .iui-icon {
|
|
20
|
-
@include themed {
|
|
21
|
-
fill: t(iui-icons-color-actionable-disabled);
|
|
22
|
-
}
|
|
11
|
+
color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
|
|
23
12
|
}
|
|
24
13
|
}
|
|
@@ -2,33 +2,36 @@
|
|
|
2
2
|
// See LICENSE.md in the project root for license terms and full copyright notice.
|
|
3
3
|
@import '../style/index';
|
|
4
4
|
@import './button';
|
|
5
|
+
@import './disabled';
|
|
6
|
+
@import './button-icon';
|
|
5
7
|
|
|
6
8
|
@mixin iui-button-high-visibility {
|
|
7
|
-
@include
|
|
8
|
-
background-color: t(iui-color-background-primary);
|
|
9
|
-
border-color: t(iui-color-background-primary);
|
|
10
|
-
color: t(iui-color-foreground-accessory);
|
|
11
|
-
}
|
|
9
|
+
@include iui-button-high-visibility-base;
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:enabled:hover,
|
|
20
|
-
&:enabled:active,
|
|
21
|
-
&:focus-visible {
|
|
11
|
+
&:hover,
|
|
12
|
+
&:active,
|
|
13
|
+
&:focus {
|
|
22
14
|
@include themed {
|
|
23
15
|
background-color: t(iui-color-background-primary-overlay);
|
|
24
16
|
border-color: t(iui-color-background-primary-overlay);
|
|
25
17
|
color: t(iui-color-foreground-accessory);
|
|
26
18
|
}
|
|
19
|
+
}
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
&:focus:not(:focus-visible) {
|
|
22
|
+
@include iui-button-high-visibility-base;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[disabled],
|
|
26
|
+
&:disabled {
|
|
27
|
+
@include iui-button-disabled;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin iui-button-high-visibility-base {
|
|
32
|
+
@include themed {
|
|
33
|
+
background-color: t(iui-color-background-primary);
|
|
34
|
+
border-color: t(iui-color-background-primary);
|
|
35
|
+
color: t(iui-color-foreground-accessory);
|
|
33
36
|
}
|
|
34
37
|
}
|
package/scss/button/index.scss
CHANGED
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
&:hover {
|
|
9
9
|
@include themed {
|
|
10
|
-
background-color: rgba(
|
|
11
|
-
t(iui-color-foreground-body-rgb),
|
|
12
|
-
t(iui-opacity-6)
|
|
13
|
-
);
|
|
10
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
13
|
|
|
@@ -38,10 +35,7 @@
|
|
|
38
35
|
> .iui-cta + .iui-cta,
|
|
39
36
|
> .iui-cta + .iui-cta:hover {
|
|
40
37
|
@include themed {
|
|
41
|
-
border-left-color: rgba(
|
|
42
|
-
t(iui-color-foreground-accessory-rgb),
|
|
43
|
-
t(iui-opacity-4)
|
|
44
|
-
);
|
|
38
|
+
border-left-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
|
|
45
39
|
}
|
|
46
40
|
}
|
|
47
41
|
|
|
@@ -50,4 +44,9 @@
|
|
|
50
44
|
background-color: transparent;
|
|
51
45
|
}
|
|
52
46
|
}
|
|
47
|
+
|
|
48
|
+
&[disabled],
|
|
49
|
+
&:disabled {
|
|
50
|
+
@include iui-button-disabled;
|
|
51
|
+
}
|
|
53
52
|
}
|
package/scss/code/codeblock.scss
CHANGED
|
@@ -218,7 +218,22 @@ $iui-focus-box-shadow: 0 0 1px $iui-xxs + 1 rgba(t(iui-color-foreground-primary-
|
|
|
218
218
|
height: $iui-s;
|
|
219
219
|
@include themed {
|
|
220
220
|
// Checkered transparency background pattern.
|
|
221
|
-
background-image: repeating-linear-gradient(
|
|
221
|
+
background-image: repeating-linear-gradient(
|
|
222
|
+
45deg,
|
|
223
|
+
t(iui-color-background-3) 25%,
|
|
224
|
+
transparent 25%,
|
|
225
|
+
transparent 75%,
|
|
226
|
+
t(iui-color-background-3) 75%,
|
|
227
|
+
t(iui-color-background-3)
|
|
228
|
+
),
|
|
229
|
+
repeating-linear-gradient(
|
|
230
|
+
45deg,
|
|
231
|
+
t(iui-color-background-3) 25%,
|
|
232
|
+
t(iui-color-background-5) 25%,
|
|
233
|
+
t(iui-color-background-5) 75%,
|
|
234
|
+
t(iui-color-background-3) 75%,
|
|
235
|
+
t(iui-color-background-3)
|
|
236
|
+
);
|
|
222
237
|
background-position: 0 0, ($iui-s * 0.5) ($iui-s * 0.5);
|
|
223
238
|
background-size: $iui-s $iui-s;
|
|
224
239
|
}
|
|
@@ -97,10 +97,7 @@
|
|
|
97
97
|
font-weight: $iui-font-weight-semibold;
|
|
98
98
|
@include themed {
|
|
99
99
|
color: t(iui-color-foreground-primary);
|
|
100
|
-
background-color: rgba(
|
|
101
|
-
t(iui-color-foreground-primary-rgb),
|
|
102
|
-
t(iui-opacity-6)
|
|
103
|
-
);
|
|
100
|
+
background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
|
|
104
101
|
}
|
|
105
102
|
}
|
|
106
103
|
|
|
@@ -108,10 +105,7 @@
|
|
|
108
105
|
font-weight: $iui-font-weight-semibold;
|
|
109
106
|
border-radius: 50%;
|
|
110
107
|
@include themed {
|
|
111
|
-
background-color: rgba(
|
|
112
|
-
t(iui-color-foreground-body-rgb),
|
|
113
|
-
t(iui-opacity-6)
|
|
114
|
-
);
|
|
108
|
+
background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
|
|
115
109
|
}
|
|
116
110
|
}
|
|
117
111
|
|