@eeacms/volto-eea-design-system 1.34.0 → 1.35.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 +7 -0
- package/package.json +1 -1
- package/src/ui/Banner/Banner.jsx +5 -2
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +24 -17
- package/theme/themes/eea/extras/banner.less +107 -53
- package/theme/themes/eea/extras/banner.variables +1 -0
- package/theme/themes/eea/extras/contextNavigation.less +72 -32
- package/theme/themes/eea/extras/contextNavigation.variables +9 -6
- package/theme/themes/eea/extras/copyright.less +8 -4
- package/theme/themes/eea/extras/custom.overrides +6 -0
- package/theme/themes/eea/extras/header.less +99 -12
- package/theme/themes/eea/extras/header.variables +125 -114
- package/theme/themes/eea/extras/inpageNavigation.less +19 -0
- package/theme/themes/eea/globals/site.variables +1 -0
- package/theme/themes/eea/globals/utilities.less +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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.35.0](https://github.com/eea/volto-eea-design-system/compare/1.34.1...1.35.0) - 11 November 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Update package.json [Ichim David - [`40ae6a7`](https://github.com/eea/volto-eea-design-system/commit/40ae6a70377c54256f7365a12bded4e25b0c322e)]
|
|
12
|
+
### [1.34.1](https://github.com/eea/volto-eea-design-system/compare/1.34.0...1.34.1) - 14 October 2024
|
|
13
|
+
|
|
7
14
|
### [1.34.0](https://github.com/eea/volto-eea-design-system/compare/1.33.1...1.34.0) - 11 October 2024
|
|
8
15
|
|
|
9
16
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
package/src/ui/Banner/Banner.jsx
CHANGED
|
@@ -53,7 +53,10 @@ function Banner({ image, metadata, properties, children, styles, ...rest }) {
|
|
|
53
53
|
return (
|
|
54
54
|
<div className="eea banner">
|
|
55
55
|
<div
|
|
56
|
-
className={cx(
|
|
56
|
+
className={cx(
|
|
57
|
+
imageUrl ? 'image' : '',
|
|
58
|
+
...Object.values(styles || {}),
|
|
59
|
+
)}
|
|
57
60
|
style={imageUrl ? { backgroundImage: `url(${imageUrl})` } : {}}
|
|
58
61
|
>
|
|
59
62
|
<div className="gradient">
|
|
@@ -97,7 +100,7 @@ Banner.Content = ({ children, actions }) => {
|
|
|
97
100
|
// actions can be a single child or an array of children
|
|
98
101
|
// when we disable actions we get an array of false or undefined
|
|
99
102
|
const actionsWithChildren = actions
|
|
100
|
-
? React.Children.toArray(actions.props
|
|
103
|
+
? React.Children.toArray(actions.props?.children).some(Boolean)
|
|
101
104
|
: false;
|
|
102
105
|
|
|
103
106
|
return (
|
|
@@ -15,7 +15,7 @@ const Breadcrumbs = ({
|
|
|
15
15
|
sections = [],
|
|
16
16
|
icon = 'ri-arrow-right-s-line',
|
|
17
17
|
size = 'tiny',
|
|
18
|
-
|
|
18
|
+
contentTypesAsBreadcrumbSection = [],
|
|
19
19
|
}) => {
|
|
20
20
|
return sections.length > 0 ? (
|
|
21
21
|
<Segment className="breadcrumbs" attached vertical>
|
|
@@ -27,22 +27,27 @@ const Breadcrumbs = ({
|
|
|
27
27
|
<Image src={homeIcon} alt="" />
|
|
28
28
|
</Link>
|
|
29
29
|
</li>
|
|
30
|
-
{sections.map((item, index, items) =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
{sections.map((item, index, items) => {
|
|
31
|
+
const url = item.url || item.href;
|
|
32
|
+
return (
|
|
33
|
+
<li key={index}>
|
|
34
|
+
<Breadcrumb.Divider key={`divider-${url}`}>
|
|
35
|
+
<Icon className={icon}></Icon>
|
|
36
|
+
</Breadcrumb.Divider>
|
|
37
|
+
{index < items.length - 1 &&
|
|
38
|
+
contentTypesAsBreadcrumbSection.indexOf(item.portal_type) ===
|
|
39
|
+
-1 ? (
|
|
40
|
+
<Link key={item.key} to={url} className="section">
|
|
41
|
+
{item.title}
|
|
42
|
+
</Link>
|
|
43
|
+
) : (
|
|
44
|
+
<Breadcrumb.Section key={item.key} className="section">
|
|
45
|
+
{item.title}
|
|
46
|
+
</Breadcrumb.Section>
|
|
47
|
+
)}
|
|
48
|
+
</li>
|
|
49
|
+
);
|
|
50
|
+
})}
|
|
46
51
|
</ol>
|
|
47
52
|
</Breadcrumb>
|
|
48
53
|
</Container>
|
|
@@ -58,6 +63,8 @@ Breadcrumbs.propTypes = {
|
|
|
58
63
|
PropTypes.shape({
|
|
59
64
|
title: PropTypes.string,
|
|
60
65
|
href: PropTypes.string,
|
|
66
|
+
url: PropTypes.string,
|
|
67
|
+
portal_type: PropTypes.string,
|
|
61
68
|
key: PropTypes.string,
|
|
62
69
|
}),
|
|
63
70
|
).isRequired,
|
|
@@ -112,53 +112,6 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.light-header {
|
|
116
|
-
.container {
|
|
117
|
-
width: 100%;
|
|
118
|
-
max-width: 1300px !important;
|
|
119
|
-
}
|
|
120
|
-
.eea.banner {
|
|
121
|
-
--text-color: @bannerHomepageColor;
|
|
122
|
-
|
|
123
|
-
.content-type {
|
|
124
|
-
color: @secondaryColorCSSVar;
|
|
125
|
-
font-weight: bold;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.gradient .content .subtitle {
|
|
129
|
-
margin: 0 0 0.5rem 0;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.homepage-header .banner {
|
|
135
|
-
--text-color: @bannerHomepageColor;
|
|
136
|
-
height: 500px;
|
|
137
|
-
|
|
138
|
-
.content-type {
|
|
139
|
-
color: @secondaryColorCSSVar;
|
|
140
|
-
font-size: @h2;
|
|
141
|
-
font-weight: bold;
|
|
142
|
-
}
|
|
143
|
-
.container {
|
|
144
|
-
display: flex;
|
|
145
|
-
height: 100%;
|
|
146
|
-
align-items: flex-end;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.content {
|
|
150
|
-
padding: 0 !important;
|
|
151
|
-
margin-bottom: 2rem;
|
|
152
|
-
}
|
|
153
|
-
.grid {
|
|
154
|
-
text-align: center;
|
|
155
|
-
}
|
|
156
|
-
.wrapper {
|
|
157
|
-
justify-content: center;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
115
|
/*Share Popup*/
|
|
163
116
|
|
|
164
117
|
.ui.popup.share-popup {
|
|
@@ -253,14 +206,91 @@
|
|
|
253
206
|
}
|
|
254
207
|
}
|
|
255
208
|
|
|
256
|
-
|
|
257
|
-
|
|
209
|
+
/*******************************
|
|
210
|
+
Light & Hero Header
|
|
211
|
+
*******************************/
|
|
212
|
+
.light-header {
|
|
213
|
+
.container {
|
|
214
|
+
width: 100%;
|
|
215
|
+
max-width: 1300px !important;
|
|
216
|
+
}
|
|
217
|
+
.eea.banner {
|
|
218
|
+
--text-color: @bannerHomepageColor;
|
|
219
|
+
|
|
220
|
+
.content-type {
|
|
221
|
+
color: @secondaryColorCSSVar;
|
|
222
|
+
font-weight: bold;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.subtitle-light {
|
|
226
|
+
font-size: 24px !important;
|
|
227
|
+
line-height: 1.2;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.gradient .content {
|
|
231
|
+
padding: @computerContentPadding;
|
|
232
|
+
.subtitle {
|
|
233
|
+
margin: 0.5rem 0;
|
|
234
|
+
font-size: 1.25rem;
|
|
235
|
+
line-height: 1.2;
|
|
236
|
+
}
|
|
237
|
+
.metadata {
|
|
238
|
+
margin-top: 1rem;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.homepage-header .banner {
|
|
245
|
+
--text-color: @bannerHomepageColor;
|
|
246
|
+
height: 500px;
|
|
247
|
+
|
|
248
|
+
.content-type {
|
|
249
|
+
color: @secondaryColorCSSVar;
|
|
250
|
+
font-size: @h4;
|
|
251
|
+
font-weight: bold;
|
|
252
|
+
}
|
|
253
|
+
.container {
|
|
254
|
+
display: flex;
|
|
255
|
+
height: 100%;
|
|
256
|
+
align-items: flex-end;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.grid {
|
|
260
|
+
text-align: center;
|
|
261
|
+
}
|
|
262
|
+
.wrapper {
|
|
263
|
+
justify-content: center;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.hero-header {
|
|
268
|
+
.banner {
|
|
269
|
+
height: calc(100dvh - 35px);
|
|
270
|
+
min-height: 400px;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
@media only screen and (min-height: 600px) {
|
|
274
|
+
.hero-header {
|
|
275
|
+
.gradient .content {
|
|
276
|
+
margin-bottom: 10dvh;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@media only screen and (max-width: @largestTabletScreen) {
|
|
282
|
+
.light-header .eea.banner .gradient .content {
|
|
283
|
+
padding: 16.5rem 0 1.25rem;
|
|
284
|
+
}
|
|
258
285
|
}
|
|
259
286
|
|
|
260
287
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
261
|
-
.hero-header
|
|
262
|
-
|
|
288
|
+
.hero-header {
|
|
289
|
+
.subtitle-light {
|
|
290
|
+
letter-spacing: @font-letterspacing-00;
|
|
291
|
+
}
|
|
263
292
|
}
|
|
293
|
+
|
|
264
294
|
.eea.banner {
|
|
265
295
|
.image {
|
|
266
296
|
.gradient .content {
|
|
@@ -271,24 +301,48 @@
|
|
|
271
301
|
.gradient .content {
|
|
272
302
|
padding: @computerContentPadding;
|
|
273
303
|
.light-header & {
|
|
274
|
-
padding:
|
|
304
|
+
padding: 18.625rem 0 1.25rem;
|
|
275
305
|
}
|
|
276
306
|
|
|
277
307
|
.title {
|
|
278
308
|
margin: @computerTitleMargin;
|
|
279
309
|
font-size: @computerTitleFontSize;
|
|
280
310
|
line-height: @computerTitleLineHeight;
|
|
311
|
+
.hero-header & {
|
|
312
|
+
line-height: 1.2;
|
|
313
|
+
letter-spacing: @font-letterspacing-00;
|
|
314
|
+
}
|
|
281
315
|
}
|
|
282
316
|
|
|
283
317
|
.subtitle {
|
|
284
|
-
margin: @computerSubtitleMargin;
|
|
285
318
|
font-size: @computerSubtitleFontSize;
|
|
319
|
+
margin: @computerSubtitleMargin;
|
|
286
320
|
line-height: @computerSubtitleLineHeight;
|
|
287
321
|
}
|
|
288
322
|
}
|
|
289
323
|
}
|
|
290
324
|
}
|
|
291
325
|
|
|
326
|
+
@media screen and (min-width: 1280px) {
|
|
327
|
+
.hero-header .banner {
|
|
328
|
+
.title {
|
|
329
|
+
font-size: @heroTitleFontSize !important;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.content-type {
|
|
333
|
+
font-size: @h3;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.subtitle-light {
|
|
337
|
+
font-size: @h2 !important;
|
|
338
|
+
line-height: 1.2;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/*******************************
|
|
343
|
+
/Light & Hero Header
|
|
344
|
+
*******************************/
|
|
345
|
+
|
|
292
346
|
@media print {
|
|
293
347
|
.eea.banner .gradient .content,
|
|
294
348
|
.eea.banner .image .gradient .content {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@mobileTitleFontSize : @mobileH1;
|
|
36
36
|
@tabletTitleFontSize : @h2;
|
|
37
37
|
@computerTitleFontSize : @h1;
|
|
38
|
+
@heroTitleFontSize : 3.5rem;
|
|
38
39
|
@mobileTitleLineHeight : @headerLineHeight;
|
|
39
40
|
@tabletTitleLineHeight : @headerLineHeight;
|
|
40
41
|
@computerTitleLineHeight : @headerLineHeight;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
@import (multiple) '../../theme.config';
|
|
5
5
|
|
|
6
6
|
.context-navigation {
|
|
7
|
-
max-width
|
|
7
|
+
max-width: @widescreenSidenavMaxWidth;
|
|
8
8
|
// background : @sidenavBackground;
|
|
9
|
-
margin-right
|
|
10
|
-
padding-left
|
|
11
|
-
overflow
|
|
9
|
+
margin-right: @sidenavMarginRight;
|
|
10
|
+
padding-left: @sidenavPaddingLeft;
|
|
11
|
+
overflow: @sidenavOverflow;
|
|
12
12
|
}
|
|
13
13
|
@media (max-width: @largeMonitorBreakpoint) {
|
|
14
14
|
.context-navigation {
|
|
@@ -25,26 +25,25 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.context-navigation .item a {
|
|
28
|
-
display
|
|
29
|
-
padding
|
|
30
|
-
font-size
|
|
28
|
+
display: block;
|
|
29
|
+
padding: @sidenavItemPadding;
|
|
30
|
+
font-size: @sidenavItemFontSize;
|
|
31
31
|
font-weight: @sidenavItemFontWeight;
|
|
32
|
-
color
|
|
32
|
+
color: @sidenavItemColor;
|
|
33
33
|
|
|
34
34
|
&:hover,
|
|
35
35
|
&:focus-visible {
|
|
36
36
|
background: @sidenavItemHoverBackground;
|
|
37
|
-
color
|
|
37
|
+
color: @sidenavItemHoverColor;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.context-navigation-header {
|
|
42
|
-
display
|
|
43
|
-
color
|
|
44
|
-
font-size
|
|
42
|
+
display: flex;
|
|
43
|
+
color: @sidenavHeaderColor;
|
|
44
|
+
font-size: @sidenavHeaderFontSize;
|
|
45
45
|
font-weight: @sidenavHeaderFontWeight;
|
|
46
|
-
padding
|
|
47
|
-
border-bottom: @sidenavHeaderBorderBottom;
|
|
46
|
+
padding: @sidenavHeaderPadding;
|
|
48
47
|
|
|
49
48
|
i.icon {
|
|
50
49
|
margin-right: @sidenavHeaderIconMarginRight;
|
|
@@ -59,9 +58,9 @@
|
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
.context-navigation a.contenttype-folder {
|
|
62
|
-
font-size
|
|
61
|
+
font-size: @sidenavFolderFontSize;
|
|
63
62
|
font-weight: @sidenavFolderFontWeight;
|
|
64
|
-
padding
|
|
63
|
+
padding: @sidenavFolderItemPadding;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
.context-navigation .ui.list > .item > .content {
|
|
@@ -70,7 +69,7 @@
|
|
|
70
69
|
|
|
71
70
|
// Hide last border
|
|
72
71
|
.context-navigation .ui.list > .item:last-child > .content {
|
|
73
|
-
border-bottom: none;
|
|
72
|
+
border-bottom: none;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
// Nav custom list
|
|
@@ -88,14 +87,14 @@
|
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
.context-navigation .item.level-1 .ui.divider {
|
|
91
|
-
border-bottom: none;
|
|
90
|
+
border-bottom: none;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
.context-navigation .item.level-2 a {
|
|
95
94
|
padding-left: @subparItemPaddingLeft;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
.context-navigation .item.level-3 a {
|
|
99
98
|
padding-left: @subparItemPaddingLeft + 2rem;
|
|
100
99
|
}
|
|
101
100
|
|
|
@@ -106,7 +105,7 @@
|
|
|
106
105
|
}
|
|
107
106
|
.context-navigation .active.item > .content > a:hover,
|
|
108
107
|
.context-navigation .active.item > .content > a:focus-visible {
|
|
109
|
-
color
|
|
108
|
+
color: @sidenavItemActiveColorHover;
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
// Hide arrow
|
|
@@ -126,6 +125,13 @@
|
|
|
126
125
|
background-color: @sidenavAccordionHeaderBackgroundColor;
|
|
127
126
|
box-shadow: @sidenavBoxShadow;
|
|
128
127
|
}
|
|
128
|
+
@media only screen and (max-width: 991px) {
|
|
129
|
+
.view-viewview.light-header .eea-side-menu:not(.fixed) .accordion-header {
|
|
130
|
+
color: white;
|
|
131
|
+
background: transparent;
|
|
132
|
+
box-shadow: 0px 3px 6px @grey-5;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
129
135
|
|
|
130
136
|
.context-navigation-list {
|
|
131
137
|
width: @sidenavMaxWidth;
|
|
@@ -134,16 +140,15 @@
|
|
|
134
140
|
}
|
|
135
141
|
.context-navigation-list .title-link {
|
|
136
142
|
display: block;
|
|
137
|
-
color: @sidenavItemColor;
|
|
143
|
+
color: @sidenavItemColor;
|
|
138
144
|
margin: 0 @sidenavItemMargin;
|
|
139
|
-
font-size
|
|
145
|
+
font-size: @sidenavItemFontSize;
|
|
140
146
|
font-weight: @sidenavItemFontWeight;
|
|
141
147
|
}
|
|
142
148
|
.context-navigation-list .content .title-link {
|
|
143
149
|
font-weight: @sidenavLevelTwoItemFontWeight;
|
|
144
150
|
}
|
|
145
151
|
.context-navigation {
|
|
146
|
-
|
|
147
152
|
.current {
|
|
148
153
|
color: @sidenavItemActiveColor;
|
|
149
154
|
}
|
|
@@ -151,32 +156,67 @@
|
|
|
151
156
|
.accordion {
|
|
152
157
|
display: flex;
|
|
153
158
|
flex-wrap: wrap;
|
|
159
|
+
margin: 0 !important;
|
|
154
160
|
}
|
|
155
|
-
.ui.accordion
|
|
161
|
+
.ui.accordion > .title {
|
|
156
162
|
--text-color: @sidenavItemColor;
|
|
157
163
|
--text-color-hover: @sidenavItemColor;
|
|
158
164
|
font-size: @sidenavItemFontSize;
|
|
159
165
|
font-weight: @sidenavItemFontWeight;
|
|
160
166
|
padding: @sidenavFolderItemPadding;
|
|
161
167
|
text-align: left;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
border-bottom: @sidenavContentBorderBottom;
|
|
165
|
-
}
|
|
168
|
+
line-height: @sidenavFolderItemLineHeight;
|
|
169
|
+
margin: 0;
|
|
166
170
|
}
|
|
171
|
+
|
|
172
|
+
// add border-bottom only on first level titles
|
|
173
|
+
.context-navigation-list
|
|
174
|
+
> .accordion-list-item
|
|
175
|
+
> .accordion
|
|
176
|
+
> .title:not([aria-expanded='true']) {
|
|
177
|
+
border-bottom: @sidenavContentBorderBottom;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// add border-bottom to content of first level expanded accordion
|
|
181
|
+
.context-navigation-list
|
|
182
|
+
> .accordion-list-item
|
|
183
|
+
> .accordion
|
|
184
|
+
> .title[aria-expanded='true']
|
|
185
|
+
+ .content {
|
|
186
|
+
border-bottom: @sidenavContentBorderBottom;
|
|
187
|
+
}
|
|
188
|
+
|
|
167
189
|
.context-navigation-list.accordion-list {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
190
|
+
max-height: @sidenavAccordionListMaxHeight;
|
|
191
|
+
overflow-y: auto;
|
|
192
|
+
-webkit-overflow-scrolling: touch;
|
|
171
193
|
}
|
|
172
194
|
.accordion-list {
|
|
195
|
+
.accordion-list .accordion-list-item .title {
|
|
196
|
+
padding-left: @secondLevelItemPaddingLeft;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.accordion-list .accordion-list .accordion-list-item .title {
|
|
200
|
+
padding-left: @thirdLevelItemPaddingLeft;
|
|
201
|
+
}
|
|
202
|
+
.accordion-list .accordion-list-item .accordion-list-title .title-link {
|
|
203
|
+
padding-left: @thirdLevelItemPaddingLeft;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.accordion-list
|
|
207
|
+
.accordion-list
|
|
208
|
+
.accordion-list-item
|
|
209
|
+
.accordion-list-title
|
|
210
|
+
.title-link {
|
|
211
|
+
padding-left: @fourthLevelItemPaddingLeft;
|
|
212
|
+
}
|
|
173
213
|
margin-top: 0;
|
|
174
214
|
margin-bottom: 0;
|
|
175
215
|
list-style: none;
|
|
176
216
|
padding-left: 0;
|
|
177
217
|
}
|
|
178
218
|
|
|
179
|
-
.context-navigation-list
|
|
219
|
+
.context-navigation-list > .accordion-list-title {
|
|
180
220
|
border-bottom: @sidenavContentBorderBottom;
|
|
181
221
|
|
|
182
222
|
.title-link {
|
|
@@ -21,11 +21,10 @@
|
|
|
21
21
|
@sidenavAccordionHeaderPadding: @rem-space-2 @rem-space-4;
|
|
22
22
|
@sidenavAccordionHeaderBackgroundColor: white;
|
|
23
23
|
@sidenavAccordionListMaxHeight: 86dvh;
|
|
24
|
-
@
|
|
25
|
-
@sidenavHeaderIconMarginRight: @rem-space-4;
|
|
24
|
+
@sidenavHeaderIconMarginRight: 0;
|
|
26
25
|
|
|
27
26
|
/* Header icon */
|
|
28
|
-
@sidenavHeaderIconContent:
|
|
27
|
+
@sidenavHeaderIconContent: '\ef32';
|
|
29
28
|
@sidenavHeaderIconFontWeight: @font-weight-4;
|
|
30
29
|
@sidenavHeaderIconPaddingRight: @rem-space-4;
|
|
31
30
|
|
|
@@ -42,9 +41,6 @@
|
|
|
42
41
|
@sidenavLastItemMarginBottom: @rem-space-2;
|
|
43
42
|
@sidenavItemMargin: 2px;
|
|
44
43
|
|
|
45
|
-
/* Third level item */
|
|
46
|
-
@subparItemPaddingLeft: @rem-space-12;
|
|
47
|
-
|
|
48
44
|
/* Item active */
|
|
49
45
|
@sidenavItemActiveColor: @secondaryColor;
|
|
50
46
|
@sidenavItemActiveFontWeight: @font-weight-7;
|
|
@@ -54,7 +50,14 @@
|
|
|
54
50
|
@sidenavFolderFontSize: @font-size-2;
|
|
55
51
|
@sidenavFolderFontWeight: @font-weight-7;
|
|
56
52
|
@sidenavFolderItemPadding: @rem-space-4;
|
|
53
|
+
@sidenavFolderItemLineHeight: 1.5;
|
|
57
54
|
|
|
58
55
|
/* Item - Level 2 */
|
|
59
56
|
@sidenavLevelTwoItemFontWeight: @font-weight-4;
|
|
60
57
|
@sidenavLevelTwoItemPadding: 0.5rem 1.5rem;
|
|
58
|
+
@secondLevelItemPaddingLeft: @rem-space-6;
|
|
59
|
+
|
|
60
|
+
/* Item - Level 3 */
|
|
61
|
+
@subparItemPaddingLeft: @rem-space-12;
|
|
62
|
+
@thirdLevelItemPaddingLeft: @rem-space-8;
|
|
63
|
+
@fourthLevelItemPaddingLeft: @rem-space-10;
|
|
@@ -17,12 +17,16 @@
|
|
|
17
17
|
align-items: @copyrightAlignItems;
|
|
18
18
|
line-height: @copyrightLineHeight;
|
|
19
19
|
gap: @copyrightContentPaddingRight;
|
|
20
|
+
justify-content: var(--justify-content, flex-start);
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
&.left .wrapper {
|
|
23
|
+
--justify-content: flex-start;
|
|
24
|
+
}
|
|
25
|
+
&.center .wrapper {
|
|
26
|
+
--justify-content: center;
|
|
27
|
+
}
|
|
24
28
|
&.right .wrapper {
|
|
25
|
-
justify-content: flex-end;
|
|
29
|
+
--justify-content: flex-end;
|
|
26
30
|
}
|
|
27
31
|
.icon {
|
|
28
32
|
margin: 0; // override default
|
|
@@ -105,6 +105,12 @@
|
|
|
105
105
|
--text-color: @textColor;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/* Removed z-index .block.align .right & .left from pastanaga blocks.less */
|
|
109
|
+
.block.align.left,
|
|
110
|
+
.block.align.right {
|
|
111
|
+
z-index: initial;
|
|
112
|
+
}
|
|
113
|
+
|
|
108
114
|
.blocks-chooser {
|
|
109
115
|
.searchbox {
|
|
110
116
|
height: auto !important;
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
/* So child can have position sticky */
|
|
17
17
|
display: initial;
|
|
18
18
|
&:has(.eea-side-menu) {
|
|
19
|
-
margin-bottom:
|
|
19
|
+
margin-bottom: 1rem;
|
|
20
|
+
position: relative;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
/*----------------------------------------------------------------------------
|
|
26
25
|
HEADER TOP BAR
|
|
27
26
|
----------------------------------------------------------------------------*/
|
|
@@ -229,15 +228,6 @@
|
|
|
229
228
|
content: ' ';
|
|
230
229
|
}
|
|
231
230
|
|
|
232
|
-
.light-header {
|
|
233
|
-
.main.bar.transparency:before {
|
|
234
|
-
background: linear-gradient(0deg, rgba(96, 96, 96, 0.2), #3d5265 100%);
|
|
235
|
-
}
|
|
236
|
-
#page-header {
|
|
237
|
-
margin-bottom: 2rem;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
231
|
.main.bar {
|
|
242
232
|
background: @headerMainSectionBackground;
|
|
243
233
|
scrollbar-gutter: stable;
|
|
@@ -934,4 +924,101 @@
|
|
|
934
924
|
}
|
|
935
925
|
}
|
|
936
926
|
|
|
927
|
+
/*******************************
|
|
928
|
+
Light Header
|
|
929
|
+
*******************************/
|
|
930
|
+
// Styles that turn the header into a transparent white header such as on the homepage
|
|
931
|
+
.light-header {
|
|
932
|
+
.main.bar.transparency:before {
|
|
933
|
+
background: linear-gradient(0deg, rgba(96, 96, 96, 0.2), #3d5265 100%);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/* fix size of visualization that enlarge content are of web reports resulting in a scrollbar */
|
|
938
|
+
.light-header #view .ui.grid {
|
|
939
|
+
max-width: 900px;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
//Gradient styles for web report
|
|
943
|
+
.light-header .gradient {
|
|
944
|
+
// background: linear-gradient(
|
|
945
|
+
// 0deg,
|
|
946
|
+
// #ffffff,
|
|
947
|
+
// rgba(255, 255, 255, 0.9) 30%,
|
|
948
|
+
// rgba(46, 82, 114, 0.7) 70%,
|
|
949
|
+
// rgba(14, 21, 26, 0.8) 100%
|
|
950
|
+
// ) !important;
|
|
951
|
+
background: linear-gradient(
|
|
952
|
+
0deg,
|
|
953
|
+
#fff,
|
|
954
|
+
rgba(255, 255, 255, 0.8) 30%,
|
|
955
|
+
rgba(31, 31, 31, 0.1) 50%,
|
|
956
|
+
rgba(58, 58, 58, 0.8) 100%
|
|
957
|
+
) !important;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.view-viewview.light-header .main.bar {
|
|
961
|
+
position: relative;
|
|
962
|
+
z-index: 1;
|
|
963
|
+
width: 100%;
|
|
964
|
+
margin-bottom: -160px;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
@media all and (max-width: @largestMobileScreen) {
|
|
968
|
+
// avoid overlap of gradient of top.bar
|
|
969
|
+
.view-viewview.light-header .main.bar {
|
|
970
|
+
margin-bottom: -65px;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.view-viewview.light-header .eea-side-menu.mobile:not(.fixed) {
|
|
974
|
+
top: 111px;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
|
979
|
+
.view-viewview.light-header {
|
|
980
|
+
.main.bar {
|
|
981
|
+
margin-bottom: -115px;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.eea-side-menu:not(.fixed) {
|
|
985
|
+
top: 160px;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
#page-document {
|
|
989
|
+
padding: 0 1.25rem;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
@media only screen and (max-width: 991px) {
|
|
995
|
+
.view-viewview.light-header
|
|
996
|
+
.eea.header:has(#search-box, .visible)
|
|
997
|
+
.eea-side-menu {
|
|
998
|
+
z-index: 0;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
1003
|
+
.light-header #page-header:empty + .breadcrumbs + .content-area {
|
|
1004
|
+
padding-top: 0 !important;
|
|
1005
|
+
margin-top: 0 !important;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
@media screen and (min-width: 768px) and (max-width: 991px) {
|
|
1010
|
+
.view-viewview.light-header .main.bar {
|
|
1011
|
+
margin-bottom: -115px;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
@media only screen and (min-width: 768px) and (max-width: 1365px) {
|
|
1016
|
+
.view-viewview.light-header .ui.container {
|
|
1017
|
+
padding: 0 1.25rem;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
/*******************************
|
|
1021
|
+
/Light Header
|
|
1022
|
+
*******************************/
|
|
1023
|
+
|
|
937
1024
|
.loadUIOverrides();
|
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
--------------------*/
|
|
4
4
|
|
|
5
5
|
/* Heights */
|
|
6
|
-
@mobileTopSectionHeight
|
|
7
|
-
@tabletTopSectionHeight
|
|
8
|
-
@computerTopSectionHeight
|
|
9
|
-
|
|
10
|
-
@mobileMainSectionHeight
|
|
11
|
-
@tabletMainSectionHeight
|
|
12
|
-
@computerMainSectionHeight
|
|
13
|
-
|
|
14
|
-
@mobilePopUpHeight
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
@mobileTopSectionHeight: 42px; //delete
|
|
7
|
+
@tabletTopSectionHeight: 42px;
|
|
8
|
+
@computerTopSectionHeight: 34px;
|
|
9
|
+
|
|
10
|
+
@mobileMainSectionHeight: 69px;
|
|
11
|
+
@tabletMainSectionHeight: 117px;
|
|
12
|
+
@computerMainSectionHeight: 160px;
|
|
13
|
+
|
|
14
|
+
@mobilePopUpHeight: calc(
|
|
15
|
+
100vh - (@mobileTopSectionHeight + @mobileMainSectionHeight)
|
|
16
|
+
);
|
|
17
|
+
@tabletPopUpHeight: calc(
|
|
18
|
+
100vh - (@tabletTopSectionHeight + @tabletMainSectionHeight)
|
|
19
|
+
);
|
|
20
|
+
@computerPopUpHeight: calc(
|
|
21
|
+
100vh - (@computerTopSectionHeight + @computerMainSectionHeight)
|
|
22
|
+
);
|
|
17
23
|
|
|
18
24
|
/* Header font sizes */
|
|
19
25
|
@headerMinyFontSize: 0.5rem;
|
|
@@ -22,128 +28,128 @@
|
|
|
22
28
|
@headerMediumFontSize: 0.875rem;
|
|
23
29
|
@headerLargeFontSize: 1.125rem;
|
|
24
30
|
|
|
25
|
-
|
|
26
31
|
/*-------------------
|
|
27
32
|
HEADER TOP BAR
|
|
28
33
|
--------------------*/
|
|
29
34
|
|
|
30
|
-
@topSectionBackground
|
|
31
|
-
@topSectionItemColor
|
|
32
|
-
@topSectionItemFontWeight
|
|
33
|
-
@topSectionItemFontSize
|
|
34
|
-
@mobileTopSectionItemFontSize
|
|
35
|
-
@tabletTopSectionItemFontSize
|
|
36
|
-
@topSectionZIndex
|
|
37
|
-
@dropdownColor
|
|
38
|
-
@mobileDropdownFontSize
|
|
39
|
-
@tabletDropdownFontSize
|
|
40
|
-
@dropdownFontWeight
|
|
35
|
+
@topSectionBackground: @grey-2;
|
|
36
|
+
@topSectionItemColor: @blue-grey-6;
|
|
37
|
+
@topSectionItemFontWeight: @bold;
|
|
38
|
+
@topSectionItemFontSize: @font-size-00;
|
|
39
|
+
@mobileTopSectionItemFontSize: @font-size-00;
|
|
40
|
+
@tabletTopSectionItemFontSize: @font-size-00;
|
|
41
|
+
@topSectionZIndex: @z-index-2;
|
|
42
|
+
@dropdownColor: @blue-grey-6;
|
|
43
|
+
@mobileDropdownFontSize: @font-size-00;
|
|
44
|
+
@tabletDropdownFontSize: @font-size-00;
|
|
45
|
+
@dropdownFontWeight: @bold;
|
|
41
46
|
|
|
42
47
|
/* Icon */
|
|
43
|
-
@topSectionIconMarginLeft
|
|
44
|
-
@topSectionIconMarginRight
|
|
45
|
-
@topSectionIconFontSize
|
|
46
|
-
@topSectionIconLineHeight
|
|
47
|
-
@mobileTopSectionIconTop
|
|
48
|
-
@computerTopSectionIconTop
|
|
48
|
+
@topSectionIconMarginLeft: @rem-space-1;
|
|
49
|
+
@topSectionIconMarginRight: @rem-space-1;
|
|
50
|
+
@topSectionIconFontSize: @font-size-0;
|
|
51
|
+
@topSectionIconLineHeight: @font-lineheight-00;
|
|
52
|
+
@mobileTopSectionIconTop: 14px;
|
|
53
|
+
@computerTopSectionIconTop: 10px;
|
|
49
54
|
|
|
50
55
|
/* Dropdown Menu */
|
|
51
|
-
@mobileDropdownPadding
|
|
52
|
-
@computerDropdownPadding
|
|
53
|
-
@dropdownMaxWidth
|
|
54
|
-
@dropdownMenuLeft
|
|
55
|
-
@dropdownMenuRight
|
|
56
|
-
@dropdownMenuWrapperGap
|
|
57
|
-
@dropdownMenuWrapperMargin
|
|
58
|
-
@dropdownMenuLanguageWrapperPaddingInlineStart
|
|
59
|
-
@dropdownMenuContentWhiteSpace
|
|
60
|
-
@mobileDropdownMenuContentFontSize
|
|
61
|
-
@desktopDropdownMenuContentFontSize
|
|
62
|
-
@dropdownMenuItemColorHover
|
|
63
|
-
@dropdownMenuItemBackgroundColorHover
|
|
64
|
-
@dropdownMenuItemPadding
|
|
65
|
-
@dropdownMenuFontSize
|
|
56
|
+
@mobileDropdownPadding: @rem-space-3 @rem-space-6 @rem-space-3 @rem-space-2;
|
|
57
|
+
@computerDropdownPadding: @rem-space-2 @rem-space-6 @rem-space-2 @rem-space-2;
|
|
58
|
+
@dropdownMaxWidth: 410px;
|
|
59
|
+
@dropdownMenuLeft: auto;
|
|
60
|
+
@dropdownMenuRight: 0;
|
|
61
|
+
@dropdownMenuWrapperGap: @rem-space-1;
|
|
62
|
+
@dropdownMenuWrapperMargin: @rem-space-1 0;
|
|
63
|
+
@dropdownMenuLanguageWrapperPaddingInlineStart: 0;
|
|
64
|
+
@dropdownMenuContentWhiteSpace: pre-wrap;
|
|
65
|
+
@mobileDropdownMenuContentFontSize: @font-size-00;
|
|
66
|
+
@desktopDropdownMenuContentFontSize: @font-size-00;
|
|
67
|
+
@dropdownMenuItemColorHover: @white;
|
|
68
|
+
@dropdownMenuItemBackgroundColorHover: @blue-grey-6;
|
|
69
|
+
@dropdownMenuItemPadding: @rem-space-050 @rem-space-5;
|
|
70
|
+
@dropdownMenuFontSize: @font-size-00;
|
|
66
71
|
|
|
67
72
|
// Official Union
|
|
68
|
-
@mobileOfficialUnionGap
|
|
69
|
-
@tabletOfficialUnionGap
|
|
70
|
-
@officialUnionLinkFontWeight
|
|
71
|
-
@officialUnionPadding
|
|
72
|
-
@mobileOfficialUnionMaxWidth
|
|
73
|
-
@tabletOfficialUnionMaxWidth
|
|
74
|
-
@computerOfficialUnionMaxWidth
|
|
75
|
-
@mobileOfficialUnionImageWidth
|
|
76
|
-
@tabletOfficialUnionImageWidth
|
|
77
|
-
@mobileOfficialUnionMenuLeft
|
|
78
|
-
@tabletOfficialUnionMenuLeft
|
|
79
|
-
@mobileOfficialUnionPadding
|
|
80
|
-
@tabletOfficialUnionPadding
|
|
81
|
-
@
|
|
73
|
+
@mobileOfficialUnionGap: 0;
|
|
74
|
+
@tabletOfficialUnionGap: 0;
|
|
75
|
+
@officialUnionLinkFontWeight: @bold;
|
|
76
|
+
@officialUnionPadding: @rem-space-3;
|
|
77
|
+
@mobileOfficialUnionMaxWidth: 108px;
|
|
78
|
+
@tabletOfficialUnionMaxWidth: 272px;
|
|
79
|
+
@computerOfficialUnionMaxWidth: 380px;
|
|
80
|
+
@mobileOfficialUnionImageWidth: 25px;
|
|
81
|
+
@tabletOfficialUnionImageWidth: 44px;
|
|
82
|
+
@mobileOfficialUnionMenuLeft: 0;
|
|
83
|
+
@tabletOfficialUnionMenuLeft: 0;
|
|
84
|
+
@mobileOfficialUnionPadding: @rem-space-3 @rem-space-6;
|
|
85
|
+
@tabletOfficialUnionPadding: @rem-space-3 @rem-space-6 @rem-space-3
|
|
86
|
+
@rem-space-12;
|
|
87
|
+
@computerOfficialUnionPadding: @rem-space-2 @rem-space-6 @rem-space-2
|
|
88
|
+
@rem-space-12;
|
|
82
89
|
|
|
83
90
|
// Theme Sites
|
|
84
|
-
@themeSitesMenuWidth
|
|
85
|
-
@themeSitesMenuSiteLinkColor
|
|
86
|
-
@themeSitesMenuSiteLinkFontWeight
|
|
87
|
-
@mobileThemeSitesMenuLeft
|
|
91
|
+
@themeSitesMenuWidth: 224px;
|
|
92
|
+
@themeSitesMenuSiteLinkColor: @blue-grey-6;
|
|
93
|
+
@themeSitesMenuSiteLinkFontWeight: @normal;
|
|
94
|
+
@mobileThemeSitesMenuLeft: 0px;
|
|
88
95
|
|
|
89
96
|
// Language
|
|
90
|
-
@mobileLanguageMenuPadding
|
|
91
|
-
@computerLanguageMenuPadding
|
|
92
|
-
@languageMenuItemFontWeight
|
|
93
|
-
@mobileLanguageCountryCodeMarginLeft
|
|
94
|
-
@mobileLanguageCountryCodeFontWeight
|
|
95
|
-
@mobileLanguageFontSize
|
|
96
|
-
@computerLanguageFontSize
|
|
97
|
-
@mobileLanguageImageWidth
|
|
98
|
-
@tabletLanguageImageWidth
|
|
97
|
+
@mobileLanguageMenuPadding: @rem-space-3 @rem-space-2;
|
|
98
|
+
@computerLanguageMenuPadding: @rem-space-2;
|
|
99
|
+
@languageMenuItemFontWeight: @normal;
|
|
100
|
+
@mobileLanguageCountryCodeMarginLeft: 3px;
|
|
101
|
+
@mobileLanguageCountryCodeFontWeight: @bold;
|
|
102
|
+
@mobileLanguageFontSize: @font-size-0;
|
|
103
|
+
@computerLanguageFontSize: @font-size-1;
|
|
104
|
+
@mobileLanguageImageWidth: 17px;
|
|
105
|
+
@tabletLanguageImageWidth: 18px;
|
|
99
106
|
|
|
100
107
|
/*-----------------------
|
|
101
108
|
HEADER MAIN SECTION
|
|
102
109
|
-----------------------*/
|
|
103
110
|
|
|
104
111
|
/* Main Section */
|
|
105
|
-
@headerMainSectionBackground
|
|
106
|
-
@headerMainSectionTransparency
|
|
112
|
+
@headerMainSectionBackground: transparent;
|
|
113
|
+
@headerMainSectionTransparency: rgba(255, 255, 255, 0.1);
|
|
107
114
|
|
|
108
115
|
/* Logo */
|
|
109
|
-
@logoWidth
|
|
110
|
-
@mobileLogoMaxWidth
|
|
111
|
-
@tabletLogoMaxWidth
|
|
112
|
-
@computerLogoMaxWidth
|
|
113
|
-
@mobileLogoMarginTop
|
|
114
|
-
@tabletLogoMarginTop
|
|
115
|
-
@computerLogoMarginTop
|
|
116
|
+
@logoWidth: 100%;
|
|
117
|
+
@mobileLogoMaxWidth: 142px;
|
|
118
|
+
@tabletLogoMaxWidth: 252px;
|
|
119
|
+
@computerLogoMaxWidth: 347px; //348 rendered fuzzy :(
|
|
120
|
+
@mobileLogoMarginTop: @rem-space-2;
|
|
121
|
+
@tabletLogoMarginTop: @rem-space-3-5;
|
|
122
|
+
@computerLogoMarginTop: @rem-space-5;
|
|
116
123
|
|
|
117
124
|
/* Main menu */
|
|
118
|
-
@mainMenuGap
|
|
119
|
-
@mainMenuItemColor
|
|
120
|
-
@mainMenuItemInvertedColor
|
|
121
|
-
@mainMenuItemFontSize
|
|
122
|
-
@mainMenuItemFontWeight
|
|
123
|
-
@mainMenuItemPadding
|
|
124
|
-
@mainMenuItemActiveColor
|
|
125
|
-
@mainMenuItemBorder
|
|
126
|
-
@mainMenuItemActiveBorder
|
|
127
|
-
@mainMenuInvertedItemActiveBorder
|
|
128
|
-
@mainMenuItemAlignSelf
|
|
129
|
-
|
|
125
|
+
@mainMenuGap: @component-padding;
|
|
126
|
+
@mainMenuItemColor: @primaryColor;
|
|
127
|
+
@mainMenuItemInvertedColor: @white;
|
|
128
|
+
@mainMenuItemFontSize: ~'min(max(0.875rem, 1.5vw), 1.125rem)';
|
|
129
|
+
@mainMenuItemFontWeight: @font-weight-5;
|
|
130
|
+
@mainMenuItemPadding: @rem-space-050 @rem-space-2;
|
|
131
|
+
@mainMenuItemActiveColor: @secondaryColor;
|
|
132
|
+
@mainMenuItemBorder: 4px solid transparent;
|
|
133
|
+
@mainMenuItemActiveBorder: 4px solid @secondaryColor;
|
|
134
|
+
@mainMenuInvertedItemActiveBorder: 4px solid @white;
|
|
135
|
+
@mainMenuItemAlignSelf: flex-end;
|
|
130
136
|
|
|
131
137
|
/* Subsite */
|
|
132
|
-
@subsitePosition
|
|
133
|
-
@subsiteZIndex
|
|
134
|
-
@subsiteFontFamily
|
|
135
|
-
@subsiteFontWeight
|
|
136
|
-
@subsiteColor
|
|
137
|
-
@subsiteLineHeight
|
|
138
|
-
@subsiteFlexGap
|
|
139
|
-
@subsiteLogoTopPosition
|
|
140
|
-
@subsiteDividerHeight
|
|
141
|
-
@subsiteDividerWidth
|
|
142
|
-
@subsiteDividerTopPosition
|
|
143
|
-
@subsiteDividerColor
|
|
144
|
-
@mobileSubsiteFontSize
|
|
145
|
-
@tabletSubsiteFontSize
|
|
146
|
-
@computerSubsiteFontSize
|
|
138
|
+
@subsitePosition: relative;
|
|
139
|
+
@subsiteZIndex: 1;
|
|
140
|
+
@subsiteFontFamily: @headerFont;
|
|
141
|
+
@subsiteFontWeight: @headerFontWeight;
|
|
142
|
+
@subsiteColor: @linkColor;
|
|
143
|
+
@subsiteLineHeight: 1.1;
|
|
144
|
+
@subsiteFlexGap: 30px;
|
|
145
|
+
@subsiteLogoTopPosition: 50%;
|
|
146
|
+
@subsiteDividerHeight: 110%;
|
|
147
|
+
@subsiteDividerWidth: 1px;
|
|
148
|
+
@subsiteDividerTopPosition: 50%;
|
|
149
|
+
@subsiteDividerColor: @secondaryColorCSSVar;
|
|
150
|
+
@mobileSubsiteFontSize: unit(@h6, em);
|
|
151
|
+
@tabletSubsiteFontSize: unit(@h4, em);
|
|
152
|
+
@computerSubsiteFontSize: unit(@h2, em);
|
|
147
153
|
|
|
148
154
|
/*-----------------
|
|
149
155
|
HEADER ACTIONS
|
|
@@ -156,9 +162,9 @@
|
|
|
156
162
|
@burgerActionBackgroundColor: @darkMidnightBlue;
|
|
157
163
|
|
|
158
164
|
/* Mega menu and Search popup */
|
|
159
|
-
@mobilePopupMarginTop
|
|
160
|
-
@tabletPopupMarginTop
|
|
161
|
-
@computerPopupMarginTop
|
|
165
|
+
@mobilePopupMarginTop: 5vh;
|
|
166
|
+
@tabletPopupMarginTop: 10vh;
|
|
167
|
+
@computerPopupMarginTop: 18vh;
|
|
162
168
|
|
|
163
169
|
/* Mega menu */
|
|
164
170
|
@mobileMegaMenuWidth: 94%;
|
|
@@ -187,7 +193,7 @@
|
|
|
187
193
|
@megaMenuListItemFontSize: @font-size-1;
|
|
188
194
|
@megaMenuListItemFontWeight: @font-weight-4;
|
|
189
195
|
@megaMenuListItemPadding: @rem-space-2 0;
|
|
190
|
-
@megaMenuListItemActiveBorder: 4px solid #
|
|
196
|
+
@megaMenuListItemActiveBorder: 4px solid #fff;
|
|
191
197
|
@megaMenuListItemActivePadding: 8px;
|
|
192
198
|
|
|
193
199
|
/* Topics */
|
|
@@ -221,8 +227,12 @@
|
|
|
221
227
|
|
|
222
228
|
/* Search box */
|
|
223
229
|
@searchBoxPosition: absolute;
|
|
224
|
-
@searchBoxBackgroundGradient
|
|
225
|
-
|
|
230
|
+
@searchBoxBackgroundGradient: linear-gradient(
|
|
231
|
+
13.69deg,
|
|
232
|
+
@blue-5 1.17%,
|
|
233
|
+
@secondaryColor 80%
|
|
234
|
+
);
|
|
235
|
+
@searchBoxWrapperGap: 75px;
|
|
226
236
|
@searchBoxAlignItems: center;
|
|
227
237
|
@searchBoxFullSearchBackground: rgba(255, 255, 255, 0.1);
|
|
228
238
|
@searchBoxFullSearchBoxShadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
|
|
@@ -245,7 +255,8 @@
|
|
|
245
255
|
@searchBoxComputerPopupMarginTop: @em-space-8;
|
|
246
256
|
|
|
247
257
|
/* Custom shadows for dropdowns */
|
|
248
|
-
@shadow-topbar-dropdown: 2px 0 2px -5px hsla(@shadow-color, calc(@shadow-strength +
|
|
258
|
+
@shadow-topbar-dropdown: 2px 0 2px -5px hsla(@shadow-color, calc(@shadow-strength +
|
|
259
|
+
6%));
|
|
249
260
|
@shadow-4-no-top:
|
|
250
261
|
0 0 0 0 hsla(@shadow-color, calc(@shadow-strength + 2%)),
|
|
251
262
|
0 1px 1px -2px hsla(@shadow-color, calc(@shadow-strength + 3%)),
|
|
@@ -38,6 +38,25 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
@media only screen and (max-width: (@mobileDefaultBreakpoint - @1px)) {
|
|
42
|
+
#inpage-navigation {
|
|
43
|
+
bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media only screen and (max-width: @largestMobileScreen) {
|
|
48
|
+
// avoid overlap with web report mobile menu
|
|
49
|
+
#inpage-navigation {
|
|
50
|
+
right: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// better centering of the inpage navigation icon
|
|
54
|
+
#inpage-navigation > div > i.icon,
|
|
55
|
+
#inpage-navigation i.icons {
|
|
56
|
+
line-height: 2rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
41
60
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
42
61
|
#inpage-navigation {
|
|
43
62
|
width: @computerNavWidth;
|
|
@@ -324,6 +324,7 @@
|
|
|
324
324
|
--------------------*/
|
|
325
325
|
|
|
326
326
|
@mobileBreakpoint : 320px;
|
|
327
|
+
@mobileDefaultBreakpoint : 360px;
|
|
327
328
|
@mobileLandscapeBreakpoint : 480px; // introduced for the design system
|
|
328
329
|
@tabletBreakpoint : 768px;
|
|
329
330
|
@contentBreakpoint : 835px; // introduced for the design system
|