@kitconcept/volto-light-theme 7.0.0-alpha.7 → 7.0.0-alpha.9

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.
package/.changelog.draft CHANGED
@@ -1,7 +1,11 @@
1
- ## 7.0.0-alpha.7 (2025-06-04)
1
+ ## 7.0.0-alpha.9 (2025-06-09)
2
2
 
3
- ### Feature
3
+ ### Bugfix
4
4
 
5
- - Update pt_BR translation. @ericof
5
+ - Fixed Teaser styling @sneridagh [#573](https://github.com/kitconcept/volto-light-theme/pull/573)
6
+
7
+ ### Internal
8
+
9
+ - Fix aspect ratio for images in file teaser block @iRohitSingh
6
10
 
7
11
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,24 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 7.0.0-alpha.9 (2025-06-09)
12
+
13
+ ### Bugfix
14
+
15
+ - Fixed Teaser styling @sneridagh [#573](https://github.com/kitconcept/volto-light-theme/pull/573)
16
+
17
+ ### Internal
18
+
19
+ - Fix aspect ratio for images in file teaser block @iRohitSingh
20
+
21
+ ## 7.0.0-alpha.8 (2025-06-06)
22
+
23
+ ### Bugfix
24
+
25
+ - Fix duplicated pagination on mobile. @danalvrz [#558](https://github.com/kitconcept/volto-light-theme/pull/558)
26
+ - Fixed summaries on Events and News Items. @sneridagh [#567](https://github.com/kitconcept/volto-light-theme/pull/567)
27
+ - Update volto-carousel-block, fixed adaptation needed for the latest VLT changes. @sneridagh
28
+
11
29
  ## 7.0.0-alpha.7 (2025-06-04)
12
30
 
13
31
  ### Feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "7.0.0-alpha.7",
3
+ "version": "7.0.0-alpha.9",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -37,7 +37,7 @@
37
37
  "@types/react": "^18.3.12",
38
38
  "@types/react-dom": "^18.3.1",
39
39
  "release-it": "^19.0.3",
40
- "@plone/types": "1.4.1"
40
+ "@plone/types": "1.4.5"
41
41
  },
42
42
  "dependencies": {
43
43
  "@dnd-kit/core": "6.0.8",
@@ -54,7 +54,7 @@
54
54
  "@eeacms/volto-accordion-block": "^10.4.6",
55
55
  "@kitconcept/volto-banner-block": "^1.0.1",
56
56
  "@kitconcept/volto-button-block": "^4.0.0-alpha.0",
57
- "@kitconcept/volto-carousel-block": "^2.0.0-alpha.0",
57
+ "@kitconcept/volto-carousel-block": "^2.0.0-alpha.1",
58
58
  "@kitconcept/volto-dsgvo-banner": "^2.4.0",
59
59
  "@kitconcept/volto-heading-block": "^2.4.0",
60
60
  "@kitconcept/volto-highlight-block": "^4.1.0",
@@ -1,5 +1,8 @@
1
1
  export const teaserSchemaEnhancer = ({ schema, formData, intl }) => {
2
2
  schema.properties.href.selectedItemAttrs.push('getRemoteUrl');
3
+ schema.properties.href.selectedItemAttrs.push('effective');
4
+ schema.properties.href.selectedItemAttrs.push('start');
5
+ schema.properties.href.selectedItemAttrs.push('end');
3
6
 
4
7
  return schema;
5
8
  };
@@ -290,42 +290,22 @@
290
290
  }
291
291
  }
292
292
  }
293
+
293
294
  .pagination-wrapper {
294
295
  .ui.pagination.desktop-pagination.menu {
295
- display: flex;
296
296
  background: none;
297
297
 
298
298
  a {
299
- max-height: 38px !important;
300
- border-color: var(--theme-foreground-color);
301
- color: var(--theme-foreground-color);
302
-
303
299
  &:nth-child(n):not(:last-child) {
304
300
  border-right: none;
305
301
  }
306
-
307
- &.disabled {
308
- color: var(--theme-low-contrast-foreground-color) !important;
309
- }
310
-
311
- &.active {
312
- background: var(--theme-foreground-color);
313
- color: var(--theme-color);
314
- }
315
302
  }
316
303
  }
317
304
 
318
- .total {
319
- color: var(--theme-foreground-color);
320
- }
321
- }
322
-
323
- .pagination-wrapper {
324
305
  .ui.pagination.menu {
325
- display: flex;
326
306
  background: none;
327
307
 
328
- a {
308
+ a.item {
329
309
  max-height: 38px !important;
330
310
  border-color: var(--theme-foreground-color);
331
311
  color: var(--theme-foreground-color);
@@ -283,7 +283,13 @@ External link removal for all the blocks.
283
283
  @include adjustMarginsToContainer($narrow-container-width);
284
284
  }
285
285
 
286
- &:not(.highlight, .teaser, .gridBlock, .slider).has--block-width--default {
286
+ &:not(
287
+ .highlight,
288
+ .teaser,
289
+ .gridBlock,
290
+ .slider,
291
+ .listing
292
+ ).has--block-width--default {
287
293
  @include adjustMarginsToContainer($default-container-width);
288
294
  }
289
295
 
@@ -155,6 +155,7 @@ $secondary-grey: #ececec !default;
155
155
 
156
156
  // Image Aspect Ratio
157
157
  $aspect-ratio: calc(16 / 9) !default;
158
+ $aspect-ratio-A4: calc(5 / 7) !default;
158
159
 
159
160
  // Weights
160
161
  $thin: 100 !default;
@@ -228,6 +228,24 @@
228
228
  right: -68px;
229
229
  }
230
230
 
231
+ @media only screen and (max-width: $narrow-container-width) {
232
+ &.image-gallery-left-nav {
233
+ left: -0.5rem;
234
+ }
235
+ &.image-gallery-right-nav {
236
+ right: -0.5rem;
237
+ }
238
+ }
239
+
240
+ @media only screen and (max-width: 1085px) {
241
+ &.image-gallery-left-nav {
242
+ left: -1rem;
243
+ }
244
+ &.image-gallery-right-nav {
245
+ right: -1rem;
246
+ }
247
+ }
248
+
231
249
  &.image-gallery-fullscreen-button,
232
250
  &.image-gallery-play-button {
233
251
  bottom: -94px;
@@ -361,7 +379,7 @@
361
379
 
362
380
  @container (max-width: #{$largest-mobile-screen}) {
363
381
  &.mobile-pagination {
364
- display: unset;
382
+ display: table-row;
365
383
  }
366
384
 
367
385
  &.desktop-pagination {
@@ -13,6 +13,12 @@
13
13
  // We want the image to extend in all its container width
14
14
  height: 100%;
15
15
 
16
+ &.file-teaser .card .card-inner .image-wrapper {
17
+ img {
18
+ aspect-ratio: var(--file-image-aspect-ratio, $aspect-ratio-A4) !important;
19
+ }
20
+ }
21
+
16
22
  a.external {
17
23
  .card-summary h2:after {
18
24
  @include external-link-icon();
@@ -1,6 +1,8 @@
1
1
  .card {
2
2
  .person-teaser.has--align--left:not(.contained) &,
3
3
  .has--align--left:not(.contained) .person-teaser &,
4
+ .has--align--right:not(.contained) .person-teaser &,
5
+ .has--align--center:not(.contained) .person-teaser &,
4
6
  .person-teaser.has--align--right:not(.contained) & {
5
7
  .card-inner {
6
8
  .image-wrapper {
@@ -28,18 +30,48 @@
28
30
  }
29
31
  }
30
32
 
33
+ // Teaser (standalone) top
34
+ .has--align--center:not(.contained) .person-teaser & {
35
+ width: calc(var(--default-container-width) / 2);
36
+ margin-right: auto;
37
+ margin-left: auto;
38
+
39
+ .image-wrapper {
40
+ display: flex;
41
+ justify-content: center;
42
+ }
43
+ .card-summary {
44
+ padding-right: 0px;
45
+ padding-left: 0px;
46
+ text-align: center;
47
+ }
48
+
49
+ .summary-extra-info,
50
+ .summary-room-phone {
51
+ justify-content: center;
52
+ }
53
+ }
54
+
55
+ // Teaser in Grid
31
56
  .contained.person-teaser & {
57
+ // Exploration for rounded images in person-teasers
58
+ // --person-image-height: auto;
59
+ // --person-image-border-radius: 10000px;
60
+ // --person-image-aspect-ratio: 1/1;
32
61
  .image-wrapper {
33
62
  display: flex;
34
- height: 255px;
63
+ height: var(--person-image-height, 255px);
35
64
  justify-content: center;
36
- aspect-ratio: var(--image-aspect-ratio, 1.7777777778);
65
+ // Removed since it was causing the cards to have more width than the available container
66
+ // for +2 columns
67
+ // aspect-ratio: var(--image-aspect-ratio, 1.7777777778);
37
68
 
38
69
  img {
39
70
  max-width: 198px; // 255x198px Roughly 3:4 (enough to cover the 16:9 portrait height)
40
71
  height: 100%;
41
72
  flex: 0 1 auto;
42
- aspect-ratio: initial !important;
73
+ border-radius: var(--person-image-border-radius, 0px);
74
+ aspect-ratio: var(--person-image-aspect-ratio, initial) !important;
43
75
  object-fit: cover;
44
76
  object-position: top center;
45
77
  }
@@ -103,6 +135,13 @@ body .block.gridBlock .block.teaser.contained.person-teaser .card-inner {
103
135
  gap: $spacing-small;
104
136
  }
105
137
 
138
+ // One person teaser in Grid, edit mode
139
+ .block.gridBlock .one .cell-wrapper:has(.person-teaser) {
140
+ max-width: var(--default-container-width) / 2;
141
+ margin-right: auto;
142
+ margin-left: auto;
143
+ }
144
+
106
145
  // Listings (no card)
107
146
  .block.listing {
108
147
  .listing-item.person-listing {