@siemens/element-theme 51.2.0 → 51.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/element-theme",
3
- "version": "51.2.0",
3
+ "version": "51.4.0",
4
4
  "description": "Element CSS theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -186,34 +186,6 @@
186
186
  border-block-start: 1px solid bootstrap-variables.$dropdown-divider-bg;
187
187
  }
188
188
 
189
- .dropdown > .dropdown-menu {
190
- inset-block: 100% auto;
191
- inset-inline: 0 auto;
192
- margin-block: bootstrap-variables.$dropdown-spacer 0;
193
- margin-inline: 0;
194
- }
195
-
196
- .dropup > .dropdown-menu {
197
- inset-block: auto 100%;
198
- inset-inline: auto;
199
- margin-block: 0 bootstrap-variables.$dropdown-spacer;
200
- margin-inline: 0;
201
- }
202
-
203
- .dropend > .dropdown-menu {
204
- inset-block: 0 auto;
205
- inset-inline: 100% auto;
206
- margin-block: 0;
207
- margin-inline: bootstrap-variables.$dropdown-spacer 0;
208
- }
209
-
210
- .dropstart > .dropdown-menu {
211
- inset-block: 0 auto;
212
- inset-inline: auto 100%;
213
- margin-block: 0;
214
- margin-inline: 0 bootstrap-variables.$dropdown-spacer;
215
- }
216
-
217
189
  .dropdown-menu {
218
190
  &.align-center {
219
191
  left: 0; // stylelint-disable-line property-layout-mappings
@@ -8,8 +8,8 @@
8
8
 
9
9
  // Rough mapping, the markup has to be restructured, this is not a class rename:
10
10
  // `.list-group` -> `.list`, optionally with `.list-divider`, `.list-filled` or `.list-outline`
11
- // `.list-group-item` -> `.list-item`, children need explicit slot classes
12
- // (`.list-item-title`, `.list-item-description`, ...)
11
+ // `.list-group-item` -> `.list-item`, slot classes such as `.list-item-title`
12
+ // and `.list-item-description` are optional
13
13
  // `.list-group-item-action` -> `.list-item.list-item-action`
14
14
  // `.list-group-flush` -> `.list.list-divider` to preserve dividers; otherwise
15
15
  // `.list`, which has no outer border
@@ -1,3 +1,4 @@
1
+ @use 'sass:map';
1
2
  @use '../variables';
2
3
  @use '../selectors';
3
4
 
@@ -80,6 +81,37 @@
80
81
  }
81
82
  }
82
83
 
84
+ // Opt in on the destination list or the draggable item to show an insertion line.
85
+ // Keep the placeholder visible in copy-source lists until it becomes an anchor.
86
+ .cdk-drop-list.drop-line-placeholder:not([cdkDropListHasAnchor])
87
+ > .cdk-drag-placeholder:not(.cdk-drag-anchor),
88
+ .cdk-drop-list:not([cdkDropListHasAnchor])
89
+ .cdk-drag-placeholder.drop-line-placeholder:not(.cdk-drag-anchor) {
90
+ block-size: 0;
91
+ min-block-size: 0;
92
+ inline-size: auto;
93
+ margin-inline: map.get(variables.$spacers-inline, 4);
94
+ margin-block: 0;
95
+ padding: 0;
96
+ border: 0;
97
+ opacity: 1;
98
+ background-color: transparent !important;
99
+ position: relative;
100
+ z-index: 999;
101
+
102
+ &::after {
103
+ position: absolute;
104
+ inline-size: 100%;
105
+ block-size: map.get(variables.$spacers-block, 1);
106
+ content: '';
107
+ background-color: variables.$si-sys-color-effects-focus;
108
+ }
109
+
110
+ > * {
111
+ display: none;
112
+ }
113
+ }
114
+
83
115
  // The anchor is a clone of the placeholder left behind in the source list when
84
116
  // `cdkDropListHasAnchor` is used. Make sure it always renders like the original item.
85
117
  .cdk-drag-anchor,
@@ -44,7 +44,7 @@ ol:has(.list-item) {
44
44
  '. . description description'
45
45
  '. . metadata metadata'
46
46
  '. . quick-actions quick-actions';
47
- padding-block: map.get(variables.$spacers-block, 4);
47
+ padding-block: map.get(variables.$spacers-block, 2);
48
48
  padding-inline: map.get(variables.$spacers-inline, 6);
49
49
 
50
50
  @include typography.si-font(