@siemens/element-theme 49.10.0 → 49.12.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/bootstrap/_buttons.scss +5 -2
- package/src/styles/bootstrap/_dropdowns.scss +4 -4
- package/src/styles/bootstrap/_modals.scss +1 -7
- package/src/styles/bootstrap/_popovers.scss +2 -2
- package/src/styles/bootstrap/_reboot.scss +1 -1
- package/src/styles/bootstrap/forms/_form-control.scss +3 -3
- package/src/styles/bootstrap/mixins/_backdrop.scss +2 -2
- package/src/styles/components/_datatable.scss +7 -2
- package/src/styles/components/_drag_drop.scss +8 -1
package/package.json
CHANGED
|
@@ -199,7 +199,9 @@ button {
|
|
|
199
199
|
|
|
200
200
|
// Icon buttons with circle variant
|
|
201
201
|
// --------------
|
|
202
|
-
.btn
|
|
202
|
+
.btn-circle,
|
|
203
|
+
.btn-icon,
|
|
204
|
+
.btn-close {
|
|
203
205
|
display: inline-flex;
|
|
204
206
|
padding: 0;
|
|
205
207
|
flex-shrink: 0;
|
|
@@ -213,7 +215,8 @@ button {
|
|
|
213
215
|
}
|
|
214
216
|
}
|
|
215
217
|
|
|
216
|
-
.btn-circle
|
|
218
|
+
.btn-circle,
|
|
219
|
+
.btn-close {
|
|
217
220
|
border-radius: 50%;
|
|
218
221
|
}
|
|
219
222
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
z-index: zindex.$zindex-dropdown;
|
|
20
20
|
display: none; // none by default, but block on "open" of the menu
|
|
21
21
|
min-inline-size: bootstrap-variables.$dropdown-min-width;
|
|
22
|
-
max-block-size: calc(
|
|
22
|
+
max-block-size: calc(100vb - #{map.get(spacers.$spacers, 1) * 2});
|
|
23
23
|
overflow-y: auto;
|
|
24
24
|
padding-block: bootstrap-variables.$dropdown-padding-y;
|
|
25
25
|
padding-inline: bootstrap-variables.$dropdown-padding-x;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
overflow: auto;
|
|
43
43
|
// 266px is based on figma and gives 6-8 items. Depending on the number of headings
|
|
44
44
|
max-block-size: min(
|
|
45
|
-
|
|
45
|
+
100vb,
|
|
46
46
|
calc((1lh + 2 * #{bootstrap-variables.$dropdown-item-padding-y}) * 8.3125) // = 266px with rfs 16px
|
|
47
47
|
);
|
|
48
48
|
}
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
|
|
210
210
|
.dropdown-menu {
|
|
211
211
|
&.align-center {
|
|
212
|
-
left: 0; // stylelint-disable-line
|
|
213
|
-
right: unset; // stylelint-disable-line
|
|
212
|
+
left: 0; // stylelint-disable-line property-layout-mappings
|
|
213
|
+
right: unset; // stylelint-disable-line property-layout-mappings
|
|
214
214
|
transform: translateX(-50%);
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -95,12 +95,6 @@
|
|
|
95
95
|
border-start-start-radius: variables.$modal-content-inner-border-radius;
|
|
96
96
|
border-start-end-radius: variables.$modal-content-inner-border-radius;
|
|
97
97
|
|
|
98
|
-
.btn-close {
|
|
99
|
-
padding-block: variables.$modal-header-padding-y * 0.5;
|
|
100
|
-
padding-inline: variables.$modal-header-padding-x * 0.5;
|
|
101
|
-
margin: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
98
|
.icon {
|
|
105
99
|
font-size: si-vars.$si-icon-font-size-lg;
|
|
106
100
|
margin-inline-end: map.get(spacers.$spacers, 4);
|
|
@@ -231,7 +225,7 @@
|
|
|
231
225
|
|
|
232
226
|
@include breakpoints.media-breakpoint-down($breakpoint) {
|
|
233
227
|
.modal-fullscreen#{$postfix} {
|
|
234
|
-
inline-size:
|
|
228
|
+
inline-size: 100vi;
|
|
235
229
|
max-inline-size: none;
|
|
236
230
|
block-size: 100%;
|
|
237
231
|
margin: 0;
|
|
@@ -12,8 +12,8 @@ $si-popover-bg: var(--popover-bg-color, variables.$popover-bg);
|
|
|
12
12
|
|
|
13
13
|
.popover {
|
|
14
14
|
position: absolute;
|
|
15
|
-
top: 0; // stylelint-disable-line
|
|
16
|
-
left: 0; // stylelint-disable-line
|
|
15
|
+
top: 0; // stylelint-disable-line property-layout-mappings
|
|
16
|
+
left: 0; // stylelint-disable-line property-layout-mappings
|
|
17
17
|
z-index: zindex.$zindex-popover;
|
|
18
18
|
display: block;
|
|
19
19
|
min-block-size: 50px;
|
|
@@ -478,7 +478,7 @@ select {
|
|
|
478
478
|
// 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
|
|
479
479
|
|
|
480
480
|
textarea {
|
|
481
|
-
resize:
|
|
481
|
+
resize: block; // 1
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
// 1. Browsers set a default `min-width: min-content;` on fieldsets,
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
background: semantic-tokens.$element-base-information;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
&:is(:focus, :hover) {
|
|
71
|
+
&:is(:focus, :hover, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
72
72
|
--border-color: #{semantic-tokens.$element-ui-1};
|
|
73
73
|
--si-textarea-mask: #{semantic-tokens.$element-base-input-experimental};
|
|
74
74
|
background-color: semantic-tokens.$element-base-input-experimental;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
&:is(.readonly, [readonly]) {
|
|
78
78
|
&,
|
|
79
|
-
&:is(:hover, :focus) {
|
|
79
|
+
&:is(:hover, :focus, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
80
80
|
--border-color: #{semantic-tokens.$element-ui-4};
|
|
81
81
|
--si-textarea-mask: transparent;
|
|
82
82
|
background-color: transparent;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
|
|
87
87
|
&:is(.disabled, :disabled) {
|
|
88
88
|
&,
|
|
89
|
-
&:is(:hover, :focus) {
|
|
89
|
+
&:is(:hover, :focus, :has(+ .form-control-actions:is(:hover, :focus-within))) {
|
|
90
90
|
--border-color: #{semantic-tokens.$element-ui-4};
|
|
91
91
|
--si-textarea-mask: transparent;
|
|
92
92
|
background-color: transparent;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
inset-block-start: 0;
|
|
6
6
|
inset-inline-start: 0;
|
|
7
7
|
z-index: $zindex;
|
|
8
|
-
inline-size:
|
|
9
|
-
block-size:
|
|
8
|
+
inline-size: 100vi;
|
|
9
|
+
block-size: 100vb;
|
|
10
10
|
background-color: $backdrop-bg;
|
|
11
11
|
opacity: $backdrop-opacity;
|
|
12
12
|
transition: variables.$transition-fade;
|
|
@@ -267,7 +267,6 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
267
267
|
.datatable-group-header {
|
|
268
268
|
border-block-end: 1px solid $datatable-header-border-color;
|
|
269
269
|
inline-size: 100% !important; // stylelint-disable-line declaration-no-important
|
|
270
|
-
min-inline-size: fit-content;
|
|
271
270
|
|
|
272
271
|
.datatable-body-cell-label {
|
|
273
272
|
overflow: inherit;
|
|
@@ -275,7 +274,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
275
274
|
inline-size: 100%;
|
|
276
275
|
}
|
|
277
276
|
|
|
278
|
-
&.datatable-body-row:hover:not(.active) {
|
|
277
|
+
&.datatable-body-row:hover:not(.active):has(.datatable-row-group) {
|
|
279
278
|
background-color: variables.$table-hover-bg;
|
|
280
279
|
|
|
281
280
|
:is(.datatable-row-left, .datatable-row-right) {
|
|
@@ -289,6 +288,8 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
289
288
|
}
|
|
290
289
|
|
|
291
290
|
.datatable-group-header {
|
|
291
|
+
min-inline-size: fit-content;
|
|
292
|
+
|
|
292
293
|
.datatable-group-cell {
|
|
293
294
|
display: flex;
|
|
294
295
|
align-items: center;
|
|
@@ -311,6 +312,10 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
}
|
|
315
|
+
|
|
316
|
+
.datatable-body-row:has(.datatable-row-group) {
|
|
317
|
+
min-inline-size: fit-content;
|
|
318
|
+
}
|
|
314
319
|
}
|
|
315
320
|
|
|
316
321
|
// Footer Styles
|
|
@@ -68,7 +68,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.cdk-drag-placeholder {
|
|
71
|
+
.cdk-drop-list:not([cdkDropListHasAnchor]) .cdk-drag-placeholder {
|
|
72
72
|
opacity: 0.3;
|
|
73
73
|
background-color: variables.$element-base-information !important;
|
|
74
74
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
@@ -79,6 +79,13 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
// The anchor is a clone of the placeholder left behind in the source list when
|
|
83
|
+
// `cdkDropListHasAnchor` is used. Make sure it always renders like the original item.
|
|
84
|
+
.cdk-drag-anchor,
|
|
85
|
+
.cdk-drag-anchor * {
|
|
86
|
+
visibility: visible;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
.cdk-drop-list-dragging .cdk-drag {
|
|
83
90
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) !important;
|
|
84
91
|
}
|