@eeacms/volto-eea-design-system 0.4.5 → 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.
- package/CHANGELOG.md +73 -0
- package/package.json +1 -1
- package/src/semantic.less +4 -0
- package/src/ui/Header/Header.jsx +64 -34
- package/src/ui/Header/HeaderMenuPopUp.js +215 -54
- package/src/ui/Header/HeaderSearchPopUp.js +4 -4
- package/src/ui/Hero/Hero.jsx +55 -0
- package/src/ui/Hero/Hero.stories.jsx +205 -0
- package/src/ui/Logo/Logo.jsx +2 -3
- package/src/ui/index.js +2 -0
- package/theme/themes/eea/assets/images/forest.png +0 -0
- package/theme/themes/eea/definitions/views/item.less +13 -6
- package/theme/themes/eea/elements/container.overrides +1 -2
- package/theme/themes/eea/elements/image.overrides +39 -0
- package/theme/themes/eea/elements/input.overrides +21 -8
- package/theme/themes/eea/extras/header.less +473 -511
- package/theme/themes/eea/extras/header.variables +108 -80
- package/theme/themes/eea/extras/hero.less +59 -0
- package/theme/themes/eea/extras/hero.variables +23 -0
- package/theme/themes/eea/globals/site.overrides +5 -16
- package/theme/themes/eea/globals/site.variables +8 -0
- package/theme/themes/eea/globals/utilities.less +2 -2
- package/theme/themes/eea/views/item.overrides +18 -3
|
@@ -7,239 +7,294 @@
|
|
|
7
7
|
Header
|
|
8
8
|
*******************************/
|
|
9
9
|
|
|
10
|
+
.sticky {
|
|
11
|
+
position: sticky;
|
|
12
|
+
top: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
.eea.header {
|
|
11
|
-
|
|
16
|
+
/* So child can have position sticky */
|
|
17
|
+
display: initial;
|
|
18
|
+
}
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
20
|
+
/*----------------------------------------------------------------------------
|
|
21
|
+
HEADER TOP BAR
|
|
22
|
+
----------------------------------------------------------------------------*/
|
|
23
|
+
|
|
24
|
+
.top.bar {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
height: @mobileTopSectionHeight;
|
|
28
|
+
background: @topSectionBackground;
|
|
29
|
+
|
|
30
|
+
.ui.container {
|
|
15
31
|
display: flex;
|
|
16
32
|
align-items: center;
|
|
17
|
-
|
|
18
|
-
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
z-index: @topSectionZindex;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
19
37
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.item {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
color: @topSectionItemColor;
|
|
30
|
-
font-weight: @topSectionItemFontWeight;
|
|
31
|
-
font-size: @mobileTopSectionItemFontSize;
|
|
32
|
-
}
|
|
33
|
-
.ui.dropdown {
|
|
34
|
-
border: none !important;
|
|
35
|
-
height: auto !important;
|
|
36
|
-
border-radius: @defaultBorderRadius;
|
|
37
|
-
color: @topSectionItemColor;
|
|
38
|
+
.top.bar .item {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
color: @topSectionItemColor;
|
|
42
|
+
font-size: @mobileTopSectionItemFontSize;
|
|
43
|
+
}
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
.top.bar .ui.dropdown {
|
|
46
|
+
border: none !important;
|
|
47
|
+
height: auto !important;
|
|
48
|
+
border-radius: @defaultBorderRadius;
|
|
49
|
+
color: @topSectionItemColor;
|
|
50
|
+
}
|
|
41
51
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
.top.bar .divider.text {
|
|
53
|
+
color: @dropdownColor;
|
|
54
|
+
font-size: @dropdownFontSize;
|
|
55
|
+
font-weight: @dropdownFontWeight;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.top.bar .ui.dropdown .menu {
|
|
59
|
+
margin-top: @mobileDropdownMenuMarginTop;
|
|
60
|
+
left: @dropdownMenuLeft;
|
|
61
|
+
right: @dropdownMenuRight;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.top.bar .ui.dropdown .menu,
|
|
65
|
+
.top.bar .ui.dropdown .menu .item {
|
|
66
|
+
font-size: @mobileDropdownMenuFontSize;
|
|
67
|
+
color: @dropdownColor;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.top.bar .ui.dropdown .menu .item {
|
|
71
|
+
padding: @dropdownMenuItemPadding;
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background: @dropdownMenuItemBackgroundColorHover;
|
|
75
|
+
color: @dropdownMenuItemColorHover;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.top.bar .ui.dropdown .wrapper {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: @dropdownMenuWrapperGap;
|
|
84
|
+
white-space: @dropdownMenuContentWhiteSpace;
|
|
85
|
+
margin: @dropdownMenuWrapperMargin;
|
|
86
|
+
|
|
87
|
+
&.language-list {
|
|
88
|
+
padding-inline-start: @dropdownMenuLanguageWrapperPaddingInlineStart;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.top.bar .ui.dropdown i.chevron.down.icon {
|
|
93
|
+
position: absolute;
|
|
94
|
+
font-size: 1.1rem;
|
|
95
|
+
top: -@rem-space-1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Official union dropdown */
|
|
99
|
+
.top.bar .official-union {
|
|
100
|
+
display: flex;
|
|
101
|
+
gap: @mobileOfficialUnionGap;
|
|
102
|
+
|
|
103
|
+
img {
|
|
104
|
+
width: @mobileOfficialUnionImageWidth;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ui.dropdown {
|
|
108
|
+
.menu {
|
|
109
|
+
padding: @officialUnionPadding;
|
|
110
|
+
left: @mobileOfficialUnionMenuLeft;
|
|
111
|
+
|
|
112
|
+
.content {
|
|
113
|
+
max-width: @mobileOfficialUnionMaxWidth;
|
|
114
|
+
|
|
115
|
+
p {
|
|
51
116
|
white-space: @dropdownMenuContentWhiteSpace;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
color: @dropdownMenuItemColorHover;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
117
|
+
}
|
|
118
|
+
a {
|
|
119
|
+
font-weight: @officialUnionLinkFontWeight;
|
|
120
|
+
white-space: @dropdownMenuContentWhiteSpace;
|
|
121
|
+
color: @officialUnionLinkColor;
|
|
61
122
|
}
|
|
62
123
|
}
|
|
63
124
|
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
64
127
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
gap: @officialUnionGap;
|
|
128
|
+
/* Theme sites dropdown */
|
|
129
|
+
#theme-sites.ui.dropdown .menu {
|
|
130
|
+
left: @themeSitesMenuLeft;
|
|
69
131
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
132
|
+
.wrapper {
|
|
133
|
+
width: @mobileThemeSitesMenuWidth;
|
|
73
134
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
padding: @mobileOfficialUnionPadding;
|
|
79
|
-
|
|
80
|
-
.content {
|
|
81
|
-
max-width: @mobileOfficialUnionMaxWidth;
|
|
82
|
-
|
|
83
|
-
p {
|
|
84
|
-
font-size: @mobileDropdownMenuContentFontSize;
|
|
85
|
-
font-weight: @officialUnionTextFontWeight;
|
|
86
|
-
white-space: @dropdownMenuContentWhiteSpace;
|
|
87
|
-
}
|
|
88
|
-
a {
|
|
89
|
-
font-size: @mobileDropdownMenuContentFontSize;
|
|
90
|
-
font-weight: @officialUnionLinkFontWeight;
|
|
91
|
-
white-space: @dropdownMenuContentWhiteSpace;
|
|
92
|
-
color: @officialUnionLinkColor;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
i.icon,
|
|
96
|
-
i.icons {
|
|
97
|
-
font-size: @mobileTopSectionItemFontSize;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
135
|
+
.item {
|
|
136
|
+
&:hover {
|
|
137
|
+
a.site {
|
|
138
|
+
color: @white;
|
|
100
139
|
}
|
|
101
140
|
}
|
|
141
|
+
|
|
142
|
+
a.site {
|
|
143
|
+
color: @themeSitesMenuSiteLinkColor;
|
|
144
|
+
font-weight: @themeSitesMenuSiteLinkFontWeight;
|
|
145
|
+
}
|
|
102
146
|
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
103
149
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
150
|
+
/* Language dropdown */
|
|
151
|
+
#language-switcher {
|
|
152
|
+
img {
|
|
153
|
+
width: @mobileOfficialUnionImageWidth;
|
|
154
|
+
}
|
|
155
|
+
.menu {
|
|
156
|
+
.wrapper {
|
|
157
|
+
.item {
|
|
158
|
+
justify-content: flex-end;
|
|
159
|
+
font-weight: @languageMenuItemFontWeight;
|
|
108
160
|
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
&:hover {
|
|
113
|
-
a.site {
|
|
114
|
-
color: @white;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
a.site {
|
|
119
|
-
color: @themeSitesMenuSiteLinkColor;
|
|
120
|
-
font-weight: @themeSitesMenuSiteLinkFontWeight;
|
|
121
|
-
}
|
|
161
|
+
span.country-code {
|
|
162
|
+
margin-left: @mobileLanguageCountryCodeMarginLeft;
|
|
163
|
+
font-weight: @mobileLanguageCountryCodeFontWeight;
|
|
122
164
|
}
|
|
123
165
|
}
|
|
124
166
|
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/*----------------------------------------------------------------------------
|
|
171
|
+
HEADER MAIN BAR
|
|
172
|
+
----------------------------------------------------------------------------*/
|
|
173
|
+
|
|
174
|
+
.main.bar.transparency:before {
|
|
175
|
+
background-color: @headerMainSectionTransparency;
|
|
176
|
+
display: block;
|
|
177
|
+
content: " ";
|
|
178
|
+
z-index: 0;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
position: absolute;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.main.bar {
|
|
185
|
+
scrollbar-gutter: stable;
|
|
186
|
+
background: @headerMainSectionBackground;
|
|
187
|
+
|
|
188
|
+
.ui.container {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: space-between;
|
|
192
|
+
height: @mobileMainSectionHeight;
|
|
125
193
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
194
|
+
.ui.grid {
|
|
195
|
+
/* All margins and paddings removed for main header */
|
|
196
|
+
width: 100%;
|
|
197
|
+
margin: 0;
|
|
129
198
|
|
|
130
|
-
|
|
131
|
-
|
|
199
|
+
div:first-child {
|
|
200
|
+
padding-left: 0;
|
|
132
201
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.wrapper {
|
|
138
|
-
.item {
|
|
139
|
-
justify-content: flex-end;
|
|
140
|
-
padding: @languageMenuPadding;
|
|
141
|
-
font-weight: @languageMenuItemFontWeight;
|
|
142
|
-
font-size: @mobileLanguageFontSize;
|
|
143
|
-
|
|
144
|
-
span.country-code {
|
|
145
|
-
margin-left: @mobileLanguageCountryCodeMarginLeft;
|
|
146
|
-
font-weight: @mobileLanguageCountryCodeFontWeight;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
202
|
+
|
|
203
|
+
div:last-child {
|
|
204
|
+
padding-right: 0;
|
|
150
205
|
}
|
|
151
206
|
}
|
|
152
207
|
}
|
|
208
|
+
}
|
|
153
209
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
210
|
+
.main-menu {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: flex-end;
|
|
213
|
+
justify-content: flex-end;
|
|
214
|
+
width: 100%;
|
|
157
215
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
margin-right: 0;
|
|
171
|
-
|
|
172
|
-
div:first-child {
|
|
173
|
-
padding-left: 0;
|
|
174
|
-
}
|
|
216
|
+
.item {
|
|
217
|
+
a {
|
|
218
|
+
color: @mainMenuItemColor;
|
|
219
|
+
font-size: @mainMenuItemFontSize;
|
|
220
|
+
font-weight: @mainMenuItemFontWeight;
|
|
221
|
+
border-bottom: @mainMenuItemBorder;
|
|
222
|
+
align-self: @mainMenuItemAlignSelf;
|
|
223
|
+
}
|
|
224
|
+
a:hover {
|
|
225
|
+
border-bottom: @mainMenuItemActiveBorder;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
175
228
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
229
|
+
.item.active a {
|
|
230
|
+
color: @mainMenuItemActiveColor;
|
|
231
|
+
border-bottom: @mainMenuItemActiveBorder;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
180
234
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
margin-top: @mobileLogoMarginTop;
|
|
185
|
-
}
|
|
235
|
+
#main .main-menu .item:first-child {
|
|
236
|
+
display: none; // hide home nav item
|
|
237
|
+
}
|
|
186
238
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
width: 100%;
|
|
239
|
+
.main-menu.inverted {
|
|
240
|
+
.item a {
|
|
241
|
+
color: @mainMenuItemInvertedColor;
|
|
242
|
+
}
|
|
192
243
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
font-size: @headerLargeFontSize; // fallback font size
|
|
198
|
-
font-size: @mainMenuItemFontSize;
|
|
199
|
-
font-weight: @mainMenuItemFontWeight;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
244
|
+
.item.active a {
|
|
245
|
+
color: @mainMenuItemInvertedColor;
|
|
246
|
+
border-bottom: @mainMenuInvertedItemActiveBorder;
|
|
247
|
+
}
|
|
202
248
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
249
|
+
a:hover {
|
|
250
|
+
color: @mainMenuItemInvertedColor;
|
|
251
|
+
border-bottom: @mainMenuInvertedItemActiveBorder;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
209
254
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
width: 100%;
|
|
216
|
-
height: @mobilePopUpHeight;
|
|
217
|
-
background: @searchBoxBackgroundGradient;
|
|
255
|
+
.eea.header .eea-logo {
|
|
256
|
+
width: @logoWidth;
|
|
257
|
+
max-width: @mobileLogoMaxWidth;
|
|
258
|
+
margin-top: @mobileLogoMarginTop;
|
|
259
|
+
}
|
|
218
260
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-direction: column;
|
|
229
|
-
gap: @searchBoxWrapperGap;
|
|
261
|
+
/* Search Box */
|
|
262
|
+
#search-box {
|
|
263
|
+
position: relative;
|
|
264
|
+
z-index: 99999;
|
|
265
|
+
overflow: auto;
|
|
266
|
+
width: 100%;
|
|
267
|
+
height: @mobilePopUpHeight;
|
|
268
|
+
background: @searchBoxBackgroundGradient;
|
|
230
269
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
270
|
+
.ui.container {
|
|
271
|
+
height: 100%;
|
|
272
|
+
align-items: baseline;
|
|
273
|
+
}
|
|
274
|
+
.wrapper {
|
|
275
|
+
position: relative;
|
|
276
|
+
width: 100%;
|
|
277
|
+
margin: @mobilePopupMarginTop 0;
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
gap: @searchBoxWrapperGap;
|
|
281
|
+
|
|
282
|
+
.action {
|
|
283
|
+
display: flex;
|
|
284
|
+
justify-content: center;
|
|
236
285
|
}
|
|
237
286
|
}
|
|
238
287
|
}
|
|
239
288
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
289
|
+
@media all and (max-width: @largestMobileScreen) {
|
|
290
|
+
.eea.header .top.bar .ui.container {
|
|
291
|
+
width: 100% !important; //override semantic auto to display content with space between them
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/*----------------------------------------------------------------------------
|
|
296
|
+
Header Actions - Burger and Search Icons
|
|
297
|
+
----------------------------------------------------------------------------*/
|
|
243
298
|
.burger-action {
|
|
244
299
|
display: flex;
|
|
245
300
|
align-items: center;
|
|
@@ -247,11 +302,7 @@ Header Actions - Burger and Search Icons
|
|
|
247
302
|
cursor: pointer;
|
|
248
303
|
width: @mobileActionsBoxWidth;
|
|
249
304
|
height: @mobileMainSectionHeight;
|
|
250
|
-
background-color: @
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.burger-action.desktop {
|
|
254
|
-
display: none;
|
|
305
|
+
background-color: @burgerActionBackgroundColor;
|
|
255
306
|
}
|
|
256
307
|
|
|
257
308
|
.burger-action.mobile {
|
|
@@ -267,7 +318,7 @@ Header Actions - Burger and Search Icons
|
|
|
267
318
|
height: @mobileMainSectionHeight;
|
|
268
319
|
align-items: center;
|
|
269
320
|
justify-content: center;
|
|
270
|
-
background-color: @
|
|
321
|
+
background-color: @secondaryColor;
|
|
271
322
|
}
|
|
272
323
|
|
|
273
324
|
.burger-action,
|
|
@@ -288,75 +339,8 @@ Header Actions - Burger and Search Icons
|
|
|
288
339
|
}
|
|
289
340
|
|
|
290
341
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
291
|
-
.
|
|
292
|
-
|
|
293
|
-
height: @tabletTopSectionHeight;
|
|
294
|
-
|
|
295
|
-
.item {
|
|
296
|
-
font-size: @tabletTopSectionItemFontSize;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.ui.dropdown .menu {
|
|
300
|
-
margin-top: @tabletDropdownMenuMarginTop;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.official-union {
|
|
304
|
-
img {
|
|
305
|
-
width: @tabletOfficialUnionImageWidth;
|
|
306
|
-
}
|
|
307
|
-
.ui.dropdown {
|
|
308
|
-
font-size: @tabletTopSectionItemFontSize;
|
|
309
|
-
.menu {
|
|
310
|
-
padding: @tabletOfficialUnionPadding;
|
|
311
|
-
|
|
312
|
-
.content {
|
|
313
|
-
max-width: @tabletOfficialUnionMaxWidth;
|
|
314
|
-
|
|
315
|
-
p {
|
|
316
|
-
font-size: @officialUnionMenuFontSize;
|
|
317
|
-
}
|
|
318
|
-
a {
|
|
319
|
-
font-size: @officialUnionMenuFontSize;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/* Language dropdown */
|
|
327
|
-
#language-switcher {
|
|
328
|
-
font-size: @tabletLanguageFontSize;
|
|
329
|
-
|
|
330
|
-
img {
|
|
331
|
-
width: 19px;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.menu {
|
|
335
|
-
top: @tabletLanguageMenuTop;
|
|
336
|
-
.wrapper .item {
|
|
337
|
-
font-size: @tabletLanguageFontSize;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
.main.bar {
|
|
343
|
-
.ui.container {
|
|
344
|
-
height: 117px;
|
|
345
|
-
|
|
346
|
-
.eea-logo {
|
|
347
|
-
max-width: @tabletLogoMaxWidth;
|
|
348
|
-
margin-top: @tabletLogoMarginTop;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/* Search box */
|
|
353
|
-
#search-box {
|
|
354
|
-
height: @tabletPopUpHeight;
|
|
355
|
-
.wrapper {
|
|
356
|
-
margin: @tabletPopupMarginTop 0;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
342
|
+
.top.bar .item {
|
|
343
|
+
font-size: @tabletTopSectionItemFontSize;
|
|
360
344
|
}
|
|
361
345
|
|
|
362
346
|
.text.menu {
|
|
@@ -373,319 +357,297 @@ Header Actions - Burger and Search Icons
|
|
|
373
357
|
width: @tabletActionsBoxWidth;
|
|
374
358
|
height: @tabletMainSectionHeight;
|
|
375
359
|
}
|
|
376
|
-
}
|
|
377
360
|
|
|
378
|
-
@media only screen and (min-width: @computerBreakpoint) {
|
|
379
|
-
.eea.header {
|
|
380
|
-
.top.bar {
|
|
381
|
-
height: @computerTopSectionHeight;
|
|
382
|
-
}
|
|
383
361
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
362
|
+
/*----------------------------------------------------------------------------
|
|
363
|
+
HEADER TOP BAR TABLET
|
|
364
|
+
----------------------------------------------------------------------------*/
|
|
387
365
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
366
|
+
.top.bar {
|
|
367
|
+
height: @tabletTopSectionHeight;
|
|
368
|
+
}
|
|
392
369
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
370
|
+
.top.bar .ui.dropdown .menu {
|
|
371
|
+
margin-top: @tabletDropdownMenuMarginTop;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.top.bar .ui.dropdown .menu,
|
|
375
|
+
.top.bar .ui.dropdown .menu .item {
|
|
376
|
+
font-size: @tabletDropdownMenuFontSize;
|
|
377
|
+
}
|
|
402
378
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
379
|
+
/* Official union dropdown */
|
|
380
|
+
.top.bar .official-union {
|
|
381
|
+
gap: @tabletOfficialUnionGap;
|
|
406
382
|
|
|
407
|
-
|
|
408
|
-
|
|
383
|
+
img {
|
|
384
|
+
width: @tabletOfficialUnionImageWidth;
|
|
385
|
+
}
|
|
386
|
+
.ui.dropdown {
|
|
387
|
+
.menu {
|
|
388
|
+
left: @tabletOfficialUnionMenuLeft;
|
|
409
389
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
390
|
+
.content {
|
|
391
|
+
max-width: @tabletOfficialUnionMaxWidth;
|
|
413
392
|
}
|
|
414
393
|
}
|
|
415
394
|
}
|
|
416
395
|
}
|
|
417
396
|
|
|
418
|
-
|
|
419
|
-
|
|
397
|
+
/* Language dropdown */
|
|
398
|
+
#language-switcher {
|
|
399
|
+
img {
|
|
400
|
+
width: 19px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.menu {
|
|
404
|
+
top: @tabletLanguageMenuTop;
|
|
405
|
+
}
|
|
420
406
|
}
|
|
421
407
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
408
|
+
/*----------------------------------------------------------------------------
|
|
409
|
+
HEADER MAIN BAR TABLET
|
|
410
|
+
----------------------------------------------------------------------------*/
|
|
411
|
+
|
|
412
|
+
.main.bar {
|
|
413
|
+
.ui.container {
|
|
414
|
+
height: 117px;
|
|
415
|
+
}
|
|
426
416
|
}
|
|
427
417
|
|
|
428
|
-
.
|
|
429
|
-
width: @
|
|
430
|
-
|
|
418
|
+
.eea.header .eea-logo {
|
|
419
|
+
max-width: @tabletLogoMaxWidth;
|
|
420
|
+
margin-top: @tabletLogoMarginTop;
|
|
431
421
|
}
|
|
432
|
-
}
|
|
433
422
|
|
|
434
|
-
|
|
435
|
-
#
|
|
436
|
-
|
|
423
|
+
/* Search box */
|
|
424
|
+
#search-box {
|
|
425
|
+
height: @tabletPopUpHeight;
|
|
426
|
+
.wrapper {
|
|
427
|
+
margin: @tabletPopupMarginTop 0;
|
|
428
|
+
}
|
|
437
429
|
}
|
|
438
430
|
}
|
|
439
431
|
|
|
440
|
-
|
|
441
|
-
MEGA MENU
|
|
442
|
-
************************/
|
|
432
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
443
433
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
overflow: auto;
|
|
448
|
-
width: 100%;
|
|
449
|
-
background: @megaMenuBackgroundGradient;
|
|
434
|
+
.burger-action.mobile {
|
|
435
|
+
display: none;
|
|
436
|
+
}
|
|
450
437
|
|
|
451
|
-
.
|
|
452
|
-
|
|
453
|
-
|
|
438
|
+
.search-action {
|
|
439
|
+
width: @computerActionsBoxWidth;
|
|
440
|
+
height: @computerMainSectionHeight;
|
|
454
441
|
}
|
|
455
442
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
443
|
+
/*----------------------------------------------------------------------------
|
|
444
|
+
HEADER TOP BAR DESKTOP
|
|
445
|
+
----------------------------------------------------------------------------*/
|
|
446
|
+
|
|
447
|
+
.top.bar {
|
|
448
|
+
height: @computerTopSectionHeight;
|
|
459
449
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
width: 100%;
|
|
450
|
+
|
|
451
|
+
.top.bar .ui.dropdown .menu {
|
|
452
|
+
margin-top: @computerDropdownMenuMarginTop;
|
|
464
453
|
}
|
|
465
454
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
455
|
+
#theme-sites.ui.dropdown .menu {
|
|
456
|
+
.wrapper {
|
|
457
|
+
width: @computerThemeSitesMenuWidth;
|
|
458
|
+
}
|
|
470
459
|
}
|
|
460
|
+
/*----------------------------------------------------------------------------
|
|
461
|
+
HEADER MAIN BAR DESKTOP
|
|
462
|
+
----------------------------------------------------------------------------*/
|
|
471
463
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
464
|
+
.main.bar {
|
|
465
|
+
.ui.container {
|
|
466
|
+
height: 160px;
|
|
467
|
+
|
|
468
|
+
.ui.text.menu {
|
|
469
|
+
flex-wrap: wrap;
|
|
470
|
+
display: flex;
|
|
471
|
+
width: 88%;
|
|
472
|
+
max-height: 20px;
|
|
473
|
+
justify-content: space-between;
|
|
474
|
+
margin: 0;
|
|
478
475
|
|
|
479
|
-
|
|
480
|
-
|
|
476
|
+
.item {
|
|
477
|
+
padding: @mainMenuItemPadding;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
481
480
|
}
|
|
482
481
|
}
|
|
483
482
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
483
|
+
.eea.header .eea-logo {
|
|
484
|
+
max-width: @computerLogoMaxWidth;
|
|
485
|
+
margin-top: @computerLogoMarginTop;
|
|
487
486
|
}
|
|
488
487
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
padding: @megaMenuLinkPadding;
|
|
493
|
-
line-height: @megaMenuLineHeight;
|
|
494
|
-
word-break: @megaMenuWordBreak;
|
|
495
|
-
}
|
|
488
|
+
/* Search box */
|
|
489
|
+
#search-box {
|
|
490
|
+
height: @computerPopUpHeight;
|
|
496
491
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
492
|
+
.wrapper {
|
|
493
|
+
margin: @computerPopupMarginTop 0;
|
|
494
|
+
|
|
495
|
+
.action {
|
|
496
|
+
justify-content: flex-end;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
501
499
|
}
|
|
500
|
+
}
|
|
502
501
|
|
|
503
|
-
|
|
504
|
-
|
|
502
|
+
/************************
|
|
503
|
+
MEGA MENU
|
|
504
|
+
************************/
|
|
505
|
+
|
|
506
|
+
#mega-menu {
|
|
507
|
+
position: absolute;
|
|
508
|
+
right: 0;
|
|
509
|
+
overflow: auto;
|
|
510
|
+
z-index: @z-index-8;
|
|
511
|
+
width: @mobileMegaMenuWidth;
|
|
512
|
+
background: @megaMenuBackgroundColor;
|
|
513
|
+
color: @megaMenuTextColor;
|
|
514
|
+
max-height: @mobilePopUpHeight;
|
|
515
|
+
padding: @mobileMegaMenuPadding;
|
|
516
|
+
|
|
517
|
+
.ui.container {
|
|
505
518
|
display: inherit;
|
|
506
|
-
|
|
507
|
-
|
|
519
|
+
align-items: baseline;
|
|
520
|
+
height: 100%;
|
|
508
521
|
}
|
|
509
522
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
523
|
+
.title {
|
|
524
|
+
font-size: @megaMenuTitleFontSize;
|
|
525
|
+
font-weight: @megaMenuTitleFontWeight;
|
|
513
526
|
}
|
|
514
527
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
528
|
+
.sub-title {
|
|
529
|
+
font-size: @megaMenuSubTitleFontSize;
|
|
530
|
+
font-weight: @megaMenuSubTitleFontWeight;
|
|
531
|
+
color: @megaMenuTextColor;
|
|
518
532
|
|
|
519
|
-
|
|
520
|
-
|
|
533
|
+
&+ .ui.grid {
|
|
534
|
+
|
|
535
|
+
div.column:first-child {
|
|
536
|
+
padding-left: 0;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
div.column:last-child {
|
|
540
|
+
padding-right: 0;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
521
543
|
}
|
|
544
|
+
}
|
|
522
545
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
li {
|
|
530
|
-
width: 100%;
|
|
531
|
-
}
|
|
546
|
+
#mega-menu .ui.list .item {
|
|
547
|
+
display: flex;
|
|
548
|
+
font-size: @megaMenuListItemFontSize;
|
|
549
|
+
font-weight: @megaMenuListItemFontWeight;
|
|
550
|
+
padding: @megaMenuListItemPadding;
|
|
551
|
+
}
|
|
532
552
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
display: none;
|
|
536
|
-
}
|
|
553
|
+
#mega-menu a.item {
|
|
554
|
+
color: @megaMenuTextColor;
|
|
537
555
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
line-height: @megaMenuLineHeight;
|
|
543
|
-
}
|
|
556
|
+
i.icon {
|
|
557
|
+
color: @megaMenuTextColor;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
544
560
|
|
|
545
|
-
[id^='drop']:checked + ul {
|
|
546
|
-
display: block;
|
|
547
|
-
}
|
|
548
561
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
562
|
+
#at-a-glance {
|
|
563
|
+
background-color: @megaMenuGlanceBackgroundColor;
|
|
564
|
+
// To override the grid column paddings
|
|
565
|
+
padding: @megaMenuGlancePaddingLeft !important;
|
|
553
566
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
padding: @mobileToggleMenuSecondPadding;
|
|
561
|
-
}
|
|
567
|
+
.ui.list .item {
|
|
568
|
+
font-size: @megaMenuGlanceListItemFontSize;
|
|
569
|
+
font-weight: @megaMenuGlanceListItemFontWeight;
|
|
570
|
+
margin: @megaMenuGlanceListItemMargin;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
562
573
|
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
574
|
+
#mega-menu .ui.grid {
|
|
575
|
+
div.column:first-child {
|
|
576
|
+
padding-left: 0.625rem;
|
|
577
|
+
}
|
|
566
578
|
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
579
|
+
div.column:last-child {
|
|
580
|
+
padding-right: 0.625rem;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
572
583
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
}
|
|
584
|
+
.menu-content > .ui.grid > .column {
|
|
585
|
+
padding-top: @megaMenuContentPaddingTop;
|
|
586
|
+
}
|
|
577
587
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
588
|
+
/*Mega Menu Accordion - Tablet & Mobile */
|
|
589
|
+
#mega-menu .ui.accordion {
|
|
590
|
+
.title {
|
|
591
|
+
font-size: @megaMenuAccordionTitleFontSize;
|
|
592
|
+
color: @megaMenuTextColor;
|
|
593
|
+
padding: @megaMenuAccordionTitlePadding;
|
|
594
|
+
border-bottom: @megaMenuAccordionTitleBorderBottom;
|
|
595
|
+
|
|
596
|
+
i:before {
|
|
597
|
+
font-size: @megaMenuAccordionIconFontSize;
|
|
581
598
|
}
|
|
582
599
|
|
|
583
|
-
|
|
584
|
-
|
|
600
|
+
&:hover {
|
|
601
|
+
|
|
602
|
+
i {
|
|
603
|
+
color: @megaMenuTextColor;
|
|
604
|
+
}
|
|
585
605
|
}
|
|
586
606
|
}
|
|
587
607
|
|
|
588
|
-
.
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
.sub {
|
|
593
|
-
left: 100%;
|
|
608
|
+
.active.title {
|
|
609
|
+
background-color: transparent;
|
|
610
|
+
border-bottom: @megaMenuAccordionActiveTitleBorderBottom;
|
|
594
611
|
}
|
|
595
612
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
.menu {
|
|
600
|
-
width: 33.33%;
|
|
601
|
-
font-size: @megaMenuFontSize;
|
|
602
|
-
> li {
|
|
603
|
-
width: 100%;
|
|
604
|
-
display: flex;
|
|
605
|
-
justify-content: space-between;
|
|
606
|
-
align-items: @megaMenuLiAlignItems;
|
|
607
|
-
margin-bottom: @tabletMegaMenuMarginBottom;
|
|
608
|
-
|
|
609
|
-
&.hasSubMenu:after {
|
|
610
|
-
content: @megaMenuAfterIcon;
|
|
611
|
-
font-family: @megaMenuIconFontFamily;
|
|
612
|
-
color: @white;
|
|
613
|
-
}
|
|
614
|
-
a {
|
|
615
|
-
display: flex;
|
|
616
|
-
justify-content: space-between;
|
|
617
|
-
align-items: @megaMenuLiAlignItems;
|
|
618
|
-
max-width: 100%;
|
|
619
|
-
padding-left: 1rem;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
613
|
+
.content {
|
|
614
|
+
background: @megaMenuBackgroundColor;
|
|
615
|
+
padding: @megaMenuAccordionContentPadding;
|
|
623
616
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
align-items: @megaMenuLiAlignItems;
|
|
632
|
-
margin-bottom: @tabletMegaMenuMarginBottom;
|
|
633
|
-
|
|
634
|
-
&.hasSubMenu:after {
|
|
635
|
-
content: @megaMenuAfterIcon;
|
|
636
|
-
font-family: @megaMenuIconFontFamily;
|
|
637
|
-
color: @megaMenuIconAfterColor;
|
|
638
|
-
}
|
|
639
|
-
a {
|
|
640
|
-
max-width: 100%;
|
|
641
|
-
padding-left: 1rem;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
617
|
+
.accordion {
|
|
618
|
+
margin: @megaMenuNestedAccordionMargin;
|
|
619
|
+
|
|
620
|
+
.title {
|
|
621
|
+
font-size: @megaMenuNestedAccordionTitleFontSize;
|
|
622
|
+
font-weight: @megaMenuNestedAccordionTitleFontWeight;
|
|
623
|
+
border-bottom: none;
|
|
644
624
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
min-height: 50vh;
|
|
649
|
-
li {
|
|
650
|
-
margin-bottom: @tabletMegaMenuMarginBottom;
|
|
651
|
-
> a {
|
|
652
|
-
max-width: 100%;
|
|
653
|
-
}
|
|
654
|
-
}
|
|
625
|
+
|
|
626
|
+
.content {
|
|
627
|
+
padding: @megaMenuNestedAccordionContentPadding;
|
|
655
628
|
}
|
|
656
629
|
}
|
|
657
|
-
ul li:hover > a span {
|
|
658
|
-
text-decoration: underline;
|
|
659
|
-
}
|
|
660
630
|
}
|
|
631
|
+
}
|
|
661
632
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
font-size: @megaMenuFontSize;
|
|
671
|
-
}
|
|
672
|
-
a {
|
|
673
|
-
padding-left: 2rem;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
.sub.second li {
|
|
678
|
-
margin-bottom: @computerMegaMenuMarginBottom;
|
|
679
|
-
&.hasSubMenu:after {
|
|
680
|
-
font-size: @megaMenuFontSize;
|
|
681
|
-
}
|
|
682
|
-
a {
|
|
683
|
-
padding-left: 2rem;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
.sub.third li {
|
|
687
|
-
margin-bottom: @computerMegaMenuMarginBottom;
|
|
688
|
-
}
|
|
689
|
-
}
|
|
633
|
+
#main #mega-menu .ui.accordion .title:first-child {
|
|
634
|
+
display: none; // hide home link from mobile menu
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@media all and (min-width: @tabletBreakpoint) {
|
|
638
|
+
#mega-menu {
|
|
639
|
+
padding: @tabletMegaMenuPadding;
|
|
640
|
+
max-height: @tabletPopUpHeight;
|
|
690
641
|
}
|
|
691
642
|
}
|
|
643
|
+
|
|
644
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
645
|
+
#mega-menu {
|
|
646
|
+
width: 100%;
|
|
647
|
+
padding: @computerMegaMenuPadding;
|
|
648
|
+
max-height: @computerPopUpHeight;
|
|
649
|
+
}
|
|
650
|
+
#mega-menu .title > a {
|
|
651
|
+
color: @megaMenuTextColor;
|
|
652
|
+
}
|
|
653
|
+
}
|