@kitconcept/volto-light-theme 8.0.0-alpha.28 → 8.0.0-alpha.29

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 (116) hide show
  1. package/.changelog.draft +23 -3
  2. package/CHANGELOG.md +27 -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 +58 -57
  12. package/locales/el/LC_MESSAGES/volto.po +645 -0
  13. package/locales/en_AU/LC_MESSAGES/volto.po +645 -0
  14. package/locales/en_GB/LC_MESSAGES/volto.po +645 -0
  15. package/locales/eo/LC_MESSAGES/volto.po +645 -0
  16. package/locales/es/LC_MESSAGES/volto.po +50 -50
  17. package/locales/et/LC_MESSAGES/volto.po +645 -0
  18. package/locales/eu/LC_MESSAGES/volto.po +7 -7
  19. package/locales/fa/LC_MESSAGES/volto.po +645 -0
  20. package/locales/fi/LC_MESSAGES/volto.po +645 -0
  21. package/locales/fr/LC_MESSAGES/volto.po +645 -0
  22. package/locales/fu/LC_MESSAGES/volto.po +645 -0
  23. package/locales/ga/LC_MESSAGES/volto.po +645 -0
  24. package/locales/gl/LC_MESSAGES/volto.po +645 -0
  25. package/locales/he/LC_MESSAGES/volto.po +645 -0
  26. package/locales/hi/LC_MESSAGES/volto.po +645 -0
  27. package/locales/hr/LC_MESSAGES/volto.po +645 -0
  28. package/locales/hu/LC_MESSAGES/volto.po +645 -0
  29. package/locales/hy/LC_MESSAGES/volto.po +645 -0
  30. package/locales/id/LC_MESSAGES/volto.po +645 -0
  31. package/locales/it/LC_MESSAGES/volto.po +645 -0
  32. package/locales/ja/LC_MESSAGES/volto.po +645 -0
  33. package/locales/ka/LC_MESSAGES/volto.po +645 -0
  34. package/locales/kn/LC_MESSAGES/volto.po +645 -0
  35. package/locales/ko/LC_MESSAGES/volto.po +645 -0
  36. package/locales/lt/LC_MESSAGES/volto.po +645 -0
  37. package/locales/lv/LC_MESSAGES/volto.po +645 -0
  38. package/locales/mi/LC_MESSAGES/volto.po +645 -0
  39. package/locales/mk_MK/LC_MESSAGES/volto.po +645 -0
  40. package/locales/ms/LC_MESSAGES/volto.po +645 -0
  41. package/locales/mt/LC_MESSAGES/volto.po +645 -0
  42. package/locales/my/LC_MESSAGES/volto.po +645 -0
  43. package/locales/nl/LC_MESSAGES/volto.po +645 -0
  44. package/locales/nl_BE/LC_MESSAGES/volto.po +645 -0
  45. package/locales/nn/LC_MESSAGES/volto.po +645 -0
  46. package/locales/no/LC_MESSAGES/volto.po +645 -0
  47. package/locales/pl/LC_MESSAGES/volto.po +645 -0
  48. package/locales/pt/LC_MESSAGES/volto.po +645 -0
  49. package/locales/rm/LC_MESSAGES/volto.po +645 -0
  50. package/locales/ro/LC_MESSAGES/volto.po +645 -0
  51. package/locales/ru/LC_MESSAGES/volto.po +645 -0
  52. package/locales/sk/LC_MESSAGES/volto.po +645 -0
  53. package/locales/sl/LC_MESSAGES/volto.po +645 -0
  54. package/locales/sm/LC_MESSAGES/volto.po +645 -0
  55. package/locales/sq/LC_MESSAGES/volto.po +645 -0
  56. package/locales/sr/LC_MESSAGES/volto.po +645 -0
  57. package/locales/sr_Cyrl/LC_MESSAGES/volto.po +645 -0
  58. package/locales/sr_Latn/LC_MESSAGES/volto.po +645 -0
  59. package/locales/sv/LC_MESSAGES/volto.po +645 -0
  60. package/locales/sw/LC_MESSAGES/volto.po +645 -0
  61. package/locales/ta/LC_MESSAGES/volto.po +645 -0
  62. package/locales/te/LC_MESSAGES/volto.po +645 -0
  63. package/locales/th/LC_MESSAGES/volto.po +645 -0
  64. package/locales/tl/LC_MESSAGES/volto.po +645 -0
  65. package/locales/to/LC_MESSAGES/volto.po +645 -0
  66. package/locales/tr/LC_MESSAGES/volto.po +645 -0
  67. package/locales/uk/LC_MESSAGES/volto.po +645 -0
  68. package/locales/vi/LC_MESSAGES/volto.po +645 -0
  69. package/locales/zh_CN/LC_MESSAGES/volto.po +645 -0
  70. package/locales/zh_HK/LC_MESSAGES/volto.po +645 -0
  71. package/locales/zh_TW/LC_MESSAGES/volto.po +645 -0
  72. package/package.json +6 -6
  73. package/src/components/Blocks/Button/schema.js +12 -0
  74. package/src/components/Blocks/Image/Edit.jsx +8 -32
  75. package/src/components/Blocks/Image/View.jsx +9 -26
  76. package/src/components/Blocks/Image/adapter.js +28 -14
  77. package/src/components/Blocks/Image/adapter.test.js +156 -0
  78. package/src/components/Blocks/Image/schema.js +21 -7
  79. package/src/components/Blocks/Listing/GridTemplate.jsx +1 -0
  80. package/src/components/Blocks/Listing/SummaryTemplate.jsx +1 -0
  81. package/src/components/Blocks/Maps/MapsSidebar.jsx +68 -0
  82. package/src/components/Blocks/Maps/View.jsx +37 -0
  83. package/src/components/Blocks/Maps/adapter.js +27 -0
  84. package/src/components/Blocks/Maps/adapter.test.js +63 -0
  85. package/src/components/Blocks/Maps/schema.js +42 -2
  86. package/src/components/Blocks/Separator/schema.js +12 -0
  87. package/src/components/Blocks/Teaser/DefaultBody.tsx +10 -1
  88. package/src/components/Blocks/Video/VideoSidebar.jsx +68 -0
  89. package/src/components/Blocks/Video/View.jsx +38 -0
  90. package/src/components/Blocks/Video/adapter.js +28 -0
  91. package/src/components/Blocks/Video/adapter.test.js +63 -0
  92. package/src/components/Blocks/Video/schema.js +42 -2
  93. package/src/components/Footer/Footer.tsx +2 -2
  94. package/src/components/Footer/slots/FollowUsLogoAndLinks.tsx +12 -23
  95. package/src/components/Theme/ImageView.jsx +8 -1
  96. package/src/config/blocks.tsx +63 -0
  97. package/src/config/classExtenders.ts +11 -10
  98. package/src/config/settings.ts +6 -0
  99. package/src/customizations/volto/components/manage/Blocks/Maps/MapsSidebar.jsx +10 -0
  100. package/src/customizations/volto/components/manage/Blocks/Maps/View.jsx +10 -0
  101. package/src/customizations/volto/components/manage/Blocks/Video/VideoSidebar.jsx +10 -0
  102. package/src/customizations/volto/components/manage/Blocks/Video/View.jsx +10 -0
  103. package/src/index.ts +8 -0
  104. package/src/primitives/Card/Card.tsx +4 -1
  105. package/src/theme/_footer.scss +61 -51
  106. package/src/theme/_layout.scss +7 -62
  107. package/src/theme/_typo-custom.scss +1 -1
  108. package/src/theme/_variables.scss +21 -0
  109. package/src/theme/blocks/_grid.scss +1 -0
  110. package/src/theme/blocks/_highlight.scss +10 -7
  111. package/src/theme/blocks/_image.scss +96 -186
  112. package/src/theme/blocks/_listing.scss +5 -1
  113. package/src/theme/blocks/_maps.scss +60 -34
  114. package/src/transforms/to6.ts +5 -49
  115. package/src/transforms/to8.test.js +201 -0
  116. package/src/transforms/to8.ts +109 -0
@@ -13,8 +13,11 @@
13
13
  --footer-foreground: var(--primary-foreground-color, #{$black});
14
14
  }
15
15
 
16
- .container:not(:has(.container)) {
17
- padding: 0;
16
+ & > .container:not(:empty) {
17
+ padding: $spacing-xlarge 0;
18
+ .container {
19
+ @include adjustMarginsToContainer($default-container-width);
20
+ }
18
21
  }
19
22
 
20
23
  & > :first-child:not(:empty) {
@@ -35,10 +38,6 @@
35
38
  --footer-background: var(--secondary-color, #{$white});
36
39
  --footer-foreground: var(--secondary-foreground-color, #{$black});
37
40
 
38
- padding: $spacing-xlarge 2rem 100px 2rem;
39
- @media only screen and (max-width: $largest-mobile-screen) {
40
- padding: $spacing-xlarge $spacing-small;
41
- }
42
41
  background: var(--footer-background);
43
42
  color: var(--footer-foreground, $black);
44
43
 
@@ -106,7 +105,7 @@
106
105
 
107
106
  img {
108
107
  max-width: 100%;
109
- height: auto;
108
+ max-height: 90px;
110
109
  }
111
110
  }
112
111
  }
@@ -186,50 +185,56 @@
186
185
  }
187
186
 
188
187
  .post-footer {
189
- padding: $spacing-xlarge $spacing-small;
190
188
  background: var(--footer-background);
191
189
  color: var(--footer-foreground, $black);
192
190
  font-size: 18px;
193
191
  }
194
192
 
195
193
  .follow-us-links-and-logo {
196
- display: flex;
197
- margin-bottom: 50px;
194
+ display: grid;
198
195
 
199
- &.no-logo {
200
- justify-content: center;
196
+ margin-bottom: $spacing-large;
197
+ grid-template-areas:
198
+ 'social logo'
199
+ 'links links';
200
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
201
201
 
202
- .followus-and-links {
203
- display: flex;
204
- flex-direction: column;
205
- align-items: center;
206
- justify-content: center;
207
- }
202
+ .follow-us {
203
+ grid-area: social;
204
+ }
205
+ .footer-logo {
206
+ grid-area: logo;
207
+ }
208
+ .footer-links {
209
+ grid-area: links;
210
+ }
208
211
 
209
- .follow-us {
210
- display: flex;
211
- flex-direction: column;
212
- justify-content: center;
213
- text-align: center;
214
- }
212
+ &:not(:has(.footer-logo)) .follow-us {
213
+ grid-column: 1 / -1;
214
+ }
215
+ &:not(:has(.follow-us)) .footer-logo {
216
+ grid-column: 1 / -1;
217
+ justify-self: center;
218
+ }
219
+ .follow-us {
220
+ display: flex;
221
+ flex-direction: column;
222
+ text-align: center;
223
+ }
215
224
 
216
- .footer-links {
217
- ul {
218
- justify-content: center;
219
- }
225
+ .footer-links {
226
+ ul {
227
+ justify-content: center;
220
228
  }
221
229
  }
222
230
 
223
231
  @media only screen and (max-width: $largest-mobile-screen) {
224
- flex-direction: column;
225
232
  align-items: center;
226
-
227
- .followus-and-links {
228
- display: flex;
229
- flex-direction: column;
230
- align-items: center;
231
- justify-content: center;
232
- }
233
+ grid-template-areas:
234
+ 'social'
235
+ 'logo'
236
+ 'links';
237
+ grid-template-columns: minmax(0, 1fr);
233
238
 
234
239
  .follow-us {
235
240
  display: flex;
@@ -246,9 +251,10 @@
246
251
  }
247
252
 
248
253
  .footer-links {
254
+ margin-top: $spacing-large;
249
255
  ul {
250
256
  flex-wrap: wrap;
251
- gap: 10px;
257
+ gap: 10px 0;
252
258
  li {
253
259
  margin-right: 0;
254
260
  }
@@ -256,7 +262,6 @@
256
262
  }
257
263
 
258
264
  .footer-logo {
259
- padding-top: 50px;
260
265
  margin: 0 auto;
261
266
  span {
262
267
  text-align: center;
@@ -273,6 +278,8 @@
273
278
  .follow-us {
274
279
  ul {
275
280
  display: flex;
281
+ flex-wrap: wrap;
282
+ justify-content: center;
276
283
  padding-left: 0;
277
284
  margin: 0;
278
285
  list-style: none;
@@ -280,13 +287,13 @@
280
287
  }
281
288
 
282
289
  .follow-us {
283
- margin-bottom: 50px;
290
+ margin-bottom: $spacing-large;
284
291
  text-align: left;
285
292
 
286
293
  span {
287
294
  @include headtitle2();
288
295
  display: block;
289
- margin-bottom: 50px;
296
+ margin-bottom: $spacing-large;
290
297
  text-transform: uppercase;
291
298
  }
292
299
 
@@ -307,15 +314,17 @@
307
314
  li {
308
315
  position: relative;
309
316
  padding: 0 8px;
317
+ margin-bottom: 8px;
310
318
  @include add(size, xs);
311
319
  @include add(height, s);
312
320
 
313
321
  &:not(:last-child):after {
314
322
  position: absolute;
315
- right: -3px;
323
+ right: 0;
316
324
  display: inline-block;
317
325
  color: var(--footer-foreground, $black);
318
326
  content: '|';
327
+ transform: translateX(50%);
319
328
  }
320
329
 
321
330
  a {
@@ -328,21 +337,23 @@
328
337
  }
329
338
 
330
339
  .footer-logo {
331
- min-width: 180px;
332
- max-width: 240px;
333
- height: auto;
334
- margin-left: auto;
335
-
340
+ display: flex;
341
+ max-width: 200px;
342
+ flex-direction: column;
343
+ margin-bottom: $spacing-large;
344
+ justify-self: end;
336
345
  span {
337
346
  display: block;
338
- margin-bottom: 50px;
347
+ margin-bottom: $spacing-large;
339
348
  text-align: left;
340
349
  text-transform: uppercase;
341
350
  @include headtitle2();
342
351
  }
343
352
 
344
353
  img {
345
- width: 100%;
354
+ max-width: 100%;
355
+ height: auto;
356
+ object-fit: contain;
346
357
  }
347
358
  }
348
359
 
@@ -385,7 +396,7 @@
385
396
 
386
397
  &:before {
387
398
  display: block;
388
- padding-top: 50px;
399
+ padding-top: $spacing-large;
389
400
  border-top: 1px solid var(--footer-foreground, $black);
390
401
  content: '';
391
402
  @include default-container-width();
@@ -410,9 +421,8 @@ ul.logos-container {
410
421
  padding: $pre-footer-vertical-spacing 0;
411
422
  padding-left: 0;
412
423
  margin-top: 0;
413
- margin-bottom: $spacing-medium;
414
424
  gap: 60px 20px;
415
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
425
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
416
426
  list-style: none;
417
427
 
418
428
  .logo-image {
@@ -216,16 +216,6 @@ External & Mail link removal for all the blocks.
216
216
  & > p,
217
217
  & > span,
218
218
  & > blockquote,
219
- & > .block.image.align.left.medium,
220
- & > .block.image.align.left.small,
221
- & > .block.image.align.right.medium,
222
- & > .block.video.align.left,
223
- & > .block.video.align.right,
224
- & > .block.maps.align.left,
225
- & > .block.maps.align.right,
226
- & > .block.image.align.right.small,
227
- & > .block.video.align.center .video-inner,
228
- & > .block.maps.align.center .maps-inner,
229
219
  .download-event,
230
220
  .block.separator.has--align--left .line,
231
221
  .block.separator.has--align--center .line,
@@ -238,16 +228,6 @@ External & Mail link removal for all the blocks.
238
228
  }
239
229
 
240
230
  & > h1.documentFirstHeading,
241
- & > .block.image.align.left,
242
- & > .block.image.align.right,
243
- & > .block.image.align.center,
244
- & > .block.image.align.wide figure,
245
- & > .block.video.align.left,
246
- & > .block.video.align.right,
247
- & > .block.maps.align.left,
248
- & > .block.maps.align.right,
249
- & > .block.video.align.wide .video-inner,
250
- & > .block.maps.align.wide .maps-inner,
251
231
  & > .block.__button,
252
232
  & > .block.eventMetadata .details-container,
253
233
  & > .block.listing .listing-item,
@@ -272,21 +252,7 @@ External & Mail link removal for all the blocks.
272
252
  @include adjustMarginsToContainer($default-container-width);
273
253
  }
274
254
 
275
- & > .block.image.align.full,
276
- & > .block.video.align.full,
277
- & > .block.maps.align.full {
278
- @include layout-container-width();
279
- }
280
-
281
255
  /* Styling align left and right in mobile view */
282
- .block.video.align.right .video-inner,
283
- .block.video.align.left .video-inner,
284
- .block.maps.align.right iframe,
285
- .block.maps.align.left iframe {
286
- @container (max-width: #{$largest-mobile-screen}) {
287
- width: 100%;
288
- }
289
- }
290
256
 
291
257
  & > h1.documentFirstHeading {
292
258
  @include adjustMarginsToContainer($default-container-width);
@@ -296,6 +262,13 @@ External & Mail link removal for all the blocks.
296
262
  // This is the default spacing in between same-color blocks
297
263
  margin-bottom: $block-vertical-space;
298
264
 
265
+ // Listing followed by another listing (same bg) without headline: 40px gap
266
+ &.listing.next--has--same--backgroundColor.next--is--same--block-type:has(
267
+ + .block.listing:not(.has--headline)
268
+ ) {
269
+ margin-bottom: $spacing-medium;
270
+ }
271
+
299
272
  // Default side margins on smaller screens
300
273
  &.has--block-width--narrow {
301
274
  @include adjustMarginsToContainer($narrow-container-width);
@@ -340,14 +313,6 @@ External & Mail link removal for all the blocks.
340
313
  #page-add,
341
314
  #page-edit {
342
315
  .block.slate .slate-editor,
343
- .block-editor-image.left.medium,
344
- .block-editor-image.left.small,
345
- .block-editor-image.right.medium,
346
- .block-editor-image.right.small,
347
- .block-editor-video.align.left,
348
- .block-editor-video.align.right,
349
- .block-editor-video.center .video-inner,
350
- .block.maps.align.center .maps-inner,
351
316
  .block-editor-separator.has--align--left
352
317
  .block.separator.inner
353
318
  .block.separator
@@ -366,17 +331,6 @@ External & Mail link removal for all the blocks.
366
331
  }
367
332
 
368
333
  .block-editor-title h1,
369
- .block-editor-image.left.large,
370
- .block-editor-image.right.large,
371
- .block-editor-image.wide figure, // Wide images are always large
372
- .block-editor-image.wide.large figure,
373
- .block-editor-video.align.left,
374
- .block-editor-video.align.right,
375
- .block.maps.align.left,
376
- .block.maps.align.right,
377
- .block.video.align.wide .video-inner,
378
- .block.maps.align.wide .maps-inner,
379
-
380
334
  .block.introduction .slate-editor,
381
335
  .block.heading .heading-wrapper,
382
336
  .block-editor-listing .items,
@@ -397,21 +351,12 @@ External & Mail link removal for all the blocks.
397
351
  }
398
352
 
399
353
  .block-editor-slate,
400
- .block-editor-image,
401
354
  .block-editor-slider,
402
355
  .block-editor-teaser,
403
356
  .block-editor-separator.has--align--left {
404
357
  @include layout-container-width();
405
358
  @include adjustMarginsToEditContainer($layout-container-width);
406
359
  }
407
-
408
- /* Styling align left and right in mobile view */
409
- .block.video.align.right .video-inner,
410
- .block.video.align.left .video-inner {
411
- @container (max-width: #{$largest-mobile-screen}) {
412
- width: 100%;
413
- }
414
- }
415
360
  }
416
361
 
417
362
  // Grids adjustments (has to be paired with collections/grid.variables)
@@ -35,7 +35,7 @@ header .navigation .item {
35
35
  .cms-ui.view-editview {
36
36
  .content-area,
37
37
  .breadcrumbs {
38
- a:not(.card-primary-link, .label, .item) {
38
+ a:not(.card-primary-link, .label, .item, .link-container) {
39
39
  color: var(--link-foreground-color, var(--theme-foreground-color));
40
40
  font: inherit;
41
41
  line-height: inherit;
@@ -454,3 +454,24 @@ $line-heights: (
454
454
  no-repeat center;
455
455
  white-space: nowrap;
456
456
  }
457
+
458
+ @mixin floated-figure($align) {
459
+ max-width: calc(var(--default-container-width) / 2 - 10px);
460
+ height: auto;
461
+ margin-bottom: $spacing-small;
462
+
463
+ @if $align == 'right' {
464
+ margin-left: $spacing-small;
465
+ float: right;
466
+ } @else {
467
+ margin-right: $spacing-small;
468
+ float: left;
469
+ }
470
+
471
+ @media only screen and (max-width: #{$largest-mobile-screen}) {
472
+ width: 100%;
473
+ margin-right: auto;
474
+ margin-left: auto;
475
+ float: none;
476
+ }
477
+ }
@@ -89,6 +89,7 @@
89
89
  }
90
90
 
91
91
  .block.image {
92
+ margin-top: 0;
92
93
  figcaption {
93
94
  position: absolute;
94
95
  z-index: 100;
@@ -6,11 +6,10 @@
6
6
  @include highlight-title();
7
7
  }
8
8
  .description {
9
- a,
10
- p,
11
- span {
9
+ --link-foreground-color: var(--theme-foreground-color);
10
+
11
+ p {
12
12
  @include introduction();
13
- --link-foreground-color: var(--theme-foreground-color);
14
13
  }
15
14
  }
16
15
 
@@ -19,8 +18,12 @@
19
18
  text-decoration: none;
20
19
  }
21
20
  }
21
+ .block-inner-container {
22
+ max-width: var(--layout-container-width);
23
+ }
22
24
  }
23
- .block.highlight.has--descriptionColor--highlight-custom-color-2,
24
- .block-editor-highlight.has--descriptionColor--highlight-custom-color-2 .block {
25
- --theme-foreground-color: #fff;
25
+ .color-swatch-widget[class*='field-wrapper-descriptionColor'] {
26
+ & + .color-swatch-widget.field-wrapper-theme {
27
+ padding-top: 16px;
28
+ }
26
29
  }