@sbb-esta/lyne-elements-dev 4.9.0-dev.1775125493 → 4.9.0-dev.1775130554

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.
@@ -239,6 +239,9 @@ $theme: 'standard' !default;
239
239
  @use '../../teaser/teaser.global' as teaser with (
240
240
  $theme: $theme
241
241
  );
242
+ @use '../../teaser-product/common/teaser-product-common.global' as teaser-product-common with (
243
+ $theme: $theme
244
+ );
242
245
  @use '../../visual-checkbox/visual-checkbox.global' as visual-checkbox with (
243
246
  $theme: $theme
244
247
  );
@@ -318,6 +321,7 @@ $theme: 'standard' !default;
318
321
  @include tab-label-common.base;
319
322
  @include tag.base;
320
323
  @include teaser.base;
324
+ @include teaser-product-common.base;
321
325
  @include visual-checkbox.base;
322
326
 
323
327
  @include a11y.if-forced-colors {
@@ -410,6 +414,7 @@ $theme: 'standard' !default;
410
414
  @include form-field.base-breakpoint-large;
411
415
  @include header.base-breakpoint-large;
412
416
  @include menu.base-breakpoint-large;
417
+ @include teaser-product-common.base-breakpoint-large;
413
418
 
414
419
  // TODO: Remove complete block when new lean theme is complete
415
420
  // Only render the block in standard theme as fallback for CSS class usage
@@ -450,6 +455,7 @@ $theme: 'standard' !default;
450
455
  @include sidebar-close-button.rules;
451
456
  @include sidebar-container.rules;
452
457
  @include tab-nav-bar.rules;
458
+ @include teaser-product-common.rules;
453
459
 
454
460
  // TODO: discuss where to add these classes
455
461
  .sbb-dark {
@@ -571,20 +577,6 @@ img {
571
577
  }
572
578
  }
573
579
 
574
- // TODO: Move back to the teaser components when the global CSS refactoring happens
575
- :is(sbb-teaser-product, sbb-teaser-product-static) {
576
- :is(sbb-image, img):not(.sbb-figure-overlap-image) {
577
- border-radius: 0; // Reset sbb-image border radius in order to control it from teaser product.
578
-
579
- --sbb-image-object-fit: cover;
580
- --sbb-image-aspect-ratio: 16 / 9;
581
- }
582
-
583
- img:not(.sbb-figure-overlap-image) {
584
- place-self: stretch;
585
- }
586
- }
587
-
588
580
  sbb-teaser :is(sbb-image, img):not(.sbb-figure-overlap-image) {
589
581
  --sbb-image-object-fit: cover;
590
582
  --sbb-image-aspect-ratio: 4 / 3;
package/core.css CHANGED
@@ -1743,6 +1743,28 @@ slot[name=error]::slotted(*) {
1743
1743
  --sbb-teaser-gap: var(--sbb-spacing-fixed-4x);
1744
1744
  --sbb-teaser-border-radius: var(--sbb-border-radius-4x);
1745
1745
  --sbb-teaser-image-width: 18.75rem;
1746
+ --sbb-teaser-product-background-color: var(--sbb-color-cloud);
1747
+ --sbb-teaser-product-background-color: light-dark(
1748
+ var(--sbb-color-cloud),
1749
+ var(--sbb-color-midnight)
1750
+ );
1751
+ --sbb-teaser-product-background-gradient-direction: to right;
1752
+ --sbb-teaser-product-border-radius: var(--sbb-border-radius-4x);
1753
+ --sbb-teaser-product-min-height: 37.5rem;
1754
+ --sbb-teaser-product-background-gradient-start: 25%;
1755
+ --sbb-teaser-product-background-gradient-end: 75%;
1756
+ --sbb-teaser-product-container-padding-block: var(--sbb-spacing-responsive-s);
1757
+ --sbb-teaser-product-container-padding-inline: var(--sbb-spacing-responsive-s);
1758
+ --sbb-teaser-product-container-spacing: var(--sbb-spacing-responsive-l);
1759
+ --sbb-teaser-product-content-color: var(--sbb-color-4);
1760
+ --sbb-teaser-product-footer-color: var(--sbb-color-anthracite);
1761
+ --sbb-teaser-product-footer-color: light-dark(
1762
+ var(--sbb-color-anthracite),
1763
+ var(--sbb-color-cloud)
1764
+ );
1765
+ --sbb-teaser-product-footer-font-size: var(--sbb-text-font-size-xxs);
1766
+ --sbb-teaser-product-footer-padding-block-start: var(--sbb-spacing-responsive-s);
1767
+ --sbb-teaser-product-footer-padding-block-end: 0;
1746
1768
  --sbb-visual-checkbox-dimension: var(--sbb-checkbox-dimension-m);
1747
1769
  --sbb-visual-checkbox-selection-color: var(--sbb-color-primary);
1748
1770
  --sbb-visual-checkbox-selection-color-negative: var(--sbb-color-primary85);
@@ -1908,6 +1930,12 @@ slot[name=error]::slotted(*) {
1908
1930
  --sbb-menu-max-width: 20rem;
1909
1931
  --sbb-menu-min-width: 11.25rem;
1910
1932
  --sbb-menu-transform-y: var(--sbb-spacing-fixed-2x);
1933
+ --sbb-teaser-product-container-padding-block: var(--sbb-spacing-responsive-l) 0;
1934
+ --sbb-teaser-product-container-padding-inline: var(--sbb-spacing-responsive-xl);
1935
+ --sbb-teaser-product-content-align-content: center;
1936
+ --sbb-teaser-product-footer-padding-block-start: var(--sbb-spacing-responsive-xs);
1937
+ --sbb-teaser-product-footer-padding-block-end: var(--sbb-spacing-responsive-xs);
1938
+ --sbb-teaser-product-footer-min-height: var(--sbb-teaser-product-container-spacing);
1911
1939
  }
1912
1940
  :root.sbb-lean {
1913
1941
  --sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
@@ -2285,6 +2313,15 @@ sbb-tab-nav-bar .sbb-tab-amount {
2285
2313
  text-decoration: var(--sbb-tab-label-text-decoration);
2286
2314
  }
2287
2315
 
2316
+ :is(sbb-teaser-product, sbb-teaser-product-static) :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2317
+ border-radius: 0;
2318
+ --sbb-image-object-fit: cover;
2319
+ --sbb-image-aspect-ratio: 16 / 9;
2320
+ }
2321
+ :is(sbb-teaser-product, sbb-teaser-product-static) img:not(.sbb-figure-overlap-image) {
2322
+ place-self: stretch;
2323
+ }
2324
+
2288
2325
  .sbb-dark {
2289
2326
  color-scheme: dark;
2290
2327
  }
@@ -2401,15 +2438,6 @@ img {
2401
2438
  transition: filter var(--sbb-teaser-image-animation-duration) var(--sbb-teaser-image-animation-easing);
2402
2439
  }
2403
2440
 
2404
- :is(sbb-teaser-product, sbb-teaser-product-static) :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2405
- border-radius: 0;
2406
- --sbb-image-object-fit: cover;
2407
- --sbb-image-aspect-ratio: 16 / 9;
2408
- }
2409
- :is(sbb-teaser-product, sbb-teaser-product-static) img:not(.sbb-figure-overlap-image) {
2410
- place-self: stretch;
2411
- }
2412
-
2413
2441
  sbb-teaser :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2414
2442
  --sbb-image-object-fit: cover;
2415
2443
  --sbb-image-aspect-ratio: 4 / 3;