@siemens/element-theme 51.6.0 → 51.7.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/package.json +1 -1
- package/src/styles/_density.scss +43 -130
- package/src/styles/_variables.scss +2 -1
- package/src/styles/bootstrap/_alert.scss +22 -23
- package/src/styles/bootstrap/_badges.scss +42 -43
- package/src/styles/bootstrap/_button-group.scss +14 -15
- package/src/styles/bootstrap/_buttons.scss +70 -71
- package/src/styles/bootstrap/_card.scss +16 -16
- package/src/styles/bootstrap/_dropdowns.scss +6 -7
- package/src/styles/bootstrap/_functions.scss +4 -8
- package/src/styles/bootstrap/_images.scss +2 -2
- package/src/styles/bootstrap/_list-group.scss +14 -15
- package/src/styles/bootstrap/_modals.scss +4 -9
- package/src/styles/bootstrap/_nav.scss +12 -14
- package/src/styles/bootstrap/_pagination.scss +6 -8
- package/src/styles/bootstrap/_popovers.scss +4 -5
- package/src/styles/bootstrap/_reboot.scss +4 -3
- package/src/styles/bootstrap/_root.scss +11 -0
- package/src/styles/bootstrap/_tables.scss +4 -4
- package/src/styles/bootstrap/_type.scss +92 -91
- package/src/styles/bootstrap/_utilities.scss +39 -39
- package/src/styles/bootstrap/_variables.scss +129 -126
- package/src/styles/bootstrap/forms/_form-check.scss +22 -23
- package/src/styles/bootstrap/forms/_form-control.scss +15 -15
- package/src/styles/bootstrap/forms/_form-file.scss +7 -7
- package/src/styles/bootstrap/forms/_form-range.scss +13 -13
- package/src/styles/bootstrap/forms/_validation.scss +2 -2
- package/src/styles/bootstrap/mixins/_badge-text.scss +2 -1
- package/src/styles/components/_application-header.scss +24 -25
- package/src/styles/components/_datatable.scss +19 -21
- package/src/styles/components/_drag_drop.scss +1 -1
- package/src/styles/components/_elevation.scss +5 -5
- package/src/styles/components/_layout.scss +9 -9
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +8 -8
- package/src/styles/components/_markdown.scss +1 -1
- package/src/styles/components/_scrollbar.scss +4 -4
- package/src/styles/components/_search-bar.scss +10 -10
- package/src/styles/components/_skeleton.scss +5 -6
- package/src/styles/components/_widgets.scss +6 -3
- package/src/styles/mixins/_utilities.scss +87 -87
- package/src/styles/variables/_elevation.scss +9 -9
- package/src/styles/variables/_focus.scss +20 -19
- package/src/styles/variables/_si-sys-variables-compat.scss +10 -0
- package/src/styles/variables/_sizing.scss +22 -20
- package/src/styles/variables/_spacers.scss +29 -28
- package/src/styles/variables/_system-tokens.scss +2 -202
- package/src/styles/variables/_typography.scss +97 -95
- package/src/styles/variables/_utilities.scss +56 -56
- package/src/styles/variables/si-sys-sizing.compact.map-flat.scss +86 -0
- package/src/styles/variables/si-sys-sizing.default.map-flat.scss +86 -0
- package/src/styles/variables/si-sys-typography.compact.map-flat.scss +140 -0
- package/src/styles/variables/si-sys-typography.default.map-flat.scss +140 -0
- package/src/styles/variables/si-sys-variables.scss +400 -0
package/package.json
CHANGED
package/src/styles/_density.scss
CHANGED
|
@@ -1,144 +1,57 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
1
2
|
@use 'selectors';
|
|
3
|
+
@use 'variables/si-sys-sizing.default.map-flat' as sizing-default;
|
|
4
|
+
@use 'variables/si-sys-sizing.compact.map-flat' as sizing-compact;
|
|
5
|
+
@use 'variables/si-sys-typography.default.map-flat' as typography-default;
|
|
6
|
+
@use 'variables/si-sys-typography.compact.map-flat' as typography-compact;
|
|
2
7
|
@use 'variables/typography';
|
|
3
8
|
|
|
4
|
-
@mixin define-
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
@mixin define-sizing($tokens) {
|
|
10
|
+
// Emit spacing, size, icon, focus-ring, and border-radius tokens until other categories migrate.
|
|
11
|
+
@each $name, $value in $tokens {
|
|
12
|
+
$is-spacing: string.index($name, 'si-sys-sizing-spacing-') == 1;
|
|
13
|
+
$is-size: string.index($name, 'si-sys-sizing-size-') == 1;
|
|
14
|
+
$is-icon: string.index($name, 'si-sys-sizing-icon-') == 1;
|
|
15
|
+
$is-focus-ring: string.index($name, 'si-sys-sizing-focus-ring-') == 1;
|
|
16
|
+
$is-radius: string.index($name, 'si-sys-sizing-border-radius-') == 1;
|
|
17
|
+
|
|
18
|
+
@if $is-icon {
|
|
19
|
+
// Keep icons in rem so they scale with the root font size.
|
|
20
|
+
--#{$name}: #{typography.px-to-rem($value)};
|
|
21
|
+
} @else if $is-spacing or $is-size or $is-focus-ring or $is-radius {
|
|
22
|
+
--#{$name}: #{$value};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
7
25
|
}
|
|
8
26
|
|
|
9
|
-
@mixin define-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
@mixin define-typography($tokens) {
|
|
28
|
+
// Emit all typography tokens except letter spacing and font families other than body/code,
|
|
29
|
+
// because they are unused.
|
|
30
|
+
@each $name, $value in $tokens {
|
|
31
|
+
@each $property in 'font-size', 'line-height', 'font-weight' {
|
|
32
|
+
$suffix: '-#{$property}';
|
|
33
|
+
|
|
34
|
+
@if string.slice($name, - string.length($suffix)) == $suffix {
|
|
35
|
+
--#{$name}: #{$value};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@if $name == 'si-sys-typography-body-font-family' or
|
|
40
|
+
$name == 'si-sys-typography-code-font-family'
|
|
41
|
+
{
|
|
42
|
+
--#{$name}: #{$value};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
20
45
|
}
|
|
21
46
|
|
|
22
47
|
#{selectors.$root} {
|
|
23
|
-
@include define-
|
|
24
|
-
@include define-spacer(20, 4px, 4px);
|
|
25
|
-
@include define-spacer(30, 6px, 6px);
|
|
26
|
-
@include define-spacer(40, 8px, 8px);
|
|
27
|
-
@include define-spacer(50, 12px, 12px);
|
|
28
|
-
@include define-spacer(60, 16px, 16px);
|
|
29
|
-
@include define-spacer(70, 20px, 20px);
|
|
30
|
-
@include define-spacer(80, 24px, 24px);
|
|
31
|
-
@include define-spacer(90, 32px, 32px);
|
|
32
|
-
@include define-spacer(100, 40px, 40px);
|
|
33
|
-
@include define-spacer(110, 48px, 48px);
|
|
34
|
-
@include define-spacer(120, 56px, 56px);
|
|
35
|
-
@include define-spacer(130, 64px, 64px);
|
|
36
|
-
@include define-spacer(140, 96px, 96px);
|
|
48
|
+
@include define-sizing(sizing-default.$tokens);
|
|
37
49
|
|
|
38
|
-
@include define-
|
|
39
|
-
@include define-font(body, 14px, 16px);
|
|
40
|
-
@include define-font(body-lg, 16px, 20px);
|
|
41
|
-
@include define-font(body-paragraph, 14px, 20px);
|
|
42
|
-
@include define-font(h1, 28px, 36px);
|
|
43
|
-
@include define-font(h2, 24px, 32px);
|
|
44
|
-
@include define-font(h3, 20px, 24px);
|
|
45
|
-
@include define-font(h4, 16px, 20px);
|
|
46
|
-
@include define-font(h5, 14px, 20px);
|
|
47
|
-
@include define-font(h6, 12px, 16px);
|
|
48
|
-
@include define-font(display, 32px, 40px);
|
|
49
|
-
@include define-font(display-lg, 40px, 52px);
|
|
50
|
-
@include define-font(display-xl, 48px, 64px);
|
|
51
|
-
@include define-font(display-xxl, 58px, 72px);
|
|
52
|
-
@include define-font(code-sm, 12px, 16px);
|
|
53
|
-
@include define-font(code, 14px, 20px);
|
|
54
|
-
@include define-font(code-lg, 16px, 20px);
|
|
55
|
-
|
|
56
|
-
@include define-sizing(10, 2px);
|
|
57
|
-
@include define-sizing(20, 4px);
|
|
58
|
-
@include define-sizing(30, 8px);
|
|
59
|
-
@include define-sizing(40, 12px);
|
|
60
|
-
@include define-sizing(50, 16px);
|
|
61
|
-
@include define-sizing(60, 20px);
|
|
62
|
-
@include define-sizing(70, 24px);
|
|
63
|
-
@include define-sizing(80, 32px);
|
|
64
|
-
@include define-sizing(90, 40px);
|
|
65
|
-
@include define-sizing(100, 48px);
|
|
66
|
-
@include define-sizing(110, 64px);
|
|
67
|
-
@include define-sizing(120, 80px);
|
|
68
|
-
@include define-sizing(130, 96px);
|
|
69
|
-
@include define-sizing(140, 120px);
|
|
70
|
-
@include define-sizing(150, 160px);
|
|
71
|
-
@include define-sizing(160, 240px);
|
|
72
|
-
@include define-sizing(170, 320px);
|
|
73
|
-
@include define-sizing(180, 480px);
|
|
74
|
-
@include define-sizing(190, 600px);
|
|
75
|
-
@include define-sizing(200, 720px);
|
|
76
|
-
|
|
77
|
-
@include define-icon-size(sm, 16px);
|
|
78
|
-
@include define-icon-size(md, 20px);
|
|
79
|
-
@include define-icon-size(lg, 24px);
|
|
80
|
-
@include define-icon-size(xl, 32px);
|
|
81
|
-
@include define-icon-size(xxl, 48px);
|
|
50
|
+
@include define-typography(typography-default.$tokens);
|
|
82
51
|
}
|
|
83
52
|
|
|
84
53
|
.density-compact {
|
|
85
|
-
@include define-
|
|
86
|
-
@include define-spacer(20, 2px, 2px);
|
|
87
|
-
@include define-spacer(30, 4px, 4px);
|
|
88
|
-
@include define-spacer(40, 6px, 6px);
|
|
89
|
-
@include define-spacer(50, 8px, 8px);
|
|
90
|
-
@include define-spacer(60, 12px, 12px);
|
|
91
|
-
@include define-spacer(70, 16px, 16px);
|
|
92
|
-
@include define-spacer(80, 20px, 20px);
|
|
93
|
-
@include define-spacer(90, 24px, 24px);
|
|
94
|
-
@include define-spacer(100, 32px, 32px);
|
|
95
|
-
@include define-spacer(110, 40px, 40px);
|
|
96
|
-
@include define-spacer(120, 48px, 48px);
|
|
97
|
-
@include define-spacer(130, 64px, 64px);
|
|
98
|
-
@include define-spacer(140, 80px, 80px);
|
|
99
|
-
|
|
100
|
-
@include define-font(body-sm, 10px, 12px);
|
|
101
|
-
@include define-font(body, 12px, 14px);
|
|
102
|
-
@include define-font(body-lg, 14px, 16px);
|
|
103
|
-
@include define-font(body-paragraph, 12px, 16px);
|
|
104
|
-
@include define-font(h1, 24px, 28px);
|
|
105
|
-
@include define-font(h2, 20px, 24px);
|
|
106
|
-
@include define-font(h3, 16px, 18px);
|
|
107
|
-
@include define-font(h4, 14px, 16px);
|
|
108
|
-
@include define-font(h5, 14px, 16px);
|
|
109
|
-
@include define-font(h6, 12px, 16px);
|
|
110
|
-
@include define-font(display, 28px, 32px);
|
|
111
|
-
@include define-font(display-lg, 32px, 40px);
|
|
112
|
-
@include define-font(display-xl, 40px, 48px);
|
|
113
|
-
@include define-font(display-xxl, 48px, 56px);
|
|
114
|
-
@include define-font(code-sm, 12px, 16px);
|
|
115
|
-
@include define-font(code, 14px, 20px);
|
|
116
|
-
@include define-font(code-lg, 16px, 20px);
|
|
117
|
-
|
|
118
|
-
@include define-sizing(10, 2px);
|
|
119
|
-
@include define-sizing(20, 2px);
|
|
120
|
-
@include define-sizing(30, 4px);
|
|
121
|
-
@include define-sizing(40, 8px);
|
|
122
|
-
@include define-sizing(50, 12px);
|
|
123
|
-
@include define-sizing(60, 16px);
|
|
124
|
-
@include define-sizing(70, 20px);
|
|
125
|
-
@include define-sizing(80, 24px);
|
|
126
|
-
@include define-sizing(90, 32px);
|
|
127
|
-
@include define-sizing(100, 40px);
|
|
128
|
-
@include define-sizing(110, 48px);
|
|
129
|
-
@include define-sizing(120, 64px);
|
|
130
|
-
@include define-sizing(130, 80px);
|
|
131
|
-
@include define-sizing(140, 96px);
|
|
132
|
-
@include define-sizing(150, 120px);
|
|
133
|
-
@include define-sizing(160, 160px);
|
|
134
|
-
@include define-sizing(170, 240px);
|
|
135
|
-
@include define-sizing(180, 320px);
|
|
136
|
-
@include define-sizing(190, 480px);
|
|
137
|
-
@include define-sizing(200, 600px);
|
|
54
|
+
@include define-sizing(sizing-compact.$tokens);
|
|
138
55
|
|
|
139
|
-
@include define-
|
|
140
|
-
@include define-icon-size(md, 16px);
|
|
141
|
-
@include define-icon-size(lg, 20px);
|
|
142
|
-
@include define-icon-size(xl, 24px);
|
|
143
|
-
@include define-icon-size(xxl, 32px);
|
|
56
|
+
@include define-typography(typography-compact.$tokens);
|
|
144
57
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// the minimal set of variables w/o all the heavy bootstrap stuff
|
|
2
2
|
@forward './variables/animations';
|
|
3
3
|
@forward './variables/semantic-tokens';
|
|
4
|
-
@forward './variables/
|
|
4
|
+
@forward './variables/si-sys-variables';
|
|
5
|
+
@forward './variables/si-sys-variables-compat';
|
|
5
6
|
@forward './variables/typography';
|
|
6
7
|
@forward './variables/elevation';
|
|
7
8
|
@forward './variables/focus';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@use '../variables/
|
|
2
|
-
@use '../variables/typography';
|
|
1
|
+
@use '../variables/si-sys-variables';
|
|
3
2
|
@use 'variables';
|
|
4
3
|
|
|
5
4
|
.alert {
|
|
@@ -22,12 +21,12 @@
|
|
|
22
21
|
|
|
23
22
|
.alert,
|
|
24
23
|
.alert-link {
|
|
25
|
-
font-size:
|
|
26
|
-
line-height:
|
|
24
|
+
font-size: si-sys-variables.$si-sys-typography-h4-font-size;
|
|
25
|
+
line-height: si-sys-variables.$si-sys-typography-h4-line-height;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.alert-link {
|
|
30
|
-
font-weight:
|
|
29
|
+
font-weight: si-sys-variables.$si-sys-typography-h4-font-weight;
|
|
31
30
|
color: inherit;
|
|
32
31
|
|
|
33
32
|
&:hover {
|
|
@@ -36,37 +35,37 @@
|
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.alert-success {
|
|
39
|
-
--color-bar: #{
|
|
40
|
-
color:
|
|
41
|
-
background:
|
|
38
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-success};
|
|
39
|
+
color: si-sys-variables.$si-sys-color-text-success;
|
|
40
|
+
background: si-sys-variables.$si-sys-color-background-success-subtle;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.alert-warning {
|
|
45
|
-
--color-bar: #{
|
|
46
|
-
color:
|
|
47
|
-
background:
|
|
44
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-warning};
|
|
45
|
+
color: si-sys-variables.$si-sys-color-text-warning;
|
|
46
|
+
background: si-sys-variables.$si-sys-color-background-warning-subtle;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
.alert-caution {
|
|
51
|
-
--color-bar: #{
|
|
52
|
-
color:
|
|
53
|
-
background:
|
|
50
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-caution};
|
|
51
|
+
color: si-sys-variables.$si-sys-color-text-caution;
|
|
52
|
+
background: si-sys-variables.$si-sys-color-background-caution-subtle;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.alert-danger {
|
|
57
|
-
--color-bar: #{
|
|
58
|
-
color:
|
|
59
|
-
background:
|
|
56
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-danger};
|
|
57
|
+
color: si-sys-variables.$si-sys-color-text-danger;
|
|
58
|
+
background: si-sys-variables.$si-sys-color-background-danger-subtle;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
.alert-critical {
|
|
63
|
-
--color-bar: #{
|
|
64
|
-
color:
|
|
65
|
-
background:
|
|
62
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-critical};
|
|
63
|
+
color: si-sys-variables.$si-sys-color-text-critical;
|
|
64
|
+
background: si-sys-variables.$si-sys-color-background-critical-subtle;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.alert-info {
|
|
69
|
-
--color-bar: #{
|
|
70
|
-
color:
|
|
71
|
-
background:
|
|
68
|
+
--color-bar: #{si-sys-variables.$si-sys-color-border-information};
|
|
69
|
+
color: si-sys-variables.$si-sys-color-text-information;
|
|
70
|
+
background: si-sys-variables.$si-sys-color-background-information-subtle;
|
|
72
71
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@use '../variables/
|
|
1
|
+
@use '../variables/si-sys-variables';
|
|
2
2
|
@use '../variables/spacers';
|
|
3
|
-
@use '../variables/typography';
|
|
4
3
|
@use './mixins/badge-text';
|
|
5
4
|
@use './variables';
|
|
6
5
|
|
|
@@ -9,21 +8,21 @@
|
|
|
9
8
|
// stylelint-disable declaration-no-important
|
|
10
9
|
|
|
11
10
|
%badge-text-emphasis {
|
|
12
|
-
font-size:
|
|
13
|
-
font-weight:
|
|
11
|
+
font-size: si-sys-variables.$si-sys-typography-h5-font-size;
|
|
12
|
+
font-weight: si-sys-variables.$si-sys-typography-h5-font-weight;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
.badge {
|
|
17
16
|
display: inline-block;
|
|
18
|
-
color:
|
|
17
|
+
color: si-sys-variables.$si-sys-color-text-primary;
|
|
19
18
|
padding-block: variables.$badge-padding-y;
|
|
20
19
|
padding-inline: variables.$badge-padding-x;
|
|
21
20
|
margin-block: 0;
|
|
22
21
|
margin-inline: map.get(spacers.$spacers-inline, 4);
|
|
23
22
|
line-height: variables.$badge-line-height;
|
|
24
23
|
flex-shrink: 0;
|
|
25
|
-
font-size:
|
|
26
|
-
font-weight:
|
|
24
|
+
font-size: si-sys-variables.$si-sys-typography-body-font-size;
|
|
25
|
+
font-weight: si-sys-variables.$si-sys-typography-body-font-weight;
|
|
27
26
|
max-inline-size: 24.5ch;
|
|
28
27
|
// Make min-inline-size equal the badge height to create a circular badge when there's only one character.
|
|
29
28
|
min-inline-size: variables.$badge-height;
|
|
@@ -41,89 +40,89 @@
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
&.bg-default {
|
|
44
|
-
background-color:
|
|
45
|
-
color:
|
|
46
|
-
outline: 1px solid
|
|
43
|
+
background-color: si-sys-variables.$si-sys-color-background-0 !important;
|
|
44
|
+
color: si-sys-variables.$si-sys-color-text-primary;
|
|
45
|
+
outline: 1px solid si-sys-variables.$si-sys-color-border-4;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
&.bg-primary {
|
|
50
|
-
background-color:
|
|
51
|
-
color:
|
|
49
|
+
background-color: si-sys-variables.$si-sys-color-background-accent !important;
|
|
50
|
+
color: si-sys-variables.$si-sys-color-text-on-accent;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
&.bg-secondary {
|
|
55
|
-
background-color:
|
|
56
|
-
color:
|
|
54
|
+
background-color: si-sys-variables.$si-sys-color-background-neutral !important;
|
|
55
|
+
color: si-sys-variables.$si-sys-color-text-on-neutral;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
&.bg-info {
|
|
60
|
-
background-color:
|
|
61
|
-
color:
|
|
59
|
+
background-color: si-sys-variables.$si-sys-color-background-information-subtle !important;
|
|
60
|
+
color: si-sys-variables.$si-sys-color-text-information;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
&.bg-success {
|
|
65
|
-
background-color:
|
|
66
|
-
color:
|
|
64
|
+
background-color: si-sys-variables.$si-sys-color-background-success-subtle !important;
|
|
65
|
+
color: si-sys-variables.$si-sys-color-text-success;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
&.bg-caution {
|
|
70
|
-
background-color:
|
|
71
|
-
color:
|
|
69
|
+
background-color: si-sys-variables.$si-sys-color-background-caution-subtle !important;
|
|
70
|
+
color: si-sys-variables.$si-sys-color-text-caution;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
&.bg-warning {
|
|
75
|
-
background-color:
|
|
76
|
-
color:
|
|
74
|
+
background-color: si-sys-variables.$si-sys-color-background-warning-subtle !important;
|
|
75
|
+
color: si-sys-variables.$si-sys-color-text-warning;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
&.bg-danger {
|
|
80
|
-
background-color:
|
|
81
|
-
color:
|
|
79
|
+
background-color: si-sys-variables.$si-sys-color-background-danger-subtle !important;
|
|
80
|
+
color: si-sys-variables.$si-sys-color-text-danger;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
&.bg-critical {
|
|
85
|
-
background-color:
|
|
86
|
-
color:
|
|
84
|
+
background-color: si-sys-variables.$si-sys-color-background-critical-subtle !important;
|
|
85
|
+
color: si-sys-variables.$si-sys-color-text-critical;
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
&.bg-inverse {
|
|
90
|
-
background-color:
|
|
91
|
-
color:
|
|
89
|
+
background-color: si-sys-variables.$si-sys-color-background-inverse !important;
|
|
90
|
+
color: si-sys-variables.$si-sys-color-text-inverse;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
&.bg-info-emphasis {
|
|
95
|
-
background:
|
|
96
|
-
color:
|
|
94
|
+
background: si-sys-variables.$si-sys-color-background-information;
|
|
95
|
+
color: si-sys-variables.$si-sys-color-text-on-information;
|
|
97
96
|
@extend %badge-text-emphasis;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
&.bg-success-emphasis {
|
|
101
|
-
background:
|
|
102
|
-
color:
|
|
100
|
+
background: si-sys-variables.$si-sys-color-background-success;
|
|
101
|
+
color: si-sys-variables.$si-sys-color-text-on-success;
|
|
103
102
|
@extend %badge-text-emphasis;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
&.bg-warning-emphasis {
|
|
107
|
-
background:
|
|
108
|
-
color:
|
|
106
|
+
background: si-sys-variables.$si-sys-color-background-warning;
|
|
107
|
+
color: si-sys-variables.$si-sys-color-text-on-warning;
|
|
109
108
|
@extend %badge-text-emphasis;
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
&.bg-danger-emphasis {
|
|
113
|
-
background:
|
|
114
|
-
color:
|
|
112
|
+
background: si-sys-variables.$si-sys-color-background-danger;
|
|
113
|
+
color: si-sys-variables.$si-sys-color-text-on-danger;
|
|
115
114
|
@extend %badge-text-emphasis;
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
&.bg-critical-emphasis {
|
|
119
|
-
background:
|
|
120
|
-
color:
|
|
118
|
+
background: si-sys-variables.$si-sys-color-background-critical;
|
|
119
|
+
color: si-sys-variables.$si-sys-color-text-on-critical;
|
|
121
120
|
@extend %badge-text-emphasis;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
&.bg-caution-emphasis {
|
|
125
|
-
background:
|
|
126
|
-
color:
|
|
124
|
+
background: si-sys-variables.$si-sys-color-background-caution;
|
|
125
|
+
color: si-sys-variables.$si-sys-color-text-on-caution;
|
|
127
126
|
@extend %badge-text-emphasis;
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -146,14 +145,14 @@
|
|
|
146
145
|
position: absolute;
|
|
147
146
|
inset-block-start: 0;
|
|
148
147
|
inset-inline-end: 0;
|
|
149
|
-
background-color:
|
|
148
|
+
background-color: si-sys-variables.$si-sys-color-background-danger;
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
|
|
153
152
|
.badge-text {
|
|
154
153
|
@include badge-text.badge-text();
|
|
155
|
-
background-color:
|
|
156
|
-
color:
|
|
154
|
+
background-color: si-sys-variables.$si-sys-color-background-danger;
|
|
155
|
+
color: si-sys-variables.$si-sys-color-text-on-danger;
|
|
157
156
|
position: relative;
|
|
158
157
|
}
|
|
159
158
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../variables/focus';
|
|
2
|
-
@use '../variables/semantic-tokens';
|
|
3
2
|
@use '../variables/spacers';
|
|
4
|
-
@use '../variables/
|
|
3
|
+
@use '../variables/si-sys-variables';
|
|
5
4
|
@use '../variables/typography';
|
|
6
5
|
@use './variables';
|
|
7
6
|
|
|
@@ -24,14 +23,14 @@
|
|
|
24
23
|
|
|
25
24
|
> .btn:first-of-type:not(.btn-circle),
|
|
26
25
|
> label:first-of-type .btn:not(.btn-circle) {
|
|
27
|
-
border-start-start-radius:
|
|
28
|
-
border-end-start-radius:
|
|
26
|
+
border-start-start-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
|
|
27
|
+
border-end-start-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
> .btn:last-of-type:not(.btn-circle),
|
|
32
31
|
> label:last-of-type .btn:not(.btn-circle) {
|
|
33
|
-
border-start-end-radius:
|
|
34
|
-
border-end-end-radius:
|
|
32
|
+
border-start-end-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
|
|
33
|
+
border-end-end-radius: si-sys-variables.$si-sys-sizing-border-radius-xs;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
> .btn-check:focus + .btn,
|
|
@@ -81,18 +80,18 @@
|
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
&[inert] {
|
|
84
|
-
opacity:
|
|
83
|
+
opacity: si-sys-variables.$si-sys-color-effects-disable-opacity;
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
// Selection buttons
|
|
88
87
|
.btn-check + .btn,
|
|
89
88
|
label.btn:has(.btn-check) {
|
|
90
89
|
--btn-border-width: 1px;
|
|
91
|
-
--btn-border-color: #{
|
|
92
|
-
--btn-border-color-hover: #{
|
|
90
|
+
--btn-border-color: #{si-sys-variables.$si-sys-color-border-4};
|
|
91
|
+
--btn-border-color-hover: #{si-sys-variables.$si-sys-color-border-4};
|
|
93
92
|
cursor: pointer;
|
|
94
93
|
background: transparent;
|
|
95
|
-
color:
|
|
94
|
+
color: si-sys-variables.$si-sys-color-text-primary;
|
|
96
95
|
transition: none;
|
|
97
96
|
|
|
98
97
|
&.btn-icon {
|
|
@@ -115,20 +114,20 @@
|
|
|
115
114
|
|
|
116
115
|
.btn-check + .btn:hover,
|
|
117
116
|
label:has(.btn-check:not(:checked)):hover > * {
|
|
118
|
-
color:
|
|
117
|
+
color: si-sys-variables.$si-sys-color-text-accent-hover;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
.btn-check:checked {
|
|
122
121
|
+ .btn {
|
|
123
|
-
background:
|
|
124
|
-
border-color:
|
|
125
|
-
color:
|
|
122
|
+
background: si-sys-variables.$si-sys-color-background-accent-secondary-active;
|
|
123
|
+
border-color: si-sys-variables.$si-sys-color-border-accent-active;
|
|
124
|
+
color: si-sys-variables.$si-sys-color-text-accent-active;
|
|
126
125
|
z-index: 2;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
+ .btn:hover,
|
|
130
129
|
&:hover + .btn {
|
|
131
|
-
color:
|
|
130
|
+
color: si-sys-variables.$si-sys-color-text-primary;
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
|