@kitconcept/volto-light-theme 8.0.0-alpha.3 → 8.0.0-alpha.30

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 (200) hide show
  1. package/.changelog.draft +6 -9
  2. package/CHANGELOG.md +310 -0
  3. package/locales/af/LC_MESSAGES/volto.po +645 -0
  4. package/locales/ar/LC_MESSAGES/volto.po +645 -0
  5. package/locales/bg/LC_MESSAGES/volto.po +645 -0
  6. package/locales/bn/LC_MESSAGES/volto.po +645 -0
  7. package/locales/ca/LC_MESSAGES/volto.po +645 -0
  8. package/locales/cs/LC_MESSAGES/volto.po +645 -0
  9. package/locales/cy/LC_MESSAGES/volto.po +645 -0
  10. package/locales/da/LC_MESSAGES/volto.po +645 -0
  11. package/locales/de/LC_MESSAGES/volto.po +83 -167
  12. package/locales/el/LC_MESSAGES/volto.po +645 -0
  13. package/locales/en/LC_MESSAGES/volto.po +30 -115
  14. package/locales/en_AU/LC_MESSAGES/volto.po +645 -0
  15. package/locales/en_GB/LC_MESSAGES/volto.po +645 -0
  16. package/locales/eo/LC_MESSAGES/volto.po +645 -0
  17. package/locales/es/LC_MESSAGES/volto.po +75 -160
  18. package/locales/et/LC_MESSAGES/volto.po +645 -0
  19. package/locales/eu/LC_MESSAGES/volto.po +59 -125
  20. package/locales/fa/LC_MESSAGES/volto.po +645 -0
  21. package/locales/fi/LC_MESSAGES/volto.po +645 -0
  22. package/locales/fr/LC_MESSAGES/volto.po +645 -0
  23. package/locales/fu/LC_MESSAGES/volto.po +645 -0
  24. package/locales/ga/LC_MESSAGES/volto.po +645 -0
  25. package/locales/gl/LC_MESSAGES/volto.po +645 -0
  26. package/locales/he/LC_MESSAGES/volto.po +645 -0
  27. package/locales/hi/LC_MESSAGES/volto.po +645 -0
  28. package/locales/hr/LC_MESSAGES/volto.po +645 -0
  29. package/locales/hu/LC_MESSAGES/volto.po +645 -0
  30. package/locales/hy/LC_MESSAGES/volto.po +645 -0
  31. package/locales/id/LC_MESSAGES/volto.po +645 -0
  32. package/locales/it/LC_MESSAGES/volto.po +645 -0
  33. package/locales/ja/LC_MESSAGES/volto.po +645 -0
  34. package/locales/ka/LC_MESSAGES/volto.po +645 -0
  35. package/locales/kn/LC_MESSAGES/volto.po +645 -0
  36. package/locales/ko/LC_MESSAGES/volto.po +645 -0
  37. package/locales/lt/LC_MESSAGES/volto.po +645 -0
  38. package/locales/lv/LC_MESSAGES/volto.po +645 -0
  39. package/locales/mi/LC_MESSAGES/volto.po +645 -0
  40. package/locales/mk_MK/LC_MESSAGES/volto.po +645 -0
  41. package/locales/ms/LC_MESSAGES/volto.po +645 -0
  42. package/locales/mt/LC_MESSAGES/volto.po +645 -0
  43. package/locales/my/LC_MESSAGES/volto.po +645 -0
  44. package/locales/nl/LC_MESSAGES/volto.po +645 -0
  45. package/locales/nl_BE/LC_MESSAGES/volto.po +645 -0
  46. package/locales/nn/LC_MESSAGES/volto.po +645 -0
  47. package/locales/no/LC_MESSAGES/volto.po +645 -0
  48. package/locales/pl/LC_MESSAGES/volto.po +645 -0
  49. package/locales/pt/LC_MESSAGES/volto.po +645 -0
  50. package/locales/pt_BR/LC_MESSAGES/volto.po +38 -123
  51. package/locales/rm/LC_MESSAGES/volto.po +645 -0
  52. package/locales/ro/LC_MESSAGES/volto.po +645 -0
  53. package/locales/ru/LC_MESSAGES/volto.po +645 -0
  54. package/locales/sk/LC_MESSAGES/volto.po +645 -0
  55. package/locales/sl/LC_MESSAGES/volto.po +645 -0
  56. package/locales/sm/LC_MESSAGES/volto.po +645 -0
  57. package/locales/sq/LC_MESSAGES/volto.po +645 -0
  58. package/locales/sr/LC_MESSAGES/volto.po +645 -0
  59. package/locales/sr_Cyrl/LC_MESSAGES/volto.po +645 -0
  60. package/locales/sr_Latn/LC_MESSAGES/volto.po +645 -0
  61. package/locales/sv/LC_MESSAGES/volto.po +645 -0
  62. package/locales/sw/LC_MESSAGES/volto.po +645 -0
  63. package/locales/ta/LC_MESSAGES/volto.po +645 -0
  64. package/locales/te/LC_MESSAGES/volto.po +645 -0
  65. package/locales/th/LC_MESSAGES/volto.po +645 -0
  66. package/locales/tl/LC_MESSAGES/volto.po +645 -0
  67. package/locales/to/LC_MESSAGES/volto.po +645 -0
  68. package/locales/tr/LC_MESSAGES/volto.po +645 -0
  69. package/locales/uk/LC_MESSAGES/volto.po +645 -0
  70. package/locales/vi/LC_MESSAGES/volto.po +645 -0
  71. package/locales/volto.pot +31 -116
  72. package/locales/zh_CN/LC_MESSAGES/volto.po +645 -0
  73. package/locales/zh_HK/LC_MESSAGES/volto.po +645 -0
  74. package/locales/zh_TW/LC_MESSAGES/volto.po +645 -0
  75. package/package.json +7 -4
  76. package/src/__mocks__/semantic-ui-react.ts +31 -0
  77. package/src/components/Blocks/Block/EditBlockWrapper.jsx +9 -3
  78. package/src/components/Blocks/Button/schema.js +12 -0
  79. package/src/components/Blocks/EventCalendar/Search/components/EventTemplate.tsx +1 -1
  80. package/src/components/Blocks/Image/Edit.jsx +9 -32
  81. package/src/components/Blocks/Image/View.jsx +9 -26
  82. package/src/components/Blocks/Image/adapter.js +28 -14
  83. package/src/components/Blocks/Image/adapter.test.js +156 -0
  84. package/src/components/Blocks/Image/schema.js +21 -7
  85. package/src/components/Blocks/Listing/DefaultTemplate.jsx +12 -6
  86. package/src/components/Blocks/Listing/GridTemplate.jsx +17 -7
  87. package/src/components/Blocks/Listing/ListingBody.jsx +4 -1
  88. package/src/components/Blocks/Listing/SummaryTemplate.jsx +17 -7
  89. package/src/components/Blocks/Maps/MapsSidebar.jsx +68 -0
  90. package/src/components/Blocks/Maps/View.jsx +37 -0
  91. package/src/components/Blocks/Maps/adapter.js +27 -0
  92. package/src/components/Blocks/Maps/adapter.test.js +63 -0
  93. package/src/components/Blocks/Maps/schema.js +42 -2
  94. package/src/components/Blocks/Separator/schema.js +12 -0
  95. package/src/components/Blocks/Teaser/DefaultBody.tsx +35 -6
  96. package/src/components/Blocks/Video/VideoSidebar.jsx +68 -0
  97. package/src/components/Blocks/Video/View.jsx +38 -0
  98. package/src/components/Blocks/Video/adapter.js +28 -0
  99. package/src/components/Blocks/Video/adapter.test.js +63 -0
  100. package/src/components/Blocks/Video/schema.js +42 -2
  101. package/src/components/Blocks/schema.ts +69 -0
  102. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +128 -0
  103. package/src/components/Breadcrumbs/Breadcrumbs.tsx +117 -0
  104. package/src/components/Caption/Caption.test.tsx +31 -0
  105. package/src/components/Caption/{Caption.jsx → Caption.tsx} +14 -21
  106. package/src/components/Footer/ColumnLinks.tsx +2 -2
  107. package/src/components/Footer/Footer.tsx +2 -2
  108. package/src/components/Footer/slots/Colophon.tsx +13 -1
  109. package/src/components/Footer/slots/CoreFooter.tsx +4 -2
  110. package/src/components/Footer/slots/FollowUsLogoAndLinks.tsx +12 -23
  111. package/src/components/Header/Header.tsx +3 -3
  112. package/src/components/LanguageSelector/LanguageSelector.tsx +91 -0
  113. package/src/components/MobileNavigation/MobileNavigation.jsx +11 -9
  114. package/src/components/Navigation/Navigation.test.tsx +176 -0
  115. package/src/components/Navigation/{Navigation.jsx → Navigation.tsx} +89 -42
  116. package/src/components/StickyMenu/MobileCarouselArrowButton.tsx +81 -0
  117. package/src/components/StickyMenu/MobileStickyMenu.tsx +76 -0
  118. package/src/components/Summary/DefaultSummary.tsx +10 -3
  119. package/src/components/Summary/EventSummary.tsx +10 -3
  120. package/src/components/Summary/FileSummary.tsx +10 -3
  121. package/src/components/Summary/NewsItemSummary.tsx +10 -3
  122. package/src/components/Summary/PersonSummary.tsx +10 -3
  123. package/src/components/Summary/Summary.stories.tsx +46 -30
  124. package/src/components/Tags/Tags.test.tsx +71 -0
  125. package/src/components/Tags/{Tags.jsx → Tags.tsx} +9 -25
  126. package/src/components/Theme/EventView.jsx +4 -4
  127. package/src/components/Theme/ImageView.jsx +8 -1
  128. package/src/components/Theme/NewsItemView.jsx +4 -4
  129. package/src/components/Theme/RenderBlocksV2.jsx +38 -15
  130. package/src/components/Widgets/ColorSwatch.stories.tsx +197 -0
  131. package/src/components/Widgets/ColorSwatch.test.tsx +188 -0
  132. package/src/components/Widgets/ColorSwatch.tsx +77 -39
  133. package/src/components/Widgets/ObjectList.tsx +37 -27
  134. package/src/components/Widgets/SoftTextWidget.tsx +129 -0
  135. package/src/components/Widgets/SoftTextareaWidget.tsx +118 -0
  136. package/src/components/Widgets/ThemeColorSwatch.tsx +5 -9
  137. package/src/config/blocks.tsx +83 -28
  138. package/src/config/classExtenders.ts +11 -10
  139. package/src/config/settings.ts +6 -0
  140. package/src/config/slots.ts +7 -0
  141. package/src/config/widgets.ts +5 -9
  142. package/src/customizations/volto/components/manage/Blocks/Maps/MapsSidebar.jsx +10 -0
  143. package/src/customizations/volto/components/manage/Blocks/Maps/View.jsx +10 -0
  144. package/src/customizations/volto/components/manage/Blocks/Video/VideoSidebar.jsx +10 -0
  145. package/src/customizations/volto/components/manage/Blocks/Video/View.jsx +10 -0
  146. package/src/customizations/volto/components/manage/DragDropList/DragDropList.jsx +263 -0
  147. package/src/customizations/volto/components/theme/LanguageSelector/LanguageSelector.tsx +10 -0
  148. package/src/helpers/styleDefinitions.test.tsx +30 -0
  149. package/src/helpers/styleDefinitions.ts +49 -0
  150. package/src/helpers/useLiveData.ts +7 -2
  151. package/src/index.ts +15 -0
  152. package/src/internalChecks.test.ts +94 -0
  153. package/src/primitives/Card/Card.stories.tsx +4 -1
  154. package/src/primitives/Card/Card.test.tsx +11 -33
  155. package/src/primitives/Card/Card.tsx +37 -44
  156. package/src/primitives/IconLinkList.tsx +53 -52
  157. package/src/primitives/LinkIconButton.tsx +52 -0
  158. package/src/reducers/errorContext.ts +14 -0
  159. package/src/reducers/index.ts +7 -0
  160. package/src/theme/_bgcolor-blocks-layout.scss +48 -46
  161. package/src/theme/_content.scss +12 -13
  162. package/src/theme/_export_import.scss +94 -0
  163. package/src/theme/_footer.scss +131 -64
  164. package/src/theme/_header.scss +25 -5
  165. package/src/theme/_insets.scss +1 -1
  166. package/src/theme/_layout.scss +41 -77
  167. package/src/theme/_mobile-sticky-menu.scss +92 -0
  168. package/src/theme/_search-page.scss +250 -0
  169. package/src/theme/_typo-custom.scss +24 -8
  170. package/src/theme/_variables.scss +40 -4
  171. package/src/theme/_widgets.scss +6 -17
  172. package/src/theme/blocks/_accordion.scss +11 -4
  173. package/src/theme/blocks/_form.scss +350 -0
  174. package/src/theme/blocks/_grid.scss +10 -77
  175. package/src/theme/blocks/_highlight.scss +10 -7
  176. package/src/theme/blocks/_image.scss +99 -184
  177. package/src/theme/blocks/_listing.scss +61 -128
  178. package/src/theme/blocks/_maps.scss +60 -34
  179. package/src/theme/blocks/_search.scss +3 -4
  180. package/src/theme/blocks/_table.scss +1 -0
  181. package/src/theme/blocks/_teaser.scss +7 -117
  182. package/src/theme/blocks/_toc.scss +2 -1
  183. package/src/theme/card.scss +136 -69
  184. package/src/theme/main.scss +4 -0
  185. package/src/theme/notfound.scss +2 -0
  186. package/src/theme/person.scss +7 -1
  187. package/src/theme/sticky-menu.scss +7 -5
  188. package/src/transforms/to6.ts +5 -49
  189. package/src/transforms/to8.test.js +201 -0
  190. package/src/transforms/to8.ts +109 -0
  191. package/src/types.d.ts +1 -0
  192. package/vitest.config.mjs +28 -3
  193. package/razzle.extend.js +0 -38
  194. package/src/components/Blocks/schema.js +0 -44
  195. package/src/components/Breadcrumbs/Breadcrumbs.jsx +0 -118
  196. package/src/components/Widgets/AlignWidget.tsx +0 -84
  197. package/src/components/Widgets/BlockAlignment.tsx +0 -88
  198. package/src/components/Widgets/BlockWidth.tsx +0 -101
  199. package/src/components/Widgets/Buttons.tsx +0 -167
  200. package/src/components/Widgets/Size.tsx +0 -78
@@ -4,145 +4,85 @@ figure {
4
4
  margin: 0;
5
5
  }
6
6
 
7
- .block.image.has--block-width--full figcaption {
8
- padding-right: 25px;
9
- padding-left: 25px;
10
- }
11
-
12
- .block.image {
7
+ .block.image,
8
+ .block-editor-image {
9
+ --align-left: left;
10
+ --align-center: none;
11
+ --align-right: right;
13
12
  margin: 0;
13
+ margin-top: $spacing-large;
14
14
 
15
- &.align.left,
16
- &.align.right {
17
- // This is to equal the heading margin in case of the
18
- // floating image + heading use case
19
- // It matches the mocks for standalone images anyways
20
- margin-top: $spacing-large;
21
- margin-bottom: 0 !important;
15
+ &.has--block-width--full {
16
+ figcaption {
17
+ padding-right: 25px;
18
+ padding-left: 25px;
19
+ }
22
20
  }
23
21
 
24
22
  &.has--block-width--default,
23
+ &.has--block-width--layout,
25
24
  &.has--block-width--narrow,
26
25
  &.has--block-width--full {
27
- figure:not(.left, .right) {
26
+ figure {
28
27
  margin-top: $spacing-large;
29
28
  margin-bottom: $spacing-large;
30
29
  }
31
30
  }
32
31
 
33
- figure {
34
- img {
35
- width: 100% !important;
36
- height: auto;
37
- aspect-ratio: var(--image-aspect-ratio, auto);
38
- }
39
-
40
- &.right {
41
- margin-bottom: 20px;
42
- margin-left: 20px;
43
- float: right;
44
-
45
- @container (max-width: #{$largest-mobile-screen}) {
46
- margin-bottom: $spacing-large;
47
- }
32
+ &.has--block-alignment--left,
33
+ &.has--block-alignment--right {
34
+ margin-bottom: 0 !important;
48
35
 
49
- img {
50
- margin-right: 0 !important;
51
- margin-bottom: 0px;
52
- margin-left: 0 !important;
53
- float: none;
54
- }
36
+ &:has(+ h2) {
37
+ margin-top: $spacing-xlarge;
55
38
  }
56
39
 
57
- &.left {
58
- margin-right: 20px;
59
- margin-bottom: 20px;
60
- float: left;
61
-
40
+ figure {
41
+ margin-top: 0 !important;
42
+ margin-bottom: $spacing-small;
62
43
  @container (max-width: #{$largest-mobile-screen}) {
44
+ max-width: unset !important;
63
45
  margin-bottom: $spacing-large;
64
46
  }
65
47
 
66
48
  img {
67
- margin-right: 0 !important;
68
- margin-bottom: 0px;
49
+ margin: 0 !important;
69
50
  float: none;
70
51
  }
71
52
  }
72
-
73
- &.left,
74
- &.right {
75
- &.large {
76
- width: 50%;
77
- height: auto;
78
-
79
- @media only screen and (max-width: 768px) {
80
- width: 100%;
81
- }
82
- }
83
-
84
- &.medium {
85
- width: 50%;
86
- height: auto;
87
- @media only screen and (max-width: 768px) {
88
- width: 100%;
89
- }
53
+ &.small {
54
+ figure {
55
+ max-width: 220px;
90
56
  }
57
+ }
91
58
 
92
- &.small {
93
- width: 25%;
94
- height: auto;
95
- @media only screen and (max-width: 768px) {
96
- width: 100%;
97
- }
59
+ &.medium {
60
+ figure {
61
+ max-width: 300px;
98
62
  }
99
63
  }
64
+ }
100
65
 
101
- &.wide,
102
- &.full {
103
- margin-top: $spacing-large;
104
- margin-bottom: $spacing-large;
66
+ &.has--block-alignment--left {
67
+ figure {
68
+ @include floated-figure('left');
105
69
  }
70
+ }
106
71
 
107
- &.center {
108
- width: 100% !important;
109
- margin-right: auto !important;
110
- margin-bottom: $spacing-large;
111
- margin-left: auto !important;
112
- object-fit: cover;
113
-
114
- img {
115
- height: auto;
116
- margin-right: initial;
117
- margin-left: initial;
118
- }
119
-
120
- &.large,
121
- &.medium,
122
- &.small {
123
- width: 100% !important;
124
- }
125
-
126
- &.large {
127
- figcaption {
128
- text-align: start;
129
- }
130
- }
131
-
132
- &.medium {
133
- figcaption {
134
- width: 100%;
135
- margin-right: auto;
136
- margin-left: auto;
137
- text-align: start;
138
- }
139
- }
72
+ &.has--block-alignment--right {
73
+ figure {
74
+ @include floated-figure('right');
140
75
  }
141
76
  }
142
77
 
143
- img {
144
- max-width: 100% !important;
145
- height: auto;
78
+ figure {
79
+ width: 100%;
80
+ img {
81
+ width: 100% !important;
82
+ max-width: 100% !important;
83
+ height: auto;
84
+ aspect-ratio: var(--image-aspect-ratio, auto);
85
+ }
146
86
  }
147
87
  }
148
88
 
@@ -181,72 +121,36 @@ figcaption {
181
121
 
182
122
  // video block
183
123
 
184
- #page-document .block.video.align.left,
185
- .block.video.align.left,
186
- #page-document .block.video.align.right,
187
- .block.video.align.right {
188
- @include default-container-width;
189
- }
190
-
191
- #page-document .block.video.align.center figure,
192
- .block.video.align.center figure {
193
- @include default-container-width;
194
- }
195
-
196
- .block.video {
197
- .figure {
198
- width: 100%;
199
- }
200
-
201
- &.full figcaption {
202
- padding-right: 25px;
203
- padding-left: 25px;
204
- }
205
-
206
- &.wide,
207
- &.full,
208
- &.center {
209
- margin-top: $spacing-large;
210
- margin-bottom: $spacing-large;
211
- }
212
-
213
- &.align.left.has--backgroundColor--grey figure,
214
- &.align.right.has--backgroundColor--grey figure {
215
- padding-top: 25px;
216
- }
124
+ .block.video,
125
+ .block-editor-video {
126
+ margin-top: $spacing-large;
127
+ .video-inner {
128
+ @include variable-container-width();
217
129
 
218
- &.align.left.has--backgroundColor--grey,
219
- &.align.right.has--backgroundColor--grey {
220
- margin-top: 0px;
221
- margin-bottom: 0px;
130
+ .placeholder {
131
+ width: 100% !important;
132
+ }
222
133
  }
223
-
224
- &.align.left,
225
- &.align.right {
226
- margin-top: $spacing-large;
227
- margin-bottom: 0 !important;
228
-
134
+ &.has--block-alignment--left {
229
135
  .video-inner {
230
- margin-bottom: 20px !important;
231
- @media only screen and (max-width: $tablet-breakpoint) {
232
- width: 100%;
233
- }
234
- @container (max-width: #{$largest-mobile-screen}) {
235
- margin-bottom: $spacing-large !important;
236
- }
136
+ width: 100%;
137
+ @include floated-figure('left');
237
138
  }
139
+ }
238
140
 
239
- img {
240
- margin: 0 !important;
141
+ &.has--block-alignment--right {
142
+ .video-inner {
143
+ width: 100%;
144
+ @include floated-figure('right');
241
145
  }
242
146
  }
243
-
244
- &.align.left .video-inner {
245
- margin-right: 20px !important;
147
+ figure {
148
+ width: 100%;
246
149
  }
247
150
 
248
- &.align.right .video-inner {
249
- margin-left: 20px !important;
151
+ &.has--block-width--full figcaption {
152
+ padding-right: 25px;
153
+ padding-left: 25px;
250
154
  }
251
155
  }
252
156
 
@@ -371,35 +275,46 @@ figcaption {
371
275
  }
372
276
  }
373
277
 
374
- // Image block overrides
375
- #page-edit,
376
- #page-add {
377
- .block-editor-image figure.center {
378
- @include variable-container-width();
379
- }
380
-
381
- .block-editor-image.default figure {
382
- max-width: var(--default-container-width);
383
- }
384
- }
385
-
386
- #page-document .blocks-group-wrapper > .block.image.align.center {
387
- @include variable-container-width();
388
- }
389
- #page-document .blocks-group-wrapper > .block.image.align.center figure {
278
+ #page-document .blocks-group-wrapper > .block.image,
279
+ #page-document .blocks-group-wrapper > .block.video {
390
280
  @include variable-container-width();
391
281
  }
392
282
 
393
283
  #page-document .blocks-group-wrapper {
394
- & > .block.image.align.center.has--block-width--default {
395
- // Unfortunately needed to have more specificity than the top one
396
- // TODO: Remove when using layers and the BMv3
284
+ // Unfortunately needed to have more specificity than the top one
285
+ // TODO: Remove when using layers and the BMv3
286
+ & > .block.image.has--block-width--default,
287
+ & > .block.video.has--block-width--default {
397
288
  @include adjustMarginsToContainer($default-container-width);
398
289
  }
399
- & > .block.image.align.center.has--block-width--layout {
290
+ & > .block.image.has--block-width--layout,
291
+ & > .block.video.has--block-width--layout {
400
292
  @include adjustMarginsToContainer($layout-container-width);
401
293
  }
402
- & > .block.image.align.center.has--block-width--narrow {
294
+ & > .block.image.has--block-width--narrow,
295
+ & > .block.video.has--block-width--narrow {
403
296
  @include adjustMarginsToContainer($narrow-container-width);
404
297
  }
405
298
  }
299
+
300
+ // Edit block overrides
301
+ #page-edit,
302
+ #page-add {
303
+ .block-editor-image,
304
+ .block-editor-video {
305
+ &.has--block-alignment--right,
306
+ &.has--block-alignment--left {
307
+ .block .block:not(.inner)::before {
308
+ z-index: 1;
309
+ }
310
+ }
311
+ .block.inner .block .block {
312
+ z-index: 2;
313
+ @include variable-container-width();
314
+
315
+ &:before {
316
+ display: none;
317
+ }
318
+ }
319
+ }
320
+ }
@@ -15,79 +15,73 @@
15
15
  .block-editor-search,
16
16
  .block.rssBlock,
17
17
  .block-editor-rssBlock {
18
- &.next--has--same--backgroundColor.next--is--same--block-type,
19
- &.next--is--__button {
20
- .listing-item:last-child {
21
- padding-bottom: 40px !important;
22
- border-bottom: 1px solid vas(--theme-font-color, black);
18
+ .items {
19
+ padding: 0;
20
+ margin: 0;
21
+ & + .pagination-wrapper {
22
+ margin-top: $spacing-xlarge;
23
+ @container (max-width: #{$largest-mobile-screen}) {
24
+ margin-top: $spacing-large;
25
+ }
26
+ }
27
+ &:not(:has(+ .pagination-wrapper)) {
28
+ .listing-item:last-child {
29
+ padding-bottom: 0;
30
+ border-bottom: none;
31
+ margin-bottom: 0;
32
+
33
+ .card-inner {
34
+ padding-bottom: 0;
35
+ }
36
+ }
23
37
  }
24
38
  }
25
39
 
26
- .items + .pagination-wrapper {
27
- margin-top: 80px;
28
- @container (max-width: #{$largest-mobile-screen}) {
29
- margin-top: 60px;
40
+ &.next--has--same--backgroundColor.next--is--same--block-type:not(
41
+ :last-child
42
+ ),
43
+ &.next--is--__button {
44
+ .items > .listing-item:last-child {
45
+ border-bottom: 1px solid var(--theme-font-color, black);
46
+ .card-inner {
47
+ padding-bottom: $spacing-medium;
48
+ }
49
+ }
50
+ }
51
+ &.next--is--__button {
52
+ margin-bottom: 0 !important;
53
+ .listing-item:last-child {
54
+ padding-bottom: $spacing-medium !important;
30
55
  }
31
56
  }
32
57
 
33
58
  .listing-item {
34
- padding-bottom: 40px !important;
35
59
  border-bottom: 1px solid $black;
36
- margin-bottom: 40px;
60
+ margin-bottom: $spacing-medium;
61
+ .card-summary {
62
+ padding: 0;
37
63
 
38
- a.external {
39
- .listing-body h2:after {
40
- @include external-link-icon();
64
+ p:empty {
65
+ display: none;
41
66
  }
42
67
  }
43
68
 
44
- &:last-child {
45
- padding-bottom: 0 !important;
46
- border-bottom: none !important;
47
- margin-bottom: 0;
48
- }
49
-
50
69
  img {
51
70
  object-fit: cover;
52
71
  }
53
- }
54
72
 
55
- h2.headline {
56
- @container (max-width: #{$default-container-width + 2 * 20px}) {
57
- margin-right: 20px !important;
58
- margin-left: 20px !important;
73
+ .card-inner a {
74
+ display: inline;
59
75
  }
60
- }
61
76
 
62
- // Default variation
63
- &.default,
64
- & .default-variation {
65
- .headline {
66
- @include block-title();
67
- }
68
-
69
- .listing-item {
70
- .card-summary {
71
- padding-top: unset;
72
- padding-bottom: unset;
73
- }
74
- .headline {
75
- margin-bottom: 20px;
76
- letter-spacing: 1px;
77
- text-transform: uppercase;
78
- @include headtitle1();
79
- }
80
- h2 {
81
- margin-top: 0;
82
- margin-bottom: $spacing-medium;
83
- @include text-heading-h2();
84
- }
85
- p {
86
- margin-bottom: 0;
87
- @include body-text();
88
- }
89
- p:empty {
90
- display: none;
77
+ .title {
78
+ display: block;
79
+ margin-top: 0;
80
+ margin-bottom: $spacing-medium !important;
81
+ @include text-heading-h2();
82
+ @container (max-width: #{$largest-mobile-screen}) {
83
+ @include text-heading-h3();
84
+ margin-bottom: $spacing-small;
91
85
  }
92
86
  }
93
87
  }
@@ -96,44 +90,21 @@
96
90
  &.summary,
97
91
  & .summary-variation {
98
92
  .listing-item {
99
- padding-top: 0 !important;
100
-
101
93
  .card {
102
- width: 100%;
103
94
  .card-inner .image-wrapper {
104
95
  flex: 0 0 220px;
105
96
  img {
97
+ width: 220px;
106
98
  max-width: 100%;
99
+ height: min-content;
100
+ @container (max-width: #{$largest-mobile-screen}) {
101
+ width: 100%;
102
+ min-width: 335px;
103
+ margin-bottom: $spacing-small;
104
+ }
107
105
  }
108
106
  }
109
107
  }
110
-
111
- img {
112
- width: 220px;
113
- height: min-content;
114
- aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
115
- @container (max-width: #{$largest-mobile-screen}) {
116
- width: 100%;
117
- min-width: 335px;
118
- margin-bottom: 20px;
119
- }
120
- }
121
- .headline {
122
- margin-bottom: 20px;
123
- letter-spacing: 1px;
124
- text-transform: uppercase;
125
- @include headtitle1();
126
- }
127
- h3 {
128
- margin-top: 0 !important;
129
- margin-bottom: 40px !important;
130
- color: $black;
131
- @include text-heading-h2();
132
- @container (max-width: #{$largest-mobile-screen}) {
133
- @include text-heading-h3();
134
- margin-bottom: 20px !important;
135
- }
136
- }
137
108
  }
138
109
  }
139
110
 
@@ -155,15 +126,10 @@
155
126
  flex-direction: column;
156
127
 
157
128
  .listing-item {
158
- padding-bottom: 20px !important;
129
+ padding-bottom: $spacing-small !important;
159
130
  }
160
131
  }
161
132
  }
162
- .headline {
163
- @include block-title();
164
- margin-right: 0 !important;
165
- margin-left: 0 !important;
166
- }
167
133
  .listing-item {
168
134
  align-items: normal;
169
135
  border-bottom: none;
@@ -202,37 +168,19 @@
202
168
  .card {
203
169
  flex-grow: 1;
204
170
  .card-inner {
171
+ padding-bottom: $spacing-medium !important;
205
172
  .image-wrapper {
206
173
  img {
207
- width: 100%;
208
174
  margin: 0;
209
- aspect-ratio: var(--image-aspect-ratio, $aspect-ratio) !important;
210
175
  }
211
176
  }
212
177
  .card-summary {
213
- padding: 0 $spacing-small $spacing-medium $spacing-small;
214
- margin-top: $spacing-medium;
215
-
216
- .headline {
217
- padding: 0 !important;
218
- margin-bottom: $spacing-small;
219
- letter-spacing: 1px;
220
- text-transform: uppercase;
221
- @include headtitle1();
222
- @include word-break();
223
- }
178
+ padding: $spacing-medium $spacing-small 0 $spacing-small;
224
179
 
225
- h2 {
226
- margin: 0 0 $spacing-small 0;
180
+ .title {
181
+ margin: 0 0 $spacing-small 0 !important;
227
182
  @include text-heading-h3();
228
183
  }
229
- p {
230
- margin-bottom: 0;
231
- @include body-text();
232
- }
233
- p:empty {
234
- display: none;
235
- }
236
184
  }
237
185
  }
238
186
  }
@@ -455,21 +403,6 @@
455
403
  #page-edit .block-editor-listing.has--backgroundColor--grey,
456
404
  .block.listing.has--backgroundColor--grey {
457
405
  background-color: $lightgrey;
458
-
459
- &.grid {
460
- .listing-item {
461
- .card-container {
462
- background-color: $white;
463
- }
464
- }
465
- }
466
- .block.listing.grid {
467
- .listing-item {
468
- .card-container {
469
- background-color: $white;
470
- }
471
- }
472
- }
473
406
  }
474
407
 
475
408
  .listing-item .headline span:not(:last-child)::after {