@eeacms/volto-eea-design-system 0.4.4 → 0.5.1

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.
@@ -7,239 +7,299 @@
7
7
  Header
8
8
  *******************************/
9
9
 
10
+ .sticky {
11
+ position: sticky;
12
+ top: 0;
13
+ }
14
+
10
15
  .eea.header {
11
- background: @white;
16
+ /* So child can have position sticky */
17
+ display: initial;
18
+ }
12
19
 
13
- /* Top header section */
14
- .top.bar {
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
- height: @mobileTopSectionHeight;
18
- background: @topSectionBackground;
33
+ justify-content: space-between;
34
+ z-index: @topSectionZindex;
35
+ }
36
+ }
19
37
 
20
- .ui.container {
21
- display: flex;
22
- align-items: center;
23
- justify-content: space-between;
24
- z-index: @topSectionZindex;
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
- font-size: @dropdownFontSize;
40
- font-weight: @dropdownFontWeight;
45
+ .top.bar .ui.dropdown {
46
+ border: none !important;
47
+ height: auto !important;
48
+ border-radius: @defaultBorderRadius;
49
+ color: @topSectionItemColor;
50
+ }
41
51
 
42
- .menu {
43
- margin-top: @mobileDropdownMenuMarginTop;
44
- left: @dropdownMenuLeft;
45
- right: @dropdownMenuRight;
46
-
47
- .wrapper {
48
- display: flex;
49
- flex-direction: column;
50
- gap: @dropdownMenuWrapperGap;
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
- margin: @dropdownMenuWrapperMargin;
53
-
54
- .item {
55
- &:hover {
56
- background: @dropdownMenuItemBackgroundColorHover;
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
- /* Official union dropdowns */
66
- .official-union {
67
- display: flex;
68
- gap: @officialUnionGap;
128
+ /* Theme sites dropdown */
129
+ #theme-sites.ui.dropdown .menu {
130
+ left: @themeSitesMenuLeft;
69
131
 
70
- img {
71
- width: @mobileOfficialUnionImageWidth;
72
- }
132
+ .wrapper {
133
+ width: @mobileThemeSitesMenuWidth;
73
134
 
74
- .ui.dropdown {
75
- font-size: @mobileTopSectionItemFontSize;
76
-
77
- .menu {
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
- /* Theme sites dropdown */
105
- #theme-sites.ui.dropdown .menu {
106
- .wrapper {
107
- width: @themeSitesMenuWidth;
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
- .item {
110
- padding: @themeSitesMenuItemPadding;
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
- /* Language dropdown */
127
- #language-switcher {
128
- font-size: @mobileLanguageFontSize;
194
+ .ui.grid {
195
+ /* All margins and paddings removed for main header */
196
+ width: 100%;
197
+ margin: 0;
129
198
 
130
- img {
131
- width: @mobileOfficialUnionImageWidth;
199
+ div:first-child {
200
+ padding-left: 0;
132
201
  }
133
- .menu {
134
- top: @mobileLanguageMenuTop;
135
- color: @japaneseIndigo;
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
- /* Main header section */
155
- .main.bar {
156
- scrollbar-gutter: stable;
210
+ .main-menu {
211
+ display: flex;
212
+ align-items: flex-end;
213
+ justify-content: flex-end;
214
+ width: 100%;
157
215
 
158
- .ui.container {
159
- display: flex;
160
- align-items: center;
161
- justify-content: space-between;
162
- height: @mobileMainSectionHeight;
163
-
164
- .ui.grid {
165
- /* All margins and paddings removed for main header */
166
- width: 100%;
167
- margin-top: 0;
168
- margin-bottom: 0;
169
- margin-left: 0;
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
- div:last-child {
177
- padding-right: 0;
178
- }
179
- }
229
+ .item.active a {
230
+ color: @mainMenuItemActiveColor;
231
+ border-bottom: @mainMenuItemActiveBorder;
232
+ }
233
+ }
180
234
 
181
- .eea-logo {
182
- width: @logoWidth;
183
- max-width: @mobileLogoMaxWidth;
184
- margin-top: @mobileLogoMarginTop;
185
- }
235
+ #main .main-menu .item:first-child {
236
+ display: none; // hide home nav item
237
+ }
186
238
 
187
- .main-menu {
188
- display: flex;
189
- align-items: flex-end;
190
- justify-content: flex-end;
191
- width: 100%;
239
+ .main-menu.inverted {
240
+ .item a {
241
+ color: @mainMenuItemInvertedColor;
242
+ }
192
243
 
193
- .item {
194
- place-self: @mainMenuItemPlaceSelf;
195
- a {
196
- color: @mainMenuItemColor;
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
- .item.active {
204
- color: @mainMenuItemActiveColor;
205
- border-bottom: @mainMenuItemActiveBorder;
206
- }
207
- }
208
- }
249
+ a:hover {
250
+ color: @mainMenuItemInvertedColor;
251
+ border-bottom: @mainMenuInvertedItemActiveBorder;
252
+ }
253
+ }
209
254
 
210
- /* Search Box */
211
- #search-box {
212
- position: relative;
213
- z-index: 99999;
214
- overflow: auto;
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
- .ui.container {
220
- height: 100%;
221
- align-items: baseline;
222
- }
223
- .wrapper {
224
- position: relative;
225
- width: 100%;
226
- margin: @mobilePopupMarginTop 0;
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
- .action {
232
- display: flex;
233
- justify-content: center;
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
- Header Actions - Burger and Search Icons
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
+ .homepage .eea.header {
295
+ position: absolute;
296
+ top: 0;
297
+ z-index: 1;
298
+ width: 100%;
299
+ }
300
+ /*----------------------------------------------------------------------------
301
+ Header Actions - Burger and Search Icons
302
+ ----------------------------------------------------------------------------*/
243
303
  .burger-action {
244
304
  display: flex;
245
305
  align-items: center;
@@ -247,11 +307,7 @@ Header Actions - Burger and Search Icons
247
307
  cursor: pointer;
248
308
  width: @mobileActionsBoxWidth;
249
309
  height: @mobileMainSectionHeight;
250
- background-color: @darkCerulean;
251
- }
252
-
253
- .burger-action.desktop {
254
- display: none;
310
+ background-color: @burgerActionBackgroundColor;
255
311
  }
256
312
 
257
313
  .burger-action.mobile {
@@ -267,7 +323,7 @@ Header Actions - Burger and Search Icons
267
323
  height: @mobileMainSectionHeight;
268
324
  align-items: center;
269
325
  justify-content: center;
270
- background-color: @darkCyan;
326
+ background-color: @secondaryColor;
271
327
  }
272
328
 
273
329
  .burger-action,
@@ -288,75 +344,8 @@ Header Actions - Burger and Search Icons
288
344
  }
289
345
 
290
346
  @media only screen and (min-width: @tabletBreakpoint) {
291
- .eea.header {
292
- .top.bar {
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
- }
347
+ .top.bar .item {
348
+ font-size: @tabletTopSectionItemFontSize;
360
349
  }
361
350
 
362
351
  .text.menu {
@@ -373,319 +362,298 @@ Header Actions - Burger and Search Icons
373
362
  width: @tabletActionsBoxWidth;
374
363
  height: @tabletMainSectionHeight;
375
364
  }
376
- }
377
365
 
378
- @media only screen and (min-width: @computerBreakpoint) {
379
- .eea.header {
380
- .top.bar {
381
- height: @computerTopSectionHeight;
382
- }
383
366
 
384
- .main.bar {
385
- .ui.container {
386
- height: 160px;
367
+ /*----------------------------------------------------------------------------
368
+ HEADER TOP BAR TABLET
369
+ ----------------------------------------------------------------------------*/
387
370
 
388
- .eea-logo {
389
- max-width: @computerLogoMaxWidth;
390
- margin-top: @computerLogoMarginTop;
391
- }
371
+ .top.bar {
372
+ height: @tabletTopSectionHeight;
373
+ }
392
374
 
393
- .ui.text.menu {
394
- flex-wrap: wrap;
395
- display: flex;
396
- width: 88%;
397
- max-height: 20px;
398
- justify-content: space-between;
399
- margin: 0;
400
- }
401
- }
375
+ .top.bar .ui.dropdown .menu {
376
+ margin-top: @tabletDropdownMenuMarginTop;
377
+ }
402
378
 
403
- /* Search box */
404
- #search-box {
405
- height: @computerPopUpHeight;
379
+ .top.bar .ui.dropdown .menu,
380
+ .top.bar .ui.dropdown .menu .item {
381
+ font-size: @tabletDropdownMenuFontSize;
382
+ }
383
+
384
+ /* Official union dropdown */
385
+ .top.bar .official-union {
386
+ gap: @tabletOfficialUnionGap;
406
387
 
407
- .wrapper {
408
- margin: @computerPopupMarginTop 0;
388
+ img {
389
+ width: @tabletOfficialUnionImageWidth;
390
+ }
391
+ .ui.dropdown {
392
+ .menu {
393
+ left: @tabletOfficialUnionMenuLeft;
409
394
 
410
- .action {
411
- justify-content: flex-end;
412
- }
395
+ .content {
396
+ max-width: @tabletOfficialUnionMaxWidth;
413
397
  }
414
398
  }
415
399
  }
416
400
  }
417
401
 
418
- .burger-action.mobile {
419
- display: none;
402
+ /* Language dropdown */
403
+ #language-switcher {
404
+ img {
405
+ width: 19px;
406
+ }
407
+
408
+ .menu {
409
+ top: @tabletLanguageMenuTop;
410
+ }
420
411
  }
421
412
 
422
- .burger-action.desktop {
423
- display: flex;
424
- width: @computerActionsBoxWidth;
425
- height: @computerMainSectionHeight;
413
+ /*----------------------------------------------------------------------------
414
+ HEADER MAIN BAR TABLET
415
+ ----------------------------------------------------------------------------*/
416
+
417
+ .main.bar {
418
+ .ui.container {
419
+ height: 117px;
420
+ }
426
421
  }
427
422
 
428
- .search-action {
429
- width: @computerActionsBoxWidth;
430
- height: @computerMainSectionHeight;
423
+ .eea.header .eea-logo {
424
+ max-width: @tabletLogoMaxWidth;
425
+ margin-top: @tabletLogoMarginTop;
431
426
  }
432
- }
433
427
 
434
- @media only screen and (max-width: 960px) {
435
- #theme-sites {
436
- display: none;
428
+ /* Search box */
429
+ #search-box {
430
+ height: @tabletPopUpHeight;
431
+ .wrapper {
432
+ margin: @tabletPopupMarginTop 0;
433
+ }
437
434
  }
438
435
  }
439
436
 
440
- /************************
441
- MEGA MENU
442
- ************************/
437
+ @media only screen and (min-width: @computerBreakpoint) {
443
438
 
444
- #mega-menu {
445
- position: relative;
446
- z-index: 9999;
447
- overflow: auto;
448
- width: 100%;
449
- background: @megaMenuBackgroundGradient;
439
+ .burger-action.mobile {
440
+ display: none;
441
+ }
450
442
 
451
- .ui.container {
452
- height: 100%;
453
- align-items: baseline;
443
+ .search-action {
444
+ width: @computerActionsBoxWidth;
445
+ height: @computerMainSectionHeight;
454
446
  }
455
447
 
456
- .toggle,
457
- [id^='drop'] {
458
- display: none;
448
+ /*----------------------------------------------------------------------------
449
+ HEADER TOP BAR DESKTOP
450
+ ----------------------------------------------------------------------------*/
451
+
452
+ .top.bar {
453
+ height: @computerTopSectionHeight;
459
454
  }
460
- nav {
461
- margin: @tabletPopupMarginTop 0;
462
- padding: 0;
463
- width: 100%;
455
+
456
+ .top.bar .ui.dropdown .menu {
457
+ margin-top: @computerDropdownMenuMarginTop;
464
458
  }
465
459
 
466
- nav:after {
467
- content: '';
468
- display: table;
469
- clear: both;
460
+ #theme-sites.ui.dropdown .menu {
461
+ .wrapper {
462
+ width: @computerThemeSitesMenuWidth;
463
+ }
470
464
  }
465
+ /*----------------------------------------------------------------------------
466
+ HEADER MAIN BAR DESKTOP
467
+ ----------------------------------------------------------------------------*/
471
468
 
472
- nav ul {
473
- float: left;
474
- padding: 0;
475
- margin: 0;
476
- list-style: none;
477
- position: relative;
469
+ .main.bar {
470
+ .ui.container {
471
+ height: 160px;
478
472
 
479
- > li a {
480
- padding: 0;
473
+ .ui.text.menu {
474
+ flex-wrap: wrap;
475
+ display: flex;
476
+ width: 88%;
477
+ max-height: 20px;
478
+ justify-content: space-between;
479
+ margin: 0;
480
+
481
+ .item {
482
+ padding: @mainMenuItemPadding;
483
+ }
484
+ }
481
485
  }
482
486
  }
483
487
 
484
- nav ul li {
485
- display: inline-block;
486
- font-size: @megaMenuFontSize;
488
+ .eea.header .eea-logo {
489
+ max-width: @computerLogoMaxWidth;
490
+ margin-top: @computerLogoMarginTop;
487
491
  }
488
492
 
489
- nav a {
490
- display: flex;
491
- color: @mobileMegaMenuColor;
492
- padding: @megaMenuLinkPadding;
493
- line-height: @megaMenuLineHeight;
494
- word-break: @megaMenuWordBreak;
495
- }
493
+ /* Search box */
494
+ #search-box {
495
+ height: @computerPopUpHeight;
496
496
 
497
- nav ul ul {
498
- display: none;
499
- position: absolute;
500
- top: 0;
497
+ .wrapper {
498
+ margin: @computerPopupMarginTop 0;
499
+
500
+ .action {
501
+ justify-content: flex-end;
502
+ }
503
+ }
501
504
  }
505
+ }
502
506
 
503
- nav ul li:hover > ul,
504
- nav ul li:active > ul {
507
+ /************************
508
+ MEGA MENU
509
+ ************************/
510
+
511
+ #mega-menu {
512
+ position: absolute;
513
+ right: 0;
514
+ overflow: auto;
515
+ z-index: @z-index-8;
516
+ width: @mobileMegaMenuWidth;
517
+ background: @megaMenuBackgroundColor;
518
+ color: @megaMenuTextColor;
519
+ max-height: @mobilePopUpHeight;
520
+ min-height: @size-11;
521
+ padding: @mobileMegaMenuPadding;
522
+
523
+ .ui.container {
505
524
  display: inherit;
506
- display: flex;
507
- flex-direction: column;
525
+ align-items: baseline;
526
+ height: 100%;
508
527
  }
509
528
 
510
- nav ul ul li {
511
- float: none;
512
- display: list-item;
529
+ .title {
530
+ font-size: @megaMenuTitleFontSize;
531
+ font-weight: @megaMenuTitleFontWeight;
513
532
  }
514
533
 
515
- nav ul ul ul li {
516
- left: 0;
517
- }
534
+ .sub-title {
535
+ font-size: @megaMenuSubTitleFontSize;
536
+ font-weight: @megaMenuSubTitleFontWeight;
537
+ color: @megaMenuTextColor;
518
538
 
519
- li > a:only-child:after {
520
- content: '';
521
- }
539
+ &+ .ui.grid {
522
540
 
523
- @media all and (max-width: @largestMobileScreen) {
524
- height: @mobilePopUpHeight;
525
- nav {
526
- margin: @mobilePopupMarginTop 0;
527
- }
528
- .menu,
529
- li {
530
- width: 100%;
531
- }
541
+ div.column:first-child {
542
+ padding-left: 0;
543
+ }
532
544
 
533
- .toggle + a,
534
- .menu {
535
- display: none;
545
+ div.column:last-child {
546
+ padding-right: 0;
547
+ }
536
548
  }
549
+ }
550
+ }
537
551
 
538
- .toggle {
539
- display: block;
540
- padding: @toggleMenuFirstPadding;
541
- color: @mobileMegaMenuColor;
542
- line-height: @megaMenuLineHeight;
543
- }
552
+ #mega-menu .ui.list .item {
553
+ display: flex;
554
+ font-size: @megaMenuListItemFontSize;
555
+ font-weight: @megaMenuListItemFontWeight;
556
+ padding: @megaMenuListItemPadding;
557
+ }
544
558
 
545
- [id^='drop']:checked + ul {
546
- display: block;
547
- }
559
+ #mega-menu a.item {
560
+ color: @megaMenuTextColor;
548
561
 
549
- nav ul li {
550
- display: block;
551
- width: 100%;
552
- }
562
+ i.icon {
563
+ color: @megaMenuTextColor;
564
+ }
565
+ }
553
566
 
554
- nav .menu > li > .toggle,
555
- nav .menu > li > a {
556
- padding: @mobileToggleMenuFirstPadding;
557
- }
558
- nav ul ul .toggle,
559
- nav ul ul a {
560
- padding: @mobileToggleMenuSecondPadding;
561
- }
562
567
 
563
- nav ul ul ul a {
564
- padding: @mobileToggleMenuThirdPadding;
565
- }
568
+ #at-a-glance {
569
+ background-color: @megaMenuGlanceBackgroundColor;
570
+ // To override the grid column paddings
571
+ padding: @megaMenuGlancePaddingLeft !important;
566
572
 
567
- nav ul ul {
568
- float: none;
569
- position: static;
570
- color: @mobileMegaMenuColor;
571
- }
573
+ .ui.list .item {
574
+ font-size: @megaMenuGlanceListItemFontSize;
575
+ font-weight: @megaMenuGlanceListItemFontWeight;
576
+ margin: @megaMenuGlanceListItemMargin;
577
+ }
578
+ }
572
579
 
573
- nav ul ul li:hover > ul,
574
- nav ul li:hover > ul {
575
- display: none;
576
- }
580
+ #mega-menu .ui.grid {
581
+ div.column:first-child {
582
+ padding-left: 0.625rem;
583
+ }
577
584
 
578
- nav ul ul li {
579
- display: block;
580
- width: 100%;
585
+ div.column:last-child {
586
+ padding-right: 0.625rem;
587
+ }
588
+ }
589
+
590
+ .menu-content > .ui.grid > .column {
591
+ padding-top: @megaMenuContentPaddingTop;
592
+ }
593
+
594
+ /*Mega Menu Accordion - Tablet & Mobile */
595
+ #mega-menu .ui.accordion {
596
+ .title {
597
+ font-size: @megaMenuAccordionTitleFontSize;
598
+ color: @megaMenuTextColor;
599
+ padding: @megaMenuAccordionTitlePadding;
600
+ border-bottom: @megaMenuAccordionTitleBorderBottom;
601
+
602
+ i:before {
603
+ font-size: @megaMenuAccordionIconFontSize;
581
604
  }
582
605
 
583
- nav ul ul ul li {
584
- position: static;
606
+ &:hover {
607
+
608
+ i {
609
+ color: @megaMenuTextColor;
610
+ }
585
611
  }
586
612
  }
587
613
 
588
- .menu {
589
- display: flex;
590
- flex-direction: column;
591
- }
592
- .sub {
593
- left: 100%;
614
+ .active.title {
615
+ background-color: transparent;
616
+ border-bottom: @megaMenuAccordionActiveTitleBorderBottom;
594
617
  }
595
618
 
596
- @media all and (min-width: @tabletBreakpoint) {
597
- height: @tabletPopUpHeight;
598
- nav {
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
- }
619
+ .content {
620
+ background: @megaMenuBackgroundColor;
621
+ padding: @megaMenuAccordionContentPadding;
623
622
 
624
- .sub.second {
625
- width: 100%;
626
- left: 100%;
627
- > li {
628
- width: 100%;
629
- display: flex;
630
- justify-content: space-between;
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
- }
623
+ .accordion {
624
+ margin: @megaMenuNestedAccordionMargin;
625
+
626
+ .title {
627
+ font-size: @megaMenuNestedAccordionTitleFontSize;
628
+ font-weight: @megaMenuNestedAccordionTitleFontWeight;
629
+ border-bottom: none;
644
630
  }
645
- .sub.third {
646
- left: 100%;
647
- width: 100%;
648
- min-height: 50vh;
649
- li {
650
- margin-bottom: @tabletMegaMenuMarginBottom;
651
- > a {
652
- max-width: 100%;
653
- }
654
- }
631
+
632
+ .content {
633
+ padding: @megaMenuNestedAccordionContentPadding;
655
634
  }
656
635
  }
657
- ul li:hover > a span {
658
- text-decoration: underline;
659
- }
660
636
  }
637
+ }
661
638
 
662
- @media only screen and (min-width: @computerBreakpoint) {
663
- height: @computerPopUpHeight;
664
- nav {
665
- margin: @computerPopupMarginTop 0;
666
- .menu {
667
- > li {
668
- margin-bottom: @computerMegaMenuMarginBottom;
669
- &.hasSubMenu:after {
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
- }
639
+ #main #mega-menu .ui.accordion .title:first-child {
640
+ display: none; // hide home link from mobile menu
641
+ }
642
+
643
+ @media all and (min-width: @tabletBreakpoint) {
644
+ #mega-menu {
645
+ padding: @tabletMegaMenuPadding;
646
+ max-height: @tabletPopUpHeight;
690
647
  }
691
648
  }
649
+
650
+ @media only screen and (min-width: @computerBreakpoint) {
651
+ #mega-menu {
652
+ width: 100%;
653
+ padding: @computerMegaMenuPadding;
654
+ max-height: @computerPopUpHeight;
655
+ }
656
+ #mega-menu .title > a {
657
+ color: @megaMenuTextColor;
658
+ }
659
+ }