@sbb-esta/lyne-elements 1.11.3 → 1.12.1

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.
Files changed (166) hide show
  1. package/_index.scss +1 -1
  2. package/core/i18n/i18n.d.ts +5 -0
  3. package/core/i18n/i18n.d.ts.map +1 -1
  4. package/core/i18n.js +85 -55
  5. package/core/styles/core/functions.scss +1 -1
  6. package/core/styles/lists.scss +4 -0
  7. package/core/styles/mixins/helpers.scss +1 -1
  8. package/core/styles/mixins/lists.scss +128 -77
  9. package/core/styles/mixins/scrollbar.scss +2 -2
  10. package/core/styles/mixins/table.scss +4 -6
  11. package/core/styles/normalize.scss +62 -131
  12. package/core.css +0 -5
  13. package/custom-elements.json +781 -77
  14. package/development/accordion.js +2 -9
  15. package/development/action-group.js +2 -9
  16. package/development/alert/alert-group.js +2 -9
  17. package/development/alert/alert.js +2 -9
  18. package/development/autocomplete-grid/autocomplete-grid-button.js +2 -9
  19. package/development/autocomplete-grid/autocomplete-grid-cell.js +2 -9
  20. package/development/autocomplete-grid/autocomplete-grid-option.js +2 -9
  21. package/development/autocomplete-grid/autocomplete-grid-row.js +2 -9
  22. package/development/autocomplete.js +2 -12
  23. package/development/breadcrumb/breadcrumb-group.js +2 -9
  24. package/development/breadcrumb/breadcrumb.js +2 -9
  25. package/development/button/common.js +2 -11
  26. package/development/button/mini-button-group.js +2 -9
  27. package/development/button/mini-button.js +2 -9
  28. package/development/calendar.js +2 -9
  29. package/development/card/card-badge.js +2 -9
  30. package/development/card/card.js +2 -9
  31. package/development/card/common.js +2 -9
  32. package/development/checkbox/checkbox-group.js +2 -9
  33. package/development/checkbox/checkbox.js +2 -9
  34. package/development/checkbox/common.js +1 -8
  35. package/development/chip.js +2 -9
  36. package/development/clock.js +2 -9
  37. package/development/container/container.js +1 -8
  38. package/development/container/sticky-bar.js +2 -9
  39. package/development/core/i18n/i18n.d.ts +5 -0
  40. package/development/core/i18n/i18n.d.ts.map +1 -1
  41. package/development/core/i18n.js +36 -1
  42. package/development/core/mixins.js +2 -9
  43. package/development/datepicker/datepicker-next-day.js +2 -9
  44. package/development/datepicker/datepicker-previous-day.js +2 -9
  45. package/development/datepicker/datepicker-toggle.js +2 -9
  46. package/development/datepicker/datepicker.js +2 -9
  47. package/development/dialog/dialog-actions.js +2 -9
  48. package/development/dialog/dialog-content.js +2 -11
  49. package/development/dialog/dialog-title.js +2 -9
  50. package/development/dialog/dialog.js +2 -9
  51. package/development/divider.js +2 -9
  52. package/development/expansion-panel/expansion-panel-content.js +2 -9
  53. package/development/expansion-panel/expansion-panel-header.js +2 -9
  54. package/development/expansion-panel/expansion-panel.js +2 -9
  55. package/development/file-selector.js +2 -9
  56. package/development/flip-card/flip-card-details.js +2 -9
  57. package/development/flip-card/flip-card-summary.js +2 -9
  58. package/development/flip-card/flip-card.js +2 -9
  59. package/development/footer.js +2 -9
  60. package/development/form-error.js +2 -9
  61. package/development/form-field/form-field-clear.js +2 -9
  62. package/development/form-field/form-field.js +1 -12
  63. package/development/header/common.js +2 -9
  64. package/development/header/header.js +2 -9
  65. package/development/icon.js +2 -9
  66. package/development/image/image.d.ts +1 -0
  67. package/development/image/image.d.ts.map +1 -1
  68. package/development/image.js +13 -13
  69. package/development/journey-header.js +2 -9
  70. package/development/lead-container.js +2 -9
  71. package/development/link/common.js +4 -25
  72. package/development/link-list/common.js +2 -9
  73. package/development/link-list/link-list-anchor.js +2 -9
  74. package/development/link-list/link-list.js +2 -9
  75. package/development/loading-indicator.js +2 -10
  76. package/development/logo.js +2 -9
  77. package/development/map-container.js +2 -11
  78. package/development/menu/common.js +2 -9
  79. package/development/menu/menu.js +2 -11
  80. package/development/message.js +2 -9
  81. package/development/navigation/common.js +2 -9
  82. package/development/navigation/navigation-list.js +2 -9
  83. package/development/navigation/navigation-marker.js +2 -9
  84. package/development/navigation/navigation-section.js +2 -11
  85. package/development/navigation/navigation.js +2 -11
  86. package/development/notification.js +2 -10
  87. package/development/option/optgroup.js +2 -9
  88. package/development/option/option.js +2 -9
  89. package/development/overlay.js +2 -11
  90. package/development/paginator/index.d.ts +2 -0
  91. package/development/paginator/index.d.ts.map +1 -0
  92. package/development/paginator/paginator.d.ts +91 -0
  93. package/development/paginator/paginator.d.ts.map +1 -0
  94. package/development/paginator.d.ts +2 -0
  95. package/development/paginator.d.ts.map +1 -0
  96. package/development/paginator.js +519 -0
  97. package/development/popover/popover-trigger.js +2 -9
  98. package/development/popover/popover.js +2 -9
  99. package/development/radio-button/common.js +2 -9
  100. package/development/radio-button/radio-button-group/radio-button-group.d.ts +1 -1
  101. package/development/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  102. package/development/radio-button/radio-button-group.js +19 -22
  103. package/development/radio-button/radio-button.js +2 -9
  104. package/development/screen-reader-only.js +2 -9
  105. package/development/select/select.d.ts +6 -0
  106. package/development/select/select.d.ts.map +1 -1
  107. package/development/select.js +23 -18
  108. package/development/selection-expansion-panel.js +2 -9
  109. package/development/signet.js +2 -9
  110. package/development/skiplink-list.js +2 -9
  111. package/development/slider/slider.d.ts +35 -16
  112. package/development/slider/slider.d.ts.map +1 -1
  113. package/development/slider.js +102 -88
  114. package/development/status.js +2 -9
  115. package/development/stepper/step-label.js +2 -9
  116. package/development/stepper/step.js +2 -9
  117. package/development/stepper/stepper.js +2 -9
  118. package/development/table/table-wrapper.js +2 -11
  119. package/development/tabs/tab-group.js +2 -9
  120. package/development/tabs/tab-label.js +2 -9
  121. package/development/tabs/tab.js +1 -8
  122. package/development/tag/tag-group.js +2 -9
  123. package/development/tag/tag.js +2 -9
  124. package/development/teaser-hero.js +2 -9
  125. package/development/teaser-product/common.js +2 -9
  126. package/development/teaser-product/teaser-product.js +2 -9
  127. package/development/teaser.js +12 -11
  128. package/development/time-input.js +2 -9
  129. package/development/timetable-occupancy-icon.js +2 -9
  130. package/development/timetable-occupancy.js +2 -9
  131. package/development/title.js +3 -17
  132. package/development/toast.js +2 -9
  133. package/development/toggle/toggle-option.js +2 -9
  134. package/development/toggle/toggle.js +2 -9
  135. package/development/toggle-check.js +1 -8
  136. package/development/train/train-blocked-passage.js +2 -9
  137. package/development/train/train-formation.js +2 -11
  138. package/development/train/train-wagon.js +2 -9
  139. package/development/train/train.js +2 -9
  140. package/development/visual-checkbox.js +2 -9
  141. package/image/image.d.ts +1 -0
  142. package/image/image.d.ts.map +1 -1
  143. package/image.js +7 -7
  144. package/index.d.ts +2 -0
  145. package/index.js +2 -0
  146. package/lists.css +97 -38
  147. package/normalize.css +21 -113
  148. package/package.json +6 -1
  149. package/paginator/index.d.ts +2 -0
  150. package/paginator/index.d.ts.map +1 -0
  151. package/paginator/paginator.d.ts +91 -0
  152. package/paginator/paginator.d.ts.map +1 -0
  153. package/paginator.d.ts +2 -0
  154. package/paginator.d.ts.map +1 -0
  155. package/paginator.js +263 -0
  156. package/radio-button/radio-button-group/radio-button-group.d.ts +1 -1
  157. package/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
  158. package/radio-button/radio-button-group.js +13 -8
  159. package/select/select.d.ts +6 -0
  160. package/select/select.d.ts.map +1 -1
  161. package/select.js +40 -24
  162. package/slider/slider.d.ts +35 -16
  163. package/slider/slider.d.ts.map +1 -1
  164. package/slider.js +111 -78
  165. package/standard-theme.css +116 -160
  166. package/teaser.js +16 -16
@@ -6,199 +6,100 @@ sub, sup {
6
6
  vertical-align: baseline;
7
7
  }
8
8
 
9
- /** This mixin can be used to avoid spacing problems by inserting an invisible space as pseudo element. */
10
- /*
11
- * SBB table mixin
12
- * Notes:
13
- * We cannot use `border-collapse` because it is not compatible with the `border-radius` property.
14
- * Therefore, we have to build the grid avoiding double borders.
15
- */
16
- /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
17
- /*
18
- Document
19
- ========
20
- */
21
- /**
22
- 1. Correct the line height in all browsers. ///// Commented out since we define own line-height /////
23
- 2. Prevent adjustments of font size after orientation changes in iOS.
24
- 3. Use a more readable tab size (opinionated).
25
- */
26
9
  html {
27
- -webkit-text-size-adjust: 100%; /* 2 */
28
- -moz-text-size-adjust: 100%; /* 2 */
29
- text-size-adjust: 100%; /* 2 */
30
- tab-size: 4; /* 3 */
10
+ -webkit-text-size-adjust: 100%;
11
+ -moz-text-size-adjust: 100%;
12
+ text-size-adjust: 100%;
13
+ tab-size: 4;
31
14
  }
32
15
 
33
- /*
34
- Sections
35
- ========
36
- */
37
16
  body {
38
- margin: 0; /* Remove the margin in all browsers. */
17
+ margin: 0;
39
18
  }
40
19
 
41
- /*
42
- Grouping content
43
- ================
44
- */
45
- /**
46
- 1. Add the correct height in Firefox.
47
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
48
- */
49
20
  hr {
50
- height: 0; /* 1 */
51
- color: inherit; /* 2 */
21
+ height: 0;
22
+ color: inherit;
52
23
  }
53
24
 
54
- /*
55
- Text-level semantics
56
- ====================
57
- */
58
- /**
59
- Add the correct text decoration in Chrome, Edge, and Safari.
60
- */
61
25
  abbr[title] {
62
26
  text-decoration: underline dotted;
63
27
  }
64
28
 
65
- /**
66
- Add the correct font weight in Edge and Safari.
67
- */
68
29
  b,
69
30
  strong {
70
31
  font-weight: bolder;
71
32
  }
72
33
 
73
- /**
74
- 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
75
- 2. Correct the odd 'em' font sizing in all browsers.
76
- */
77
34
  code,
78
35
  kbd,
79
36
  samp,
80
37
  pre {
81
- font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
82
- font-size: 1em; /* 2 */
38
+ font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
39
+ font-size: 1em;
83
40
  }
84
41
 
85
- /**
86
- Add the correct font size in all browsers.
87
- */
88
42
  small {
89
43
  font-size: 80%;
90
44
  }
91
45
 
92
- /*
93
- Tabular data
94
- ============
95
- */
96
- /**
97
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
98
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
99
- */
100
46
  table {
101
- text-indent: 0; /* 1 */
102
- border-color: inherit; /* 2 */
47
+ text-indent: 0;
48
+ border-color: inherit;
103
49
  }
104
50
 
105
- /*
106
- Forms
107
- =====
108
- */
109
- /**
110
- 1. Change the font styles in all browsers.
111
- 2. Remove the margin in Firefox and Safari.
112
- */
113
51
  button,
114
52
  input,
115
53
  optgroup,
116
54
  select,
117
55
  textarea {
118
- font-family: inherit; /* 1 */
119
- font-size: 100%; /* 1 */
120
- line-height: 1.15; /* 1 */
121
- margin: 0; /* 2 */
56
+ font-family: inherit;
57
+ font-size: 100%;
58
+ line-height: 1.15;
59
+ margin: 0;
122
60
  }
123
61
 
124
- /**
125
- Remove the inheritance of text transform in Edge and Firefox.
126
- */
127
62
  button,
128
63
  select {
129
64
  text-transform: none;
130
65
  }
131
66
 
132
- /**
133
- Correct the inability to style clickable types in iOS and Safari.
134
- */
135
67
  button,
136
68
  :is(button, input):where([type=button], [type=reset], [type=submit]) {
137
69
  -webkit-appearance: button;
138
70
  }
139
71
 
140
- /**
141
- Remove the additional ':invalid' styles in Firefox.
142
- See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
143
- */
144
72
  :-moz-ui-invalid {
145
73
  box-shadow: none;
146
74
  }
147
75
 
148
- /**
149
- Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
150
- */
151
76
  legend {
152
77
  padding: 0;
153
78
  }
154
79
 
155
- /**
156
- Add the correct vertical alignment in Chrome and Firefox.
157
- */
158
80
  progress {
159
81
  vertical-align: baseline;
160
82
  }
161
83
 
162
- /**
163
- Correct the cursor style of increment and decrement buttons in Safari.
164
- */
165
84
  ::-webkit-inner-spin-button,
166
85
  ::-webkit-outer-spin-button {
167
86
  height: auto;
168
87
  }
169
88
 
170
- /**
171
- 1. Correct the odd appearance in Chrome and Safari.
172
- 2. Correct the outline style in Safari.
173
- */
174
89
  [type=search] {
175
- -webkit-appearance: textfield; /* 1 */
176
- outline-offset: -2px; /* 2 */
90
+ -webkit-appearance: textfield;
91
+ outline-offset: -2px;
177
92
  }
178
93
 
179
- /**
180
- Remove the inner padding in Chrome and Safari on macOS.
181
- */
182
94
  ::-webkit-search-decoration {
183
95
  -webkit-appearance: none;
184
96
  }
185
97
 
186
- /**
187
- 1. Correct the inability to style clickable types in iOS and Safari.
188
- 2. Change font properties to 'inherit' in Safari.
189
- */
190
98
  ::-webkit-file-upload-button {
191
- -webkit-appearance: button; /* 1 */
192
- font: inherit; /* 2 */
99
+ -webkit-appearance: button;
100
+ font: inherit;
193
101
  }
194
102
 
195
- /*
196
- Interactive
197
- ===========
198
- */
199
- /*
200
- Add the correct display in Chrome and Safari.
201
- */
202
103
  summary {
203
104
  display: list-item;
204
105
  }
@@ -1382,8 +1283,6 @@ sbb-form-field textarea {
1382
1283
  --sbb-scrollbar-color-hover: var(--sbb-color-black-alpha-60);
1383
1284
  --sbb-scrollbar-track-color: transparent;
1384
1285
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1385
- /* Scrollbar itself */
1386
- /* Hide button (top and bottom of the scrollbar) */
1387
1286
  }
1388
1287
  sbb-form-field textarea::-webkit-scrollbar {
1389
1288
  width: var(--sbb-scrollbar-width);
@@ -1420,8 +1319,6 @@ sbb-form-field[negative] textarea {
1420
1319
  --sbb-scrollbar-color-hover: var(--sbb-color-white-alpha-60);
1421
1320
  --sbb-scrollbar-track-color: transparent;
1422
1321
  --sbb-scrollbar-width: var(--sbb-spacing-fixed-3x);
1423
- /* Scrollbar itself */
1424
- /* Hide button (top and bottom of the scrollbar) */
1425
1322
  }
1426
1323
  sbb-form-field[negative] textarea::-webkit-scrollbar {
1427
1324
  width: var(--sbb-scrollbar-width);
@@ -1639,7 +1536,6 @@ sup {
1639
1536
  margin: 0;
1640
1537
  padding: 0;
1641
1538
  padding-inline-start: var(--sbb-list-padding-inline-start);
1642
- color: var(--sbb-color-iron);
1643
1539
  }
1644
1540
  .sbb-list:where(ol, ul) > li + li,
1645
1541
  .sbb-list:where(ol, ul) :is(ol, ul) > li + li {
@@ -1689,7 +1585,6 @@ sup {
1689
1585
  display: grid;
1690
1586
  grid-template-columns: auto minmax(20%, 1fr);
1691
1587
  gap: var(--sbb-spacing-fixed-1x) var(--sbb-spacing-fixed-2x);
1692
- color: var(--sbb-color-iron);
1693
1588
  }
1694
1589
  .sbb-list:where(dl) :is(dt, dd) {
1695
1590
  margin: 0;
@@ -1697,24 +1592,54 @@ sup {
1697
1592
  }
1698
1593
 
1699
1594
  .sbb-step-list {
1700
- --sbb-step-list-marker-dimensions: 2.125rem;
1701
- --sbb-step-list-padding-block: var(--sbb-spacing-fixed-3x);
1595
+ --sbb-step-list-dimensions: 2.125rem;
1702
1596
  --sbb-step-list-padding-inline: var(--sbb-spacing-responsive-xxs);
1703
- --sbb-step-list-marker-to-text-gap: var(--sbb-spacing-responsive-xxxs);
1704
- --sbb-step-list-border-radius: var(--sbb-border-radius-4x);
1705
- --sbb-step-list-text-to-marker-block-offset: calc(
1706
- 0.5 *
1707
- (
1708
- var(--sbb-step-list-marker-dimensions) - var(--sbb-typo-line-height-body-text) *
1709
- var(--sbb-text-font-size)
1710
- )
1711
- );
1712
- --sbb-step-list-vertical-gap: var(--sbb-spacing-fixed-1x);
1597
+ --sbb-step-list-to-text-gap: var(--sbb-spacing-responsive-xxxs);
1598
+ --sbb-step-list-text-to-marker-block-offset: calc(0.5 * (var(--sbb-step-list-dimensions) - var(--sbb-typo-line-height-body-text) * var(--sbb-text-font-size)));
1713
1599
  list-style: none;
1714
1600
  margin: 0;
1715
1601
  padding: 0;
1602
+ }
1603
+ @media (min-width: calc(52.5rem)) {
1604
+ .sbb-step-list:where(.sbb-text-xl) {
1605
+ --sbb-step-list-dimensions: 2.5625rem;
1606
+ }
1607
+ }
1608
+ .sbb-step-list > li {
1609
+ position: relative;
1610
+ padding-inline: calc(var(--sbb-step-list-padding-inline) + var(--sbb-step-list-dimensions) + var(--sbb-step-list-to-text-gap)) var(--sbb-step-list-padding-inline);
1611
+ min-height: var(--sbb-step-list-dimensions);
1612
+ }
1613
+ .sbb-step-list > li::before {
1614
+ --sbb-text-font-size: var(--sbb-font-size-text-xxs);
1615
+ font-family: var(--sbb-typo-font-family);
1616
+ font-weight: normal;
1617
+ line-height: var(--sbb-typo-line-height-body-text);
1618
+ letter-spacing: var(--sbb-typo-letter-spacing-body-text);
1619
+ font-size: var(--sbb-text-font-size);
1620
+ font-weight: bold;
1621
+ position: absolute;
1622
+ height: var(--sbb-step-list-dimensions);
1623
+ width: var(--sbb-step-list-dimensions);
1624
+ margin-block-start: calc(-1 * var(--sbb-step-list-text-to-marker-block-offset));
1625
+ inset-inline-start: var(--sbb-step-list-padding-inline);
1626
+ border-radius: 50%;
1627
+ }
1628
+ .sbb-step-list > li + li {
1629
+ margin-block-start: var(--sbb-step-list-vertical-gap);
1630
+ }
1631
+ .sbb-step-list > li p {
1632
+ margin-block: 0;
1633
+ }
1634
+ .sbb-step-list > li > * + p {
1635
+ margin-block-start: var(--sbb-spacing-responsive-xxxs);
1636
+ }
1637
+ .sbb-step-list {
1638
+ --sbb-step-list-padding-block: var(--sbb-spacing-fixed-3x);
1639
+ --sbb-step-list-vertical-gap: var(--sbb-spacing-fixed-1x);
1640
+ --sbb-step-list-border-radius: var(--sbb-border-radius-4x);
1716
1641
  counter-reset: steps;
1717
- /* stylelint-disable-next-line no-descending-specificity */
1642
+ color: var(--sbb-color-iron);
1718
1643
  }
1719
1644
  .sbb-step-list:where(.sbb-text-s) {
1720
1645
  --sbb-step-list-padding-block: var(--sbb-spacing-fixed-4x);
@@ -1722,18 +1647,20 @@ sup {
1722
1647
  .sbb-step-list:where(.sbb-text-m, .sbb-text-l, .sbb-text-xl) {
1723
1648
  --sbb-step-list-padding-block: var(--sbb-spacing-fixed-5x);
1724
1649
  }
1725
- @media (min-width: calc(52.5rem)) {
1726
- .sbb-step-list:where(.sbb-text-xl) {
1727
- --sbb-step-list-marker-dimensions: 2.5625rem;
1728
- }
1729
- }
1730
1650
  .sbb-step-list > li {
1731
- position: relative;
1732
1651
  counter-increment: steps;
1733
1652
  background-color: var(--sbb-color-milk);
1734
1653
  padding-block: calc(var(--sbb-step-list-padding-block) + var(--sbb-step-list-text-to-marker-block-offset)) var(--sbb-step-list-padding-block);
1735
- padding-inline: calc(var(--sbb-step-list-padding-inline) + var(--sbb-step-list-marker-dimensions) + var(--sbb-step-list-marker-to-text-gap)) var(--sbb-step-list-padding-inline);
1736
- min-height: calc(var(--sbb-step-list-marker-dimensions) + 2 * var(--sbb-step-list-padding-block));
1654
+ padding-inline: calc(var(--sbb-step-list-padding-inline) + var(--sbb-step-list-dimensions) + var(--sbb-step-list-to-text-gap)) var(--sbb-step-list-padding-inline);
1655
+ min-height: calc(var(--sbb-step-list-dimensions) + 2 * var(--sbb-step-list-padding-block));
1656
+ }
1657
+ .sbb-step-list > li::before {
1658
+ content: counter(steps);
1659
+ display: flex;
1660
+ align-items: center;
1661
+ justify-content: center;
1662
+ border: var(--sbb-border-width-1x) solid var(--sbb-color-cement);
1663
+ color: var(--sbb-color-charcoal);
1737
1664
  }
1738
1665
  .sbb-step-list > li:first-of-type {
1739
1666
  border-start-start-radius: var(--sbb-step-list-border-radius);
@@ -1743,7 +1670,27 @@ sup {
1743
1670
  border-end-start-radius: var(--sbb-step-list-border-radius);
1744
1671
  border-end-end-radius: var(--sbb-step-list-border-radius);
1745
1672
  }
1746
- .sbb-step-list > li::before {
1673
+
1674
+ .sbb-icon-list {
1675
+ --sbb-icon-list-dimensions: 2.125rem;
1676
+ --sbb-icon-list-padding-inline: var(--sbb-spacing-responsive-xxs);
1677
+ --sbb-icon-list-to-text-gap: var(--sbb-spacing-responsive-xxxs);
1678
+ --sbb-icon-list-text-to-marker-block-offset: calc(0.5 * (var(--sbb-icon-list-dimensions) - var(--sbb-typo-line-height-body-text) * var(--sbb-text-font-size)));
1679
+ list-style: none;
1680
+ margin: 0;
1681
+ padding: 0;
1682
+ }
1683
+ @media (min-width: calc(52.5rem)) {
1684
+ .sbb-icon-list:where(.sbb-text-xl) {
1685
+ --sbb-icon-list-dimensions: 2.5625rem;
1686
+ }
1687
+ }
1688
+ .sbb-icon-list > li {
1689
+ position: relative;
1690
+ padding-inline: calc(var(--sbb-icon-list-padding-inline) + var(--sbb-icon-list-dimensions) + var(--sbb-icon-list-to-text-gap)) var(--sbb-icon-list-padding-inline);
1691
+ min-height: var(--sbb-icon-list-dimensions);
1692
+ }
1693
+ .sbb-icon-list > li::before {
1747
1694
  --sbb-text-font-size: var(--sbb-font-size-text-xxs);
1748
1695
  font-family: var(--sbb-typo-font-family);
1749
1696
  font-weight: normal;
@@ -1751,28 +1698,37 @@ sup {
1751
1698
  letter-spacing: var(--sbb-typo-letter-spacing-body-text);
1752
1699
  font-size: var(--sbb-text-font-size);
1753
1700
  font-weight: bold;
1754
- content: counter(steps);
1755
1701
  position: absolute;
1756
- display: flex;
1757
- align-items: center;
1758
- justify-content: center;
1759
- height: var(--sbb-step-list-marker-dimensions);
1760
- width: var(--sbb-step-list-marker-dimensions);
1761
- margin-block-start: calc(-1 * var(--sbb-step-list-text-to-marker-block-offset));
1762
- inset-inline-start: var(--sbb-step-list-padding-inline);
1763
- border: var(--sbb-border-width-1x) solid var(--sbb-color-cement);
1702
+ height: var(--sbb-icon-list-dimensions);
1703
+ width: var(--sbb-icon-list-dimensions);
1704
+ margin-block-start: calc(-1 * var(--sbb-icon-list-text-to-marker-block-offset));
1705
+ inset-inline-start: var(--sbb-icon-list-padding-inline);
1764
1706
  border-radius: 50%;
1765
- color: var(--sbb-color-charcoal);
1766
1707
  }
1767
- .sbb-step-list > li + li {
1768
- margin-block-start: var(--sbb-step-list-vertical-gap);
1708
+ .sbb-icon-list > li + li {
1709
+ margin-block-start: var(--sbb-icon-list-vertical-gap);
1769
1710
  }
1770
- .sbb-step-list > li p {
1711
+ .sbb-icon-list > li p {
1771
1712
  margin-block: 0;
1772
1713
  }
1773
- .sbb-step-list > li > * + p {
1714
+ .sbb-icon-list > li > * + p {
1774
1715
  margin-block-start: var(--sbb-spacing-responsive-xxxs);
1775
1716
  }
1717
+ .sbb-icon-list {
1718
+ --sbb-icon-list-marker-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="%23000" fill-rule="evenodd" d="M3 12a9 9 0 0 1 9-9 9 9 0 0 1 9 9 9 9 0 0 1-9 9 9 9 0 0 1-9-9m9-10C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-1.104 13.305 5-6.5-.792-.61-4.69 6.096-2.102-1.681-.624.78 2.5 2 .398.319z" clip-rule="evenodd"></path></svg>');
1719
+ --sbb-icon-list-marker-icon-color: currentcolor;
1720
+ --sbb-icon-list-vertical-gap: var(--sbb-spacing-fixed-2x);
1721
+ --sbb-icon-list-dimensions: var(--sbb-size-icon-ui-small);
1722
+ --sbb-icon-list-to-text-gap: var(--sbb-spacing-fixed-2x);
1723
+ }
1724
+ .sbb-icon-list > li::before {
1725
+ content: "";
1726
+ background-color: var(--sbb-icon-list-marker-icon-color);
1727
+ mask-image: var(--sbb-icon-list-marker-icon);
1728
+ mask-repeat: no-repeat;
1729
+ mask-position: center;
1730
+ mask-size: 100%;
1731
+ }
1776
1732
 
1777
1733
  .sbb-table,
1778
1734
  .sbb-table-m,
package/teaser.js CHANGED
@@ -5,13 +5,13 @@ import { slotState as h } from "./core/decorators.js";
5
5
  import { css as p } from "lit";
6
6
  import "./chip.js";
7
7
  import "./title.js";
8
- const f = p`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{display:inline-block;outline:none!important;--sbb-teaser-scale-hover: 1.02;--sbb-teaser-description-color: var(--sbb-color-granite);--sbb-teaser-flex-direction: row;--sbb-teaser-align-items: center;--sbb-teaser-gap: var(--sbb-spacing-fixed-4x);--sbb-teaser-width: fit-content;--sbb-teaser-border-radius: var(--sbb-border-radius-4x);--sbb-teaser-brightness-hover: var(--sbb-hover-image-brightness);--sbb-teaser-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) )}:host([alignment=after]){--sbb-teaser-align-items: start}:host([alignment=below]){--sbb-teaser-flex-direction: column;--sbb-teaser-align-items: baseline;--sbb-teaser-gap: var(--sbb-spacing-fixed-3x);--sbb-teaser-width: 100%}.sbb-teaser{display:flex;text-decoration:none}.sbb-teaser:before{content:"​";-webkit-user-select:none;user-select:none;width:0;height:0}:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-teaser:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:var(--sbb-teaser-border-radius)}@media (forced-colors: active){.sbb-teaser{outline-offset:var(--sbb-focus-outline-offset);outline:CanvasText solid var(--sbb-focus-outline-width);border-radius:var(--sbb-teaser-border-radius)}.sbb-teaser:hover{outline-color:Highlight}}.sbb-teaser__container{display:flex;flex-flow:var(--sbb-teaser-flex-direction) nowrap;align-items:var(--sbb-teaser-align-items);gap:var(--sbb-teaser-gap);max-width:100%}.sbb-teaser__text{overflow:hidden;max-width:100%}::slotted([slot=image]){will-change:transform;display:block;object-fit:cover;width:18.75rem;filter:brightness(var(--sbb-teaser-brightness, 1));transition:var(--sbb-teaser-animation-duration) var(--sbb-animation-easing);aspect-ratio:4/3}@media (any-hover: hover){.sbb-teaser:hover ::slotted([slot=image]){transform:scale(var(--sbb-teaser-scale-hover));--sbb-teaser-brightness: var(--sbb-teaser-brightness-hover)}}.sbb-teaser__image-wrapper{flex-shrink:0;overflow:hidden;border-radius:var(--sbb-teaser-border-radius);transition:var(--sbb-teaser-animation-duration) var(--sbb-animation-easing)}@media (any-hover: hover){.sbb-teaser:hover .sbb-teaser__image-wrapper{box-shadow:var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-hard-2-color),var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-hard-1-color)}}.sbb-teaser__chip{display:block;max-width:fit-content;margin-block-end:var(--sbb-spacing-fixed-1x)}:host(:not([data-slot-names~=chip],[chip-content])) .sbb-teaser__chip{display:none}.sbb-teaser__lead{margin:0}.sbb-teaser__description{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:inline-block;color:var(--sbb-teaser-description-color)}`;
9
- var m = Object.defineProperty, u = Object.getOwnPropertyDescriptor, t = (l, a, b, r) => {
10
- for (var e = r > 1 ? void 0 : r ? u(a, b) : a, i = l.length - 1, n; i >= 0; i--)
8
+ const f = p`@charset "UTF-8";*,:before,:after{box-sizing:border-box}:host{display:inline-block;outline:none!important;--sbb-teaser-scale-hover: 1.02;--sbb-teaser-description-color: var(--sbb-color-granite);--sbb-teaser-flex-direction: row;--sbb-teaser-align-items: center;--sbb-teaser-gap: var(--sbb-spacing-fixed-4x);--sbb-teaser-width: fit-content;--sbb-teaser-border-radius: var(--sbb-border-radius-4x);--sbb-teaser-brightness-hover: var(--sbb-hover-image-brightness);--sbb-teaser-animation-duration: var( --sbb-disable-animation-zero-time, var(--sbb-animation-duration-4x) )}:host([alignment=after]){--sbb-teaser-align-items: start}:host([alignment=below]){--sbb-teaser-flex-direction: column;--sbb-teaser-align-items: baseline;--sbb-teaser-gap: var(--sbb-spacing-fixed-3x);--sbb-teaser-width: 100%}.sbb-teaser{display:flex;text-decoration:none}.sbb-teaser:before{content:"​";-webkit-user-select:none;user-select:none;width:0;height:0}:host(:not([data-focus-origin=mouse],[data-focus-origin=touch])) .sbb-teaser:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) solid var(--sbb-focus-outline-width);border-radius:var(--sbb-teaser-border-radius)}@media (forced-colors: active){.sbb-teaser{outline-offset:var(--sbb-focus-outline-offset);outline:CanvasText solid var(--sbb-focus-outline-width);border-radius:var(--sbb-teaser-border-radius)}.sbb-teaser:hover{outline-color:Highlight}}.sbb-teaser__container{display:flex;flex-flow:var(--sbb-teaser-flex-direction) nowrap;align-items:var(--sbb-teaser-align-items);gap:var(--sbb-teaser-gap);max-width:100%;width:100%}.sbb-teaser__text{overflow:hidden;max-width:100%}::slotted([slot=image]){width:18.75rem;will-change:transform;display:block;filter:brightness(var(--sbb-teaser-brightness, 1));transition:var(--sbb-teaser-animation-duration) var(--sbb-animation-easing)}@media (any-hover: hover){.sbb-teaser:hover ::slotted([slot=image]){transform:scale(var(--sbb-teaser-scale-hover));--sbb-teaser-brightness: var(--sbb-teaser-brightness-hover)}}::slotted(sbb-image[slot=image]){--sbb-image-aspect-ratio: 4 / 3}::slotted(img[slot=image]){aspect-ratio:4/3;object-fit:cover}.sbb-teaser__image-wrapper{flex-shrink:0;overflow:hidden;border-radius:var(--sbb-teaser-border-radius);transition:var(--sbb-teaser-animation-duration) var(--sbb-animation-easing)}@media (any-hover: hover){.sbb-teaser:hover .sbb-teaser__image-wrapper{box-shadow:var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-hard-2-color),var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-hard-1-color)}}.sbb-teaser__chip{display:block;max-width:fit-content;margin-block-end:var(--sbb-spacing-fixed-1x)}:host(:not([data-slot-names~=chip],[chip-content])) .sbb-teaser__chip{display:none}.sbb-teaser__lead{margin:0}.sbb-teaser__description{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:inline-block;color:var(--sbb-teaser-description-color)}`;
9
+ var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor, s = (l, a, b, r) => {
10
+ for (var e = r > 1 ? void 0 : r ? g(a, b) : a, i = l.length - 1, n; i >= 0; i--)
11
11
  (n = l[i]) && (e = (r ? n(a, b, e) : n(e)) || e);
12
12
  return r && e && m(a, b, e), e;
13
13
  };
14
- let s = class extends c {
14
+ let t = class extends c {
15
15
  constructor() {
16
16
  super(...arguments), this.alignment = "after-centered", this.titleLevel = "5";
17
17
  }
@@ -36,23 +36,23 @@ let s = class extends c {
36
36
  `;
37
37
  }
38
38
  };
39
- s.styles = f;
40
- t([
39
+ t.styles = f;
40
+ s([
41
41
  o({ reflect: !0 })
42
- ], s.prototype, "alignment", 2);
43
- t([
42
+ ], t.prototype, "alignment", 2);
43
+ s([
44
44
  o({ attribute: "title-level" })
45
- ], s.prototype, "titleLevel", 2);
46
- t([
45
+ ], t.prototype, "titleLevel", 2);
46
+ s([
47
47
  o({ attribute: "title-content" })
48
- ], s.prototype, "titleContent", 2);
49
- t([
48
+ ], t.prototype, "titleContent", 2);
49
+ s([
50
50
  o({ attribute: "chip-content", reflect: !0 })
51
- ], s.prototype, "chipContent", 2);
52
- s = t([
51
+ ], t.prototype, "chipContent", 2);
52
+ t = s([
53
53
  d("sbb-teaser"),
54
54
  h()
55
- ], s);
55
+ ], t);
56
56
  export {
57
- s as SbbTeaserElement
57
+ t as SbbTeaserElement
58
58
  };