@kitconcept/volto-light-theme 7.0.0-alpha.21 → 7.0.0-alpha.22

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.21 (2025-07-31)
1
+ ## 7.0.0-alpha.22 (2025-08-15)
2
+
3
+ ### Feature
4
+
5
+ - Add styles for RSS block (note: full functionality requires RSS addon and templates available in kitconcept.intranet). @danalvrz
2
6
 
3
7
  ### Internal
4
8
 
5
- - Revert the new slider variation. @iFlameing [#623](https://github.com/kitconcept/volto-light-theme/pull/623)
9
+ - Fix Logos SVG size issue. @Tishasoumya-02
6
10
 
7
11
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 7.0.0-alpha.22 (2025-08-15)
12
+
13
+ ### Feature
14
+
15
+ - Add styles for RSS block (note: full functionality requires RSS addon and templates available in kitconcept.intranet). @danalvrz
16
+
17
+ ### Internal
18
+
19
+ - Fix Logos SVG size issue. @Tishasoumya-02
20
+
11
21
  ## 7.0.0-alpha.21 (2025-07-31)
12
22
 
13
23
  ### Internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "7.0.0-alpha.21",
3
+ "version": "7.0.0-alpha.22",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -56,11 +56,16 @@ const LogosContainer = (props: LogosContainerProps) => {
56
56
  {/* @ts-ignore */}
57
57
  <ConditionalLink
58
58
  condition={logoInfo.href}
59
+ className="logo-link"
59
60
  to={logoInfo.href}
60
61
  title={logoInfo.hrefTitle || logoInfo.srcAlt}
61
62
  openLinkInNewTab={logo.openInNewTab}
62
63
  >
63
- <img src={logoInfo.src} alt={logoInfo.srcAlt} />
64
+ <img
65
+ className="logo-image"
66
+ src={logoInfo.src}
67
+ alt={logoInfo.srcAlt}
68
+ />
64
69
  </ConditionalLink>
65
70
  </li>
66
71
  );
@@ -490,7 +490,8 @@
490
490
 
491
491
  // Listing
492
492
  &.listing,
493
- &.search {
493
+ &.search,
494
+ &.rssBlock {
494
495
  h2.headline {
495
496
  color: var(--theme-foreground-color);
496
497
  }
@@ -530,7 +531,8 @@
530
531
  /* I have removed the .card-container className that's why I have to write this css
531
532
  * I will remove all the .card-container className from repo.
532
533
  */
533
- &.grid .card {
534
+ &.grid .card,
535
+ & .grid-variation .card {
534
536
  background-color: var(--theme-high-contrast-color);
535
537
 
536
538
  .content,
@@ -355,17 +355,39 @@ ul.logos-container {
355
355
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
356
356
  list-style: none;
357
357
 
358
+ .logo-image {
359
+ display: block;
360
+ width: 100%;
361
+ height: auto;
362
+ object-fit: contain !important;
363
+ //using !important because in layout.scss it targets img , so to override it for logo-image, class specificity did'nt work
364
+ }
365
+
366
+ .logo-link {
367
+ display: block;
368
+ width: 100%;
369
+ height: 100%;
370
+ }
371
+
358
372
  &.s {
359
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
373
+ .logo-link,
374
+ .logo-image {
375
+ max-width: min(100%, 175px);
376
+ max-height: 120px;
377
+ }
360
378
  }
361
379
 
362
- &.l img {
363
- max-width: min(100%, 240px);
364
- max-height: 165px;
380
+ &.l {
381
+ .logo-link,
382
+ .logo-image {
383
+ max-width: min(100%, 240px);
384
+ max-height: 165px;
385
+ }
365
386
  }
366
387
 
367
- &.s img {
368
- max-width: min(100%, 175px);
369
- max-height: 120px;
388
+ .item {
389
+ display: flex;
390
+ align-items: center;
391
+ justify-content: center;
370
392
  }
371
393
  }
@@ -239,6 +239,7 @@ External link removal for all the blocks.
239
239
  & > .block.listing .image-gallery,
240
240
  & > .block.listing.grid,
241
241
  & > .block.search.grid,
242
+ & > .block.rssBlock,
242
243
  & > .block.search .searchBlock-container,
243
244
  &> .block.eventsearch .search-block-event,
244
245
  & > .block h2.headline,
@@ -361,6 +362,7 @@ External link removal for all the blocks.
361
362
  .block.heading .heading-wrapper,
362
363
  .block-editor-listing .items,
363
364
  .block-editor-listing .listing.message,
365
+ .block-editor-rssBlock .items,
364
366
  .block-editor-search .searchBlock-container,
365
367
  .block-editor-eventsearch .search-block-event,
366
368
  .block.teaser.has--align--center,
@@ -12,7 +12,9 @@
12
12
  .block.listing,
13
13
  .column > .block.listing,
14
14
  .block.search,
15
- .block-editor-search {
15
+ .block-editor-search,
16
+ .block.rssBlock,
17
+ .block-editor-rssBlock {
16
18
  &.next--has--same--backgroundColor.next--is--same--block-type,
17
19
  &.next--is--__button {
18
20
  .listing-item:last-child {
@@ -58,7 +60,8 @@
58
60
  }
59
61
 
60
62
  // Default variation
61
- &.default {
63
+ &.default,
64
+ & .default-variation {
62
65
  .headline {
63
66
  @include block-title();
64
67
  }
@@ -90,7 +93,8 @@
90
93
  }
91
94
 
92
95
  // Summary variation
93
- &.summary {
96
+ &.summary,
97
+ & .summary-variation {
94
98
  .listing-item {
95
99
  padding-top: 0 !important;
96
100
 
@@ -134,7 +138,8 @@
134
138
  }
135
139
 
136
140
  // Grid variation
137
- &.grid {
141
+ &.grid,
142
+ & .grid-variation {
138
143
  &.next--has--same--backgroundColor.next--is--same--block-type,
139
144
  &.next--is--__button {
140
145
  .listing-item:last-child {
@@ -427,8 +432,11 @@
427
432
  }
428
433
 
429
434
  #page-add .block-editor-listing,
430
- #page-edit .block-editor-listing {
431
- .block.listing {
435
+ #page-edit .block-editor-listing,
436
+ #page-add .block-editor-rssBlock,
437
+ #page-edit .block-editor-rssBlock {
438
+ .block.listing,
439
+ .block.rssBlock {
432
440
  margin-top: 0;
433
441
  .items {
434
442
  margin-right: auto;
@@ -0,0 +1,17 @@
1
+ .block.rssBlock {
2
+ .card {
3
+ width: 100%;
4
+ a.external::after {
5
+ position: absolute !important;
6
+ top: $spacing-small;
7
+ right: 0;
8
+ }
9
+ }
10
+ .grid-variation {
11
+ .card a.external::after {
12
+ top: unset;
13
+ right: 1rem;
14
+ bottom: 1rem;
15
+ }
16
+ }
17
+ }
@@ -34,6 +34,7 @@
34
34
  @import 'blocks/maps';
35
35
  @import 'blocks-chooser';
36
36
  @import 'blocks/eventMetadata';
37
+ @import 'blocks/rss';
37
38
  @import 'blocks/eventSearch';
38
39
  @import 'sticky-menu';
39
40
  @import 'card';