@sbb-esta/lyne-elements-dev 4.7.0-dev.1773242335 → 4.7.0-dev.1773245052

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.
@@ -131,6 +131,9 @@ $theme: 'standard' !default;
131
131
  @use '../../link/common/block-link.global' as block-link with (
132
132
  $theme: $theme
133
133
  );
134
+ @use '../../message/message.global' as message with (
135
+ $theme: $theme
136
+ );
134
137
  @use '../../option/option/option.global' as option with (
135
138
  $theme: $theme
136
139
  );
@@ -211,6 +214,7 @@ $theme: 'standard' !default;
211
214
  @include icon-sidebar.base;
212
215
  @include block-link.base;
213
216
  @include lead-container.base;
217
+ @include message.base;
214
218
  @include option.base;
215
219
  @include option-hint.base;
216
220
  @include optgroup.base;
@@ -339,6 +343,7 @@ $theme: 'standard' !default;
339
343
  @include header.rules;
340
344
  @include icon-sidebar.rules;
341
345
  @include lead-container.rules;
346
+ @include message.rules;
342
347
  @include option.rules;
343
348
  @include tab-nav-bar.rules;
344
349
 
@@ -437,14 +442,6 @@ img {
437
442
  object-position: var(--sbb-image-object-position);
438
443
  }
439
444
 
440
- // TODO: Move back to the sbb-message components when the global CSS refactoring happens
441
- sbb-message {
442
- > [slot='image']:is(sbb-image, img),
443
- > [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
444
- border-radius: var(--sbb-message-image-border-radius);
445
- }
446
- }
447
-
448
445
  // Target the slotted `sbb-image` which are generally wrapped by a <figure> (therefore are not reachable with the :slotted)
449
446
  // Apply the brightness effect on mouse hover
450
447
  // TODO: Move back to the teaser components when the global CSS refactoring happens
package/core.css CHANGED
@@ -1533,6 +1533,12 @@
1533
1533
  --sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
1534
1534
  --sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
1535
1535
  --sbb-lead-container-image-border-radius: 0;
1536
+ --sbb-message-action-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
1537
+ --sbb-message-image-margin-block: 0 var(--sbb-spacing-responsive-s);
1538
+ --sbb-message-image-border-radius: var(--sbb-border-radius-4x);
1539
+ --sbb-message-subtitle-color: var(--sbb-color-granite);
1540
+ --sbb-message-subtitle-color: light-dark(var(--sbb-color-granite), var(--sbb-color-platinum));
1541
+ --sbb-message-legend-margin-block: var(--sbb-spacing-responsive-xxxs) 0;
1536
1542
  --sbb-option-color: var(--sbb-color-3);
1537
1543
  --sbb-option-background-color: inherit;
1538
1544
  --sbb-option-background-color-hover: var(--sbb-background-color-3);
@@ -2062,6 +2068,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
2062
2068
  border-radius: var(--sbb-lead-container-image-border-radius);
2063
2069
  }
2064
2070
 
2071
+ sbb-message > [slot=image]:is(sbb-image, img),
2072
+ sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2073
+ border-radius: var(--sbb-message-image-border-radius);
2074
+ }
2075
+
2065
2076
  :where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
2066
2077
  --sbb-option-min-height: var(--sbb-size-element-xxs);
2067
2078
  --sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
@@ -2178,11 +2189,6 @@ img {
2178
2189
  object-position: var(--sbb-image-object-position);
2179
2190
  }
2180
2191
 
2181
- sbb-message > [slot=image]:is(sbb-image, img),
2182
- sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2183
- border-radius: var(--sbb-message-image-border-radius);
2184
- }
2185
-
2186
2192
  :is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
2187
2193
  --sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
2188
2194
  --sbb-teaser-image-animation-duration: var(