@sbb-esta/lyne-elements-dev 4.7.0-dev.1773236484 → 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.
@@ -128,6 +128,12 @@ $theme: 'standard' !default;
128
128
  @use '../../lead-container/lead-container.global' as lead-container with (
129
129
  $theme: $theme
130
130
  );
131
+ @use '../../link/common/block-link.global' as block-link with (
132
+ $theme: $theme
133
+ );
134
+ @use '../../message/message.global' as message with (
135
+ $theme: $theme
136
+ );
131
137
  @use '../../option/option/option.global' as option with (
132
138
  $theme: $theme
133
139
  );
@@ -206,7 +212,9 @@ $theme: 'standard' !default;
206
212
  @include header-common.base;
207
213
  @include header-environment.base;
208
214
  @include icon-sidebar.base;
215
+ @include block-link.base;
209
216
  @include lead-container.base;
217
+ @include message.base;
210
218
  @include option.base;
211
219
  @include option-hint.base;
212
220
  @include optgroup.base;
@@ -335,6 +343,7 @@ $theme: 'standard' !default;
335
343
  @include header.rules;
336
344
  @include icon-sidebar.rules;
337
345
  @include lead-container.rules;
346
+ @include message.rules;
338
347
  @include option.rules;
339
348
  @include tab-nav-bar.rules;
340
349
 
@@ -433,14 +442,6 @@ img {
433
442
  object-position: var(--sbb-image-object-position);
434
443
  }
435
444
 
436
- // TODO: Move back to the sbb-message components when the global CSS refactoring happens
437
- sbb-message {
438
- > [slot='image']:is(sbb-image, img),
439
- > [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
440
- border-radius: var(--sbb-message-image-border-radius);
441
- }
442
- }
443
-
444
445
  // Target the slotted `sbb-image` which are generally wrapped by a <figure> (therefore are not reachable with the :slotted)
445
446
  // Apply the brightness effect on mouse hover
446
447
  // TODO: Move back to the teaser components when the global CSS refactoring happens
package/core.css CHANGED
@@ -1522,6 +1522,9 @@
1522
1522
  --sbb-header-environment-rotate: 45deg;
1523
1523
  --sbb-icon-sidebar-background-color: var(--sbb-background-color-1);
1524
1524
  --sbb-icon-sidebar-border-radius: var(--sbb-border-radius-8x);
1525
+ --sbb-block-link-gap: var(--sbb-spacing-fixed-1x);
1526
+ --sbb-block-link-icon-size: var(--sbb-size-icon-ui-small);
1527
+ --sbb-block-link-font-size: var(--sbb-text-font-size-s);
1525
1528
  --sbb-lead-container-background-color: var(--sbb-background-color-1);
1526
1529
  --sbb-lead-container-image-ratio: 2 / 1;
1527
1530
  --sbb-lead-container-image-overlap: var(--sbb-spacing-fixed-24x);
@@ -1530,6 +1533,12 @@
1530
1533
  --sbb-lead-container-padding-inline: var(--sbb-layout-base-offset-responsive);
1531
1534
  --sbb-lead-container-border-radius: var(--sbb-border-radius-6x);
1532
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;
1533
1542
  --sbb-option-color: var(--sbb-color-3);
1534
1543
  --sbb-option-background-color: inherit;
1535
1544
  --sbb-option-background-color-hover: var(--sbb-background-color-3);
@@ -2059,6 +2068,11 @@ sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-o
2059
2068
  border-radius: var(--sbb-lead-container-image-border-radius);
2060
2069
  }
2061
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
+
2062
2076
  :where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
2063
2077
  --sbb-option-min-height: var(--sbb-size-element-xxs);
2064
2078
  --sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
@@ -2175,11 +2189,6 @@ img {
2175
2189
  object-position: var(--sbb-image-object-position);
2176
2190
  }
2177
2191
 
2178
- sbb-message > [slot=image]:is(sbb-image, img),
2179
- sbb-message > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2180
- border-radius: var(--sbb-message-image-border-radius);
2181
- }
2182
-
2183
2192
  :is(sbb-teaser, sbb-teaser-hero, sbb-teaser-product) {
2184
2193
  --sbb-teaser-image-brightness-hover: var(--sbb-hover-image-brightness);
2185
2194
  --sbb-teaser-image-animation-duration: var(