@siemens/element-theme 51.0.0-rc.7 → 51.0.0-rc.9
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 +144 -0
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/bootstrap/_badges.scss +3 -3
- package/src/styles/bootstrap/_button-group.scss +3 -3
- package/src/styles/bootstrap/_buttons.scss +5 -6
- package/src/styles/bootstrap/_card.scss +19 -12
- package/src/styles/bootstrap/_dropdowns.scss +13 -13
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +1 -1
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +3 -3
- package/src/styles/bootstrap/_pagination.scss +4 -4
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +4 -4
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +69 -1
- package/src/styles/bootstrap/_utilities.scss +2 -7
- package/src/styles/bootstrap/_variables.scss +78 -64
- package/src/styles/bootstrap/forms/_form-check.scss +12 -14
- package/src/styles/bootstrap/forms/_form-control.scss +19 -13
- package/src/styles/bootstrap/forms/_form-file.scss +2 -2
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +2 -2
- package/src/styles/bootstrap/forms/_form-range.scss +0 -1
- package/src/styles/bootstrap/forms/_validation.scss +3 -3
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +4 -4
- package/src/styles/bootstrap/mixins/_grid.scss +3 -3
- package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
- package/src/styles/components/_application-header.scss +8 -9
- package/src/styles/components/_datatable.scss +23 -11
- package/src/styles/components/_drag_drop.scss +1 -1
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +12 -12
- package/src/styles/components/_list-item.scss +48 -18
- package/src/styles/components/_markdown.scss +8 -8
- package/src/styles/components/_pills.scss +4 -4
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +1 -1
- package/src/styles/components/_switch.scss +4 -4
- package/src/styles/components/_widgets.scss +11 -9
- package/src/styles/mixins/_utilities.scss +259 -0
- package/src/styles/variables/_elevation.scss +14 -12
- package/src/styles/variables/_si-vars.scss +13 -7
- package/src/styles/variables/_sizing.scss +22 -0
- package/src/styles/variables/_spacers.scss +53 -25
- package/src/styles/variables/_system-tokens.scss +18 -18
- package/src/styles/variables/_typography.scss +91 -53
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +36 -36
- package/src/theme.scss +3 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../../variables/focus';
|
|
2
2
|
@use '../../variables/system-tokens';
|
|
3
3
|
@use '../../variables/spacers';
|
|
4
|
+
@use '../../variables/sizing';
|
|
4
5
|
@use '../../variables/utilities';
|
|
5
6
|
@use '../../variables/si-vars';
|
|
6
7
|
@use '../variables';
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
// + 3px (min padding between input and first action or validation icon)
|
|
17
18
|
--si-input-padding-inline-end: calc(
|
|
18
19
|
var(--si-feedback-icon-size, 0px) + var(--si-action-icon-offset, 0px) +
|
|
19
|
-
#{map.get(spacers.$spacers, 2) - variables.$input-border-width}
|
|
20
|
+
#{map.get(spacers.$spacers-block, 2)} - #{variables.$input-border-width}
|
|
20
21
|
);
|
|
21
22
|
display: block;
|
|
22
23
|
inline-size: 100%;
|
|
@@ -40,14 +41,15 @@
|
|
|
40
41
|
calc((#{variables.$input-height-inner} - #{variables.$form-feedback-icon-size}) * 0.5);
|
|
41
42
|
background-position-x: right
|
|
42
43
|
calc(
|
|
43
|
-
|
|
44
|
+
map.get(spacers.$spacers-block, 2) - variables.$input-border-width +
|
|
44
45
|
var(--si-action-icon-offset, 0px)
|
|
45
46
|
);
|
|
46
47
|
|
|
47
48
|
@include utilities.rtl {
|
|
48
49
|
background-position-x: left
|
|
49
50
|
calc(
|
|
50
|
-
map.get(spacers.$spacers, 1) +
|
|
51
|
+
map.get(spacers.$spacers-block, 1) +
|
|
52
|
+
var(--si-action-icon-offset, variables.$input-border-width)
|
|
51
53
|
);
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -61,7 +63,9 @@
|
|
|
61
63
|
// form-control must not add extra `padding-inline-end` for it.
|
|
62
64
|
&:has(.form-control-actions) {
|
|
63
65
|
background-image: none;
|
|
64
|
-
--si-input-padding-inline-end:
|
|
66
|
+
--si-input-padding-inline-end: calc(
|
|
67
|
+
#{map.get(spacers.$spacers-block, 2)} - #{variables.$input-border-width}
|
|
68
|
+
);
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
&:autofill {
|
|
@@ -117,10 +121,11 @@
|
|
|
117
121
|
.form-control:not(textarea):not(select[multiple]) {
|
|
118
122
|
// force height to fix line-height issue in firefox
|
|
119
123
|
block-size: variables.$input-height;
|
|
124
|
+
min-block-size: map.get(sizing.$sizing, 80);
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
.addon-second-icon {
|
|
123
|
-
--input-addon-inset-end: #{map.get(spacers.$spacers, 9)};
|
|
128
|
+
--input-addon-inset-end: #{map.get(spacers.$spacers-block, 9)};
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
// Wrapper for trailing actions (buttons, icons, unit labels) inside
|
|
@@ -135,7 +140,7 @@
|
|
|
135
140
|
display: inline-flex;
|
|
136
141
|
align-items: center;
|
|
137
142
|
block-size: variables.$input-height-inner;
|
|
138
|
-
padding-inline-start: map.get(spacers.$spacers, 1);
|
|
143
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 1);
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
.form-control .form-control-actions::before {
|
|
@@ -143,13 +148,13 @@
|
|
|
143
148
|
margin-block: auto;
|
|
144
149
|
inline-size: variables.$form-feedback-icon-size;
|
|
145
150
|
block-size: variables.$form-feedback-icon-size;
|
|
146
|
-
padding-inline-end: map.get(spacers.$spacers, 1);
|
|
151
|
+
padding-inline-end: map.get(spacers.$spacers-inline, 1);
|
|
147
152
|
content: var(--si-feedback-icon, none);
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
.form-control + .form-control-actions {
|
|
151
156
|
position: absolute;
|
|
152
|
-
inset-inline-end: map.get(spacers.$spacers, 2);
|
|
157
|
+
inset-inline-end: map.get(spacers.$spacers-inline, 2);
|
|
153
158
|
inset-block-start: variables.$input-border-width;
|
|
154
159
|
z-index: 2;
|
|
155
160
|
}
|
|
@@ -187,15 +192,16 @@ select:is(.form-control, .form-select):not([multiple]) {
|
|
|
187
192
|
// + spacer-1(between arrow and validation)
|
|
188
193
|
right
|
|
189
194
|
calc(
|
|
190
|
-
|
|
191
|
-
map.get(spacers.$spacers, 1)
|
|
195
|
+
map.get(spacers.$spacers-block, 2) - variables.$input-border-width +
|
|
196
|
+
map.get(spacers.$spacers-block, 1) + si-vars.$si-icon-font-size
|
|
192
197
|
)
|
|
193
198
|
center,
|
|
194
|
-
right map.get(spacers.$spacers, 2) - variables.$input-border-width top 50%;
|
|
199
|
+
right calc(map.get(spacers.$spacers-block, 2) - variables.$input-border-width) top 50%;
|
|
195
200
|
background-size: si-vars.$si-icon-font-size, variables.$form-feedback-icon-size;
|
|
196
201
|
|
|
197
202
|
@include utilities.rtl {
|
|
198
|
-
background-position: left
|
|
203
|
+
background-position: left
|
|
204
|
+
calc(map.get(spacers.$spacers-inline, 2) - variables.$input-border-width) top 50%;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
.app--dark & {
|
|
@@ -211,7 +217,7 @@ select:is(.form-control, .form-select)[multiple] {
|
|
|
211
217
|
padding: 0;
|
|
212
218
|
|
|
213
219
|
option {
|
|
214
|
-
padding: map.get(spacers.$spacers, 4);
|
|
220
|
+
padding: map.get(spacers.$spacers-block, 4) map.get(spacers.$spacers-inline, 4);
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
option:checked,
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
border-color: inherit;
|
|
17
17
|
border-block-width: 0;
|
|
18
18
|
border-inline-width: 0 1px;
|
|
19
|
-
margin-block:
|
|
20
|
-
margin-inline:
|
|
19
|
+
margin-block: calc(variables.$input-padding-y * -1);
|
|
20
|
+
margin-inline: calc(variables.$input-padding-x * -1) variables.$input-padding-x;
|
|
21
21
|
block-size: inherit;
|
|
22
22
|
padding-inline: variables.$btn-padding-x;
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.si-form-input {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
margin-block-end: map.get(spacers.$spacers, 6);
|
|
9
|
+
margin-block-end: map.get(spacers.$spacers-block, 6);
|
|
10
10
|
|
|
11
11
|
.form-item-content {
|
|
12
12
|
flex-grow: 1;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
.si-form-fieldset {
|
|
17
17
|
.form-label {
|
|
18
|
-
margin-block-end: map.get(spacers.$spacers, 2);
|
|
18
|
+
margin-block-end: map.get(spacers.$spacers-block, 2);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.form-check:not(.form-check-inline) {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
font-size: variables.$form-feedback-font-size;
|
|
63
63
|
display: none;
|
|
64
64
|
inline-size: 100%;
|
|
65
|
-
line-height: typography.$si-line-height-
|
|
66
|
-
margin-block: map.get(spacers.$spacers, 1);
|
|
67
|
-
margin-inline: map.get(spacers.$spacers, 1);
|
|
65
|
+
line-height: typography.$si-line-height-body-sm;
|
|
66
|
+
margin-block: map.get(spacers.$spacers-block, 1);
|
|
67
|
+
margin-inline: map.get(spacers.$spacers-inline, 1);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
@mixin form-validation-state-enh($state, $color, $icon, $text-color) {
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
@mixin badge-text {
|
|
8
8
|
min-inline-size: 0.875rem;
|
|
9
9
|
border-radius: 0.4375rem;
|
|
10
|
-
font-size: typography.$si-font-size-
|
|
10
|
+
font-size: typography.$si-font-size-body-sm;
|
|
11
11
|
line-height: 0.875rem;
|
|
12
12
|
padding-block: 0;
|
|
13
|
-
padding-inline: map.get(spacers.$spacers, 2);
|
|
13
|
+
padding-inline: map.get(spacers.$spacers-inline, 2);
|
|
14
14
|
font-family: variables.$font-family-sans-serif;
|
|
15
|
-
font-weight: typography.$si-font-weight-
|
|
15
|
+
font-weight: typography.$si-font-weight-sbold;
|
|
16
16
|
text-align: center;
|
|
17
17
|
}
|
|
@@ -12,13 +12,13 @@ $form-col-layout-label-width: 16ch !default;
|
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: start;
|
|
15
|
-
column-gap: map.get(spacers.$spacers, 6);
|
|
15
|
+
column-gap: map.get(spacers.$spacers-inline, 6);
|
|
16
16
|
|
|
17
17
|
> .form-label {
|
|
18
18
|
flex: 0 0 var(--si-form-label-width, #{$form-col-layout-label-width});
|
|
19
19
|
max-inline-size: var(--si-form-label-width, #{$form-col-layout-label-width});
|
|
20
20
|
align-self: start;
|
|
21
|
-
padding-block: variables.$input-padding-y
|
|
21
|
+
padding-block: variables.$input-padding-y-full;
|
|
22
22
|
line-height: variables.$input-line-height;
|
|
23
23
|
|
|
24
24
|
&:empty {
|
|
@@ -37,7 +37,7 @@ $form-col-layout-label-width: 16ch !default;
|
|
|
37
37
|
|
|
38
38
|
.form-check-input {
|
|
39
39
|
margin-inline-start: 0;
|
|
40
|
-
margin-inline-end: map.get(spacers.$spacers, 4);
|
|
40
|
+
margin-inline-end: map.get(spacers.$spacers-inline, 4);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -46,7 +46,7 @@ $form-col-layout-label-width: 16ch !default;
|
|
|
46
46
|
|
|
47
47
|
> .form-label {
|
|
48
48
|
align-self: start;
|
|
49
|
-
padding-block: map.get(spacers.$spacers, 1) 0 !important; // stylelint-disable-line declaration-no-important
|
|
49
|
+
padding-block: map.get(spacers.$spacers-block, 1) 0 !important; // stylelint-disable-line declaration-no-important
|
|
50
50
|
margin-block-end: 0 !important; // stylelint-disable-line declaration-no-important
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -133,15 +133,15 @@
|
|
|
133
133
|
// Gutters
|
|
134
134
|
//
|
|
135
135
|
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
136
|
-
@each $key, $value in variables.$gutters {
|
|
136
|
+
@each $key, $block-value in variables.$gutters-block {
|
|
137
137
|
.g#{$infix}-#{$key},
|
|
138
138
|
.gx#{$infix}-#{$key} {
|
|
139
|
-
--#{variables.$variable-prefix}gutter-x: #{$
|
|
139
|
+
--#{variables.$variable-prefix}gutter-x: #{map.get(variables.$gutters-inline, $key)};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.g#{$infix}-#{$key},
|
|
143
143
|
.gy#{$infix}-#{$key} {
|
|
144
|
-
--#{variables.$variable-prefix}gutter-y: #{$value};
|
|
144
|
+
--#{variables.$variable-prefix}gutter-y: #{$block-value};
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
@each $key, $value in $values {
|
|
19
19
|
$properties: map.get($utility, property);
|
|
20
|
+
$property-values: map.get($utility, property-values);
|
|
20
21
|
|
|
21
22
|
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
|
22
23
|
@if meta.type-of($properties) == 'string' {
|
|
@@ -45,7 +46,9 @@
|
|
|
45
46
|
// Don't prefix if value key is null (eg. with shadow class)
|
|
46
47
|
$property-class-modifier: '';
|
|
47
48
|
@if ($key) {
|
|
48
|
-
@if ($
|
|
49
|
+
@if map.get($utility, negative) {
|
|
50
|
+
$property-class-modifier: '-n' + $key;
|
|
51
|
+
} @else if ($property-class == '' and $infix == '') {
|
|
49
52
|
$property-class-modifier: $key;
|
|
50
53
|
} @else {
|
|
51
54
|
$property-class-modifier: '-' + $key;
|
|
@@ -79,14 +82,22 @@
|
|
|
79
82
|
--#{variables.$variable-prefix}#{$local-var}: #{$value};
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
|
-
|
|
85
|
+
@if $property-values {
|
|
86
|
+
#{$property}: map.get(map.get($property-values, $property), $key) $important;
|
|
87
|
+
} @else {
|
|
88
|
+
#{$property}: $value $important;
|
|
89
|
+
}
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
@each $pseudo in $state {
|
|
87
94
|
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
|
88
95
|
@each $property in $properties {
|
|
89
|
-
|
|
96
|
+
@if $property-values {
|
|
97
|
+
#{$property}: map.get(map.get($property-values, $property), $key) $important;
|
|
98
|
+
} @else {
|
|
99
|
+
#{$property}: $value $important;
|
|
100
|
+
}
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../bootstrap/mixins/breakpoints';
|
|
2
2
|
@use '../bootstrap/variables' as bootstrap-variables;
|
|
3
3
|
@use '../variables/si-vars';
|
|
4
|
-
@use '../variables/elevation';
|
|
5
4
|
@use '../variables/system-tokens';
|
|
6
5
|
@use '../variables/semantic-tokens';
|
|
7
6
|
@use '../variables/spacers';
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
.application-name {
|
|
82
81
|
font-size: typography.$si-font-size-body-lg;
|
|
83
82
|
font-weight: typography.$si-font-weight-body-lg;
|
|
84
|
-
padding: map.get(spacers.$spacers, 5);
|
|
83
|
+
padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
|
|
85
84
|
margin: 0;
|
|
86
85
|
line-height: normal;
|
|
87
86
|
white-space: nowrap;
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
flex-basis: 100%;
|
|
95
94
|
display: flex;
|
|
96
95
|
flex-flow: column;
|
|
97
|
-
padding-block: map.get(spacers.$spacers, 4);
|
|
96
|
+
padding-block: map.get(spacers.$spacers-block, 4);
|
|
98
97
|
border-block-start: 1px solid system-tokens.$si-sys-border-4;
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -133,7 +132,7 @@
|
|
|
133
132
|
.header-toggle {
|
|
134
133
|
color: system-tokens.$si-sys-text-primary;
|
|
135
134
|
border: 0;
|
|
136
|
-
padding: map.get(spacers.$spacers, 5);
|
|
135
|
+
padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
|
|
137
136
|
background-color: transparent; // remove default button style
|
|
138
137
|
|
|
139
138
|
&:is(:hover, .show, :active) {
|
|
@@ -153,8 +152,8 @@
|
|
|
153
152
|
font-size: typography.$si-font-size-h4;
|
|
154
153
|
line-height: typography.$si-line-height-h4;
|
|
155
154
|
font-weight: typography.$si-font-weight-h4;
|
|
156
|
-
padding-block: map.get(spacers.$spacers, 5);
|
|
157
|
-
padding-inline: map.get(spacers.$spacers, 5);
|
|
155
|
+
padding-block: map.get(spacers.$spacers-block, 5);
|
|
156
|
+
padding-inline: map.get(spacers.$spacers-inline, 5);
|
|
158
157
|
background: none;
|
|
159
158
|
box-shadow: none;
|
|
160
159
|
border: 0;
|
|
@@ -164,7 +163,7 @@
|
|
|
164
163
|
margin-block: -0.125rem;
|
|
165
164
|
|
|
166
165
|
~ .item-title {
|
|
167
|
-
padding-inline-start: map.get(spacers.$spacers, 5);
|
|
166
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 5);
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -190,7 +189,7 @@
|
|
|
190
189
|
background: var(--si-header-item-border);
|
|
191
190
|
|
|
192
191
|
block-size: 100%;
|
|
193
|
-
inline-size: map.get(spacers.$spacers, 2);
|
|
192
|
+
inline-size: map.get(spacers.$spacers-inline, 2);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
195
|
&.header-selection-item {
|
|
@@ -249,7 +248,7 @@
|
|
|
249
248
|
|
|
250
249
|
&::after {
|
|
251
250
|
inline-size: 100%;
|
|
252
|
-
block-size: map.get(spacers.$spacers, 2);
|
|
251
|
+
block-size: map.get(spacers.$spacers-block, 2);
|
|
253
252
|
}
|
|
254
253
|
}
|
|
255
254
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
@use '../variables/animations';
|
|
4
4
|
@use '../variables/focus';
|
|
5
5
|
@use '../variables/semantic-tokens';
|
|
6
|
-
@use '../variables/spacers';
|
|
7
6
|
@use '../variables/system-tokens';
|
|
7
|
+
@use '../variables/spacers';
|
|
8
8
|
@use '../variables/typography';
|
|
9
9
|
@use '../variables/utilities';
|
|
10
10
|
|
|
@@ -16,6 +16,7 @@ $datatable-header-color: system-tokens.$si-sys-text-primary !default;
|
|
|
16
16
|
$datatable-footer-background-color: transparent !default;
|
|
17
17
|
|
|
18
18
|
$datatable-summary-background-color: system-tokens.$si-sys-background-2 !default;
|
|
19
|
+
$datatable-striped-background-color: variables.$table-striped-bg !default;
|
|
19
20
|
|
|
20
21
|
$datatable-header-height: 40px !default;
|
|
21
22
|
$datatable-cell-min-width: 40px !default;
|
|
@@ -27,7 +28,7 @@ $datatable-ghost-cell-strip-background: system-tokens.$si-sys-background-hover !
|
|
|
27
28
|
$datatable-ghost-cell-strip-background-image: linear-gradient(
|
|
28
29
|
90deg,
|
|
29
30
|
system-tokens.$si-sys-background-hover 0%,
|
|
30
|
-
system-tokens.$si-sys-background-
|
|
31
|
+
system-tokens.$si-sys-background-active 25%,
|
|
31
32
|
system-tokens.$si-sys-background-hover 50%
|
|
32
33
|
) !default;
|
|
33
34
|
$datatable-ghost-cell-strip-radius: 0 !default;
|
|
@@ -56,6 +57,17 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
56
57
|
--si-datatable-row-min-height: 24px;
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
// Zebra striping, the counterpart of `.table-striped` for HTML tables.
|
|
61
|
+
// Interactive states are excluded so that hover, active and focus keep precedence.
|
|
62
|
+
&.table-striped {
|
|
63
|
+
.datatable-row-wrapper .datatable-body-row.datatable-row-odd:not(.active, :hover, :focus) {
|
|
64
|
+
&,
|
|
65
|
+
:is(.datatable-row-left, .datatable-row-right) {
|
|
66
|
+
background-color: $datatable-striped-background-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
59
71
|
// any kind of selection: apply a row hover state
|
|
60
72
|
&:is(
|
|
61
73
|
.single-selection,
|
|
@@ -130,7 +142,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
130
142
|
inline-size: 13px;
|
|
131
143
|
block-size: 13px;
|
|
132
144
|
margin-block: 0;
|
|
133
|
-
margin-inline: 0 map.get(spacers.$spacers, 6);
|
|
145
|
+
margin-inline: 0 map.get(spacers.$spacers-inline, 6);
|
|
134
146
|
position: relative;
|
|
135
147
|
|
|
136
148
|
> input {
|
|
@@ -184,11 +196,11 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
&:first-child {
|
|
187
|
-
padding-inline-start: map.get(spacers.$spacers, 5);
|
|
199
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 5);
|
|
188
200
|
}
|
|
189
201
|
|
|
190
202
|
&:last-child {
|
|
191
|
-
padding-inline-end: map.get(spacers.$spacers, 5);
|
|
203
|
+
padding-inline-end: map.get(spacers.$spacers-inline, 5);
|
|
192
204
|
}
|
|
193
205
|
}
|
|
194
206
|
|
|
@@ -219,7 +231,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
219
231
|
|
|
220
232
|
.sort-btn {
|
|
221
233
|
color: $datatable-header-color !important; // stylelint-disable-line declaration-no-important
|
|
222
|
-
margin-inline-start: map.get(spacers.$spacers, 1);
|
|
234
|
+
margin-inline-start: map.get(spacers.$spacers-inline, 1);
|
|
223
235
|
}
|
|
224
236
|
|
|
225
237
|
// Resizable handle
|
|
@@ -295,7 +307,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
295
307
|
.datatable-group-cell {
|
|
296
308
|
display: flex;
|
|
297
309
|
align-items: center;
|
|
298
|
-
padding-inline-start: map.get(spacers.$spacers, 6);
|
|
310
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 6);
|
|
299
311
|
}
|
|
300
312
|
}
|
|
301
313
|
|
|
@@ -323,15 +335,15 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
323
335
|
align-content: flex-end;
|
|
324
336
|
background-color: $datatable-footer-background-color;
|
|
325
337
|
color: system-tokens.$si-sys-text-secondary;
|
|
326
|
-
font-size: typography.$si-font-size-
|
|
338
|
+
font-size: typography.$si-font-size-body-sm;
|
|
327
339
|
margin-block-start: -1px;
|
|
328
340
|
position: relative;
|
|
329
341
|
z-index: 11;
|
|
330
342
|
|
|
331
343
|
.datatable-footer-inner {
|
|
332
344
|
background-color: variables.$table-bg;
|
|
333
|
-
padding-inline-start: map.get(spacers.$spacers, 6);
|
|
334
|
-
padding-inline-end: map.get(spacers.$spacers, 4);
|
|
345
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 6);
|
|
346
|
+
padding-inline-end: map.get(spacers.$spacers-inline, 4);
|
|
335
347
|
position: relative;
|
|
336
348
|
|
|
337
349
|
&::before {
|
|
@@ -357,7 +369,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
357
369
|
.datatable-tree-button {
|
|
358
370
|
border: 0;
|
|
359
371
|
background: none;
|
|
360
|
-
margin-inline: map.get(spacers.$spacers, 2);
|
|
372
|
+
margin-inline: map.get(spacers.$spacers-inline, 2);
|
|
361
373
|
padding: 0;
|
|
362
374
|
|
|
363
375
|
&[disabled] {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.cdk-drag-preview {
|
|
26
26
|
background-color: variables.$si-sys-background-3 !important;
|
|
27
|
-
box-shadow: variables.$
|
|
27
|
+
box-shadow: variables.$si-sys-effects-shadow-3 !important;
|
|
28
28
|
position: relative !important;
|
|
29
29
|
inset-inline-start: -5px !important;
|
|
30
30
|
inset-block-start: -10px !important;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
@use '../variables/
|
|
1
|
+
@use '../variables/system-tokens';
|
|
2
2
|
|
|
3
|
-
.shadow-none
|
|
3
|
+
// @deprecated Use .shadow-none instead.
|
|
4
|
+
.elevation-none {
|
|
4
5
|
box-shadow: none;
|
|
5
6
|
}
|
|
6
7
|
|
|
8
|
+
// @deprecated Use .shadow-1 instead.
|
|
7
9
|
.elevation-1 {
|
|
8
|
-
box-shadow:
|
|
10
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-1;
|
|
9
11
|
}
|
|
10
12
|
|
|
13
|
+
// @deprecated Use .shadow-2 instead.
|
|
11
14
|
.elevation-2 {
|
|
12
|
-
box-shadow:
|
|
15
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-2;
|
|
13
16
|
}
|
|
14
17
|
|
|
18
|
+
// @deprecated Use .shadow-3 instead.
|
|
15
19
|
.elevation-3 {
|
|
16
|
-
box-shadow:
|
|
20
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-3;
|
|
17
21
|
}
|
|
18
22
|
|
|
23
|
+
// @deprecated Use .shadow-4 instead.
|
|
19
24
|
.elevation-4 {
|
|
20
|
-
box-shadow:
|
|
25
|
+
box-shadow: system-tokens.$si-sys-effects-shadow-4;
|
|
21
26
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.si-layout-main-padding {
|
|
13
|
-
padding-block: map.get(variables.$spacers, 6) 0;
|
|
14
|
-
padding-inline: map.get(variables.$spacers, 6);
|
|
13
|
+
padding-block: map.get(variables.$spacers-block, 6) 0;
|
|
14
|
+
padding-inline: map.get(variables.$spacers-inline, 6);
|
|
15
15
|
|
|
16
16
|
@include breakpoints.media-breakpoint-up(md) {
|
|
17
|
-
padding-inline: map.get(variables.$spacers, 9);
|
|
17
|
+
padding-inline: map.get(variables.$spacers-inline, 9);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.si-layout-status {
|
|
28
|
-
margin-block-end: map.get(variables.$spacers, 4);
|
|
29
|
-
margin-block-start:
|
|
28
|
+
margin-block-end: map.get(variables.$spacers-block, 4);
|
|
29
|
+
margin-block-start: map.get(variables.$negative-spacers-block, 4);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.si-layout-breadcrumb {
|
|
33
33
|
display: block;
|
|
34
|
-
margin-block-end: map.get(variables.$spacers, 4);
|
|
34
|
+
margin-block-end: map.get(variables.$spacers-block, 4);
|
|
35
35
|
|
|
36
36
|
&.si-layout-top-element {
|
|
37
|
-
margin-block-end: map.get(variables.$spacers, 6);
|
|
37
|
+
margin-block-end: map.get(variables.$spacers-block, 6);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
'title title'
|
|
46
46
|
'subtitle subtitle'
|
|
47
47
|
'actions actions';
|
|
48
|
-
margin-block-end: map.get(variables.$spacers, 8);
|
|
48
|
+
margin-block-end: map.get(variables.$spacers-block, 8);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.si-layout-title {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
.si-layout-subtitle {
|
|
67
67
|
grid-area: subtitle;
|
|
68
|
-
margin-block-start: map.get(variables.$spacers, 4);
|
|
68
|
+
margin-block-start: map.get(variables.$spacers-block, 4);
|
|
69
69
|
margin-block-end: 0;
|
|
70
70
|
color: variables.$si-sys-text-secondary;
|
|
71
71
|
@include variables.si-font(
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
|
|
78
78
|
.si-layout-actions {
|
|
79
79
|
grid-area: actions;
|
|
80
|
-
margin-block-start: map.get(variables.$spacers, 6);
|
|
80
|
+
margin-block-start: map.get(variables.$spacers-block, 6);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
@include breakpoints.media-breakpoint-up(sm) {
|
|
84
84
|
.si-layout-breadcrumb {
|
|
85
85
|
margin-block-end: map.get(
|
|
86
|
-
variables.$spacers,
|
|
86
|
+
variables.$spacers-block,
|
|
87
87
|
4
|
|
88
88
|
) !important; // stylelint-disable-line declaration-no-important
|
|
89
89
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
.si-layout-status {
|
|
112
112
|
margin-block-start: 0;
|
|
113
113
|
margin-block-end: map.get(
|
|
114
|
-
variables.$spacers,
|
|
114
|
+
variables.$spacers-block,
|
|
115
115
|
6
|
|
116
116
|
) !important; // stylelint-disable-line declaration-no-important
|
|
117
117
|
}
|