@sbb-esta/lyne-elements-dev 4.7.0-dev.1773033279 → 4.7.0-dev.1773045546

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.
@@ -95,6 +95,15 @@ $theme: 'standard' !default;
95
95
  expansion-panel-header with (
96
96
  $theme: $theme
97
97
  );
98
+ @use '../../flip-card/flip-card/flip-card.global' as flip-card with (
99
+ $theme: $theme
100
+ );
101
+ @use '../../flip-card/flip-card-details/flip-card-details.global' as flip-card-details with (
102
+ $theme: $theme
103
+ );
104
+ @use '../../flip-card/flip-card-summary/flip-card-summary.global' as flip-card-summary with (
105
+ $theme: $theme
106
+ );
98
107
  @use '../../footer/footer.global' as footer with (
99
108
  $theme: $theme
100
109
  );
@@ -167,6 +176,8 @@ $theme: 'standard' !default;
167
176
  @include expansion-panel.base;
168
177
  @include expansion-panel-content.base;
169
178
  @include expansion-panel-header.base;
179
+ @include flip-card.base;
180
+ @include flip-card-details.base;
170
181
  @include footer.base;
171
182
  @include option.base;
172
183
  @include option-hint.base;
@@ -265,6 +276,7 @@ $theme: 'standard' !default;
265
276
 
266
277
  @include chip-group.base-breakpoint-large;
267
278
  @include dialog.base-breakpoint-large;
279
+ @include flip-card.base-breakpoint-large;
268
280
 
269
281
  // TODO: Remove complete block when new lean theme is complete
270
282
  // Only render the block in standard theme as fallback for CSS class usage
@@ -298,6 +310,7 @@ $theme: 'standard' !default;
298
310
  @include dialog-close-button.rules;
299
311
  @include dialog-content.rules;
300
312
  @include dialog-title.rules;
313
+ @include flip-card-summary.rules;
301
314
  @include option.rules;
302
315
  @include tab-nav-bar.rules;
303
316
 
@@ -512,19 +525,6 @@ img {
512
525
  object-position: var(--sbb-image-object-position);
513
526
  }
514
527
 
515
- // TODO: Move back to the sbb-flip-card-summary components when the global CSS refactoring happens
516
- sbb-flip-card-summary {
517
- > [slot='image']:is(sbb-image, img),
518
- > [slot='image'] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
519
- --sbb-image-aspect-ratio: auto;
520
- --sbb-image-object-fit: cover;
521
-
522
- border-radius: 0;
523
- display: block;
524
- height: 100%;
525
- }
526
- }
527
-
528
528
  // TODO: Move back to the sbb-lead-container components when the global CSS refactoring happens
529
529
  sbb-lead-container {
530
530
  > [slot='image']:is(sbb-image, img, picture),
package/core.css CHANGED
@@ -1460,6 +1460,14 @@
1460
1460
  --sbb-expansion-panel-header-padding-inline-s: var(--sbb-spacing-fixed-5x);
1461
1461
  --sbb-expansion-panel-header-padding-inline-l: var(--sbb-spacing-fixed-6x);
1462
1462
  --sbb-expansion-panel-header-padding-inline-default: var(--sbb-expansion-panel-header-padding-inline-l);
1463
+ --sbb-flip-card-background-color: var(--sbb-background-color-4);
1464
+ --sbb-flip-card-border: var(--sbb-border-width-2x);
1465
+ --sbb-flip-card-border-radius: var(--sbb-border-radius-4x);
1466
+ --sbb-flip-card-button-dimensions: var(--sbb-button-min-height-size-s);
1467
+ --sbb-flip-card-padding: var(--sbb-spacing-responsive-s);
1468
+ --sbb-flip-card-padding-block-end: var(--sbb-spacing-responsive-xs);
1469
+ --sbb-flip-card-min-height: 17.5rem;
1470
+ --sbb-flip-card-details-translate-y: var(--sbb-spacing-fixed-2x);
1463
1471
  --sbb-footer-background-color: var(--sbb-background-color-3);
1464
1472
  --sbb-footer-clock-width: 4.75rem;
1465
1473
  --sbb-footer-color: var(--sbb-color-granite);
@@ -1697,6 +1705,7 @@
1697
1705
  --sbb-chip-group-margin-block-with-label-not-empty: var(--_sbb-chip-group-margin-block-start-default-large) var(--_sbb-chip-group-margin-block-start-default-large);
1698
1706
  --sbb-dialog-padding-inline: var(--sbb-spacing-responsive-s);
1699
1707
  --sbb-dialog-max-height: calc(100vh - var(--sbb-spacing-fixed-16x));
1708
+ --sbb-flip-card-min-height: 20rem;
1700
1709
  }
1701
1710
  :root.sbb-lean {
1702
1711
  --sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
@@ -1780,6 +1789,15 @@ sbb-dialog:has(> sbb-dialog-close-button) > sbb-dialog-title, sbb-dialog:is(:sta
1780
1789
  padding-inline-end: 0;
1781
1790
  }
1782
1791
 
1792
+ sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
1793
+ sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
1794
+ --sbb-image-aspect-ratio: auto;
1795
+ --sbb-image-object-fit: cover;
1796
+ border-radius: 0;
1797
+ display: block;
1798
+ height: 100%;
1799
+ }
1800
+
1783
1801
  :where(sbb-select, sbb-autocomplete, sbb-autocomplete-grid)[size=s] :where(sbb-option, sbb-autocomplete-grid-option) {
1784
1802
  --sbb-option-min-height: var(--sbb-size-element-xxs);
1785
1803
  --sbb-focus-outline-offset: calc(-1 * var(--sbb-spacing-fixed-1x));
@@ -2070,15 +2088,6 @@ img {
2070
2088
  object-position: var(--sbb-image-object-position);
2071
2089
  }
2072
2090
 
2073
- sbb-flip-card-summary > [slot=image]:is(sbb-image, img),
2074
- sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap-image) {
2075
- --sbb-image-aspect-ratio: auto;
2076
- --sbb-image-object-fit: cover;
2077
- border-radius: 0;
2078
- display: block;
2079
- height: 100%;
2080
- }
2081
-
2082
2091
  sbb-lead-container > [slot=image]:is(sbb-image, img, picture),
2083
2092
  sbb-lead-container > [slot=image] :is(sbb-image, img, picture):not(.sbb-figure-overlap-image) {
2084
2093
  --sbb-image-aspect-ratio: var(--sbb-lead-container-image-ratio);