@eeacms/volto-eea-design-system 0.9.2 → 0.9.4
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 +63 -2
- package/package.json +2 -1
- package/src/ui/Banner/Banner.jsx +7 -1
- package/src/ui/Banner/Banner.stories.jsx +2 -0
- package/src/ui/Header/HeaderSearchPopUp.js +30 -12
- package/theme/themes/eea/collections/breadcrumb.variables +1 -1
- package/theme/themes/eea/collections/menu.overrides +1 -1
- package/theme/themes/eea/collections/menu.variables +2 -2
- package/theme/themes/eea/collections/table.variables +1 -1
- package/theme/themes/eea/elements/input.overrides +10 -3
- package/theme/themes/eea/elements/list.overrides +4 -2
- package/theme/themes/eea/elements/list.variables +6 -6
- package/theme/themes/eea/extras/banner.less +27 -11
- package/theme/themes/eea/extras/banner.variables +10 -0
- package/theme/themes/eea/extras/callout.variables +3 -3
- package/theme/themes/eea/extras/contentBox.less +16 -23
- package/theme/themes/eea/extras/contentBox.variables +1 -0
- package/theme/themes/eea/extras/custom.overrides +38 -2
- package/theme/themes/eea/extras/header.less +109 -74
- package/theme/themes/eea/extras/header.variables +11 -0
- package/theme/themes/eea/extras/quote.variables +2 -2
- package/theme/themes/eea/extras/tag.variables +1 -1
- package/theme/themes/eea/extras/tagList.variables +1 -1
- package/theme/themes/eea/globals/site.variables +14 -1
- package/theme/themes/eea/modules/accordion.overrides +5 -3
- package/theme/themes/eea/modules/accordion.variables +8 -7
- package/theme/themes/eea/modules/tab.overrides +4 -0
- package/theme/themes/eea/modules/tab.variables +1 -1
- package/theme/themes/eea/views/card.overrides +5 -0
- package/theme/themes/eea/views/card.variables +3 -2
- package/theme/themes/eea/views/item.overrides +13 -0
- package/theme/themes/eea/views/item.variables +5 -1
- package/theme/themes/eea/views/statistic.variables +6 -6
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
background: @topSectionBackground;
|
|
28
28
|
|
|
29
29
|
.ui.container {
|
|
30
|
+
z-index: @topSectionZindex;
|
|
30
31
|
display: flex;
|
|
31
32
|
align-items: center;
|
|
32
33
|
justify-content: space-between;
|
|
33
|
-
z-index: @topSectionZindex;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.top.bar .ui.dropdown {
|
|
50
|
-
|
|
50
|
+
max-width: @dropdownMaxWidth;
|
|
51
51
|
height: auto !important;
|
|
52
|
+
padding: @mobileDropdownPadding;
|
|
53
|
+
border: none !important;
|
|
52
54
|
border-radius: @defaultBorderRadius;
|
|
53
55
|
color: @topSectionItemColor;
|
|
54
|
-
padding: @mobileDropdownPadding;
|
|
55
|
-
max-width: @dropdownMaxWidth;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.top.bar .ui.active.visible.dropdown {
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.top.bar .ui.dropdown .menu {
|
|
74
|
-
left: @dropdownMenuLeft;
|
|
75
74
|
right: @dropdownMenuRight;
|
|
76
|
-
|
|
75
|
+
left: @dropdownMenuLeft;
|
|
77
76
|
border: none;
|
|
77
|
+
box-shadow: @shadow-4-no-top;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.top.bar .ui.dropdown .menu,
|
|
81
81
|
.top.bar .ui.dropdown .menu .item {
|
|
82
|
-
font-size: @dropdownMenuFontSize;
|
|
83
82
|
color: @dropdownColor;
|
|
83
|
+
font-size: @dropdownMenuFontSize;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.top.bar .ui.dropdown .menu .item {
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
.top.bar .ui.dropdown .wrapper {
|
|
97
97
|
display: flex;
|
|
98
98
|
flex-direction: column;
|
|
99
|
+
margin: @dropdownMenuWrapperMargin;
|
|
99
100
|
gap: @dropdownMenuWrapperGap;
|
|
100
101
|
white-space: @dropdownMenuContentWhiteSpace;
|
|
101
|
-
margin: @dropdownMenuWrapperMargin;
|
|
102
102
|
|
|
103
103
|
&.language-list {
|
|
104
104
|
padding-inline-start: @dropdownMenuLanguageWrapperPaddingInlineStart;
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
|
|
108
108
|
.top.bar .ui.dropdown i.chevron.down.icon {
|
|
109
109
|
position: absolute;
|
|
110
|
-
font-size: @topSectionIconFontSize;
|
|
111
|
-
margin-left: @topSectionIconMarginLeft;
|
|
112
110
|
top: @mobileTopSectionIconTop;
|
|
111
|
+
margin-left: @topSectionIconMarginLeft;
|
|
112
|
+
font-size: @topSectionIconFontSize;
|
|
113
113
|
line-height: @topSectionIconLineHeight;
|
|
114
|
-
transition: .2s;
|
|
114
|
+
transition: 0.2s;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/* Official union dropdown */
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
gap: @mobileOfficialUnionGap;
|
|
121
121
|
|
|
122
122
|
img {
|
|
123
|
-
width: @mobileOfficialUnionImageWidth;
|
|
124
123
|
position: absolute;
|
|
125
124
|
z-index: @z-index-1;
|
|
125
|
+
width: @mobileOfficialUnionImageWidth;
|
|
126
126
|
padding-left: @rem-space-2;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
padding: @mobileOfficialUnionPadding;
|
|
131
131
|
|
|
132
132
|
.menu {
|
|
133
|
-
padding: @officialUnionPadding;
|
|
134
133
|
left: @mobileOfficialUnionMenuLeft;
|
|
134
|
+
padding: @officialUnionPadding;
|
|
135
135
|
|
|
136
136
|
.content {
|
|
137
137
|
max-width: @mobileOfficialUnionMaxWidth;
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
p {
|
|
140
140
|
white-space: @dropdownMenuContentWhiteSpace;
|
|
141
141
|
}
|
|
142
|
+
|
|
142
143
|
a {
|
|
143
144
|
font-weight: @officialUnionLinkFontWeight;
|
|
144
145
|
white-space: @dropdownMenuContentWhiteSpace;
|
|
@@ -150,7 +151,6 @@
|
|
|
150
151
|
|
|
151
152
|
/* Theme sites dropdown */
|
|
152
153
|
#theme-sites.ui.dropdown .menu {
|
|
153
|
-
|
|
154
154
|
.wrapper {
|
|
155
155
|
width: @mobileThemeSitesMenuWidth;
|
|
156
156
|
|
|
@@ -171,13 +171,14 @@
|
|
|
171
171
|
|
|
172
172
|
/* Language dropdown */
|
|
173
173
|
#language-switcher {
|
|
174
|
-
padding: @mobileLanguageMenuPadding;
|
|
175
174
|
flex-direction: row-reverse;
|
|
175
|
+
padding: @mobileLanguageMenuPadding;
|
|
176
176
|
|
|
177
177
|
img {
|
|
178
178
|
width: @mobileLanguageImageWidth;
|
|
179
179
|
margin-right: @topSectionIconMarginRight;
|
|
180
180
|
}
|
|
181
|
+
|
|
181
182
|
.menu {
|
|
182
183
|
.wrapper {
|
|
183
184
|
.item {
|
|
@@ -202,25 +203,25 @@
|
|
|
202
203
|
----------------------------------------------------------------------------*/
|
|
203
204
|
|
|
204
205
|
.main.bar.transparency:before {
|
|
205
|
-
|
|
206
|
-
display: block;
|
|
207
|
-
content: " ";
|
|
208
|
-
top: 0;
|
|
206
|
+
position: absolute;
|
|
209
207
|
z-index: 0;
|
|
208
|
+
top: 0;
|
|
209
|
+
display: block;
|
|
210
210
|
width: 100%;
|
|
211
211
|
height: 100%;
|
|
212
|
-
|
|
212
|
+
background-color: @headerMainSectionTransparency;
|
|
213
|
+
content: ' ';
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
.main.bar {
|
|
216
|
-
scrollbar-gutter: stable;
|
|
217
217
|
background: @headerMainSectionBackground;
|
|
218
|
+
scrollbar-gutter: stable;
|
|
218
219
|
|
|
219
220
|
.ui.container {
|
|
220
221
|
display: flex;
|
|
222
|
+
height: @mobileMainSectionHeight;
|
|
221
223
|
align-items: center;
|
|
222
224
|
justify-content: space-between;
|
|
223
|
-
height: @mobileMainSectionHeight;
|
|
224
225
|
|
|
225
226
|
.ui.grid {
|
|
226
227
|
// All margins and paddings removed for main header
|
|
@@ -229,14 +230,14 @@
|
|
|
229
230
|
|
|
230
231
|
// Override grid specific paddings for header
|
|
231
232
|
div:first-child {
|
|
232
|
-
padding-left: 0;
|
|
233
233
|
padding-top: 0;
|
|
234
234
|
padding-bottom: 0;
|
|
235
|
+
padding-left: 0;
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
div:last-child {
|
|
238
|
-
padding-right: 0;
|
|
239
239
|
padding-top: 0;
|
|
240
|
+
padding-right: 0;
|
|
240
241
|
padding-bottom: 0;
|
|
241
242
|
}
|
|
242
243
|
}
|
|
@@ -245,31 +246,32 @@
|
|
|
245
246
|
|
|
246
247
|
.main-menu {
|
|
247
248
|
display: flex;
|
|
249
|
+
width: 100%;
|
|
248
250
|
align-items: flex-end;
|
|
249
251
|
justify-content: flex-end;
|
|
250
|
-
width: 100%;
|
|
251
252
|
|
|
252
253
|
.item {
|
|
253
254
|
a {
|
|
255
|
+
align-self: @mainMenuItemAlignSelf;
|
|
256
|
+
border-bottom: @mainMenuItemBorder;
|
|
254
257
|
color: @mainMenuItemColor;
|
|
255
258
|
font-size: @mainMenuItemFontSize;
|
|
256
259
|
font-weight: @mainMenuItemFontWeight;
|
|
257
|
-
border-bottom: @mainMenuItemBorder;
|
|
258
|
-
align-self: @mainMenuItemAlignSelf;
|
|
259
260
|
}
|
|
261
|
+
|
|
260
262
|
a:hover {
|
|
261
263
|
border-bottom: @mainMenuItemActiveBorder;
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
.item.active a {
|
|
266
|
-
color: @mainMenuItemActiveColor;
|
|
267
268
|
border-bottom: @mainMenuItemActiveBorder;
|
|
269
|
+
color: @mainMenuItemActiveColor;
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
#main .main-menu .item:first-child {
|
|
272
|
-
|
|
274
|
+
display: none; // hide home nav item
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
.main-menu.inverted {
|
|
@@ -278,13 +280,13 @@
|
|
|
278
280
|
}
|
|
279
281
|
|
|
280
282
|
.item.active a {
|
|
281
|
-
color: @mainMenuItemInvertedColor;
|
|
282
283
|
border-bottom: @mainMenuInvertedItemActiveBorder;
|
|
284
|
+
color: @mainMenuItemInvertedColor;
|
|
283
285
|
}
|
|
284
286
|
|
|
285
287
|
a:hover {
|
|
286
|
-
color: @mainMenuItemInvertedColor;
|
|
287
288
|
border-bottom: @mainMenuInvertedItemActiveBorder;
|
|
289
|
+
color: @mainMenuItemInvertedColor;
|
|
288
290
|
}
|
|
289
291
|
}
|
|
290
292
|
|
|
@@ -307,12 +309,13 @@
|
|
|
307
309
|
height: 100%;
|
|
308
310
|
align-items: baseline;
|
|
309
311
|
}
|
|
312
|
+
|
|
310
313
|
.wrapper {
|
|
311
314
|
position: relative;
|
|
312
|
-
width: 100%;
|
|
313
|
-
margin: @mobilePopupMarginTop 0;
|
|
314
315
|
display: flex;
|
|
316
|
+
width: 100%;
|
|
315
317
|
flex-direction: column;
|
|
318
|
+
margin: @mobilePopupMarginTop 0;
|
|
316
319
|
gap: @searchBoxWrapperGap;
|
|
317
320
|
|
|
318
321
|
.action {
|
|
@@ -320,22 +323,46 @@
|
|
|
320
323
|
justify-content: center;
|
|
321
324
|
}
|
|
322
325
|
}
|
|
326
|
+
|
|
327
|
+
.advanced-search {
|
|
328
|
+
padding: @searchBoxFullSearchPadding;
|
|
329
|
+
border-top: @searchBoxFullSearchBorder;
|
|
330
|
+
border-bottom: @searchBoxFullSearchBorder;
|
|
331
|
+
background-color: @searchBoxFullSearchBackground;
|
|
332
|
+
box-shadow: @searchBoxFullSearchBoxShadow;
|
|
333
|
+
color: @searchBoxFullSearchTextColor;
|
|
334
|
+
font-weight: @searchBoxFullSearchFontWeight;
|
|
335
|
+
|
|
336
|
+
.ui.container {
|
|
337
|
+
justify-content: @searchBoxFullSearchJustifyContent;
|
|
338
|
+
gap: @searchBoxFullSearchGap;
|
|
339
|
+
|
|
340
|
+
@media only screen and (max-width: @tabletBreakpoint) {
|
|
341
|
+
flex-direction: @tabletSearchBoxFullSearchFlexDirection;
|
|
342
|
+
align-items: @tabletSearchBoxFullSearchAlignItems;
|
|
343
|
+
text-align: @tabletSearchBoxFullSearchTextAlign;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
323
347
|
}
|
|
324
348
|
|
|
325
349
|
@media all and (max-width: @largestMobileScreen) {
|
|
350
|
+
.homepage .content-area {
|
|
351
|
+
margin-top: -@mobileMainSectionHeight;
|
|
352
|
+
}
|
|
326
353
|
.eea.header .top.bar .ui.container {
|
|
327
354
|
width: 100% !important; //override semantic auto to display content with space between them
|
|
328
355
|
}
|
|
329
356
|
}
|
|
357
|
+
|
|
330
358
|
.homepage .eea.header {
|
|
331
|
-
position:
|
|
332
|
-
top: 0;
|
|
359
|
+
position: relative;
|
|
333
360
|
z-index: 1;
|
|
334
361
|
width: 100%;
|
|
335
362
|
}
|
|
336
363
|
// reduce width of header when we have toolbar open for better placement
|
|
337
364
|
.has-toolbar.homepage .eea.header {
|
|
338
|
-
|
|
365
|
+
width: 96%;
|
|
339
366
|
}
|
|
340
367
|
|
|
341
368
|
/*----------------------------------------------------------------------------
|
|
@@ -343,12 +370,12 @@
|
|
|
343
370
|
----------------------------------------------------------------------------*/
|
|
344
371
|
.burger-action {
|
|
345
372
|
display: flex;
|
|
346
|
-
align-items: center;
|
|
347
|
-
justify-content: center;
|
|
348
|
-
cursor: pointer;
|
|
349
373
|
width: @mobileActionsBoxWidth;
|
|
350
374
|
height: @mobileMainSectionHeight;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: center;
|
|
351
377
|
background-color: @burgerActionBackgroundColor;
|
|
378
|
+
cursor: pointer;
|
|
352
379
|
}
|
|
353
380
|
|
|
354
381
|
.burger-action.mobile {
|
|
@@ -358,13 +385,13 @@
|
|
|
358
385
|
}
|
|
359
386
|
|
|
360
387
|
.search-action {
|
|
361
|
-
cursor: pointer;
|
|
362
388
|
display: flex;
|
|
363
389
|
width: @mobileActionsBoxWidth;
|
|
364
390
|
height: @mobileMainSectionHeight;
|
|
365
391
|
align-items: center;
|
|
366
392
|
justify-content: center;
|
|
367
393
|
background-color: @secondaryColor;
|
|
394
|
+
cursor: pointer;
|
|
368
395
|
}
|
|
369
396
|
|
|
370
397
|
.burger-action,
|
|
@@ -375,12 +402,12 @@
|
|
|
375
402
|
}
|
|
376
403
|
// icon to be used
|
|
377
404
|
i.icon {
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
justify-content: center;
|
|
378
408
|
margin: 0;
|
|
379
409
|
color: @white;
|
|
380
410
|
font-size: 1em;
|
|
381
|
-
display: flex;
|
|
382
|
-
justify-content: center;
|
|
383
|
-
align-items: center;
|
|
384
411
|
}
|
|
385
412
|
}
|
|
386
413
|
|
|
@@ -404,7 +431,6 @@
|
|
|
404
431
|
height: @tabletMainSectionHeight;
|
|
405
432
|
}
|
|
406
433
|
|
|
407
|
-
|
|
408
434
|
/*----------------------------------------------------------------------------
|
|
409
435
|
HEADER TOP BAR TABLET
|
|
410
436
|
----------------------------------------------------------------------------*/
|
|
@@ -425,7 +451,7 @@
|
|
|
425
451
|
width: @tabletOfficialUnionImageWidth;
|
|
426
452
|
}
|
|
427
453
|
|
|
428
|
-
.ui.dropdown {
|
|
454
|
+
.ui.dropdown {
|
|
429
455
|
padding: @tabletOfficialUnionPadding;
|
|
430
456
|
|
|
431
457
|
.menu {
|
|
@@ -472,9 +498,14 @@
|
|
|
472
498
|
margin-top: @tabletLogoMarginTop;
|
|
473
499
|
}
|
|
474
500
|
|
|
501
|
+
.homepage .content-area {
|
|
502
|
+
margin-top: -@tabletMainSectionHeight !important;
|
|
503
|
+
}
|
|
504
|
+
|
|
475
505
|
/* Search box */
|
|
476
506
|
#search-box {
|
|
477
507
|
height: @tabletPopUpHeight;
|
|
508
|
+
|
|
478
509
|
.wrapper {
|
|
479
510
|
margin: @tabletPopupMarginTop 0;
|
|
480
511
|
}
|
|
@@ -482,7 +513,6 @@
|
|
|
482
513
|
}
|
|
483
514
|
|
|
484
515
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
485
|
-
|
|
486
516
|
.burger-action.mobile {
|
|
487
517
|
display: none;
|
|
488
518
|
}
|
|
@@ -508,13 +538,13 @@
|
|
|
508
538
|
top: @computerTopSectionIconTop;
|
|
509
539
|
}
|
|
510
540
|
|
|
511
|
-
.top.bar .official-union {
|
|
541
|
+
.top.bar .official-union {
|
|
512
542
|
.ui.dropdown {
|
|
513
543
|
padding: @computerOfficialUnionPadding;
|
|
514
544
|
|
|
515
545
|
.menu {
|
|
516
546
|
.content {
|
|
517
|
-
|
|
547
|
+
max-width: @computerOfficialUnionMaxWidth;
|
|
518
548
|
}
|
|
519
549
|
}
|
|
520
550
|
}
|
|
@@ -525,7 +555,7 @@
|
|
|
525
555
|
.wrapper {
|
|
526
556
|
width: @computerThemeSitesMenuWidth;
|
|
527
557
|
}
|
|
528
|
-
}
|
|
558
|
+
}
|
|
529
559
|
|
|
530
560
|
#language-switcher {
|
|
531
561
|
padding: @computerLanguageMenuPadding;
|
|
@@ -544,10 +574,10 @@
|
|
|
544
574
|
height: @computerMainSectionHeight;
|
|
545
575
|
|
|
546
576
|
.ui.text.menu {
|
|
547
|
-
flex-wrap: wrap;
|
|
548
577
|
display: flex;
|
|
549
578
|
width: 88%;
|
|
550
579
|
max-height: 100%;
|
|
580
|
+
flex-wrap: wrap;
|
|
551
581
|
justify-content: space-between;
|
|
552
582
|
margin: 0;
|
|
553
583
|
|
|
@@ -563,6 +593,10 @@
|
|
|
563
593
|
margin-top: @computerLogoMarginTop;
|
|
564
594
|
}
|
|
565
595
|
|
|
596
|
+
.homepage .content-area {
|
|
597
|
+
margin-top: -@computerMainSectionHeight !important;
|
|
598
|
+
}
|
|
599
|
+
|
|
566
600
|
/* Search box */
|
|
567
601
|
#search-box {
|
|
568
602
|
height: @computerPopUpHeight;
|
|
@@ -583,37 +617,37 @@
|
|
|
583
617
|
|
|
584
618
|
#mega-menu {
|
|
585
619
|
position: absolute;
|
|
620
|
+
z-index: @z-index-8;
|
|
586
621
|
right: 0;
|
|
587
622
|
overflow: auto;
|
|
588
|
-
z-index: @z-index-8;
|
|
589
623
|
width: @mobileMegaMenuWidth;
|
|
590
|
-
background: @megaMenuBackgroundColor;
|
|
591
|
-
color: @megaMenuTextColor;
|
|
592
|
-
max-height: @mobilePopUpHeight;
|
|
593
624
|
min-height: @size-11;
|
|
625
|
+
max-height: @mobilePopUpHeight;
|
|
594
626
|
padding: @mobileMegaMenuPadding;
|
|
627
|
+
background: @megaMenuBackgroundColor;
|
|
628
|
+
color: @megaMenuTextColor;
|
|
595
629
|
|
|
596
630
|
.ui.container {
|
|
597
631
|
display: inherit;
|
|
598
|
-
align-items: baseline;
|
|
599
632
|
height: 100%;
|
|
633
|
+
align-items: baseline;
|
|
600
634
|
}
|
|
601
635
|
|
|
602
636
|
.title {
|
|
603
637
|
font-size: @megaMenuTitleFontSize;
|
|
604
638
|
font-weight: @megaMenuTitleFontWeight;
|
|
639
|
+
|
|
605
640
|
.title-img {
|
|
606
641
|
margin-left: @megaMenuTitleImgMarginLeft;
|
|
607
642
|
}
|
|
608
643
|
}
|
|
609
644
|
|
|
610
645
|
.sub-title {
|
|
646
|
+
color: @megaMenuTextColor;
|
|
611
647
|
font-size: @megaMenuSubTitleFontSize;
|
|
612
648
|
font-weight: @megaMenuSubTitleFontWeight;
|
|
613
|
-
color: @megaMenuTextColor;
|
|
614
|
-
|
|
615
|
-
&+ .ui.grid {
|
|
616
649
|
|
|
650
|
+
& + .ui.grid {
|
|
617
651
|
div.column:first-child {
|
|
618
652
|
padding-left: 0;
|
|
619
653
|
}
|
|
@@ -628,16 +662,18 @@
|
|
|
628
662
|
#mega-menu .ui.list {
|
|
629
663
|
margin: 0;
|
|
630
664
|
}
|
|
665
|
+
|
|
631
666
|
#mega-menu .item {
|
|
632
667
|
display: flex;
|
|
668
|
+
padding: @megaMenuListItemPadding;
|
|
633
669
|
font-size: @megaMenuListItemFontSize;
|
|
634
670
|
font-weight: @megaMenuListItemFontWeight;
|
|
635
|
-
padding: @megaMenuListItemPadding;
|
|
636
671
|
}
|
|
637
672
|
|
|
638
|
-
#mega-menu
|
|
639
|
-
color: @megaMenuTextColor;
|
|
673
|
+
#mega-menu a.item {
|
|
640
674
|
display: @megaMenuTextDisplay;
|
|
675
|
+
color: @megaMenuTextColor;
|
|
676
|
+
|
|
641
677
|
&:hover {
|
|
642
678
|
text-decoration: @megaMenuTextHoverDecoration;
|
|
643
679
|
}
|
|
@@ -647,16 +683,15 @@
|
|
|
647
683
|
}
|
|
648
684
|
}
|
|
649
685
|
|
|
650
|
-
|
|
651
686
|
#at-a-glance {
|
|
652
|
-
background-color: @megaMenuGlanceBackgroundColor;
|
|
653
687
|
// To override the grid column paddings
|
|
654
688
|
padding: @megaMenuGlancePaddingLeft !important;
|
|
689
|
+
background-color: @megaMenuGlanceBackgroundColor;
|
|
655
690
|
|
|
656
691
|
.item {
|
|
692
|
+
margin: @megaMenuGlanceListItemMargin;
|
|
657
693
|
font-size: @megaMenuGlanceListItemFontSize;
|
|
658
694
|
font-weight: @megaMenuGlanceListItemFontWeight;
|
|
659
|
-
margin: @megaMenuGlanceListItemMargin;
|
|
660
695
|
}
|
|
661
696
|
}
|
|
662
697
|
|
|
@@ -675,24 +710,23 @@
|
|
|
675
710
|
}
|
|
676
711
|
|
|
677
712
|
#mega-menu .active:not(.title-link) > span {
|
|
678
|
-
border-left: @megaMenuListItemActiveBorder;
|
|
679
713
|
padding-left: @megaMenuListItemActivePadding;
|
|
714
|
+
border-left: @megaMenuListItemActiveBorder;
|
|
680
715
|
}
|
|
681
716
|
|
|
682
717
|
/*Mega Menu Accordion - Tablet & Mobile */
|
|
683
718
|
#mega-menu .ui.accordion {
|
|
684
719
|
.title {
|
|
685
|
-
font-size: @megaMenuAccordionTitleFontSize;
|
|
686
|
-
color: @megaMenuTextColor;
|
|
687
720
|
padding: @megaMenuAccordionTitlePadding;
|
|
688
721
|
border-bottom: @megaMenuAccordionTitleBorderBottom;
|
|
722
|
+
color: @megaMenuTextColor;
|
|
723
|
+
font-size: @megaMenuAccordionTitleFontSize;
|
|
689
724
|
|
|
690
725
|
i:before {
|
|
691
726
|
font-size: @megaMenuAccordionIconFontSize;
|
|
692
727
|
}
|
|
693
728
|
|
|
694
729
|
&:hover {
|
|
695
|
-
|
|
696
730
|
i {
|
|
697
731
|
color: @megaMenuTextColor;
|
|
698
732
|
}
|
|
@@ -700,21 +734,21 @@
|
|
|
700
734
|
}
|
|
701
735
|
|
|
702
736
|
.active.title {
|
|
703
|
-
background-color: transparent;
|
|
704
737
|
border-bottom: @megaMenuAccordionActiveTitleBorderBottom;
|
|
738
|
+
background-color: transparent;
|
|
705
739
|
}
|
|
706
740
|
|
|
707
741
|
.content {
|
|
708
|
-
background: @megaMenuBackgroundColor;
|
|
709
742
|
padding: @megaMenuAccordionContentPadding;
|
|
743
|
+
background: @megaMenuBackgroundColor;
|
|
710
744
|
|
|
711
745
|
.accordion {
|
|
712
746
|
margin: @megaMenuNestedAccordionMargin;
|
|
713
747
|
|
|
714
748
|
.title {
|
|
749
|
+
border-bottom: none;
|
|
715
750
|
font-size: @megaMenuNestedAccordionTitleFontSize;
|
|
716
751
|
font-weight: @megaMenuNestedAccordionTitleFontWeight;
|
|
717
|
-
border-bottom: none;
|
|
718
752
|
}
|
|
719
753
|
|
|
720
754
|
.content {
|
|
@@ -756,18 +790,19 @@
|
|
|
756
790
|
|
|
757
791
|
@media all and (min-width: @tabletBreakpoint) {
|
|
758
792
|
#mega-menu {
|
|
759
|
-
padding: @tabletMegaMenuPadding;
|
|
760
793
|
max-height: @tabletPopUpHeight;
|
|
794
|
+
padding: @tabletMegaMenuPadding;
|
|
761
795
|
}
|
|
762
796
|
}
|
|
763
797
|
|
|
764
798
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
765
799
|
#mega-menu {
|
|
766
800
|
width: 100%;
|
|
767
|
-
padding: @computerMegaMenuPadding;
|
|
768
801
|
max-height: @computerPopUpHeight;
|
|
802
|
+
padding: @computerMegaMenuPadding;
|
|
769
803
|
}
|
|
804
|
+
|
|
770
805
|
#mega-menu .title > a {
|
|
771
806
|
color: @megaMenuTextColor;
|
|
772
807
|
}
|
|
773
|
-
}
|
|
808
|
+
}
|
|
@@ -194,6 +194,17 @@
|
|
|
194
194
|
/* Search box */
|
|
195
195
|
@searchBoxBackgroundGradient : linear-gradient(340.97deg, @darkCerulean 9.19%, #009591 77.47%);
|
|
196
196
|
@searchBoxWrapperGap : 75px;
|
|
197
|
+
@searchBoxFullSearchBackground: rgba(255, 255, 255, 0.1);
|
|
198
|
+
@searchBoxFullSearchBoxShadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
|
|
199
|
+
@searchBoxFullSearchBorder: 1px solid @white;
|
|
200
|
+
@searchBoxFullSearchFontWeight: @bold;
|
|
201
|
+
@searchBoxFullSearchTextColor: @white;
|
|
202
|
+
@searchBoxFullSearchJustifyContent: center;
|
|
203
|
+
@searchBoxFullSearchGap: 1.5rem;
|
|
204
|
+
@searchBoxFullSearchPadding: 2em 0;
|
|
205
|
+
@tabletSearchBoxFullSearchFlexDirection: column;
|
|
206
|
+
@tabletSearchBoxFullSearchAlignItems: center;
|
|
207
|
+
@tabletSearchBoxFullSearchTextAlign: center;
|
|
197
208
|
|
|
198
209
|
/* Custom shadows for dropdowns */
|
|
199
210
|
@shadow-topbar-dropdown: 2px 0 2px -5px hsla(@shadow-color, calc(@shadow-strength + 6%));
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@tabletQuotePadding : 0.5rem 0 1rem;
|
|
17
17
|
|
|
18
18
|
/* Source */
|
|
19
|
-
@sourceTextColor : @
|
|
19
|
+
@sourceTextColor : @secondaryColorCSSVar;
|
|
20
20
|
@sourceTextAlign : right;
|
|
21
21
|
@sourceFontWeight : @bold;
|
|
22
22
|
@sourceFontSize : 1.25rem;
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
/* Icon */
|
|
31
31
|
@mobileQuoteIconSize : 2rem;
|
|
32
32
|
@tabletQuoteIconSize : 3rem;
|
|
33
|
-
@quoteIconColor : @
|
|
33
|
+
@quoteIconColor : @secondaryColorCSSVar;
|
|
34
34
|
@quoteDownIconFloat : right;
|
|
@@ -55,8 +55,11 @@
|
|
|
55
55
|
--------------------*/
|
|
56
56
|
|
|
57
57
|
@primaryColor : @darkCerulean;
|
|
58
|
+
@primaryColorCSSVar : var(--text-color-primary, @primaryColor);
|
|
58
59
|
@secondaryColor : @pineGreen;
|
|
60
|
+
@secondaryColorCSSVar : var(--text-color-secondary, @secondaryColor);
|
|
59
61
|
@tertiaryColor : @deepBlue;
|
|
62
|
+
@tertiaryColorCSSVar : var(--text-color-tertiary, @tertiaryColor);
|
|
60
63
|
|
|
61
64
|
@lightPrimaryColor : @mediumPersianBlue;
|
|
62
65
|
@lightSecondaryColor : @darkCyan;
|
|
@@ -180,8 +183,18 @@
|
|
|
180
183
|
|
|
181
184
|
@lineHeight : @font-lineheight-3;
|
|
182
185
|
@mobileLineHeight : @font-lineheight-3;
|
|
183
|
-
@textColor :
|
|
186
|
+
@textColor : @tertiaryColor;
|
|
187
|
+
// use this variable when you want it to be replaced by css variables
|
|
188
|
+
@textColorCSSVar : var(--text-color, @textColor);
|
|
189
|
+
@borderColorCSSVar : var(--border-color, @grey-3);
|
|
190
|
+
@borderColorPrimaryCSSVar: var(--border-color-primary, @primaryColor);
|
|
191
|
+
@borderColorSecondaryCSSVar: var(--border-color-secondary, @secondaryColor);
|
|
192
|
+
@borderColorTertiaryCSSVar: var(--border-color-tertiary, @tertiaryColor);
|
|
184
193
|
@contentAreaColor : @tertiaryColor;
|
|
194
|
+
@backgroundColor: @grey-0;
|
|
195
|
+
@backgroundColorCSSVar: var(--bg-color, @backgroundColor);
|
|
196
|
+
@backgroundColorSupplementary: @grey-1;
|
|
197
|
+
@backgroundColorSupplementaryCSSVar: var(--bg-color-supplementary, @backgroundColorSupplementary);
|
|
185
198
|
|
|
186
199
|
/*-------------------
|
|
187
200
|
Paragraph
|
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
.content {
|
|
64
64
|
background: @contentBackground;
|
|
65
|
+
color: @contentColor;
|
|
66
|
+
padding: @contentPadding;
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -120,7 +122,7 @@
|
|
|
120
122
|
}
|
|
121
123
|
.ui.accordion.primary .title:not(.active):hover,
|
|
122
124
|
.ui.accordion.primary .title:not(.active):hover i {
|
|
123
|
-
color: @
|
|
125
|
+
color: @primaryColorCSSVar;
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
/* Secondary */
|
|
@@ -129,7 +131,7 @@
|
|
|
129
131
|
}
|
|
130
132
|
.ui.accordion.secondary .title:not(.active):hover,
|
|
131
133
|
.ui.accordion.secondary .title:not(.active):hover i {
|
|
132
|
-
color: @
|
|
134
|
+
color: @secondaryColorCSSVar;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
/* Tertiary */
|
|
@@ -138,5 +140,5 @@
|
|
|
138
140
|
}
|
|
139
141
|
.ui.accordion.tertiary .title:not(.active):hover,
|
|
140
142
|
.ui.accordion.tertiary .title:not(.active):hover i {
|
|
141
|
-
color: @
|
|
143
|
+
color: @tertiaryColorCSSVar;
|
|
142
144
|
}
|