@eeacms/volto-eea-design-system 1.0.0-beta.5 → 1.0.0-beta.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 +40 -0
- package/package.json +2 -1
- package/src/helpers/useOnScreen.js +0 -1
- package/templates/eea.hbs +4 -6
- package/theme/theme.config +0 -1
- package/theme/theme.less +7 -3
- package/theme/themes/eea/elements/container.overrides +5 -0
- package/theme/themes/eea/elements/image.overrides +71 -0
- package/theme/themes/eea/elements/image.variables +8 -0
- package/theme/themes/eea/extras/copyright.less +22 -0
- package/theme/themes/eea/extras/copyright.variables +16 -0
- package/theme/themes/eea/globals/site.overrides +6 -0
- package/theme/themes/eea/globals/site.variables +1 -0
- package/theme/themes/eea/tokens/colors.less +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,46 @@ 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.0-beta.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.5...1.0.0-beta.6) - 10 March 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(site): serve Roboto fonts from eea design system package instead of google fonts #311 from eea/roboto-library [ichim-david - [`f6a1b3e`](https://github.com/eea/volto-eea-design-system/commit/f6a1b3e3864a0bc8602e9c434ff70746bba59f44)]
|
|
12
|
+
|
|
13
|
+
#### :bug: Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix(storybook): add fontDisplay [Giorgos Stamatis - [`078966a`](https://github.com/eea/volto-eea-design-system/commit/078966a6a5c7277d36fcd31bb4c0704bcc43e523)]
|
|
16
|
+
- fix: full-width is now properly sized [Miu Razvan - [`6e2e348`](https://github.com/eea/volto-eea-design-system/commit/6e2e3482d658febbd692112608df14279bed05e7)]
|
|
17
|
+
|
|
18
|
+
#### :nail_care: Enhancements
|
|
19
|
+
|
|
20
|
+
- change(colors:) update the design system colour palette #312 from eea/update-color-palette [ichim-david - [`a5fb694`](https://github.com/eea/volto-eea-design-system/commit/a5fb69465717dbdc0fe8091640a0e46f66199b65)]
|
|
21
|
+
- change(image): copyright position fixes, moved image floating to image-block-container [David Ichim - [`53422e0`](https://github.com/eea/volto-eea-design-system/commit/53422e0ea345a7cb6e8cb07bf9006b48d86ded58)]
|
|
22
|
+
- refactor(storybook): restored site variables [Giorgos Stamatis - [`a48478b`](https://github.com/eea/volto-eea-design-system/commit/a48478bae9bdf1d9275be999e1ec8382f10a2fec)]
|
|
23
|
+
- refactor(docusaurus): added roboto library [Giorgos Stamatis - [`19de7b1`](https://github.com/eea/volto-eea-design-system/commit/19de7b19fe795870102000bfebbf452d88b3a7b1)]
|
|
24
|
+
- refactor(storybook): added roboto library [Giorgos Stamatis - [`e991621`](https://github.com/eea/volto-eea-design-system/commit/e9916215728dda0ff423f8196e7442588058042e)]
|
|
25
|
+
- change(copyright): implemented copyright hover design [David Ichim - [`6b12441`](https://github.com/eea/volto-eea-design-system/commit/6b1244163de7ff58d1529fdd791502c862ee48ec)]
|
|
26
|
+
- refactor(tokens): update colours [Giorgos Stamatis - [`3a2c1e1`](https://github.com/eea/volto-eea-design-system/commit/3a2c1e1da8f0224e08f9f8afac3f0a74f7ce91d3)]
|
|
27
|
+
|
|
28
|
+
#### :house: Internal changes
|
|
29
|
+
|
|
30
|
+
- chore(storybook): switched google fonts to true [Giorgos Stamatis - [`4a8cae4`](https://github.com/eea/volto-eea-design-system/commit/4a8cae46582356cc24ec3cd7ec47e692bc67a6a5)]
|
|
31
|
+
- chore(lint): lint [Giorgos Stamatis - [`9b0f125`](https://github.com/eea/volto-eea-design-system/commit/9b0f1256a8b0a583ac7724a8d88259c615d7e0c7)]
|
|
32
|
+
- chore(storybook): lint [Giorgos Stamatis - [`29bc809`](https://github.com/eea/volto-eea-design-system/commit/29bc809ab2e9fa4207b8b067785e6b17e91db3b4)]
|
|
33
|
+
- chore(colours): changed back yellow 6 [Giorgos Stamatis - [`87c9bbc`](https://github.com/eea/volto-eea-design-system/commit/87c9bbc0ec9a2a0f4bf8eeb03525d43ce6f502be)]
|
|
34
|
+
|
|
35
|
+
#### :house: Documentation changes
|
|
36
|
+
|
|
37
|
+
- docs(colours): accessibility [Dora Anastasiou - [`ee342aa`](https://github.com/eea/volto-eea-design-system/commit/ee342aa6af3863d243222eaa89709be2ba61f988)]
|
|
38
|
+
- docs(colours): colours update [Dora Anastasiou - [`161007e`](https://github.com/eea/volto-eea-design-system/commit/161007e2480aa79517c4ca772364a12a0756f1af)]
|
|
39
|
+
|
|
40
|
+
#### :hammer_and_wrench: Others
|
|
41
|
+
|
|
42
|
+
- test(cypress): Use latest stable Volto for testing [Alin Voinea - [`2051661`](https://github.com/eea/volto-eea-design-system/commit/20516617ae045f48c37a7ac7ad05c3d1090339b3)]
|
|
43
|
+
- Update What's new section [Alin Voinea - [`caa4b5d`](https://github.com/eea/volto-eea-design-system/commit/caa4b5d93affa7b63a332eaed9e73ea161a508cf)]
|
|
44
|
+
- Prepare final release 1.0.0 [Alin Voinea - [`ef4383d`](https://github.com/eea/volto-eea-design-system/commit/ef4383d05b295cbbb377f877522b9f83cd0873ef)]
|
|
45
|
+
- lint fix [David Ichim - [`599f509`](https://github.com/eea/volto-eea-design-system/commit/599f5098904f607bd694dd5d2e642c8820f11b3c)]
|
|
46
|
+
- Back to dev [Alin Voinea - [`80cd3df`](https://github.com/eea/volto-eea-design-system/commit/80cd3df3534e46e52ba246256c3d990a52753bbd)]
|
|
7
47
|
### [1.0.0-beta.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.4...1.0.0-beta.5) - 7 March 2023
|
|
8
48
|
|
|
9
49
|
#### :nail_care: Enhancements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-design-system",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
4
4
|
"description": "@eeacms/volto-eea-design-system: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@eeacms/volto-corsproxy": "*",
|
|
24
|
+
"@fontsource/roboto": "4.5.8",
|
|
24
25
|
"react-countup": "^6.3.0",
|
|
25
26
|
"react-lazy-load-image-component": "1.5.6",
|
|
26
27
|
"react-slick": "^0.28.1",
|
package/templates/eea.hbs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: What's new
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
### EEA Design System (1.0.0
|
|
5
|
+
### EEA Design System (1.0.0)
|
|
6
6
|
|
|
7
7
|
#### Components ready to be used
|
|
8
8
|
|
|
@@ -10,13 +10,12 @@ The following components are ready to be used as Volto `blocks`, `slate` integra
|
|
|
10
10
|
- Accordion `block`
|
|
11
11
|
- Call to Action `block`
|
|
12
12
|
- Callout - part of the Description `block`, `slate`
|
|
13
|
-
- Card - part of the Teaser `block` and Listing `block`, it includes several variations like round card e.g., used for Avatar
|
|
14
|
-
- Content Box `block styler`
|
|
13
|
+
- Card - part of the Teaser `block` and Listing `block`, it includes several variations like round card e.g., used for Avatar
|
|
15
14
|
- Divider `block`
|
|
16
15
|
- Headings `slate`
|
|
17
16
|
- Hero `block`
|
|
18
17
|
- Item `block` - used for text with an icon (remixicon or custom SVG/image) on the left/right
|
|
19
|
-
- List `slate` - ordered and unordered
|
|
18
|
+
- List `slate` - ordered and unordered
|
|
20
19
|
- Quote `block`
|
|
21
20
|
- Statistic `block`
|
|
22
21
|
- Tag `block`
|
|
@@ -24,14 +23,13 @@ The following components are ready to be used as Volto `blocks`, `slate` integra
|
|
|
24
23
|
- Tabs `block`
|
|
25
24
|
- Timeline `block`
|
|
26
25
|
|
|
27
|
-
####
|
|
26
|
+
#### Future releases
|
|
28
27
|
|
|
29
28
|
Below is a non-exhaustive list of the work-in-progress which is planned for future releases:
|
|
30
29
|
- Navigation Portlet (used on the left/right hand of content) is still WIP and should not be used
|
|
31
30
|
- When using the Table `block`, please be aware of enabling the responsive design manually (it should be on by default in later releases)
|
|
32
31
|
- Description list (dt, dd) is still missing from slate editor
|
|
33
32
|
- Slate enhancements, e.g. the inclusion of various font weights and text alignment (left, centered, right)
|
|
34
|
-
- Better theming engine across several components, e.g., a consistent way to apply Primary, Secondary, and Tertiary colors to elements and automatic inversion of font text to white when necessary.
|
|
35
33
|
- Spacing/padding system via the `block styler`. We do have design-tokens; however, these are not exposed to the volto block styler. We want to add the ability for editors to consistently apply various spacing/padding on certain components in order to allow a better alignment when components are used together.
|
|
36
34
|
- Harmonize component naming across docusarurus, storybook, code, and Volto.
|
|
37
35
|
- Improve docusaurus and storybook with more components, controls, and variations in order to better reflect what is possible in Volto.
|
package/theme/theme.config
CHANGED
package/theme/theme.less
CHANGED
|
@@ -48,9 +48,13 @@
|
|
|
48
48
|
Fonts
|
|
49
49
|
-------------------*/
|
|
50
50
|
|
|
51
|
-
.loadFonts()
|
|
52
|
-
@import (css)
|
|
53
|
-
|
|
51
|
+
.loadFonts() {
|
|
52
|
+
@import (css) '~@fontsource/roboto/latin-300.css';
|
|
53
|
+
@import (css) '~@fontsource/roboto/latin-400.css';
|
|
54
|
+
@import (css) '~@fontsource/roboto/latin-500.css';
|
|
55
|
+
@import (css) '~@fontsource/roboto/latin-700.css';
|
|
56
|
+
@import (css) '~@fontsource/roboto/latin-400-italic.css';
|
|
57
|
+
@import (css) '~@fontsource/roboto/latin-700-italic.css';
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
/*------------------
|
|
@@ -120,6 +120,11 @@ body {
|
|
|
120
120
|
margin-left: -50vw !important;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
[class~="view-defaultview"] [id="page-document"] > .full-width,
|
|
124
|
+
[class~="view-viewview"] [id="page-document"] > .full-width {
|
|
125
|
+
max-width: initial !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
123
128
|
.has--size--full:not(.block-editor-columnsBlock) .ui.grid {
|
|
124
129
|
margin-left: 0;
|
|
125
130
|
margin-right: 0;
|
|
@@ -47,3 +47,74 @@
|
|
|
47
47
|
.block .ui.massive.image {
|
|
48
48
|
width: @massiveWidth;
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/*--------------
|
|
53
|
+
Image block float changes
|
|
54
|
+
---------------*/
|
|
55
|
+
|
|
56
|
+
.image-block {
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// remove block.less margin from image, we set margin on block instead
|
|
61
|
+
.block.image.align img {
|
|
62
|
+
margin-bottom: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// remove float from images, set on block instead
|
|
66
|
+
.block.image.align.right,
|
|
67
|
+
.block.image.align.left {
|
|
68
|
+
img {
|
|
69
|
+
max-width: 100% !important;
|
|
70
|
+
float: none !important;
|
|
71
|
+
margin: 0 !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* edit page fixes for float issues */
|
|
76
|
+
#page-edit .image {
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
min-height: @imageMinHeight;
|
|
79
|
+
}
|
|
80
|
+
#page-edit .image.left,
|
|
81
|
+
#page-edit .image.right,
|
|
82
|
+
#page-document > .image.left,
|
|
83
|
+
#page-document > .image.right {
|
|
84
|
+
float: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.image-block-container {
|
|
88
|
+
position: relative;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* if the image is smaller than the content area the copyright
|
|
92
|
+
isn't as big as the image unless the image is inline-block
|
|
93
|
+
*/
|
|
94
|
+
.image-block-container.center {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.image-block-container.right {
|
|
99
|
+
margin-left: @imageBlockContainerLeftMargin;
|
|
100
|
+
float: right;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-block-container.left {
|
|
104
|
+
margin-right: @imageBlockContainerRightMargin;
|
|
105
|
+
float: left;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Set max size on image-block-container, by default it's set to block image */
|
|
109
|
+
.image.align:not(.full, .center) .image-block-container {
|
|
110
|
+
max-width: @imageAlignLargeMaxWidth;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.image.align:not(.full, .center) .image-block-container.medium {
|
|
114
|
+
max-width: @imageAlignMediumMaxWidth;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.image.align:not(.full, .center) .image-block-container.small {
|
|
118
|
+
max-width: @imageAlignSmallMaxWidth;
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
@imageVerticalMargin: 0.5rem;
|
|
14
14
|
@imageBorder: 1px solid rgba(0, 0, 0, 0.1);
|
|
15
15
|
|
|
16
|
+
/* Image block container */
|
|
17
|
+
@imageBlockContainerLeftMargin: @rem-space-4;
|
|
18
|
+
@imageBlockContainerRightMargin: @rem-space-4;
|
|
19
|
+
@imageMinHeight: @rem-space-6;
|
|
20
|
+
@imageAlignLargeMaxWidth: 50%;
|
|
21
|
+
@imageAlignMediumMaxWidth: 25%;
|
|
22
|
+
@imageAlignSmallMaxWidth: 15%;
|
|
23
|
+
|
|
16
24
|
/*-------------------
|
|
17
25
|
Types
|
|
18
26
|
--------------------*/
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
color: @copyrightContentColor;
|
|
16
16
|
font-size: @copyrightContentFontSize;
|
|
17
|
+
min-height: @copyrightMinHeight;
|
|
18
|
+
align-items: @copyrightAlignItems;
|
|
17
19
|
line-height: @copyrightLineHeight;
|
|
18
20
|
gap: @copyrightContentPaddingRight;
|
|
19
21
|
}
|
|
@@ -27,3 +29,23 @@
|
|
|
27
29
|
margin: 0; // override default
|
|
28
30
|
}
|
|
29
31
|
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
.copyright-wrapper {
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: @z-index-8;
|
|
37
|
+
bottom: @copyrightWrapperBottom;
|
|
38
|
+
width: 100%;
|
|
39
|
+
padding-right: @copyrightWrapperPaddingLeft;
|
|
40
|
+
padding-left: @copyrightWrapperPaddingRight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.copyright-hover-container {
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: @z-index-8;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
padding: @copyrightHoverContainerPadding;
|
|
48
|
+
background-color: @copyrightHoverContainerBackgroundColor;
|
|
49
|
+
border-radius: @copyrightHoverContainerBorderRadius;
|
|
50
|
+
color: @copyrightHoverContainerColor;
|
|
51
|
+
}
|
|
@@ -9,3 +9,19 @@
|
|
|
9
9
|
@copyrightContentFontSize: @font-size-00;
|
|
10
10
|
@copyrightLineHeight: @font-lineheight-0;
|
|
11
11
|
@copyrightContentPaddingRight: @rem-space-1;
|
|
12
|
+
@copyrightWrapperPaddingLeft: @rem-space-3;
|
|
13
|
+
@copyrightWrapperPaddingRight: @rem-space-3;
|
|
14
|
+
@copyrightWrapperBottom: @rem-space-4;
|
|
15
|
+
@copyrightMinHeight: @rem-space-8;
|
|
16
|
+
@copyrightAlignItems: center;
|
|
17
|
+
|
|
18
|
+
/* Image block */
|
|
19
|
+
@floatImageLeftMaxWidth: 50%;
|
|
20
|
+
@floatImageRightMaxWidth: 50%;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@copyrightHoverContainerPadding: @rem-space-1 @rem-space-2;
|
|
25
|
+
@copyrightHoverContainerBackgroundColor: @tertiaryColor;
|
|
26
|
+
@copyrightHoverContainerBorderRadius: @rem-space-1;
|
|
27
|
+
@copyrightHoverContainerColor: @grey-1;
|
|
@@ -75,6 +75,12 @@ h2, h3, h4, h5, h6 {
|
|
|
75
75
|
margin-bottom: @rem-space-4;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// clear any floats if we add a columns block as a floated image
|
|
79
|
+
// can modify the width of the column block children
|
|
80
|
+
.styled-columnsBlock {
|
|
81
|
+
clear: both;
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
// text smaller than body has extra letterspacing as described in docusaurus
|
|
79
85
|
.tiny,
|
|
80
86
|
.caption,
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
@red-6: #5C1918;
|
|
24
24
|
|
|
25
25
|
@green-0: #C8FFF8;
|
|
26
|
-
@green-1: #
|
|
27
|
-
@green-2: #
|
|
28
|
-
@green-3: #
|
|
29
|
-
@green-4: #
|
|
26
|
+
@green-1: #A0E5DC;
|
|
27
|
+
@green-2: #78CAC0;
|
|
28
|
+
@green-3: #50B0A4;
|
|
29
|
+
@green-4: #289588;
|
|
30
30
|
@green-5: #007B6C;
|
|
31
31
|
@green-6: #005248;
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@yellow-3: #FAC50D;
|
|
37
37
|
@yellow-4: #FDAF20;
|
|
38
38
|
@yellow-5: #FF9933;
|
|
39
|
-
@yellow-6: #
|
|
39
|
+
@yellow-6: #C35527;
|
|
40
40
|
|
|
41
41
|
@blue-0: #A0D7FF;
|
|
42
42
|
@blue-1: #47B3FF;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
@blue-grey-0: #DAE8F4;
|
|
50
50
|
@blue-grey-1: #ACCAE5;
|
|
51
|
-
@blue-grey-2: #
|
|
51
|
+
@blue-grey-2: #87A7C3;
|
|
52
52
|
@blue-grey-3: #6989A5;
|
|
53
53
|
@blue-grey-4: #4C677F;
|
|
54
54
|
@blue-grey-5: #3D5265;
|