@eeacms/volto-eea-design-system 0.4.3 → 0.5.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/package.json +1 -1
  3. package/src/semantic.less +4 -4
  4. package/src/ui/Divider/Divider.stories.jsx +170 -0
  5. package/src/ui/Footer/Contact.jsx +6 -4
  6. package/src/ui/Footer/FooterHeader.jsx +2 -2
  7. package/src/ui/Footer/FooterSites.jsx +1 -1
  8. package/src/ui/Footer/Social.jsx +2 -2
  9. package/src/ui/Footer/SubFooter.jsx +54 -0
  10. package/src/ui/Header/Header.jsx +64 -34
  11. package/src/ui/Header/HeaderMenuPopUp.js +215 -54
  12. package/src/ui/Header/HeaderSearchPopUp.js +4 -4
  13. package/src/ui/Hero/Hero.jsx +55 -0
  14. package/src/ui/Hero/Hero.stories.jsx +205 -0
  15. package/src/ui/Logo/Logo.jsx +2 -3
  16. package/src/ui/Quote/Testimonial/Testimonial.jsx +3 -4
  17. package/src/ui/index.js +2 -0
  18. package/storybook-static/favicon.ico +0 -0
  19. package/theme/theme.config +0 -1
  20. package/theme/themes/eea/assets/images/forest.png +0 -0
  21. package/theme/themes/eea/assets/logo/EionetFull.svg +10 -0
  22. package/theme/themes/eea/assets/logo/climate-health.svg +53 -0
  23. package/theme/themes/eea/assets/logo/eea.svg +9 -0
  24. package/theme/themes/eea/assets/logo/eionet.svg +10 -0
  25. package/theme/themes/eea/assets/logo/fise.svg +37 -36
  26. package/theme/themes/eea/collections/menu.overrides +5 -5
  27. package/theme/themes/eea/definitions/views/item.less +13 -6
  28. package/theme/themes/eea/elements/container.overrides +1 -2
  29. package/theme/themes/eea/elements/divider.overrides +63 -0
  30. package/theme/themes/eea/elements/divider.variables +10 -1
  31. package/theme/themes/eea/elements/image.overrides +39 -0
  32. package/theme/themes/eea/elements/input.overrides +21 -8
  33. package/theme/themes/eea/extras/footer.less +188 -225
  34. package/theme/themes/eea/extras/footer.variables +49 -77
  35. package/theme/themes/eea/extras/header.less +473 -511
  36. package/theme/themes/eea/extras/header.variables +108 -80
  37. package/theme/themes/eea/extras/hero.less +59 -0
  38. package/theme/themes/eea/extras/hero.variables +23 -0
  39. package/theme/themes/eea/globals/site.overrides +5 -16
  40. package/theme/themes/eea/globals/site.variables +8 -0
  41. package/theme/themes/eea/globals/utilities.less +2 -2
  42. package/theme/themes/eea/modules/accordion.overrides +18 -0
  43. package/theme/themes/eea/modules/tab.overrides +2 -2
  44. package/theme/themes/eea/tokens/fonts.less +4 -3
  45. package/theme/themes/eea/views/card.overrides +7 -5
  46. package/theme/themes/eea/views/item.overrides +18 -3
  47. package/src/ui/Divider/Divider.jsx +0 -7
  48. package/theme/themes/eea/extras/divider.less +0 -14
  49. package/theme/themes/eea/extras/divider.variables +0 -9
@@ -20,179 +20,153 @@ footer {
20
20
  background-image: @wrapperBackgroundImage;
21
21
  background-position: @wrapperBackgroundPosition;
22
22
  background-size: @mobileWrapperBackgroundSize;
23
+ }
24
+ }
23
25
 
24
- .theme-sites {
25
- padding: @mobileThemeSitesPadding;
26
+ footer .theme-sites {
27
+ padding: @mobileThemeSitesPadding;
26
28
 
27
- .header {
28
- font-weight: @headerFontWeight;
29
- font-size: @mobileHeaderFontSize;
30
- margin-bottom: @mobileHeaderMarginBottom;
31
- text-align: center;
32
- }
29
+ .header {
30
+ font-weight: @footerTitleFontWeight;
31
+ }
33
32
 
34
- .logos .logo {
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- }
33
+ .logos .ui.grid {
34
+ align-items: center;
35
+ }
36
+
37
+ .logos .logo {
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+
42
+ img {
43
+ margin: auto;
39
44
  }
40
- .subfooter {
41
- .item {
42
- margin-top: @mobileItemMarginTop;
43
-
44
- .site.logo {
45
- .description {
46
- margin: @mobileDescriptionMargin;
47
- font-size: @mobileDescriptionFontSize;
48
- line-height: @mobileDescriptionLineHeight;
49
- }
50
- }
51
-
52
- .eionet.logo {
53
- display: flex;
54
- align-items: center;
55
- margin-top: @mobileEionetMarginTop;
56
-
57
- img {
58
- width: @mobileEionetLogoWidth;
59
- margin-left: @mobileEionetLogoMarginLeft;
60
- margin-right: @mobileEionetLogoMarginRight;
61
- }
62
-
63
- .description {
64
- padding-top: @mobileEionetDescriptionPaddingTop;
65
- font-size: @mobileEionetDescriptionFontSize;
66
- line-height: @mobileEionetDescriptionLineHeight;
67
- font-weight: @eionetDescriptionFontWeight;
68
- }
69
- }
70
-
71
- .header {
72
- margin-bottom: @mobileItemHeaderMarginBottom;
73
- font-size: @mobileItemHeaderFontSize;
74
- font-weight: @itemHeaderFontWeight;
75
- }
76
-
77
- .contact {
78
- display: flex;
79
- align-items: center;
80
- margin: @mobileContactMargin;
81
- font-size: @mobileContactFontSize;
82
-
83
- a {
84
- color: @menuLinkColor;
85
- }
86
- }
87
- .address {
88
- font-size: @mobileAdressFontSize;
89
- }
90
-
91
- .social a {
92
- color: @socialIconColor;
93
-
94
- &:active,
95
- &:hover {
96
- color: @socialIconColor;
97
- }
98
-
99
- i.icon {
100
- font-size: @mobileSocialIconSize;
101
- }
102
- }
103
- }
104
- .menu {
105
- display: flex;
106
- align-items: center;
107
- justify-content: space-around;
108
- margin: @mobileMenuMargin;
109
-
110
- a {
111
- color: @menuLinkColor;
112
- font-weight: @menuFontWeight;
113
- font-size: @mobileMenuFontSize;
114
- cursor: pointer;
115
-
116
- &:hover,
117
- &:active {
118
- color: @menuLinkColor;
119
- }
120
- }
121
- }
45
+ }
46
+ }
47
+
48
+ .subfooter .item .ui.grid {
49
+ align-items: center;
50
+ }
51
+
52
+ .subfooter .item {
53
+ margin-top: @mobileItemMarginTop;
54
+
55
+ .header {
56
+ margin-bottom: @mobileItemHeaderMarginBottom;
57
+ font-size: @mobileFooterTitleFontSize;
58
+ font-weight: @footerTitleFontWeight;
59
+ text-align: center;
60
+ }
61
+ }
62
+
63
+ .subfooter .contact-block {
64
+ margin-inline: @mobileContactBlockMarginInline;
65
+ margin-bottom: @tabletContactBlockMarginbottom;
66
+ }
67
+
68
+ .subfooter .contact {
69
+ display: flex;
70
+ align-items: center;
71
+ margin: @mobileContactMargin;
72
+ font-size: @mobileContactFontSize;
73
+
74
+ a {
75
+ color: @menuLinkColor;
76
+ }
77
+
78
+ i.big.icon {
79
+ margin-right: @mobileContactIconMarginRight;
80
+ font-size: @mobileContactIconFontSize;
81
+ }
82
+ }
83
+
84
+ .subfooter .address {
85
+ font-size: @addressFontSize;
86
+ }
87
+
88
+ .subfooter .social {
89
+ display: flex;
90
+ justify-content: @mobileSocialJustifyContent;
91
+
92
+ a {
93
+ color: @socialIconColor;
94
+
95
+ &:active,
96
+ &:hover {
97
+ color: @socialIconColor;
98
+ }
99
+
100
+ i.icon {
101
+ font-size: @mobileSocialIconSize;
102
+ }
103
+ }
104
+ }
105
+
106
+ .subfooter .menu {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: space-between;
110
+ width: @mobileMenuWidth;
111
+ margin: @mobileMenuMargin;
112
+
113
+ a {
114
+ color: @menuLinkColor;
115
+ font-weight: @menuFontWeight;
116
+ font-size: @mobileMenuFontSize;
117
+ cursor: pointer;
118
+
119
+ &:hover,
120
+ &:active {
121
+ color: @menuLinkColor;
122
122
  }
123
123
  }
124
124
  }
125
125
 
126
126
  @media only screen and (min-width: @tabletBreakpoint) {
127
- footer {
128
- .wrapper {
129
- .theme-sites {
130
- .header {
131
- font-size: @tabletHeaderFontSize;
132
- margin-bottom: @tabletHeaderMarginBottom;
133
- }
134
- }
135
- .subfooter {
136
- .item {
137
- margin-top: @tabletItemMarginTop;
138
-
139
- .site.logo {
140
- img {
141
- width: @tabletSiteLogoWidth;
142
- display: @tabletSiteLogoDisplay;
143
- }
144
- .description {
145
- font-size: @tabletDescriptionFontSize;
146
- line-height: @tabletDescriptionLineHeight;
147
- }
148
- }
149
-
150
- .eionet.logo {
151
- img {
152
- width: @tabletEionetLogoWidth;
153
- margin-left: @tabletEionetLogoMarginLeft;
154
- }
155
-
156
- .description {
157
- padding-top: @tabletEionetDescriptionPaddingTop;
158
- font-size: @tabetEionetDescriptionFontSize;
159
- line-height: @tabletEionetDescriptionLineHeight;
160
- }
161
- }
162
-
163
- .header {
164
- margin-bottom: @tabletItemHeaderMarginBottom;
165
- font-size: @tabletItemHeaderFontSize;
166
- }
167
-
168
- .contact {
169
- font-size: @tabletContactFontSize;
170
- margin: @tabletContactMargin;
171
-
172
- i.big.icon {
173
- margin-right: @tabletContactIconMarginRight;
174
- font-size: @tabletContactIconFontSize;
175
- }
176
- }
177
-
178
- .address {
179
- font-size: @tabletAddressFontSize;
180
- }
181
-
182
- .social a i.icon {
183
- font-size: @tabletSocialIconSize;
184
- }
185
- }
186
- .menu {
187
- width: @tabletMenuWidth;
188
- margin: @tabletMenuMargin;
189
-
190
- a {
191
- font-size: @tabletMenuFontSize;
192
- }
193
- }
127
+ footer .theme-sites {
128
+ .header {
129
+ font-size: @tabletFooterTitleFontSize;
130
+ }
131
+ }
132
+
133
+ .subfooter .item {
134
+ margin-top: @tabletItemMarginTop;
135
+
136
+ .site.logo {
137
+ img {
138
+ width: @tabletSiteLogoWidth;
139
+ display: @tabletSiteLogoDisplay;
194
140
  }
195
141
  }
142
+
143
+ .header {
144
+ font-size: @tabletFooterTitleFontSize;
145
+ text-align: left;
146
+ }
147
+
148
+ .social a i.icon {
149
+ font-size: @tabletSocialIconSize;
150
+ }
151
+ }
152
+
153
+ .eionet.logo img {
154
+ margin-left: @tabletEionetLogoMarginLeft;
155
+ width: @tabletEionetLogoWidth;
156
+ }
157
+
158
+ .subfooter .contact-block {
159
+ margin-inline: @tabletContactBlockMarginInline;
160
+ }
161
+
162
+ .subfooter .social {
163
+ justify-content: @tabletSocialJustifyContent;
164
+ gap: @tabletSocialGap;
165
+ }
166
+
167
+ .subfooter .menu {
168
+ width: @tabletMenuWidth;
169
+ margin: @tabletMenuMargin;
196
170
  }
197
171
  }
198
172
 
@@ -201,71 +175,60 @@ footer {
201
175
  .wrapper {
202
176
  padding: @computerWrapperPadding;
203
177
  background-size: @computerWrapperBackgroundSize;
178
+ }
179
+ }
204
180
 
205
- .theme-sites {
206
- padding: @computerThemeSitesPadding;
181
+ footer .theme-sites {
182
+ padding: @computerThemeSitesPadding;
207
183
 
208
- .header {
209
- font-size: @computerHeaderFontSize;
210
- margin-bottom: @computerHeaderMarginBottom;
211
- }
212
- }
213
- .subfooter {
214
- .item {
215
- margin-top: @computerItemMarginTop;
216
-
217
- .site.logo {
218
- img {
219
- width: @computerSiteLogoWidth;
220
- }
221
- .description {
222
- margin: @computerDescriptionMargin;
223
- }
224
- }
225
-
226
- .eionet.logo {
227
- margin-top: @computerEionetMarginTop;
228
-
229
- img {
230
- width: @computerEionetLogoWidth;
231
- margin-left: @computerEionetLogoMarginLeft;
232
- margin-right: @computerEionetLogoMarginRight;
233
- }
234
-
235
- .description {
236
- font-size: @computerEionetDescriptionFontSize;
237
- line-height: @computerEionetDescriptionLineHeight;
238
- }
239
- }
240
-
241
- .header {
242
- margin-bottom: @computerItemHeaderMarginBottom;
243
- font-size: @computerItemHeaderFontSize;
244
- }
245
-
246
- .contact {
247
- font-size: @computerContactFontSize;
248
- margin: @computerContactMargin;
249
-
250
- i.big.icon {
251
- font-size: @computerContactIconFontSize;
252
- }
253
- }
254
-
255
- .social a i.icon {
256
- font-size: @computerSocialIconSize;
257
- }
258
- }
259
- .menu {
260
- justify-content: flex-end;
261
- width: 100%;
262
-
263
- a {
264
- padding-left: 3rem;
265
- font-size: @computerMenuFontSize;
266
- }
267
- }
184
+ .header {
185
+ font-size: @computerFooterTitleFontSize;
186
+ }
187
+ }
188
+
189
+ .subfooter .logo-header {
190
+ // To match the figma align
191
+ margin-left: @computerLogoHeaderMarginLeft
192
+ }
193
+
194
+ .subfooter .item {
195
+ margin-top: @computerItemMarginTop;
196
+
197
+ .site.logo {
198
+ img {
199
+ width: @computerSiteLogoWidth;
268
200
  }
269
201
  }
202
+
203
+ .header {
204
+ margin-bottom: @computerItemHeaderMarginBottom;
205
+ font-size: @computerFooterTitleFontSize;
206
+ }
207
+
208
+ .social a i.icon {
209
+ font-size: @computerSocialIconSize;
210
+ }
270
211
  }
271
- }
212
+
213
+ .subfooter .contact {
214
+ font-size: @computerContactFontSize;
215
+ margin: @computerContactMargin;
216
+
217
+ i.big.icon {
218
+ font-size: @computerContactIconFontSize;
219
+ }
220
+ }
221
+
222
+ .eionet.logo img {
223
+ width: @computerEionetLogoWidth;
224
+ margin-left: 0;
225
+ }
226
+
227
+ .subfooter .menu {
228
+ width: @computerMenuWidth;
229
+
230
+ a {
231
+ font-size: @computerMenuFontSize;
232
+ }
233
+ }
234
+ }
@@ -2,7 +2,13 @@
2
2
  Footer
3
3
  *******************************/
4
4
 
5
- @footerBackgroundGrandient : linear-gradient(220.4deg, #009591 8.29%, #2E3E4C 56.3%, #212D38 89.06%);
5
+ @footerBackgroundGrandient: linear-gradient(220.4deg, #009591 8.29%, #2E3E4C 56.3%, #212D38 89.06%);
6
+
7
+ /* Titles */
8
+ @footerTitleFontWeight : @font-weight-7;
9
+ @mobileFooterTitleFontSize : @font-size-3;
10
+ @tabletFooterTitleFontSize : @font-size-4;
11
+ @computerFooterTitleFontSize: @font-size-6;
6
12
 
7
13
  /* Wrapper */
8
14
  @wrapperBackgroundImage : url(../assets/images/Footer/Extras/footervisual.svg);
@@ -10,100 +16,66 @@
10
16
  @mobileWrapperBackgroundSize : cover;
11
17
  @computerWrapperBackgroundSize : 100% 100%;
12
18
  @wrapperWidth : 100%;
13
- @mobileWrapperPadding : 3rem 0 1rem;
14
- @computerWrapperPadding : 5rem 0 3rem;
19
+ @mobileWrapperPadding : @space-9 0 @space-6;
20
+ @tabletWrapperPadding : @space-13 0 @space-8;
21
+ @computerWrapperPadding : @space-20 0 @space-18;
15
22
 
16
23
  /* Theme Sites */
17
- @mobileThemeSitesPadding : 0;
18
- @computerThemeSitesPadding : 0rem 0 2rem;
19
-
20
- /* Theme Sites Header */
21
- @headerFontWeight : @bold;
22
- @mobileHeaderMarginBottom : 1.25rem;
23
- @tabletHeaderMarginBottom : 2.5rem;
24
- @computerHeaderMarginBottom : 3.75rem;
25
- @mobileHeaderFontSize : 0.688rem;
26
- @tabletHeaderFontSize : 1.25rem;
27
- @computerHeaderFontSize : 2.25rem;
24
+ @mobileThemeSitesPadding : @space-2 0 @space-8;
25
+ @computerThemeSitesPadding : @space-4 0 @space-8;
28
26
 
29
27
  /* Subfooter with logo and contact info */
30
- @mobileItemMarginTop : 1rem;
31
- @tabletItemMarginTop : 2rem;
32
- @computerItemMarginTop : 4rem;
28
+ @mobileItemMarginTop : @space-4;
29
+ @tabletItemMarginTop : @space-8;
30
+ @computerItemMarginTop : @space-18;
33
31
 
34
32
  /* Subfooter Item Header */
35
- @itemHeaderFontWeight : @bold;
36
- @mobileItemHeaderMarginBottom : 0.625rem;
37
- @mobileItemHeaderFontSize : 0.688rem;
38
- @tabletItemHeaderMarginBottom : 0.938rem;
39
- @tabletItemHeaderFontSize : 1.375rem;
40
- @computerItemHeaderMarginBottom : 1.563rem;
41
- @computerItemHeaderFontSize : 2.25rem;
33
+ @mobileItemHeaderMarginBottom : @space-5;
34
+ @computerItemHeaderMarginBottom : @space-12;
35
+ @computerLogoHeaderMarginLeft : -50px;
42
36
 
43
37
  /* Site Logo */
44
- @tabletSiteLogoWidth : 192px;
45
- @computerSiteLogoWidth : 283px;
38
+ @tabletSiteLogoWidth : 200px;
39
+ @computerSiteLogoWidth : 250px;
46
40
  @tabletSiteLogoDisplay : inline-block;
47
41
 
48
- /* Site Logo Description */
49
- @mobileDescriptionMargin : 5px 0 0 10px;
50
- @computerDescriptionMargin : 5px 0 0 25px;
51
- @mobileDescriptionFontSize : 0.5rem;
52
- @tabletDescriptionFontSize : 1rem;
53
- @mobileDescriptionLineHeight : 0.563rem;
54
- @tabletDescriptionLineHeight : 1.188rem;
55
-
56
42
  /* EIONET Logo */
57
- @mobileEionetMarginTop: .5rem;
58
- @computerEionetMarginTop: 2rem;
59
-
60
- @mobileEionetLogoWidth : 37px;
61
- @tabletEionetLogoWidth : 65px;
62
- @computerEionetLogoWidth : 80px;
63
- @mobileEionetLogoMarginLeft : 0.75rem;
64
- @tabletEionetLogoMarginLeft : 0.625rem;
65
- @computerEionetLogoMarginLeft : 1.563rem;
66
- @mobileEionetLogoMarginRight : 0.5rem;
67
- @computerEionetLogoMarginRight : 1.25rem;
68
-
69
- /* eIONET Logo Description */
70
- @eionetDescriptionFontWeight : @bold;
71
- @mobileEionetDescriptionPaddingTop : 0.125rem;
72
- @tabletEionetDescriptionPaddingTop : 0.313rem;
73
- @mobileEionetDescriptionFontSize : 0.5rem;
74
- @tabetEionetDescriptionFontSize : 1rem;
75
- @computerEionetDescriptionFontSize : 1.063rem;
76
- @mobileEionetDescriptionLineHeight : 0.625rem;
77
- @tabletEionetDescriptionLineHeight : 1.5rem;
78
- @computerEionetDescriptionLineHeight : 1.8rem;
43
+ @tabletEionetLogoWidth : 225px;
44
+ @computerEionetLogoWidth : 260px;
45
+ @tabletEionetLogoMarginLeft : @space-3;
79
46
 
80
47
  /* Contact Info */
81
- @mobileContactMargin : 0.3rem 0;
82
- @tabletContactMargin : 0.6rem 0;
83
- @computerContactMargin : 1rem 0;
84
- @mobileContactFontSize : 0.563rem;
85
- @tabletContactFontSize : 0.875rem;
86
- @computerContactFontSize : 1rem;
87
- @tabletContactIconMarginRight : 0.938rem;
88
- @tabletContactIconFontSize : 1.375rem;
89
- @computerContactIconFontSize : 1.563rem;
48
+ @mobileContactBlockMarginInline : 10%;
49
+ @tabletContactBlockMarginInline : 0;
50
+ @tabletContactBlockMarginbottom : @space-4;
51
+ @mobileContactMargin : @space-4 0;
52
+ @computerContactMargin : @space-5 0;
53
+ @mobileContactFontSize : @font-size-1;
54
+ @computerContactFontSize : @font-size-2;
55
+ @mobileContactIconMarginRight : @space-3;
56
+ @mobileContactIconFontSize : @font-size-4;
57
+ @computerContactIconFontSize : @font-size-5;
90
58
 
91
59
  /* Address */
92
- @mobileAdressFontSize : 0.5rem;
93
- @tabletAddressFontSize : 0.875rem;
60
+ @addressFontSize : @font-size-0;
94
61
 
95
62
  /* Social Icons */
96
63
  @socialIconColor : @white;
97
- @mobileSocialIconSize : 0.9rem;
98
- @tabletSocialIconSize : 1.8rem;
99
- @computerSocialIconSize : 2rem;
64
+ @mobileSocialJustifyContent : space-around;
65
+ @tabletSocialJustifyContent : start;
66
+ @tabletSocialGap : @space-1;
67
+ @mobileSocialIconSize : @font-size-5;
68
+ @tabletSocialIconSize : @font-size-4;
69
+ @computerSocialIconSize : @font-size-5;
100
70
 
101
71
  /* Footer Menu */
102
- @mobileMenuMargin : 1rem auto 0;
103
- @tabletMenuMargin : 2rem auto 0;
104
- @tabletMenuWidth : 500px;
72
+ @mobileMenuMargin : @space-8 auto 0;
73
+ @tabletMenuMargin : @space-13 auto 0;
74
+ @computerMenuMargin : @space-20 auto 0;
75
+ @mobileMenuWidth : 100%;
76
+ @tabletMenuWidth : 350px;
77
+ @computerMenuWidth : 500px;
105
78
  @menuLinkColor : @white;
106
- @menuFontWeight : 100;
107
- @mobileMenuFontSize : 0.438rem;
108
- @tabletMenuFontSize : 0.688rem;
109
- @computerMenuFontSize : 1rem;
79
+ @menuFontWeight : @font-weight-3;
80
+ @mobileMenuFontSize : @font-size-0;
81
+ @computerMenuFontSize : @font-size-1;