@siemens/element-theme 51.0.0-rc.4 → 51.0.0-rc.6
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/_variables.scss +1 -0
- package/src/styles/bootstrap/_alert.scss +19 -19
- package/src/styles/bootstrap/_badges.scss +38 -38
- package/src/styles/bootstrap/_button-group.scss +9 -8
- package/src/styles/bootstrap/_buttons.scss +83 -82
- package/src/styles/bootstrap/_card.scss +13 -14
- package/src/styles/bootstrap/_dropdowns.scss +6 -6
- package/src/styles/bootstrap/_list-group.scss +13 -13
- package/src/styles/bootstrap/_nav.scss +7 -7
- package/src/styles/bootstrap/_pagination.scss +3 -2
- package/src/styles/bootstrap/_tables.scss +2 -2
- package/src/styles/bootstrap/_variables.scss +74 -71
- package/src/styles/bootstrap/forms/_form-check.scss +32 -62
- 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/components/_application-header.scss +23 -22
- package/src/styles/components/_datatable.scss +13 -12
- package/src/styles/components/_drag_drop.scss +4 -4
- package/src/styles/components/_layout.scss +14 -1
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +7 -7
- package/src/styles/components/_markdown.scss +28 -14
- package/src/styles/components/_pills.scss +3 -3
- package/src/styles/components/_scrollbar.scss +4 -4
- package/src/styles/components/_skeleton.scss +4 -3
- package/src/styles/components/_switch.scss +12 -14
- package/src/styles/components/_widgets.scss +1 -1
- package/src/styles/variables/_focus.scss +4 -3
- package/src/styles/variables/_system-tokens.scss +180 -0
- package/src/theme/_theme-element.scss +362 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../../variables/semantic-tokens';
|
|
2
|
+
@use '../../variables/system-tokens';
|
|
2
3
|
@use '../../variables/spacers';
|
|
3
4
|
@use '../functions';
|
|
4
5
|
@use '../variables';
|
|
@@ -42,24 +43,22 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
42
43
|
%form-check-base {
|
|
43
44
|
position: relative;
|
|
44
45
|
appearance: none;
|
|
45
|
-
background-color:
|
|
46
|
-
border: 1px solid
|
|
46
|
+
background-color: system-tokens.$si-sys-background-1;
|
|
47
|
+
border: 1px solid system-tokens.$si-sys-border-2;
|
|
47
48
|
flex-shrink: 0;
|
|
48
49
|
float: inline-start;
|
|
49
50
|
|
|
50
51
|
&:is(:hover, .hover) {
|
|
51
|
-
|
|
52
|
-
background: semantic-tokens.$element-base-1-hover;
|
|
52
|
+
background: system-tokens.$si-sys-background-hover;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:is(:active, .active) {
|
|
56
|
-
|
|
57
|
-
background: semantic-tokens.$element-action-primary-active;
|
|
56
|
+
background: system-tokens.$si-sys-background-selected;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
&:is([disabled], .disabled) {
|
|
61
|
-
border-color:
|
|
62
|
-
background-color:
|
|
60
|
+
border-color: system-tokens.$si-sys-text-disabled;
|
|
61
|
+
background-color: transparent;
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -80,60 +79,40 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
80
79
|
opacity: 0;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
&:is(:checked, .checked) {
|
|
84
|
-
background-color:
|
|
85
|
-
border-color:
|
|
82
|
+
&:is(:checked, .checked, :indeterminate) {
|
|
83
|
+
background-color: system-tokens.$si-sys-background-accent;
|
|
84
|
+
border-color: transparent;
|
|
86
85
|
|
|
87
86
|
&:hover {
|
|
88
|
-
background-color:
|
|
89
|
-
border-color:
|
|
87
|
+
background-color: system-tokens.$si-sys-background-accent-hover;
|
|
88
|
+
border-color: transparent;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
&:active {
|
|
93
|
-
background-color:
|
|
94
|
-
border-color:
|
|
92
|
+
background-color: system-tokens.$si-sys-background-accent-active;
|
|
93
|
+
border-color: transparent;
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
&::after {
|
|
98
|
-
background-color:
|
|
97
|
+
background-color: system-tokens.$si-sys-text-on-accent;
|
|
99
98
|
opacity: 1;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
&[disabled] {
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
border-color: transparent;
|
|
103
|
+
background-color: system-tokens.$si-sys-text-disabled;
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
&:indeterminate {
|
|
109
|
-
background-color: semantic-tokens.$element-base-1;
|
|
110
|
-
border-color: semantic-tokens.$element-action-primary;
|
|
111
|
-
|
|
112
108
|
&::after {
|
|
113
109
|
mask-image: none;
|
|
114
|
-
background-color: semantic-tokens.$element-action-primary;
|
|
115
110
|
inline-size: 0.625rem;
|
|
116
111
|
block-size: 0.125rem;
|
|
117
112
|
opacity: 1;
|
|
118
113
|
inset-inline-start: 0.125rem;
|
|
119
114
|
inset-block-start: 0.375rem;
|
|
120
115
|
}
|
|
121
|
-
|
|
122
|
-
&:hover {
|
|
123
|
-
border-color: semantic-tokens.$element-action-primary-hover;
|
|
124
|
-
|
|
125
|
-
&::after {
|
|
126
|
-
background-color: semantic-tokens.$element-action-primary-hover;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&:disabled {
|
|
131
|
-
border-color: semantic-tokens.$element-ui-3;
|
|
132
|
-
|
|
133
|
-
&::after {
|
|
134
|
-
background-color: semantic-tokens.$element-ui-3;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
116
|
}
|
|
138
117
|
}
|
|
139
118
|
|
|
@@ -155,36 +134,27 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
155
134
|
}
|
|
156
135
|
|
|
157
136
|
&:checked {
|
|
158
|
-
border-color:
|
|
159
|
-
background-color:
|
|
137
|
+
border-color: transparent;
|
|
138
|
+
background-color: system-tokens.$si-sys-background-accent;
|
|
160
139
|
|
|
161
140
|
&::after {
|
|
162
|
-
|
|
141
|
+
border-color: transparent;
|
|
142
|
+
background-color: system-tokens.$si-sys-text-on-accent;
|
|
163
143
|
}
|
|
164
144
|
|
|
165
145
|
&:hover {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
&::after {
|
|
170
|
-
background-color: semantic-tokens.$element-action-primary-text;
|
|
171
|
-
}
|
|
146
|
+
border-color: transparent;
|
|
147
|
+
background-color: system-tokens.$si-sys-background-accent-hover;
|
|
172
148
|
}
|
|
173
149
|
|
|
174
150
|
&:active {
|
|
175
|
-
border-color:
|
|
176
|
-
|
|
177
|
-
&::after {
|
|
178
|
-
background-color: semantic-tokens.$element-action-primary-text;
|
|
179
|
-
}
|
|
151
|
+
border-color: transparent;
|
|
152
|
+
background-color: system-tokens.$si-sys-border-accent-active;
|
|
180
153
|
}
|
|
181
154
|
|
|
182
155
|
&[disabled] {
|
|
183
|
-
border-color:
|
|
184
|
-
|
|
185
|
-
&::after {
|
|
186
|
-
background-color: semantic-tokens.$element-ui-3;
|
|
187
|
-
}
|
|
156
|
+
border-color: transparent;
|
|
157
|
+
background-color: system-tokens.$si-sys-text-disabled;
|
|
188
158
|
}
|
|
189
159
|
}
|
|
190
160
|
}
|
|
@@ -193,7 +163,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
193
163
|
display: inline-block;
|
|
194
164
|
position: relative;
|
|
195
165
|
padding-inline-end: $form-check-padding-x;
|
|
196
|
-
color:
|
|
166
|
+
color: system-tokens.$si-sys-text-primary;
|
|
197
167
|
}
|
|
198
168
|
|
|
199
169
|
.form-check-input {
|
|
@@ -204,7 +174,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
204
174
|
}
|
|
205
175
|
|
|
206
176
|
&[disabled] ~ .form-check-label {
|
|
207
|
-
color:
|
|
177
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
208
178
|
}
|
|
209
179
|
|
|
210
180
|
&:is([type='checkbox'], .si-form-checkbox) {
|
|
@@ -239,7 +209,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
239
209
|
+ .btn {
|
|
240
210
|
pointer-events: none;
|
|
241
211
|
filter: none;
|
|
242
|
-
color:
|
|
212
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
243
213
|
}
|
|
244
214
|
}
|
|
245
215
|
}
|
|
@@ -271,7 +241,7 @@ formly-field-multicheckbox {
|
|
|
271
241
|
}
|
|
272
242
|
|
|
273
243
|
&[disabled] ~ label {
|
|
274
|
-
color:
|
|
244
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
275
245
|
}
|
|
276
246
|
}
|
|
277
247
|
}
|
|
@@ -286,7 +256,7 @@ formly-field-radio {
|
|
|
286
256
|
}
|
|
287
257
|
|
|
288
258
|
&[disabled] ~ label {
|
|
289
|
-
color:
|
|
259
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
290
260
|
}
|
|
291
261
|
}
|
|
292
262
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use '../../variables/focus';
|
|
2
|
-
@use '../../variables/
|
|
2
|
+
@use '../../variables/system-tokens';
|
|
3
3
|
@use '../../variables/spacers';
|
|
4
4
|
@use '../../variables/utilities';
|
|
5
5
|
@use '../../variables/si-vars';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
@use 'sass:map';
|
|
9
9
|
|
|
10
10
|
:is(.form-control, .form-select) {
|
|
11
|
-
--border-color: #{
|
|
12
|
-
--si-textarea-mask: #{
|
|
11
|
+
--border-color: #{system-tokens.$si-sys-border-2};
|
|
12
|
+
--si-textarea-mask: #{system-tokens.$si-sys-background-1};
|
|
13
13
|
// Formula:
|
|
14
14
|
// (1.25rem / 0px) (feedback icon size)
|
|
15
15
|
// + (action-size / 0px) (action-offset includes a padding)
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
font-size: variables.$input-font-size;
|
|
28
28
|
font-weight: variables.$input-font-weight;
|
|
29
29
|
line-height: variables.$input-line-height;
|
|
30
|
-
color:
|
|
31
|
-
background-color:
|
|
30
|
+
color: system-tokens.$si-sys-text-primary;
|
|
31
|
+
background-color: system-tokens.$si-sys-background-1;
|
|
32
32
|
background-clip: padding-box;
|
|
33
33
|
border: variables.$input-border-width solid var(--border-color);
|
|
34
34
|
border-radius: variables.$input-border-radius;
|
|
@@ -65,32 +65,32 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:autofill {
|
|
68
|
-
background:
|
|
68
|
+
background: system-tokens.$si-sys-background-information-subtle;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&:is(:focus, :hover, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
72
|
-
--border-color: #{
|
|
73
|
-
--si-textarea-mask: #{
|
|
74
|
-
background-color:
|
|
72
|
+
--border-color: #{system-tokens.$si-sys-border-1};
|
|
73
|
+
--si-textarea-mask: #{system-tokens.$si-sys-background-4};
|
|
74
|
+
background-color: system-tokens.$si-sys-background-4;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:is(.readonly, [readonly]) {
|
|
78
78
|
&,
|
|
79
79
|
&:is(:hover, :focus, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
80
|
-
--border-color: #{
|
|
80
|
+
--border-color: #{system-tokens.$si-sys-border-4};
|
|
81
81
|
--si-textarea-mask: transparent;
|
|
82
82
|
background-color: transparent;
|
|
83
|
-
color:
|
|
83
|
+
color: system-tokens.$si-sys-text-primary;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&:is(.disabled, :disabled) {
|
|
88
88
|
&,
|
|
89
89
|
&:is(:hover, :focus, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
90
|
-
--border-color: #{
|
|
90
|
+
--border-color: #{system-tokens.$si-sys-border-4};
|
|
91
91
|
--si-textarea-mask: transparent;
|
|
92
92
|
background-color: transparent;
|
|
93
|
-
color:
|
|
93
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&::placeholder {
|
|
@@ -216,7 +216,7 @@ select:is(.form-control, .form-select)[multiple] {
|
|
|
216
216
|
|
|
217
217
|
option:checked,
|
|
218
218
|
&:not(:disabled) option:not(:disabled):hover {
|
|
219
|
-
background:
|
|
220
|
-
color:
|
|
219
|
+
background: system-tokens.$si-sys-background-0;
|
|
220
|
+
color: system-tokens.$si-sys-text-accent;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../variables/
|
|
1
|
+
@use '../../variables/system-tokens';
|
|
2
2
|
@use '../variables';
|
|
3
3
|
|
|
4
4
|
.form-control {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&::file-selector-button {
|
|
14
|
-
color:
|
|
15
|
-
background:
|
|
14
|
+
color: system-tokens.$si-sys-text-on-accent-secondary;
|
|
15
|
+
background: system-tokens.$si-sys-background-accent-secondary;
|
|
16
16
|
border-color: inherit;
|
|
17
17
|
border-block-width: 0;
|
|
18
18
|
border-inline-width: 0 1px;
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&:hover::file-selector-button {
|
|
26
|
-
color:
|
|
27
|
-
background:
|
|
26
|
+
color: system-tokens.$si-sys-text-on-accent-secondary-hover;
|
|
27
|
+
background: system-tokens.$si-sys-background-accent-secondary-hover;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&:active::file-selector-button {
|
|
31
|
-
color:
|
|
32
|
-
background:
|
|
31
|
+
color: system-tokens.$si-sys-text-on-accent-secondary-active;
|
|
32
|
+
background: system-tokens.$si-sys-background-accent-secondary-active;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use '../../variables/elevation';
|
|
2
2
|
@use '../../variables/focus';
|
|
3
|
-
@use '../../variables/
|
|
3
|
+
@use '../../variables/system-tokens';
|
|
4
4
|
|
|
5
|
-
$track-color:
|
|
5
|
+
$track-color: system-tokens.$si-sys-border-4 !default;
|
|
6
6
|
$track-height: 4px !default;
|
|
7
7
|
$thumb-size: 24px !default;
|
|
8
8
|
|
|
@@ -15,36 +15,36 @@ $thumb-size: 24px !default;
|
|
|
15
15
|
|
|
16
16
|
@mixin range-thumb {
|
|
17
17
|
box-shadow: var(--thumb-shadow);
|
|
18
|
-
border: 1px solid
|
|
18
|
+
border: 1px solid system-tokens.$si-sys-border-accent;
|
|
19
19
|
block-size: $thumb-size;
|
|
20
20
|
inline-size: $thumb-size;
|
|
21
21
|
border-radius: 50%;
|
|
22
|
-
background:
|
|
22
|
+
background: system-tokens.$si-sys-background-1;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
border-color:
|
|
26
|
+
border-color: system-tokens.$si-sys-border-accent-hover;
|
|
27
27
|
background: radial-gradient(
|
|
28
28
|
circle,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
system-tokens.$si-sys-text-accent-hover 0%,
|
|
30
|
+
system-tokens.$si-sys-text-accent-hover 35%,
|
|
31
|
+
system-tokens.$si-sys-background-accent-secondary-hover 36%
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&:active {
|
|
36
|
-
border-color:
|
|
36
|
+
border-color: system-tokens.$si-sys-border-accent-active;
|
|
37
37
|
background: radial-gradient(
|
|
38
38
|
circle,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
system-tokens.$si-sys-background-accent-active 0%,
|
|
40
|
+
system-tokens.$si-sys-background-accent-active 35%,
|
|
41
|
+
system-tokens.$si-sys-background-accent-secondary-active 36%
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.form-range {
|
|
47
|
-
--thumb-shadow: #{
|
|
47
|
+
--thumb-shadow: #{system-tokens.$si-sys-effects-shadow-2};
|
|
48
48
|
-webkit-appearance: none; // stylelint-disable-line property-no-vendor-prefix
|
|
49
49
|
background: transparent;
|
|
50
50
|
inline-size: 100%;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@use '../bootstrap/mixins/breakpoints';
|
|
2
2
|
@use '../bootstrap/variables' as bootstrap-variables;
|
|
3
|
-
@use '../variables';
|
|
3
|
+
@use '../variables/si-vars';
|
|
4
4
|
@use '../variables/elevation';
|
|
5
|
+
@use '../variables/system-tokens';
|
|
5
6
|
@use '../variables/semantic-tokens';
|
|
6
7
|
@use '../variables/spacers';
|
|
7
8
|
@use '../variables/typography';
|
|
@@ -12,8 +13,8 @@
|
|
|
12
13
|
.has-application-header,
|
|
13
14
|
.has-navbar-fixed-top {
|
|
14
15
|
padding-block-start: calc(
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
si-vars.$si-application-header-height + si-vars.$si-titlebar-spacing +
|
|
17
|
+
si-vars.$si-system-banner-spacing
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -26,10 +27,10 @@
|
|
|
26
27
|
var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px)
|
|
27
28
|
);
|
|
28
29
|
z-index: zindex.$zindex-application-header;
|
|
29
|
-
background:
|
|
30
|
-
min-block-size:
|
|
30
|
+
background: system-tokens.$si-sys-background-1;
|
|
31
|
+
min-block-size: si-vars.$si-application-header-height;
|
|
31
32
|
align-items: stretch;
|
|
32
|
-
border-block-end: 1px solid
|
|
33
|
+
border-block-end: 1px solid system-tokens.$si-sys-border-4;
|
|
33
34
|
|
|
34
35
|
// hide border when mobile styles are applied and either the dropdown-menu is shown or navigation is expanded
|
|
35
36
|
&:has(.dropdown-menu.show),
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
order: 2;
|
|
43
44
|
flex-basis: 100%;
|
|
44
45
|
box-shadow: none;
|
|
45
|
-
border-block-start: 1px solid
|
|
46
|
+
border-block-start: 1px solid system-tokens.$si-sys-border-4;
|
|
46
47
|
margin-block: 0;
|
|
47
48
|
border-radius: 0;
|
|
48
49
|
}
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
display: flex;
|
|
95
96
|
flex-flow: column;
|
|
96
97
|
padding-block: map.get(spacers.$spacers, 4);
|
|
97
|
-
border-block-start: 1px solid
|
|
98
|
+
border-block-start: 1px solid system-tokens.$si-sys-border-4;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
.header-navigation {
|
|
@@ -106,13 +107,13 @@
|
|
|
106
107
|
|
|
107
108
|
.header-item {
|
|
108
109
|
&.active {
|
|
109
|
-
--si-header-item-border: #{
|
|
110
|
-
color:
|
|
110
|
+
--si-header-item-border: #{system-tokens.$si-sys-border-accent};
|
|
111
|
+
color: system-tokens.$si-sys-text-accent;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
&:hover {
|
|
114
|
-
--si-header-item-border: #{
|
|
115
|
-
color:
|
|
115
|
+
--si-header-item-border: #{system-tokens.$si-sys-border-accent-hover};
|
|
116
|
+
color: system-tokens.$si-sys-text-accent-hover;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -130,13 +131,13 @@
|
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.header-toggle {
|
|
133
|
-
color:
|
|
134
|
+
color: system-tokens.$si-sys-text-primary;
|
|
134
135
|
border: 0;
|
|
135
136
|
padding: map.get(spacers.$spacers, 5);
|
|
136
137
|
background-color: transparent; // remove default button style
|
|
137
138
|
|
|
138
139
|
&:is(:hover, .show, :active) {
|
|
139
|
-
background:
|
|
140
|
+
background: system-tokens.$si-sys-background-hover;
|
|
140
141
|
text-decoration: none;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
@@ -147,20 +148,20 @@
|
|
|
147
148
|
flex-basis: 0;
|
|
148
149
|
align-items: center;
|
|
149
150
|
position: relative;
|
|
150
|
-
color:
|
|
151
|
+
color: system-tokens.$si-sys-text-primary;
|
|
151
152
|
inline-size: 100%;
|
|
152
153
|
font-size: typography.$si-font-size-h4;
|
|
153
154
|
line-height: typography.$si-line-height-h4;
|
|
154
155
|
font-weight: typography.$si-font-weight-h4;
|
|
155
|
-
padding-block:
|
|
156
|
+
padding-block: map.get(spacers.$spacers, 5);
|
|
156
157
|
padding-inline: map.get(spacers.$spacers, 5);
|
|
157
158
|
background: none;
|
|
158
159
|
box-shadow: none;
|
|
159
160
|
border: 0;
|
|
160
161
|
white-space: nowrap;
|
|
161
162
|
|
|
162
|
-
.icon
|
|
163
|
-
margin-block: -
|
|
163
|
+
.icon {
|
|
164
|
+
margin-block: -0.125rem;
|
|
164
165
|
|
|
165
166
|
~ .item-title {
|
|
166
167
|
padding-inline-start: map.get(spacers.$spacers, 5);
|
|
@@ -176,8 +177,8 @@
|
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
&:hover {
|
|
179
|
-
color:
|
|
180
|
-
background-color:
|
|
180
|
+
color: system-tokens.$si-sys-text-primary;
|
|
181
|
+
background-color: system-tokens.$si-sys-background-hover;
|
|
181
182
|
text-decoration: none;
|
|
182
183
|
}
|
|
183
184
|
|
|
@@ -193,13 +194,13 @@
|
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
&.header-selection-item {
|
|
196
|
-
color:
|
|
197
|
+
color: system-tokens.$si-sys-text-accent;
|
|
197
198
|
font-size: typography.$si-font-size-h5;
|
|
198
199
|
font-weight: typography.$si-font-weight-h5;
|
|
199
200
|
line-height: typography.$si-line-height-h5;
|
|
200
201
|
|
|
201
202
|
&:hover {
|
|
202
|
-
color:
|
|
203
|
+
color: system-tokens.$si-sys-text-accent-hover;
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../variables/focus';
|
|
5
5
|
@use '../variables/semantic-tokens';
|
|
6
6
|
@use '../variables/spacers';
|
|
7
|
+
@use '../variables/system-tokens';
|
|
7
8
|
@use '../variables/typography';
|
|
8
9
|
@use '../variables/utilities';
|
|
9
10
|
|
|
@@ -11,10 +12,10 @@
|
|
|
11
12
|
|
|
12
13
|
$datatable-header-border-color: variables.$table-border-color !default;
|
|
13
14
|
$datatable-header-background-color: variables.$table-bg !default;
|
|
14
|
-
$datatable-header-color:
|
|
15
|
+
$datatable-header-color: system-tokens.$si-sys-text-primary !default;
|
|
15
16
|
$datatable-footer-background-color: transparent !default;
|
|
16
17
|
|
|
17
|
-
$datatable-summary-background-color:
|
|
18
|
+
$datatable-summary-background-color: system-tokens.$si-sys-background-2 !default;
|
|
18
19
|
|
|
19
20
|
$datatable-header-height: 40px !default;
|
|
20
21
|
$datatable-cell-min-width: 40px !default;
|
|
@@ -22,12 +23,12 @@ $datatable-body-row-min-height: 48px !default;
|
|
|
22
23
|
|
|
23
24
|
$datatable-ghost-cell-container-background: variables.$table-bg !default;
|
|
24
25
|
|
|
25
|
-
$datatable-ghost-cell-strip-background:
|
|
26
|
+
$datatable-ghost-cell-strip-background: system-tokens.$si-sys-background-hover !default;
|
|
26
27
|
$datatable-ghost-cell-strip-background-image: linear-gradient(
|
|
27
28
|
90deg,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
system-tokens.$si-sys-background-hover 0%,
|
|
30
|
+
system-tokens.$si-sys-background-selected 25%,
|
|
31
|
+
system-tokens.$si-sys-background-hover 50%
|
|
31
32
|
) !default;
|
|
32
33
|
$datatable-ghost-cell-strip-radius: 0 !default;
|
|
33
34
|
|
|
@@ -189,7 +190,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
189
190
|
.datatable-row-left {
|
|
190
191
|
.datatable-body-cell:last-child,
|
|
191
192
|
.datatable-header-cell:last-child {
|
|
192
|
-
box-shadow: 0 0 8px
|
|
193
|
+
box-shadow: 0 0 8px system-tokens.$si-sys-effects-shadow-1;
|
|
193
194
|
clip-path: inset(0 -8px 0 0);
|
|
194
195
|
}
|
|
195
196
|
}
|
|
@@ -197,7 +198,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
197
198
|
.datatable-row-right {
|
|
198
199
|
.datatable-body-cell:first-child,
|
|
199
200
|
.datatable-header-cell:first-child {
|
|
200
|
-
box-shadow: 0 0 8px
|
|
201
|
+
box-shadow: 0 0 8px system-tokens.$si-sys-effects-shadow-1;
|
|
201
202
|
clip-path: inset(0 0 0 -8px);
|
|
202
203
|
}
|
|
203
204
|
}
|
|
@@ -224,7 +225,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
224
225
|
// Resizable handle
|
|
225
226
|
.resizeable:hover {
|
|
226
227
|
.resize-handle {
|
|
227
|
-
background-color:
|
|
228
|
+
background-color: system-tokens.$si-sys-background-0;
|
|
228
229
|
inline-size: 2px;
|
|
229
230
|
border-radius: 2px;
|
|
230
231
|
padding-block: 0;
|
|
@@ -246,7 +247,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
246
247
|
}
|
|
247
248
|
|
|
248
249
|
.datatable-header-cell:focus-visible {
|
|
249
|
-
@include focus.make-outline-focus();
|
|
250
|
+
@include focus.make-outline-focus-inside();
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
253
|
|
|
@@ -322,7 +323,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
322
323
|
align-items: flex-end;
|
|
323
324
|
align-content: flex-end;
|
|
324
325
|
background-color: $datatable-footer-background-color;
|
|
325
|
-
color:
|
|
326
|
+
color: system-tokens.$si-sys-text-secondary;
|
|
326
327
|
font-size: typography.$si-font-size-caption;
|
|
327
328
|
margin-block-start: -1px;
|
|
328
329
|
position: relative;
|
|
@@ -341,7 +342,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
341
342
|
inset-inline-start: 0;
|
|
342
343
|
inline-size: 100%;
|
|
343
344
|
block-size: 1px;
|
|
344
|
-
background-color:
|
|
345
|
+
background-color: system-tokens.$si-sys-background-0;
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
}
|
|
@@ -22,7 +22,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.cdk-drag-preview {
|
|
25
|
-
background-color: variables.$
|
|
25
|
+
background-color: variables.$si-sys-background-3 !important;
|
|
26
26
|
box-shadow: variables.$element-elevation-2 !important;
|
|
27
27
|
position: relative !important;
|
|
28
28
|
inset-inline-start: -5px !important;
|
|
@@ -36,7 +36,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.cdk-drag-handle {
|
|
39
|
-
color: variables.$
|
|
39
|
+
color: variables.$si-sys-text-secondary;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.cdk-drag-disabled {
|
|
@@ -70,7 +70,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
70
70
|
|
|
71
71
|
.cdk-drop-list:not([cdkDropListHasAnchor]) .cdk-drag-placeholder {
|
|
72
72
|
opacity: 0.3;
|
|
73
|
-
background-color: variables.$
|
|
73
|
+
background-color: variables.$si-sys-background-information-subtle !important;
|
|
74
74
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
75
75
|
min-block-size: 45px;
|
|
76
76
|
font-size: 0; // hide direct text
|
|
@@ -92,7 +92,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
92
92
|
|
|
93
93
|
.droppable-container {
|
|
94
94
|
&.drop-border {
|
|
95
|
-
border: 1px dashed variables.$
|
|
95
|
+
border: 1px dashed variables.$si-sys-border-2;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.cdk-drag-placeholder {
|
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
.si-layout-title {
|
|
52
52
|
grid-area: title;
|
|
53
53
|
margin-block-end: 0;
|
|
54
|
+
@include variables.si-font(
|
|
55
|
+
variables.$si-font-size-h3,
|
|
56
|
+
variables.$si-line-height-h3,
|
|
57
|
+
variables.$si-font-weight-h3
|
|
58
|
+
);
|
|
54
59
|
|
|
55
60
|
&.si-layout-top-element + .si-layout-subtitle {
|
|
56
61
|
margin-inline: var(--si-layout-header-first-element-offset, 0)
|
|
@@ -62,7 +67,7 @@
|
|
|
62
67
|
grid-area: subtitle;
|
|
63
68
|
margin-block-start: map.get(variables.$spacers, 4);
|
|
64
69
|
margin-block-end: 0;
|
|
65
|
-
color: variables.$
|
|
70
|
+
color: variables.$si-sys-text-secondary;
|
|
66
71
|
@include variables.si-font(
|
|
67
72
|
variables.$si-font-size-body,
|
|
68
73
|
variables.$si-line-height-body,
|
|
@@ -82,6 +87,14 @@
|
|
|
82
87
|
4
|
|
83
88
|
) !important; // stylelint-disable-line declaration-no-important
|
|
84
89
|
}
|
|
90
|
+
|
|
91
|
+
.si-layout-title {
|
|
92
|
+
@include variables.si-font(
|
|
93
|
+
variables.$si-font-size-h2,
|
|
94
|
+
variables.$si-line-height-h2,
|
|
95
|
+
variables.$si-font-weight-h2
|
|
96
|
+
);
|
|
97
|
+
}
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
@include breakpoints.media-breakpoint-up(md) {
|