@kitconcept/volto-light-theme 7.7.0 → 7.8.0
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 +9 -2
- package/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/src/components/Blocks/Banner/schema.js +26 -0
- package/src/components/Theme/EventView.jsx +4 -4
- package/src/components/Theme/NewsItemView.jsx +4 -4
- package/src/config/blocks.tsx +8 -0
- package/src/theme/_bgcolor-blocks-layout.scss +11 -0
- package/src/theme/_content.scss +12 -13
- package/src/theme/_footer.scss +1 -0
- package/src/theme/blocks/_banner.scss +3 -0
- package/src/theme/blocks/_teaser.scss +1 -0
- package/src/theme/main.scss +1 -0
- package/src/theme/sticky-menu.scss +1 -1
package/.changelog.draft
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
## 7.
|
|
1
|
+
## 7.8.0 (2026-02-23)
|
|
2
2
|
|
|
3
3
|
### Feature
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Remove empty space when next element has a grey background color and add blockWidth widget @Tishasoumya-02 [#758](https://github.com/kitconcept/volto-light-theme/pull/758)
|
|
6
|
+
|
|
7
|
+
### Bugfix
|
|
8
|
+
|
|
9
|
+
- Fix color for social icons in post footer. @danalvrz
|
|
10
|
+
- Fix color in language selector, and remove extra margin between Teaser and Button blocks. @danalvrz
|
|
11
|
+
- Fix sticky menu not clickable at default zoom setting @Tishasoumya-02
|
|
12
|
+
- Move the head title after the date in NewsView and EventView, making it consistent with the listing view. @iFlameing
|
|
6
13
|
|
|
7
14
|
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 7.8.0 (2026-02-23)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Remove empty space when next element has a grey background color and add blockWidth widget @Tishasoumya-02 [#758](https://github.com/kitconcept/volto-light-theme/pull/758)
|
|
16
|
+
|
|
17
|
+
### Bugfix
|
|
18
|
+
|
|
19
|
+
- Fix color for social icons in post footer. @danalvrz
|
|
20
|
+
- Fix color in language selector, and remove extra margin between Teaser and Button blocks. @danalvrz
|
|
21
|
+
- Fix sticky menu not clickable at default zoom setting @Tishasoumya-02
|
|
22
|
+
- Move the head title after the date in NewsView and EventView, making it consistent with the listing view. @iFlameing
|
|
23
|
+
|
|
11
24
|
## 7.7.0 (2026-01-29)
|
|
12
25
|
|
|
13
26
|
### Feature
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { addStyling } from '@plone/volto/helpers/Extensions/withBlockSchemaEnhancer';
|
|
2
|
+
import { defineMessages } from 'react-intl';
|
|
3
|
+
|
|
4
|
+
const messages = defineMessages({
|
|
5
|
+
BlockWidth: {
|
|
6
|
+
id: 'Block Width',
|
|
7
|
+
defaultMessage: 'Block Width',
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
export const BannerStylingSchema = ({ schema, formData, intl }) => {
|
|
11
|
+
addStyling({ schema, intl });
|
|
12
|
+
|
|
13
|
+
schema.properties.styles.schema.fieldsets[0].fields = [
|
|
14
|
+
'blockWidth:noprefix',
|
|
15
|
+
...schema.properties.styles.schema.fieldsets[0].fields,
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
schema.properties.styles.schema.properties['blockWidth:noprefix'] = {
|
|
19
|
+
widget: 'blockWidth',
|
|
20
|
+
title: intl.formatMessage(messages.BlockWidth),
|
|
21
|
+
default: 'default',
|
|
22
|
+
filterActions: ['layout', 'default'],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return schema;
|
|
26
|
+
};
|
|
@@ -73,14 +73,14 @@ const EventView = (props) => {
|
|
|
73
73
|
return (
|
|
74
74
|
<Container id="page-document" className="view-wrapper event-view">
|
|
75
75
|
<div className="dates">
|
|
76
|
-
{content?.head_title && (
|
|
77
|
-
<span className="head-title"> {content?.head_title}</span>
|
|
78
|
-
)}{' '}
|
|
79
76
|
{formattedDate ? (
|
|
80
77
|
<span className="day" suppressHydrationWarning>
|
|
81
78
|
{formattedDate}
|
|
82
79
|
</span>
|
|
83
|
-
) : null}
|
|
80
|
+
) : null}{' '}
|
|
81
|
+
{content?.head_title && (
|
|
82
|
+
<span className="head-title"> {content?.head_title}</span>
|
|
83
|
+
)}
|
|
84
84
|
</div>
|
|
85
85
|
{hasBlocksData(content) ? (
|
|
86
86
|
<>
|
|
@@ -21,9 +21,6 @@ const NewsItemView = ({ content }) => {
|
|
|
21
21
|
return (
|
|
22
22
|
<Container id="page-document" className="view-wrapper newsitem-view">
|
|
23
23
|
<div className="dates">
|
|
24
|
-
{content?.head_title && (
|
|
25
|
-
<span className="head-title"> {content?.head_title}</span>
|
|
26
|
-
)}{' '}
|
|
27
24
|
{content.effective ? (
|
|
28
25
|
<FormattedDate
|
|
29
26
|
key="day"
|
|
@@ -35,7 +32,10 @@ const NewsItemView = ({ content }) => {
|
|
|
35
32
|
}}
|
|
36
33
|
className="day"
|
|
37
34
|
/>
|
|
38
|
-
) : null}
|
|
35
|
+
) : null}{' '}
|
|
36
|
+
{content?.head_title && (
|
|
37
|
+
<span className="head-title"> {content?.head_title}</span>
|
|
38
|
+
)}
|
|
39
39
|
</div>
|
|
40
40
|
<RenderBlocks content={content} />
|
|
41
41
|
</Container>
|
package/src/config/blocks.tsx
CHANGED
|
@@ -31,6 +31,8 @@ import { AccordionSchemaEnhancer } from '../components/Blocks/Accordion/schema';
|
|
|
31
31
|
|
|
32
32
|
import { searchBlockSchemaEnhancer } from '../components/Blocks/Search/schema';
|
|
33
33
|
|
|
34
|
+
import { BannerStylingSchema } from '../components/Blocks/Banner/schema';
|
|
35
|
+
|
|
34
36
|
import gridSVG from '../icons/block_icn_grid.svg';
|
|
35
37
|
import accordionSVG from '../icons/block_icn_accordion.svg';
|
|
36
38
|
import descriptionSVG from '@plone/volto/icons/description.svg';
|
|
@@ -61,6 +63,7 @@ declare module '@plone/types' {
|
|
|
61
63
|
hero: BlockConfigBase;
|
|
62
64
|
slateTable: BlockConfigBase;
|
|
63
65
|
eventCalendar: BlockConfigBase;
|
|
66
|
+
banner: BlockConfigBase;
|
|
64
67
|
}
|
|
65
68
|
export interface BlockConfigBase {
|
|
66
69
|
themes?: StyleDefinition[];
|
|
@@ -365,6 +368,11 @@ export default function install(config: ConfigType) {
|
|
|
365
368
|
schemaEnhancer: defaultStylingSchema,
|
|
366
369
|
};
|
|
367
370
|
|
|
371
|
+
config.blocks.blocksConfig.banner = {
|
|
372
|
+
...config.blocks.blocksConfig.banner,
|
|
373
|
+
schemaEnhancer: BannerStylingSchema,
|
|
374
|
+
};
|
|
375
|
+
|
|
368
376
|
config.blocks.blocksConfig.search = {
|
|
369
377
|
...config.blocks.blocksConfig.search,
|
|
370
378
|
schemaEnhancer: composeSchema(
|
|
@@ -407,6 +407,14 @@
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
// Banner block, if next block has different bgcolor it snaps to the bottom
|
|
411
|
+
#page-document
|
|
412
|
+
.blocks-group-wrapper:has(
|
|
413
|
+
:last-child.banner.next--has--different--backgroundColor
|
|
414
|
+
) {
|
|
415
|
+
padding-bottom: 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
410
418
|
// Color map
|
|
411
419
|
@mixin use-theme-colors() {
|
|
412
420
|
#page-document {
|
|
@@ -1269,6 +1277,9 @@
|
|
|
1269
1277
|
color: var(--header-foreground);
|
|
1270
1278
|
}
|
|
1271
1279
|
}
|
|
1280
|
+
.language-selector a {
|
|
1281
|
+
color: var(--header-foreground);
|
|
1282
|
+
}
|
|
1272
1283
|
}
|
|
1273
1284
|
|
|
1274
1285
|
// Navigation
|
package/src/theme/_content.scss
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
@mixin day-with-head-title-separator {
|
|
2
|
+
.day:has(+ .head-title) {
|
|
3
|
+
&::after {
|
|
4
|
+
margin-left: 8px;
|
|
5
|
+
content: '|';
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.ui.basic.segment.content-area {
|
|
2
11
|
// We cancel the padding and margin from the segment
|
|
3
12
|
// allowing the content elements to be the ones that push for
|
|
@@ -18,6 +27,8 @@
|
|
|
18
27
|
#page-document .dates {
|
|
19
28
|
@include default-container-width();
|
|
20
29
|
@include adjustMarginsToContainer($default-container-width);
|
|
30
|
+
@include day-with-head-title-separator();
|
|
31
|
+
|
|
21
32
|
margin-top: $spacing-medium;
|
|
22
33
|
margin-bottom: $spacing-medium;
|
|
23
34
|
color: var(--primary-foreground-color);
|
|
@@ -27,13 +38,6 @@
|
|
|
27
38
|
text-transform: uppercase;
|
|
28
39
|
}
|
|
29
40
|
|
|
30
|
-
.head-title:has(+ .day) {
|
|
31
|
-
&::after {
|
|
32
|
-
margin-left: 8px;
|
|
33
|
-
content: '|';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
41
|
@container (max-width: #{$tablet-breakpoint} ) {
|
|
38
42
|
.day,
|
|
39
43
|
.head-title {
|
|
@@ -91,6 +95,7 @@
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
.dates {
|
|
98
|
+
@include day-with-head-title-separator();
|
|
94
99
|
margin-top: $spacing-medium;
|
|
95
100
|
margin-bottom: $spacing-medium;
|
|
96
101
|
color: var(--primary-foreground-color);
|
|
@@ -103,12 +108,6 @@
|
|
|
103
108
|
letter-spacing: 1px;
|
|
104
109
|
text-transform: uppercase;
|
|
105
110
|
}
|
|
106
|
-
.head-title {
|
|
107
|
-
&::after {
|
|
108
|
-
margin-left: 8px;
|
|
109
|
-
content: '|';
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
111
|
@container (max-width: #{$tablet-breakpoint} ) {
|
|
113
112
|
.day,
|
|
114
113
|
.head-title {
|
package/src/theme/_footer.scss
CHANGED
package/src/theme/main.scss
CHANGED