@ecl/site-header 5.0.0-alpha.7 → 5.0.0-alpha.8
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/README.md +23 -1
- package/{_site-header-language-switcher.scss → _site-header-dropdown.scss} +30 -15
- package/package.json +13 -13
- package/site-header-ec.scss +62 -42
- package/site-header-eu.scss +49 -4
- package/site-header-print.scss +2 -2
- package/site-header.html.twig +230 -134
- package/site-header.js +320 -169
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ npm install --save @ecl/site-header
|
|
|
13
13
|
- **"banner_top"** (string) OR (object with Link component in property): Class name
|
|
14
14
|
- **"icon_path"** (string) (default: ''): file containing the svg icons
|
|
15
15
|
- **"site_name"** (string) (default: '') Site name
|
|
16
|
+
- **"site_name_mobile_only"** (boolean): Whether the site name should be hidden on desktop or not
|
|
16
17
|
- **"logo"** (associative array) (default: predefined structure): Logo image settings. format:
|
|
17
18
|
- "title" (string) (default: ''): Logo title attribute.
|
|
18
19
|
- "alt" (string) (default: ''): Logo alt attribute.
|
|
@@ -31,6 +32,14 @@ npm install --save @ecl/site-header
|
|
|
31
32
|
- "href_not_logged" (string) Link to the login form
|
|
32
33
|
- "label_logged" (string) Label for the logged in users
|
|
33
34
|
- "href_logged" (string) Link to the logout form
|
|
35
|
+
- **"custom_action"** (associative array) (default: {}):
|
|
36
|
+
- "link" (object) (default: predefined structure) predefined structure for the Link component
|
|
37
|
+
- "icon" (optional) (associative array) OR (array) of associate arrays - Default structure of the icon component, but extra_classes is an internal key.
|
|
38
|
+
The name has to be non empty for the icon to be printed.
|
|
39
|
+
- "overlay": (associative array) (optional):
|
|
40
|
+
- "title": (string) (default: '') Overlay title
|
|
41
|
+
- "close": (associative array) (default: {})
|
|
42
|
+
- "content": (string) (default: '') HTML for the popover
|
|
34
43
|
- **"language_selector"** (associative array) (default: predefined structure): Language switcher settings. format:
|
|
35
44
|
- "href" (string) (default: ''): URL for switcher
|
|
36
45
|
- "label" (string) (default: ''): Switcher language label, eg. 'English' in eu, 'EN' in ec
|
|
@@ -66,7 +75,6 @@ npm install --save @ecl/site-header
|
|
|
66
75
|
```twig
|
|
67
76
|
{% include '@ecl/site-header/site-header.html.twig' with {
|
|
68
77
|
banner_top: 'Class name',
|
|
69
|
-
banner: 'Class name',
|
|
70
78
|
site_name: 'This site name'
|
|
71
79
|
icon_path: '/icons.svg',
|
|
72
80
|
logo: {
|
|
@@ -88,6 +96,20 @@ npm install --save @ecl/site-header
|
|
|
88
96
|
...
|
|
89
97
|
],
|
|
90
98
|
},
|
|
99
|
+
},
|
|
100
|
+
custom_action: {
|
|
101
|
+
href: '/notifications',
|
|
102
|
+
icon: 'bell',
|
|
103
|
+
label: 'Notifications',
|
|
104
|
+
aria_label: 'View notifications',
|
|
105
|
+
indicator: true,
|
|
106
|
+
overlay: {
|
|
107
|
+
title: 'Notifications',
|
|
108
|
+
close: {
|
|
109
|
+
label: 'Close'
|
|
110
|
+
},
|
|
111
|
+
content: '<p>You have new notifications.</p>',
|
|
112
|
+
},
|
|
91
113
|
},
|
|
92
114
|
login_toggle: {
|
|
93
115
|
label_not_logged: 'Log in',
|
|
@@ -6,19 +6,20 @@ $theme: null !default;
|
|
|
6
6
|
$language-switcher: null !default;
|
|
7
7
|
$language-list: null !default;
|
|
8
8
|
|
|
9
|
-
.ecl-site-header__language
|
|
9
|
+
.ecl-site-header__language,
|
|
10
|
+
.ecl-site-header__custom-action {
|
|
10
11
|
margin: 0;
|
|
11
12
|
position: static;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
@mixin with-scrollbar {
|
|
15
16
|
overflow-y: auto;
|
|
16
|
-
scrollbar-color: var(--c-n) rgba(0, 0, 0, 0);
|
|
17
|
+
scrollbar-color: var(--cm-surface-medium, var(--c-n)) rgba(0, 0, 0, 0);
|
|
17
18
|
scrollbar-width: thin;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
@mixin arrow-up {
|
|
21
|
-
background-color:
|
|
22
|
+
background-color: var(--cm-surface-inverted, #fff);
|
|
22
23
|
border: map.get($language-switcher, 'arrow-border');
|
|
23
24
|
box-shadow: map.get($language-switcher, 'arrow-shadow');
|
|
24
25
|
clip-path: polygon(
|
|
@@ -43,8 +44,9 @@ $language-list: null !default;
|
|
|
43
44
|
width: map.get($language-switcher, 'arrow-size');
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
.ecl-site-header__language-container
|
|
47
|
-
|
|
47
|
+
.ecl-site-header__language-container,
|
|
48
|
+
.ecl-site-header__custom-action-overlay {
|
|
49
|
+
background-color: var(--cm-surface-inverted, #fff);
|
|
48
50
|
box-shadow: map.get($language-switcher, 'shadow');
|
|
49
51
|
color: map.get($language-list, 'color');
|
|
50
52
|
font: var(--f-m);
|
|
@@ -84,15 +86,16 @@ $language-list: null !default;
|
|
|
84
86
|
.ecl-site-header__language-container--push-right::before,
|
|
85
87
|
.ecl-site-header__language-container--full::before {
|
|
86
88
|
left: auto;
|
|
87
|
-
right: var(--ecl-
|
|
89
|
+
right: var(--ecl-overlay-arrow-position);
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.ecl-site-header__language-container--push-left::before {
|
|
91
93
|
right: auto;
|
|
92
|
-
left: var(--ecl-
|
|
94
|
+
left: var(--ecl-overlay-arrow-position);
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
.ecl-site-header__language-header
|
|
97
|
+
.ecl-site-header__language-header,
|
|
98
|
+
.ecl-site-header__custom-action-header {
|
|
96
99
|
align-items: center;
|
|
97
100
|
display: flex;
|
|
98
101
|
justify-content: space-between;
|
|
@@ -102,11 +105,13 @@ $language-list: null !default;
|
|
|
102
105
|
);
|
|
103
106
|
}
|
|
104
107
|
|
|
105
|
-
.ecl-site-header__language-title
|
|
108
|
+
.ecl-site-header__language-title,
|
|
109
|
+
.ecl-site-header__custom-action-title {
|
|
106
110
|
font: map.get($language-list, 'header-font-mobile');
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
.ecl-site-header__language-close
|
|
113
|
+
.ecl-site-header__language-close,
|
|
114
|
+
.ecl-site-header__custom-action-close {
|
|
110
115
|
position: absolute;
|
|
111
116
|
right: map.get($language-switcher, 'close-right');
|
|
112
117
|
top: map.get($language-switcher, 'close-top');
|
|
@@ -117,7 +122,8 @@ $language-list: null !default;
|
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
|
|
120
|
-
.ecl-site-header__language-content
|
|
125
|
+
.ecl-site-header__language-content,
|
|
126
|
+
.ecl-site-header__custom-action-content {
|
|
121
127
|
display: flex;
|
|
122
128
|
flex-direction: column;
|
|
123
129
|
|
|
@@ -159,7 +165,8 @@ $language-list: null !default;
|
|
|
159
165
|
padding: 0;
|
|
160
166
|
}
|
|
161
167
|
|
|
162
|
-
.ecl-site-header__language-link
|
|
168
|
+
.ecl-site-header__language-link,
|
|
169
|
+
.ecl-site-header__custom-action-link {
|
|
163
170
|
align-items: baseline;
|
|
164
171
|
border-inline-start: map.get($language-list, 'item-active-border-width') solid
|
|
165
172
|
transparent;
|
|
@@ -178,7 +185,8 @@ $language-list: null !default;
|
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
187
|
|
|
181
|
-
.ecl-site-header__language-link-code
|
|
188
|
+
.ecl-site-header__language-link-code,
|
|
189
|
+
.ecl-site-header__custom-action-link-code {
|
|
182
190
|
color: map.get($language-list, 'code-color');
|
|
183
191
|
font: var(--f-m);
|
|
184
192
|
font-weight: map.get($language-list, 'code-font-weight');
|
|
@@ -220,10 +228,12 @@ $language-list: null !default;
|
|
|
220
228
|
}
|
|
221
229
|
|
|
222
230
|
@include breakpoints.up('m') {
|
|
223
|
-
.ecl-site-header__language
|
|
231
|
+
.ecl-site-header__language,
|
|
232
|
+
.ecl-site-header__custom-action {
|
|
224
233
|
position: relative;
|
|
225
234
|
}
|
|
226
235
|
|
|
236
|
+
.ecl-site-header__custom-action-overlay,
|
|
227
237
|
.ecl-site-header__language-container {
|
|
228
238
|
left: 50%;
|
|
229
239
|
padding-block-start: map.get(
|
|
@@ -249,7 +259,12 @@ $language-list: null !default;
|
|
|
249
259
|
transform: translateX(-50%);
|
|
250
260
|
}
|
|
251
261
|
|
|
252
|
-
.ecl-site-
|
|
262
|
+
.ecl-site-header__custom-action-overlay {
|
|
263
|
+
width: 400px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ecl-site-header__language-title,
|
|
267
|
+
.ecl-site-header__custom-action-title {
|
|
253
268
|
font: map.get($language-list, 'header-font-desktop');
|
|
254
269
|
}
|
|
255
270
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ecl/site-header",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "5.0.0-alpha.
|
|
5
|
+
"version": "5.0.0-alpha.8",
|
|
6
6
|
"description": "ECL Site Header",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"main": "site-header.js",
|
|
11
11
|
"module": "site-header.js",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ecl/button": "5.0.0-alpha.
|
|
14
|
-
"@ecl/dom-utils": "5.0.0-alpha.
|
|
15
|
-
"@ecl/grid": "5.0.0-alpha.
|
|
16
|
-
"@ecl/icon": "5.0.0-alpha.
|
|
17
|
-
"@ecl/link": "5.0.0-alpha.
|
|
18
|
-
"@ecl/menu": "5.0.0-alpha.
|
|
19
|
-
"@ecl/notification": "5.0.0-alpha.
|
|
20
|
-
"@ecl/picture": "5.0.0-alpha.
|
|
21
|
-
"@ecl/search-form": "5.0.0-alpha.
|
|
13
|
+
"@ecl/button": "5.0.0-alpha.8",
|
|
14
|
+
"@ecl/dom-utils": "5.0.0-alpha.8",
|
|
15
|
+
"@ecl/grid": "5.0.0-alpha.8",
|
|
16
|
+
"@ecl/icon": "5.0.0-alpha.8",
|
|
17
|
+
"@ecl/link": "5.0.0-alpha.8",
|
|
18
|
+
"@ecl/menu": "5.0.0-alpha.8",
|
|
19
|
+
"@ecl/notification": "5.0.0-alpha.8",
|
|
20
|
+
"@ecl/picture": "5.0.0-alpha.8",
|
|
21
|
+
"@ecl/search-form": "5.0.0-alpha.8",
|
|
22
22
|
"focus-trap": "7.6.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@ecl/resources-ec-logo": "5.0.0-alpha.
|
|
26
|
-
"@ecl/resources-eu-logo": "5.0.0-alpha.
|
|
25
|
+
"@ecl/resources-ec-logo": "5.0.0-alpha.8",
|
|
26
|
+
"@ecl/resources-eu-logo": "5.0.0-alpha.8"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"design-system",
|
|
40
40
|
"twig"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "765d0f9f94ff5aebe563f8693bb682647cc4f8a8"
|
|
43
43
|
}
|
package/site-header-ec.scss
CHANGED
|
@@ -11,13 +11,15 @@ $theme: null !default;
|
|
|
11
11
|
$site-header: null !default;
|
|
12
12
|
$language-list: null !default;
|
|
13
13
|
|
|
14
|
-
@use 'site-header-
|
|
14
|
+
@use 'site-header-dropdown' with (
|
|
15
15
|
$theme: $theme,
|
|
16
16
|
$language-switcher: map.get($site-header, 'language-switcher'),
|
|
17
17
|
$language-list: $language-list
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
.ecl-site-header {
|
|
21
|
+
background-color: map.get($site-header, 'background-color');
|
|
22
|
+
box-shadow: var(--sh-2);
|
|
21
23
|
margin: 0;
|
|
22
24
|
position: relative;
|
|
23
25
|
z-index: map.get($theme, 'z-index', 'modal');
|
|
@@ -26,21 +28,6 @@ $language-list: null !default;
|
|
|
26
28
|
box-shadow: var(--sh-2);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
.ecl-site-header__background {
|
|
30
|
-
background-color: map.get($site-header, 'background-color');
|
|
31
|
-
background-image: url('data:image/svg+xml;base64,' + map.get(
|
|
32
|
-
$site-header,
|
|
33
|
-
'background-image'
|
|
34
|
-
));
|
|
35
|
-
background-position: right bottom;
|
|
36
|
-
background-repeat: no-repeat;
|
|
37
|
-
background-size: auto 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.ecl-site-header--rtl .ecl-site-header__background {
|
|
41
|
-
background-position: left bottom;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
31
|
.ecl-menu,
|
|
45
32
|
.ecl-mega-menu {
|
|
46
33
|
bottom: 0;
|
|
@@ -74,7 +61,6 @@ $language-list: null !default;
|
|
|
74
61
|
}
|
|
75
62
|
|
|
76
63
|
.ecl-site-header__header {
|
|
77
|
-
box-shadow: var(--sh-2);
|
|
78
64
|
position: relative;
|
|
79
65
|
z-index: 54;
|
|
80
66
|
}
|
|
@@ -108,19 +94,20 @@ $language-list: null !default;
|
|
|
108
94
|
|
|
109
95
|
&:hover {
|
|
110
96
|
border-left: none;
|
|
111
|
-
color: var(--
|
|
97
|
+
color: var(--cm-on-surface-brand);
|
|
112
98
|
}
|
|
113
99
|
|
|
114
100
|
&:focus-visible {
|
|
115
|
-
color: var(--
|
|
101
|
+
color: var(--cm-on-surface-brand);
|
|
116
102
|
}
|
|
117
103
|
|
|
118
104
|
&:active {
|
|
119
|
-
background-color: var(--
|
|
105
|
+
background-color: var(--cm-on-surface-neutral-medium);
|
|
120
106
|
}
|
|
121
107
|
}
|
|
122
108
|
|
|
123
109
|
.ecl-site-header__action {
|
|
110
|
+
align-items: center;
|
|
124
111
|
align-self: flex-end;
|
|
125
112
|
display: flex;
|
|
126
113
|
|
|
@@ -144,6 +131,7 @@ $language-list: null !default;
|
|
|
144
131
|
text-transform: uppercase;
|
|
145
132
|
}
|
|
146
133
|
|
|
134
|
+
.ecl-site-header__custom-action-toggle,
|
|
147
135
|
.ecl-site-header__login-toggle,
|
|
148
136
|
.ecl-site-header__search-toggle,
|
|
149
137
|
.ecl-site-header__language-selector {
|
|
@@ -162,16 +150,34 @@ $language-list: null !default;
|
|
|
162
150
|
|
|
163
151
|
&:active,
|
|
164
152
|
&[aria-expanded='true'] {
|
|
165
|
-
background-color: var(--
|
|
153
|
+
background-color: var(--cm-surface-neutral-low);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ecl-site-header__custom-action-toggle {
|
|
158
|
+
&:hover {
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
color: map.get($site-header, 'toggle-color');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ecl-link__icon-container {
|
|
164
|
+
.ecl-site-header__icon {
|
|
165
|
+
margin-inline-end: 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ecl-indicator:not(:empty) {
|
|
170
|
+
left: -18px;
|
|
171
|
+
right: auto;
|
|
166
172
|
}
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
.ecl-site-header__login-box,
|
|
170
176
|
.ecl-site-header__search {
|
|
171
|
-
background-color:
|
|
177
|
+
background-color: var(--cm-surface-inverted);
|
|
172
178
|
box-shadow: var(--sh-3);
|
|
173
179
|
box-sizing: border-box;
|
|
174
|
-
color: var(--
|
|
180
|
+
color: var(--cm-on-surface-brand);
|
|
175
181
|
display: none;
|
|
176
182
|
font: var(--f-m);
|
|
177
183
|
left: 0;
|
|
@@ -179,6 +185,12 @@ $language-list: null !default;
|
|
|
179
185
|
padding: var(--s-3xl) var(--s-m);
|
|
180
186
|
position: absolute;
|
|
181
187
|
z-index: map.get($theme, 'z-index', 'modal') + 1;
|
|
188
|
+
|
|
189
|
+
.ecl-search-form__button,
|
|
190
|
+
.ecl-search-form__text-input,
|
|
191
|
+
.ecl-search-form__text-input::placeholder {
|
|
192
|
+
font: var(--f-s);
|
|
193
|
+
}
|
|
182
194
|
}
|
|
183
195
|
|
|
184
196
|
.ecl-site-header__login-box {
|
|
@@ -188,7 +200,7 @@ $language-list: null !default;
|
|
|
188
200
|
width: 100%;
|
|
189
201
|
|
|
190
202
|
&::before {
|
|
191
|
-
@include site-header-
|
|
203
|
+
@include site-header-dropdown.arrow-up;
|
|
192
204
|
|
|
193
205
|
left: auto;
|
|
194
206
|
right: var(--ecl-login-arrow-position);
|
|
@@ -205,13 +217,14 @@ $language-list: null !default;
|
|
|
205
217
|
}
|
|
206
218
|
|
|
207
219
|
.ecl-site-header__login-separator {
|
|
208
|
-
background-color: var(--
|
|
220
|
+
background-color: var(--cm-border-neutral);
|
|
209
221
|
border-width: 0;
|
|
210
222
|
height: 1px;
|
|
211
223
|
margin-bottom: var(--s-m);
|
|
212
224
|
margin-top: var(--s-m);
|
|
213
225
|
}
|
|
214
226
|
|
|
227
|
+
.ecl-site-header__custom-action-icon,
|
|
215
228
|
.ecl-site-header__language-icon {
|
|
216
229
|
align-items: center;
|
|
217
230
|
display: flex;
|
|
@@ -223,7 +236,7 @@ $language-list: null !default;
|
|
|
223
236
|
display: flex;
|
|
224
237
|
|
|
225
238
|
&::before {
|
|
226
|
-
@include site-header-
|
|
239
|
+
@include site-header-dropdown.arrow-up;
|
|
227
240
|
|
|
228
241
|
left: auto;
|
|
229
242
|
right: var(--ecl-search-arrow-position);
|
|
@@ -231,25 +244,28 @@ $language-list: null !default;
|
|
|
231
244
|
}
|
|
232
245
|
|
|
233
246
|
.ecl-site-header__notification {
|
|
234
|
-
background-color: var(--
|
|
235
|
-
border-top: 1px solid var(--c-n-60);
|
|
247
|
+
background-color: var(--cm-surface-inverted);
|
|
236
248
|
display: flex;
|
|
237
249
|
|
|
238
250
|
.ecl-notification {
|
|
239
|
-
background:
|
|
240
|
-
margin: var(--s-xl)
|
|
251
|
+
background: var(--cm-surface-inverted);
|
|
252
|
+
margin: 0 0 var(--s-xl);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ecl-notification__description,
|
|
256
|
+
.ecl-notification__link {
|
|
257
|
+
font: var(--f-s);
|
|
241
258
|
}
|
|
242
259
|
}
|
|
243
260
|
|
|
244
261
|
.ecl-site-header__banner-top {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
font: var(--f-m);
|
|
262
|
+
border-top: 1px solid var(--cm-border-neutral);
|
|
263
|
+
font: var(--f-s);
|
|
248
264
|
padding: var(--s-xs) 0;
|
|
249
265
|
}
|
|
250
266
|
|
|
251
267
|
.ecl-site-header__banner {
|
|
252
|
-
background
|
|
268
|
+
background: var(--cm-surface-neutral-lowest);
|
|
253
269
|
color: map.get($site-header, 'banner-text-color');
|
|
254
270
|
display: block;
|
|
255
271
|
font: var(--f-2xl);
|
|
@@ -262,10 +278,6 @@ $language-list: null !default;
|
|
|
262
278
|
}
|
|
263
279
|
}
|
|
264
280
|
|
|
265
|
-
.ecl-site-header__site-name {
|
|
266
|
-
margin-inline-end: var(--s-3xl);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
281
|
// Menu display and position
|
|
270
282
|
$menu-top: calc(44px + 2 * var(--s-xs));
|
|
271
283
|
|
|
@@ -309,6 +321,7 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
309
321
|
}
|
|
310
322
|
|
|
311
323
|
@include breakpoints.down('m') {
|
|
324
|
+
.ecl-site-header__custom-action-toggle,
|
|
312
325
|
.ecl-site-header__login-toggle,
|
|
313
326
|
.ecl-site-header__search-toggle,
|
|
314
327
|
.ecl-site-header__language-selector {
|
|
@@ -319,6 +332,10 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
319
332
|
line-height: 0;
|
|
320
333
|
padding: var(--s-xs) 0;
|
|
321
334
|
|
|
335
|
+
.ecl-link__icon-container {
|
|
336
|
+
margin-inline-start: 0;
|
|
337
|
+
}
|
|
338
|
+
|
|
322
339
|
.ecl-icon {
|
|
323
340
|
width: 1.5rem;
|
|
324
341
|
height: 1.5rem;
|
|
@@ -344,8 +361,6 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
344
361
|
|
|
345
362
|
@include breakpoints.up('l') {
|
|
346
363
|
.ecl-site-header {
|
|
347
|
-
box-shadow: var(--sh-2);
|
|
348
|
-
|
|
349
364
|
.ecl-site-header__cta {
|
|
350
365
|
align-self: center;
|
|
351
366
|
margin: 0;
|
|
@@ -397,6 +412,10 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
397
412
|
padding: var(--s-m) 0;
|
|
398
413
|
}
|
|
399
414
|
|
|
415
|
+
.ecl-site-header__site-name--mobile-only {
|
|
416
|
+
display: none;
|
|
417
|
+
}
|
|
418
|
+
|
|
400
419
|
.ecl-site-header__top {
|
|
401
420
|
align-items: flex-end;
|
|
402
421
|
}
|
|
@@ -454,12 +473,13 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
454
473
|
}
|
|
455
474
|
}
|
|
456
475
|
|
|
476
|
+
.ecl-site-header__custom-action-toggle,
|
|
457
477
|
.ecl-site-header__login-toggle,
|
|
458
478
|
.ecl-site-header__language-selector {
|
|
459
479
|
align-items: center;
|
|
460
480
|
display: flex;
|
|
461
481
|
flex-direction: row;
|
|
462
|
-
font: var(--f-
|
|
482
|
+
font: var(--f-s);
|
|
463
483
|
|
|
464
484
|
.ecl-site-header__icon {
|
|
465
485
|
flex-shrink: 0;
|
|
@@ -495,7 +515,7 @@ $menu-top: calc(44px + 2 * var(--s-xs));
|
|
|
495
515
|
}
|
|
496
516
|
|
|
497
517
|
.ecl-site-header__search {
|
|
498
|
-
background-color:
|
|
518
|
+
background-color: var(--cm-surface-inverted);
|
|
499
519
|
border-width: 0;
|
|
500
520
|
box-shadow: none;
|
|
501
521
|
display: flex;
|
package/site-header-eu.scss
CHANGED
|
@@ -11,7 +11,7 @@ $theme: null !default;
|
|
|
11
11
|
$site-header: null !default;
|
|
12
12
|
$language-list: null !default;
|
|
13
13
|
|
|
14
|
-
@use 'site-header-
|
|
14
|
+
@use 'site-header-dropdown' with (
|
|
15
15
|
$theme: $theme,
|
|
16
16
|
$language-switcher: map.get($site-header, 'language-switcher'),
|
|
17
17
|
$language-list: $language-list
|
|
@@ -170,7 +170,7 @@ $language-list: null !default;
|
|
|
170
170
|
.ecl-search-form__text-input {
|
|
171
171
|
box-sizing: border-box;
|
|
172
172
|
flex-grow: 0;
|
|
173
|
-
height:
|
|
173
|
+
height: 2.75rem;
|
|
174
174
|
width: 100%;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -200,7 +200,7 @@ $language-list: null !default;
|
|
|
200
200
|
width: 100%;
|
|
201
201
|
|
|
202
202
|
&::before {
|
|
203
|
-
@include site-header-
|
|
203
|
+
@include site-header-dropdown.arrow-up;
|
|
204
204
|
|
|
205
205
|
left: auto;
|
|
206
206
|
right: var(--ecl-login-arrow-position);
|
|
@@ -211,6 +211,7 @@ $language-list: null !default;
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
.ecl-site-header__custom-action-toggle,
|
|
214
215
|
.ecl-site-header__language-selector,
|
|
215
216
|
.ecl-site-header__login-toggle,
|
|
216
217
|
.ecl-site-header__search-toggle {
|
|
@@ -220,19 +221,46 @@ $language-list: null !default;
|
|
|
220
221
|
font: var(--f-ui-m);
|
|
221
222
|
justify-content: center;
|
|
222
223
|
|
|
224
|
+
&.ecl-link {
|
|
225
|
+
color: var(--c-d);
|
|
226
|
+
border-radius: 4px;
|
|
227
|
+
text-decoration: none;
|
|
228
|
+
|
|
229
|
+
&:focus-visible {
|
|
230
|
+
outline: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ecl-link__label {
|
|
234
|
+
margin: 0;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
223
238
|
&:active,
|
|
224
239
|
&[aria-expanded='true'] {
|
|
225
240
|
background-color: var(--c-p-20);
|
|
226
241
|
}
|
|
227
242
|
}
|
|
228
243
|
|
|
244
|
+
.ecl-site-header__custom-action-toggle {
|
|
245
|
+
.ecl-link__icon-container {
|
|
246
|
+
.ecl-site-header__icon {
|
|
247
|
+
margin-inline-end: 0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ecl-indicator:not(:empty) {
|
|
252
|
+
left: -18px;
|
|
253
|
+
right: auto;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
229
257
|
.ecl-site-header__search--active {
|
|
230
258
|
display: flex;
|
|
231
259
|
margin-top: var(--s-m);
|
|
232
260
|
|
|
233
261
|
@include breakpoints.down('m') {
|
|
234
262
|
&::before {
|
|
235
|
-
@include site-header-
|
|
263
|
+
@include site-header-dropdown.arrow-up;
|
|
236
264
|
|
|
237
265
|
left: auto;
|
|
238
266
|
right: var(--ecl-search-arrow-position);
|
|
@@ -257,6 +285,7 @@ $language-list: null !default;
|
|
|
257
285
|
margin-top: var(--s-m);
|
|
258
286
|
}
|
|
259
287
|
|
|
288
|
+
.ecl-site-header__custom-action-icon,
|
|
260
289
|
.ecl-site-header__language-icon {
|
|
261
290
|
align-items: center;
|
|
262
291
|
display: flex;
|
|
@@ -296,6 +325,7 @@ $language-list: null !default;
|
|
|
296
325
|
// stylelint-enable plugin/selector-bem-pattern
|
|
297
326
|
|
|
298
327
|
@include breakpoints.down('m') {
|
|
328
|
+
.ecl-site-header__custom-action-toggle,
|
|
299
329
|
.ecl-site-header__login-toggle,
|
|
300
330
|
.ecl-site-header__search-toggle,
|
|
301
331
|
.ecl-site-header__language-selector {
|
|
@@ -303,6 +333,16 @@ $language-list: null !default;
|
|
|
303
333
|
line-height: 0;
|
|
304
334
|
padding: calc(var(--s-xs) - 1px) 0;
|
|
305
335
|
|
|
336
|
+
&.ecl-link {
|
|
337
|
+
.ecl-link__label {
|
|
338
|
+
display: none;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ecl-link__icon-container {
|
|
343
|
+
margin-inline-start: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
306
346
|
.ecl-icon {
|
|
307
347
|
height: 1.5rem;
|
|
308
348
|
width: 1.5rem;
|
|
@@ -394,6 +434,10 @@ $language-list: null !default;
|
|
|
394
434
|
margin-inline-end: 0;
|
|
395
435
|
}
|
|
396
436
|
|
|
437
|
+
.ecl-site-header__site-name--mobile-only {
|
|
438
|
+
display: none;
|
|
439
|
+
}
|
|
440
|
+
|
|
397
441
|
.ecl-site-header__container {
|
|
398
442
|
align-items: flex-end;
|
|
399
443
|
flex-direction: row;
|
|
@@ -456,6 +500,7 @@ $language-list: null !default;
|
|
|
456
500
|
}
|
|
457
501
|
}
|
|
458
502
|
|
|
503
|
+
.ecl-site-header__custom-action-toggle,
|
|
459
504
|
.ecl-site-header__login-toggle,
|
|
460
505
|
.ecl-site-header__language-selector {
|
|
461
506
|
.ecl-site-header__icon {
|
package/site-header-print.scss
CHANGED
|
@@ -30,11 +30,11 @@ $site-header: null !default;
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.ecl-site-header__banner-top {
|
|
33
|
-
color: var(--cm-on-surface-
|
|
33
|
+
color: var(--cm-on-surface-brand, var(--c-d));
|
|
34
34
|
font: map.get($theme, 'font-print', 'm');
|
|
35
35
|
|
|
36
36
|
.ecl-link {
|
|
37
|
-
color: var(--cm-on-surface-
|
|
37
|
+
color: var(--cm-on-surface-brand, var(--c-d));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ecl-link::after {
|