@siemens/element-theme 49.2.0 → 49.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": "49.2.0",
3
+ "version": "49.4.0",
4
4
  "description": "Element CSS theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -11,9 +11,9 @@
11
11
  $btn-icon-font-size-default: variables.$si-icon-font-size !default;
12
12
  $btn-icon-font-size-lg: variables.$si-icon-font-size-lg !default;
13
13
  $btn-icon-font-size-sm: variables.$si-icon-font-size !default;
14
- $btn-icon-size-default: 32px !default;
15
- $btn-icon-size-lg: 40px !default;
16
- $btn-icon-size-sm: 24px !default;
14
+ $btn-icon-size-default: 2rem !default;
15
+ $btn-icon-size-lg: 2.5rem !default;
16
+ $btn-icon-size-sm: 1.5rem !default;
17
17
 
18
18
  // there are some non .btn buttons used in element
19
19
  button {
@@ -78,7 +78,6 @@
78
78
  &.action-card:not(:disabled) {
79
79
  &:hover {
80
80
  &,
81
- .card-header,
82
81
  .card-footer {
83
82
  background-color: semantic-tokens.$element-base-1-hover;
84
83
  }
@@ -86,7 +85,6 @@
86
85
 
87
86
  &:active {
88
87
  &,
89
- .card-header,
90
88
  .card-footer {
91
89
  background-color: semantic-tokens.$element-base-1-selected;
92
90
  }
@@ -100,6 +98,11 @@
100
98
  &:focus-visible {
101
99
  outline-offset: 2px;
102
100
  }
101
+
102
+ &.card-outline {
103
+ background-color: transparent;
104
+ box-shadow: inset 0 0 0 1px semantic-tokens.$element-ui-4;
105
+ }
103
106
  }
104
107
 
105
108
  button.card {
@@ -124,7 +127,6 @@ button.card {
124
127
  padding-inline: variables.$card-cap-padding-x;
125
128
  margin-block-end: 0; // Removes the default margin-bottom of <hN>
126
129
  color: variables.$card-cap-color;
127
- background-color: variables.$card-cap-bg;
128
130
  line-height: typography.$si-font-size-h5;
129
131
 
130
132
  + * .card-body, // for action cards, where we wrap the content
@@ -174,7 +176,6 @@ button.card {
174
176
  padding-inline: variables.$card-cap-padding-x;
175
177
  padding-block-start: variables.$card-cap-padding-y;
176
178
  padding-block-end: variables.$card-cap-padding-x;
177
- background-color: variables.$card-cap-bg;
178
179
  }
179
180
 
180
181
  :is(.card-header, .card-body):first-child {
@@ -52,7 +52,7 @@
52
52
 
53
53
  &:is(.readonly, [readonly]) {
54
54
  &,
55
- :is(:hover, :focus) {
55
+ &:is(:hover, :focus) {
56
56
  --border-color: #{semantic-tokens.$element-ui-4};
57
57
  background-color: variables.$input-bg;
58
58
  }
@@ -1,4 +1,5 @@
1
1
  @use '../../variables/spacers';
2
+ @use '../../bootstrap/functions';
2
3
  @use '../variables';
3
4
 
4
5
  @use 'sass:map';
@@ -21,7 +22,7 @@
21
22
  }
22
23
 
23
24
  .col-form-label {
24
- padding-block: map.get(spacers.$spacers, 4) - 1px 0;
25
+ padding-block: functions.add(variables.$input-padding-y, variables.$input-border-width);
25
26
  }
26
27
 
27
28
  :is(.form-label, .col-form-label, .form-check-label) {
@@ -103,6 +103,18 @@
103
103
  .application-header.show-navigation & {
104
104
  @extend %collapsible-expanded;
105
105
  }
106
+
107
+ .header-item {
108
+ &.active {
109
+ --si-header-item-border: #{semantic-tokens.$element-action-primary};
110
+ color: semantic-tokens.$element-action-primary;
111
+ }
112
+
113
+ &:hover {
114
+ --si-header-item-border: #{semantic-tokens.$element-action-primary-hover};
115
+ color: semantic-tokens.$element-action-primary-hover;
116
+ }
117
+ }
106
118
  }
107
119
 
108
120
  .header-collapsible-actions {
@@ -174,8 +186,10 @@
174
186
  position: absolute;
175
187
  inset-block-end: 0;
176
188
  inset-inline: 0;
177
- block-size: map.get(spacers.$spacers, 2);
178
189
  background: var(--si-header-item-border);
190
+
191
+ block-size: 100%;
192
+ inline-size: map.get(spacers.$spacers, 2);
179
193
  }
180
194
 
181
195
  &.header-selection-item {
@@ -208,18 +222,6 @@
208
222
  display: flex;
209
223
  flex: 1 1 33.333%;
210
224
  justify-content: center;
211
-
212
- .header-item {
213
- &.active {
214
- color: semantic-tokens.$element-action-primary;
215
- --si-header-item-border: #{semantic-tokens.$element-action-primary};
216
- }
217
-
218
- &:hover {
219
- color: semantic-tokens.$element-action-primary-hover;
220
- --si-header-item-border: #{semantic-tokens.$element-action-primary-hover};
221
- }
222
- }
223
225
  }
224
226
 
225
227
  .header-actions {
@@ -243,6 +245,11 @@
243
245
  .header-item {
244
246
  inline-size: auto;
245
247
  flex-basis: auto;
248
+
249
+ &::after {
250
+ inline-size: 100%;
251
+ block-size: map.get(spacers.$spacers, 2);
252
+ }
246
253
  }
247
254
  }
248
255
  }