@sbb-esta/lyne-elements-dev 4.7.0-dev.1773219716 → 4.7.0-dev.1773234121

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.
@@ -104,6 +104,15 @@ $theme: 'standard' !default;
104
104
  @use '../../flip-card/flip-card-summary/flip-card-summary.global' as flip-card-summary with (
105
105
  $theme: $theme
106
106
  );
107
+ @use '../../header/common/header-action.global' as header-common with (
108
+ $theme: $theme
109
+ );
110
+ @use '../../header/header-environment/header-environment.global' as header-environment with (
111
+ $theme: $theme
112
+ );
113
+ @use '../../header/header/header.global' as header with (
114
+ $theme: $theme
115
+ );
107
116
  @use '../../footer/footer.global' as footer with (
108
117
  $theme: $theme
109
118
  );
@@ -193,6 +202,9 @@ $theme: 'standard' !default;
193
202
  @include flip-card-details.base;
194
203
  @include footer.base;
195
204
  @include form-field.base;
205
+ @include header.base;
206
+ @include header-common.base;
207
+ @include header-environment.base;
196
208
  @include icon-sidebar.base;
197
209
  @include lead-container.base;
198
210
  @include option.base;
@@ -214,6 +226,7 @@ $theme: 'standard' !default;
214
226
  @include breadcrumb.base-forced-colors;
215
227
  @include card.base-forced-colors;
216
228
  @include card-badge.base-forced-colors;
229
+ @include header-common.base-forced-colors;
217
230
  @include expansion-panel-header.base-forced-colors;
218
231
  @include form-field.base-forced-colors;
219
232
  @include visual-checkbox.base-forced-colors;
@@ -225,9 +238,6 @@ $theme: 'standard' !default;
225
238
  --sbb-train-formation-wagon-height: #{functions.px-to-rem-build(40)};
226
239
  --sbb-train-formation-wagon-gap: var(--sbb-spacing-fixed-1x);
227
240
 
228
- // Header
229
- --sbb-header-height: var(--sbb-spacing-fixed-14x);
230
-
231
241
  // Time Input
232
242
  --sbb-time-input-max-width: #{functions.px-to-rem-build(58)};
233
243
 
@@ -267,10 +277,6 @@ $theme: 'standard' !default;
267
277
  }
268
278
  }
269
279
 
270
- &:has(sbb-header[size='s']) {
271
- --sbb-header-height: #{functions.px-to-rem-build(52)};
272
- }
273
-
274
280
  // When the input modality is either mouse or touch,
275
281
  // the focus outline should be hidden.
276
282
  // We achieve this by setting the outline style to none.
@@ -295,6 +301,7 @@ $theme: 'standard' !default;
295
301
  @include dialog.base-breakpoint-large;
296
302
  @include flip-card.base-breakpoint-large;
297
303
  @include form-field.base-breakpoint-large;
304
+ @include header.base-breakpoint-large;
298
305
 
299
306
  // TODO: Remove complete block when new lean theme is complete
300
307
  // Only render the block in standard theme as fallback for CSS class usage
@@ -304,15 +311,8 @@ $theme: 'standard' !default;
304
311
  }
305
312
  }
306
313
 
307
- // Header
308
- --sbb-header-height: var(--sbb-spacing-fixed-24x);
309
-
310
314
  // Time Input
311
315
  --sbb-time-input-max-width: #{functions.px-to-rem-build(65)};
312
-
313
- &:has(sbb-header[size='s']) {
314
- --sbb-header-height: var(--sbb-spacing-fixed-14x);
315
- }
316
316
  }
317
317
 
318
318
  @include mediaqueries.mq($from: ultra) {
@@ -332,6 +332,7 @@ $theme: 'standard' !default;
332
332
  @include dialog-title.rules;
333
333
  @include flip-card-summary.rules;
334
334
  @include form-field.rules;
335
+ @include header.rules;
335
336
  @include icon-sidebar.rules;
336
337
  @include lead-container.rules;
337
338
  @include option.rules;
@@ -606,11 +607,6 @@ sbb-sidebar:has(sbb-sidebar-title) {
606
607
  --sbb-sidebar__padding-block-start: 0;
607
608
  }
608
609
 
609
- // Move container below header
610
- sbb-header + :where(sbb-sidebar-container, sbb-icon-sidebar-container) {
611
- margin-block-start: var(--sbb-header-height);
612
- }
613
-
614
610
  // We set some dimension to the selects trigger element in order that the screen reader's outline box looks more accurate.
615
611
  .sbb-select-trigger {
616
612
  width: 100%;
package/core.css CHANGED
@@ -1500,6 +1500,26 @@
1500
1500
  --_sbb-form-field-label-to-input-overlapping: var(--sbb-spacing-fixed-1x);
1501
1501
  --_sbb-form-field-floating-label-transform: 0.53125rem;
1502
1502
  --_sbb-form-field-spacer-margin-block-end: calc(-1 * var(--_sbb-form-field-label-to-input-overlapping));
1503
+ --sbb-header-background: var(--sbb-background-color-1);
1504
+ --sbb-header-box-shadow: var(--sbb-box-shadow-level-9-soft);
1505
+ --sbb-header-inset-inline-end: 0;
1506
+ --sbb-header-position: fixed;
1507
+ --sbb-header-height: var(--sbb-spacing-fixed-14x);
1508
+ --sbb-header-action-color: var(--sbb-color-1);
1509
+ --sbb-header-action-background-color: transparent;
1510
+ --sbb-header-action-min-height: var(--sbb-size-element-s);
1511
+ --sbb-header-action-padding-inline: var(--sbb-spacing-fixed-5x);
1512
+ --sbb-header-action-transition-easing: var(--sbb-animation-easing);
1513
+ --sbb-header-action-border-color: transparent;
1514
+ --sbb-header-action-gap: var(--sbb-spacing-fixed-2x);
1515
+ --sbb-header-action-icon-dimension: var(--sbb-size-icon-ui-small);
1516
+ --sbb-header-action-active-border-width: var(--sbb-border-width-2x);
1517
+ --sbb-header-action-active-border-color: var(--sbb-header-action-color);
1518
+ --sbb-header-first-item-icon-shift: 0.125rem;
1519
+ --sbb-header-environment-background-color: var(--sbb-color-granite);
1520
+ --sbb-header-environment-color: var(--sbb-color-1-negative);
1521
+ --sbb-header-environment-size: 2.375rem;
1522
+ --sbb-header-environment-rotate: 45deg;
1503
1523
  --sbb-icon-sidebar-background-color: var(--sbb-background-color-1);
1504
1524
  --sbb-icon-sidebar-border-radius: var(--sbb-border-radius-8x);
1505
1525
  --sbb-lead-container-background-color: var(--sbb-background-color-1);
@@ -1630,6 +1650,9 @@
1630
1650
  --sbb-card-border-width: var(--sbb-border-width-2x);
1631
1651
  --sbb-card-badge-border-display: block;
1632
1652
  --sbb-card-badge-inline-border-display: none;
1653
+ --sbb-header-action-border-color: CanvasText;
1654
+ --sbb-header-action-color: LinkText;
1655
+ --sbb-header-action-active-border-width: 0;
1633
1656
  --sbb-expansion-panel-header-text-color: ButtonText;
1634
1657
  --sbb-form-field-border-color: ButtonBorder;
1635
1658
  --sbb-visual-checkbox-selection-color: Canvas;
@@ -1649,7 +1672,6 @@
1649
1672
  --sbb-train-formation-wagon-width: 5rem;
1650
1673
  --sbb-train-formation-wagon-height: 2.5rem;
1651
1674
  --sbb-train-formation-wagon-gap: var(--sbb-spacing-fixed-1x);
1652
- --sbb-header-height: var(--sbb-spacing-fixed-14x);
1653
1675
  --sbb-time-input-max-width: 3.625rem;
1654
1676
  --sbb-overlay-default-z-index: 1000;
1655
1677
  --sbb-cursor-default: default;
@@ -1675,9 +1697,6 @@
1675
1697
  var(--sbb-spacing-fixed-1x);
1676
1698
  --sbb-heading-margin-block-6-lean: var(--sbb-spacing-responsive-s) 0;
1677
1699
  }
1678
- :root:has(sbb-header[size=s]) {
1679
- --sbb-header-height: 3.25rem;
1680
- }
1681
1700
  :root:where(.sbb-focus-modality-mouse, .sbb-focus-modality-touch) {
1682
1701
  --sbb-focus-outline-style: none;
1683
1702
  }
@@ -1744,17 +1763,14 @@
1744
1763
  --_sbb-form-field-label-to-input-overlapping: var(--sbb-spacing-fixed-1x);
1745
1764
  --_sbb-form-field-floating-label-transform: 0.65625rem;
1746
1765
  --_sbb-form-field-spacer-margin-block-end: calc(-1 * var(--_sbb-form-field-label-to-input-overlapping));
1766
+ --sbb-header-height: var(--sbb-spacing-fixed-24x);
1747
1767
  }
1748
1768
  :root.sbb-lean {
1749
1769
  --sbb-title-font-size-level-6-lean: var(--sbb-typo-scale-0-875x);
1750
1770
  }
1751
1771
  :root {
1752
- --sbb-header-height: var(--sbb-spacing-fixed-24x);
1753
1772
  --sbb-time-input-max-width: 4.0625rem;
1754
1773
  }
1755
- :root:has(sbb-header[size=s]) {
1756
- --sbb-header-height: var(--sbb-spacing-fixed-14x);
1757
- }
1758
1774
  }
1759
1775
  @media (min-width: calc(90rem)) {
1760
1776
  :root {
@@ -2007,6 +2023,26 @@ sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap
2007
2023
  }
2008
2024
  }
2009
2025
 
2026
+ sbb-header + :where(sbb-sidebar-container, sbb-icon-sidebar-container) {
2027
+ margin-block-start: var(--sbb-header-height);
2028
+ }
2029
+
2030
+ :root:has(sbb-header[size=m]) {
2031
+ --sbb-header-height: var(--sbb-spacing-fixed-14x);
2032
+ }
2033
+
2034
+ :root:has(sbb-header[size=s]) {
2035
+ --sbb-header-height: 3.25rem;
2036
+ }
2037
+
2038
+ @media (min-width: calc(64rem)) {
2039
+ :root:has(sbb-header[size=m]) {
2040
+ --sbb-header-height: var(--sbb-spacing-fixed-24x);
2041
+ }
2042
+ :root:has(sbb-header[size=s]) {
2043
+ --sbb-header-height: var(--sbb-spacing-fixed-14x);
2044
+ }
2045
+ }
2010
2046
  sbb-icon-sidebar-content + sbb-icon-sidebar :is(sbb-icon-sidebar-link, sbb-icon-sidebar-button) {
2011
2047
  --sbb-icon-sidebar-button__current-border-inset-inline-start: auto;
2012
2048
  }
@@ -2257,10 +2293,6 @@ sbb-sidebar:has(sbb-sidebar-title) {
2257
2293
  --sbb-sidebar__padding-block-start: 0;
2258
2294
  }
2259
2295
 
2260
- sbb-header + :where(sbb-sidebar-container, sbb-icon-sidebar-container) {
2261
- margin-block-start: var(--sbb-header-height);
2262
- }
2263
-
2264
2296
  .sbb-select-trigger {
2265
2297
  width: 100%;
2266
2298
  height: var(--sbb-size-element-xs);