@eeacms/volto-eea-design-system 1.0.4 → 1.0.6
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.md +29 -0
- package/package.json +1 -1
- package/src/ui/Banner/Banner.jsx +2 -1
- package/theme/plugins.js +41 -0
- package/theme/theme.less +2 -0
- package/theme/themes/eea/elements/container.overrides +35 -28
- package/theme/themes/eea/elements/container.variables +4 -0
- package/theme/themes/eea/extras/banner.less +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,35 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.0.6](https://github.com/eea/volto-eea-design-system/compare/1.0.5...1.0.6) - 29 March 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: add viewport-(width/height) less functions [Miu Razvan - [`68300a3`](https://github.com/eea/volto-eea-design-system/commit/68300a3c34e66954c7ef3a6e52baa37431fbfa9e)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- refactor(Banner.jsx): use flattenToAppURL helper function to get image source URL [Miu Razvan - [`24b13d7`](https://github.com/eea/volto-eea-design-system/commit/24b13d7c09a498ca889d413135c9abc4e6cab9ad)]
|
|
16
|
+
- change(docusaurus): set full class name for remix icons [David Ichim - [`f435e10`](https://github.com/eea/volto-eea-design-system/commit/f435e10034b04cab4aeb301d8521559f98be299e)]
|
|
17
|
+
|
|
18
|
+
#### :house: Internal changes
|
|
19
|
+
|
|
20
|
+
- style(theme): update container width and margins in eea theme [Miu Razvan - [`3e4446a`](https://github.com/eea/volto-eea-design-system/commit/3e4446a3af641ddca03f1f2833dd6e79535feb98)]
|
|
21
|
+
|
|
22
|
+
#### :hammer_and_wrench: Others
|
|
23
|
+
|
|
24
|
+
- horizontal overflow hidden in view mode [Miu Razvan - [`f395f27`](https://github.com/eea/volto-eea-design-system/commit/f395f276df003480a219bae639f87bebcf35799f)]
|
|
25
|
+
### [1.0.5](https://github.com/eea/volto-eea-design-system/compare/1.0.4...1.0.5) - 28 March 2023
|
|
26
|
+
|
|
27
|
+
#### :rocket: New Features
|
|
28
|
+
|
|
29
|
+
- feat: improve full-width class [Miu Razvan - [`70bba7e`](https://github.com/eea/volto-eea-design-system/commit/70bba7e295dd237e7c579ef0446ff05e0c8529d8)]
|
|
30
|
+
|
|
31
|
+
#### :bug: Bug Fixes
|
|
32
|
+
|
|
33
|
+
- fix(banner): Add missing divider for time tag #327 from eea/banner-metadata [ichim-david - [`c46a583`](https://github.com/eea/volto-eea-design-system/commit/c46a58336ec9eb2ce75d2637f3197f417e8ca326)]
|
|
34
|
+
- fix(banner): Add missing divider for time tag [kreafox - [`7d68c39`](https://github.com/eea/volto-eea-design-system/commit/7d68c395d368a267baef4422df6e72f63d099b75)]
|
|
35
|
+
|
|
7
36
|
### [1.0.4](https://github.com/eea/volto-eea-design-system/compare/1.0.3...1.0.4) - 27 March 2023
|
|
8
37
|
|
|
9
38
|
#### :rocket: New Features
|
package/package.json
CHANGED
package/src/ui/Banner/Banner.jsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Container, Icon, Button, Grid } from 'semantic-ui-react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
4
5
|
import { formatDate } from '@plone/volto/helpers/Utils/Date';
|
|
5
6
|
import config from '@plone/volto/registry';
|
|
6
7
|
|
|
@@ -25,7 +26,7 @@ const socialPlatforms = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export const getImageSource = (image) => {
|
|
28
|
-
if (image?.scales?.huge) return image.scales.huge.download;
|
|
29
|
+
if (image?.scales?.huge) return flattenToAppURL(image.scales.huge.download);
|
|
29
30
|
return null;
|
|
30
31
|
};
|
|
31
32
|
|
package/theme/plugins.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
install(less, pluginManager, functions) {
|
|
3
|
+
functions.add('vw', function (percentage) {
|
|
4
|
+
return new less.tree.Call('calc', [
|
|
5
|
+
new less.tree.Operation(
|
|
6
|
+
'*',
|
|
7
|
+
[
|
|
8
|
+
new less.tree.Call('var', [
|
|
9
|
+
new less.tree.UnicodeDescriptor('--vw'),
|
|
10
|
+
new less.tree.Dimension(
|
|
11
|
+
1,
|
|
12
|
+
new less.tree.Unit(['vw'], null, 'vw'),
|
|
13
|
+
),
|
|
14
|
+
]),
|
|
15
|
+
percentage,
|
|
16
|
+
],
|
|
17
|
+
true,
|
|
18
|
+
),
|
|
19
|
+
]);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
functions.add('vh', function (percentage) {
|
|
23
|
+
return new less.tree.Call('calc', [
|
|
24
|
+
new less.tree.Operation(
|
|
25
|
+
'*',
|
|
26
|
+
[
|
|
27
|
+
new less.tree.Call('var', [
|
|
28
|
+
new less.tree.UnicodeDescriptor('--vh'),
|
|
29
|
+
new less.tree.Dimension(
|
|
30
|
+
1,
|
|
31
|
+
new less.tree.Unit(['vh'], null, 'vh'),
|
|
32
|
+
),
|
|
33
|
+
]),
|
|
34
|
+
percentage,
|
|
35
|
+
],
|
|
36
|
+
true,
|
|
37
|
+
),
|
|
38
|
+
]);
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
};
|
package/theme/theme.less
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
Theme Overrides
|
|
3
3
|
*******************************/
|
|
4
4
|
|
|
5
|
+
body {
|
|
6
|
+
.contentWidth(0);
|
|
7
|
+
--toolbar-width: 0px;
|
|
8
|
+
--sidebar-width: 0px;
|
|
9
|
+
|
|
10
|
+
&.has-toolbar {
|
|
11
|
+
--toolbar-width: @toolbarWidth;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.has-toolbar-collapsed {
|
|
15
|
+
--toolbar-width: @collapsedWidth;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.has-sidebar {
|
|
19
|
+
--sidebar-width: @sidebarWidth;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.has-sidebar-collapsed {
|
|
23
|
+
--sidebar-width: @collapsedWidth;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media screen and (max-width: calc(@tabletBreakpoint - 1px)) {
|
|
27
|
+
&.has-toolbar,
|
|
28
|
+
&.has-toolbar-collapsed {
|
|
29
|
+
--toolbar-width: 0px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
5
34
|
/* All Sizes */
|
|
6
35
|
.ui.container {
|
|
7
36
|
transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
|
|
@@ -88,10 +117,6 @@
|
|
|
88
117
|
}
|
|
89
118
|
}
|
|
90
119
|
|
|
91
|
-
body {
|
|
92
|
-
.contentWidth(0);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
120
|
// WIP container fixes for edit interface
|
|
96
121
|
@media only screen and (max-width: 1600px) {
|
|
97
122
|
.has-sidebar.section-add .container,
|
|
@@ -116,33 +141,16 @@ body {
|
|
|
116
141
|
|
|
117
142
|
.has--size--full:not(.block-editor-columnsBlock),
|
|
118
143
|
.full-width {
|
|
144
|
+
@toolbarWidthCSS: var(--toolbar-width, 0px);
|
|
145
|
+
@sidebarWidthCSS: var(--sidebar-width, 0px);
|
|
146
|
+
@scrollbarWidthCSS: var(--scrollbar-width, @scrollbarWidth);
|
|
119
147
|
position: relative;
|
|
120
|
-
width: calc(100vw -
|
|
148
|
+
width: calc(100vw - @toolbarWidthCSS - @sidebarWidthCSS - @scrollbarWidthCSS) !important;
|
|
121
149
|
right: 50%;
|
|
122
150
|
left: 50%;
|
|
123
151
|
max-width: initial !important;
|
|
124
|
-
margin-left: calc(-50vw +
|
|
125
|
-
margin-right: calc(-50vw +
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@media only screen and (min-width: @largestMobileScreen) {
|
|
129
|
-
body.has-toolbar {
|
|
130
|
-
.has--size--full:not(.block-editor-columnsBlock),
|
|
131
|
-
.full-width {
|
|
132
|
-
width: calc(100vw - @toolbarWidth - var(--scrollbar-width, @scrollbarWidth)) !important;
|
|
133
|
-
margin-left: calc(-50vw + (@toolbarWidth + var(--scrollbar-width, @scrollbarWidth)) / 2) !important;
|
|
134
|
-
margin-right: calc(-50vw + (@toolbarWidth + var(--scrollbar-width, @scrollbarWidth)) / 2) !important;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
body.has-toolbar-collapsed {
|
|
139
|
-
.has--size--full:not(.block-editor-columnsBlock),
|
|
140
|
-
.full-width {
|
|
141
|
-
width: calc(100vw - @toolbarWidthMin - var(--scrollbar-width, @scrollbarWidth)) !important;
|
|
142
|
-
margin-left: calc(-50vw + (var(--scrollbar-width, @scrollbarWidth) + @toolbarWidthMin) / 2) !important;
|
|
143
|
-
margin-right: calc(-50vw + (var(--scrollbar-width, @scrollbarWidth) + @toolbarWidthMin) / 2) !important;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
152
|
+
margin-left: calc(-50vw + (@toolbarWidthCSS + @sidebarWidthCSS + @scrollbarWidthCSS) / 2) !important;
|
|
153
|
+
margin-right: calc(-50vw + (@toolbarWidthCSS + @sidebarWidthCSS + @scrollbarWidthCSS) / 2) !important;
|
|
146
154
|
}
|
|
147
155
|
|
|
148
156
|
.has--size--full:not(.block-editor-columnsBlock) .ui.grid {
|
|
@@ -192,4 +200,3 @@ body {
|
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
}
|
|
195
|
-
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.metadata {
|
|
44
|
+
margin-bottom: @rem-space-3;
|
|
44
45
|
font-size: @mobileMetadataFontSize;
|
|
45
46
|
line-height: @mobileMetadataLineHeight;
|
|
46
|
-
margin-bottom: @rem-space-3;
|
|
47
47
|
|
|
48
48
|
.field.type {
|
|
49
49
|
font-weight: @metadataTypeFontWeight;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
.field:not(:last-child)::after {
|
|
53
53
|
content: @metadataFieldDividerContent;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
/*Share Popup*/
|
|
111
111
|
|
|
112
112
|
.ui.popup.share-popup {
|
|
113
|
+
position: initial; // without position initial popper cannot correctly place popup
|
|
114
|
+
min-width: @sharePopupMinWidth;
|
|
113
115
|
padding: @sharePopupPadding;
|
|
114
116
|
filter: @sharePopupFilter;
|
|
115
|
-
min-width: @sharePopupMinWidth;
|
|
116
|
-
position: initial; // without position initial popper cannot correctly place popup
|
|
117
117
|
|
|
118
118
|
p {
|
|
119
119
|
font-size: @sharePopupFontSize;
|