@eeacms/volto-eea-design-system 0.4.5 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,239 +7,294 @@
7
7
  Header
8
8
  *******************************/
9
9
 
10
+ .sticky {
11
+ position: sticky;
12
+ top: 0;
13
+ }
14
+
10
15
  .eea.header {
11
- 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
+
295
+ /*----------------------------------------------------------------------------
296
+ Header Actions - Burger and Search Icons
297
+ ----------------------------------------------------------------------------*/
243
298
  .burger-action {
244
299
  display: flex;
245
300
  align-items: center;
@@ -247,11 +302,7 @@ Header Actions - Burger and Search Icons
247
302
  cursor: pointer;
248
303
  width: @mobileActionsBoxWidth;
249
304
  height: @mobileMainSectionHeight;
250
- background-color: @darkCerulean;
251
- }
252
-
253
- .burger-action.desktop {
254
- display: none;
305
+ background-color: @burgerActionBackgroundColor;
255
306
  }
256
307
 
257
308
  .burger-action.mobile {
@@ -267,7 +318,7 @@ Header Actions - Burger and Search Icons
267
318
  height: @mobileMainSectionHeight;
268
319
  align-items: center;
269
320
  justify-content: center;
270
- background-color: @darkCyan;
321
+ background-color: @secondaryColor;
271
322
  }
272
323
 
273
324
  .burger-action,
@@ -288,75 +339,8 @@ Header Actions - Burger and Search Icons
288
339
  }
289
340
 
290
341
  @media only screen and (min-width: @tabletBreakpoint) {
291
- .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
- }
342
+ .top.bar .item {
343
+ font-size: @tabletTopSectionItemFontSize;
360
344
  }
361
345
 
362
346
  .text.menu {
@@ -373,319 +357,297 @@ Header Actions - Burger and Search Icons
373
357
  width: @tabletActionsBoxWidth;
374
358
  height: @tabletMainSectionHeight;
375
359
  }
376
- }
377
360
 
378
- @media only screen and (min-width: @computerBreakpoint) {
379
- .eea.header {
380
- .top.bar {
381
- height: @computerTopSectionHeight;
382
- }
383
361
 
384
- .main.bar {
385
- .ui.container {
386
- height: 160px;
362
+ /*----------------------------------------------------------------------------
363
+ HEADER TOP BAR TABLET
364
+ ----------------------------------------------------------------------------*/
387
365
 
388
- .eea-logo {
389
- max-width: @computerLogoMaxWidth;
390
- margin-top: @computerLogoMarginTop;
391
- }
366
+ .top.bar {
367
+ height: @tabletTopSectionHeight;
368
+ }
392
369
 
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
- }
370
+ .top.bar .ui.dropdown .menu {
371
+ margin-top: @tabletDropdownMenuMarginTop;
372
+ }
373
+
374
+ .top.bar .ui.dropdown .menu,
375
+ .top.bar .ui.dropdown .menu .item {
376
+ font-size: @tabletDropdownMenuFontSize;
377
+ }
402
378
 
403
- /* Search box */
404
- #search-box {
405
- height: @computerPopUpHeight;
379
+ /* Official union dropdown */
380
+ .top.bar .official-union {
381
+ gap: @tabletOfficialUnionGap;
406
382
 
407
- .wrapper {
408
- margin: @computerPopupMarginTop 0;
383
+ img {
384
+ width: @tabletOfficialUnionImageWidth;
385
+ }
386
+ .ui.dropdown {
387
+ .menu {
388
+ left: @tabletOfficialUnionMenuLeft;
409
389
 
410
- .action {
411
- justify-content: flex-end;
412
- }
390
+ .content {
391
+ max-width: @tabletOfficialUnionMaxWidth;
413
392
  }
414
393
  }
415
394
  }
416
395
  }
417
396
 
418
- .burger-action.mobile {
419
- display: none;
397
+ /* Language dropdown */
398
+ #language-switcher {
399
+ img {
400
+ width: 19px;
401
+ }
402
+
403
+ .menu {
404
+ top: @tabletLanguageMenuTop;
405
+ }
420
406
  }
421
407
 
422
- .burger-action.desktop {
423
- display: flex;
424
- width: @computerActionsBoxWidth;
425
- height: @computerMainSectionHeight;
408
+ /*----------------------------------------------------------------------------
409
+ HEADER MAIN BAR TABLET
410
+ ----------------------------------------------------------------------------*/
411
+
412
+ .main.bar {
413
+ .ui.container {
414
+ height: 117px;
415
+ }
426
416
  }
427
417
 
428
- .search-action {
429
- width: @computerActionsBoxWidth;
430
- height: @computerMainSectionHeight;
418
+ .eea.header .eea-logo {
419
+ max-width: @tabletLogoMaxWidth;
420
+ margin-top: @tabletLogoMarginTop;
431
421
  }
432
- }
433
422
 
434
- @media only screen and (max-width: 960px) {
435
- #theme-sites {
436
- display: none;
423
+ /* Search box */
424
+ #search-box {
425
+ height: @tabletPopUpHeight;
426
+ .wrapper {
427
+ margin: @tabletPopupMarginTop 0;
428
+ }
437
429
  }
438
430
  }
439
431
 
440
- /************************
441
- MEGA MENU
442
- ************************/
432
+ @media only screen and (min-width: @computerBreakpoint) {
443
433
 
444
- #mega-menu {
445
- position: relative;
446
- z-index: 9999;
447
- overflow: auto;
448
- width: 100%;
449
- background: @megaMenuBackgroundGradient;
434
+ .burger-action.mobile {
435
+ display: none;
436
+ }
450
437
 
451
- .ui.container {
452
- height: 100%;
453
- align-items: baseline;
438
+ .search-action {
439
+ width: @computerActionsBoxWidth;
440
+ height: @computerMainSectionHeight;
454
441
  }
455
442
 
456
- .toggle,
457
- [id^='drop'] {
458
- display: none;
443
+ /*----------------------------------------------------------------------------
444
+ HEADER TOP BAR DESKTOP
445
+ ----------------------------------------------------------------------------*/
446
+
447
+ .top.bar {
448
+ height: @computerTopSectionHeight;
459
449
  }
460
- nav {
461
- margin: @tabletPopupMarginTop 0;
462
- padding: 0;
463
- width: 100%;
450
+
451
+ .top.bar .ui.dropdown .menu {
452
+ margin-top: @computerDropdownMenuMarginTop;
464
453
  }
465
454
 
466
- nav:after {
467
- content: '';
468
- display: table;
469
- clear: both;
455
+ #theme-sites.ui.dropdown .menu {
456
+ .wrapper {
457
+ width: @computerThemeSitesMenuWidth;
458
+ }
470
459
  }
460
+ /*----------------------------------------------------------------------------
461
+ HEADER MAIN BAR DESKTOP
462
+ ----------------------------------------------------------------------------*/
471
463
 
472
- nav ul {
473
- float: left;
474
- padding: 0;
475
- margin: 0;
476
- list-style: none;
477
- position: relative;
464
+ .main.bar {
465
+ .ui.container {
466
+ height: 160px;
467
+
468
+ .ui.text.menu {
469
+ flex-wrap: wrap;
470
+ display: flex;
471
+ width: 88%;
472
+ max-height: 20px;
473
+ justify-content: space-between;
474
+ margin: 0;
478
475
 
479
- > li a {
480
- padding: 0;
476
+ .item {
477
+ padding: @mainMenuItemPadding;
478
+ }
479
+ }
481
480
  }
482
481
  }
483
482
 
484
- nav ul li {
485
- display: inline-block;
486
- font-size: @megaMenuFontSize;
483
+ .eea.header .eea-logo {
484
+ max-width: @computerLogoMaxWidth;
485
+ margin-top: @computerLogoMarginTop;
487
486
  }
488
487
 
489
- nav a {
490
- display: flex;
491
- color: @mobileMegaMenuColor;
492
- padding: @megaMenuLinkPadding;
493
- line-height: @megaMenuLineHeight;
494
- word-break: @megaMenuWordBreak;
495
- }
488
+ /* Search box */
489
+ #search-box {
490
+ height: @computerPopUpHeight;
496
491
 
497
- nav ul ul {
498
- display: none;
499
- position: absolute;
500
- top: 0;
492
+ .wrapper {
493
+ margin: @computerPopupMarginTop 0;
494
+
495
+ .action {
496
+ justify-content: flex-end;
497
+ }
498
+ }
501
499
  }
500
+ }
502
501
 
503
- nav ul li:hover > ul,
504
- nav ul li:active > ul {
502
+ /************************
503
+ MEGA MENU
504
+ ************************/
505
+
506
+ #mega-menu {
507
+ position: absolute;
508
+ right: 0;
509
+ overflow: auto;
510
+ z-index: @z-index-8;
511
+ width: @mobileMegaMenuWidth;
512
+ background: @megaMenuBackgroundColor;
513
+ color: @megaMenuTextColor;
514
+ max-height: @mobilePopUpHeight;
515
+ padding: @mobileMegaMenuPadding;
516
+
517
+ .ui.container {
505
518
  display: inherit;
506
- display: flex;
507
- flex-direction: column;
519
+ align-items: baseline;
520
+ height: 100%;
508
521
  }
509
522
 
510
- nav ul ul li {
511
- float: none;
512
- display: list-item;
523
+ .title {
524
+ font-size: @megaMenuTitleFontSize;
525
+ font-weight: @megaMenuTitleFontWeight;
513
526
  }
514
527
 
515
- nav ul ul ul li {
516
- left: 0;
517
- }
528
+ .sub-title {
529
+ font-size: @megaMenuSubTitleFontSize;
530
+ font-weight: @megaMenuSubTitleFontWeight;
531
+ color: @megaMenuTextColor;
518
532
 
519
- li > a:only-child:after {
520
- content: '';
533
+ &+ .ui.grid {
534
+
535
+ div.column:first-child {
536
+ padding-left: 0;
537
+ }
538
+
539
+ div.column:last-child {
540
+ padding-right: 0;
541
+ }
542
+ }
521
543
  }
544
+ }
522
545
 
523
- @media all and (max-width: @largestMobileScreen) {
524
- height: @mobilePopUpHeight;
525
- nav {
526
- margin: @mobilePopupMarginTop 0;
527
- }
528
- .menu,
529
- li {
530
- width: 100%;
531
- }
546
+ #mega-menu .ui.list .item {
547
+ display: flex;
548
+ font-size: @megaMenuListItemFontSize;
549
+ font-weight: @megaMenuListItemFontWeight;
550
+ padding: @megaMenuListItemPadding;
551
+ }
532
552
 
533
- .toggle + a,
534
- .menu {
535
- display: none;
536
- }
553
+ #mega-menu a.item {
554
+ color: @megaMenuTextColor;
537
555
 
538
- .toggle {
539
- display: block;
540
- padding: @toggleMenuFirstPadding;
541
- color: @mobileMegaMenuColor;
542
- line-height: @megaMenuLineHeight;
543
- }
556
+ i.icon {
557
+ color: @megaMenuTextColor;
558
+ }
559
+ }
544
560
 
545
- [id^='drop']:checked + ul {
546
- display: block;
547
- }
548
561
 
549
- nav ul li {
550
- display: block;
551
- width: 100%;
552
- }
562
+ #at-a-glance {
563
+ background-color: @megaMenuGlanceBackgroundColor;
564
+ // To override the grid column paddings
565
+ padding: @megaMenuGlancePaddingLeft !important;
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
- }
567
+ .ui.list .item {
568
+ font-size: @megaMenuGlanceListItemFontSize;
569
+ font-weight: @megaMenuGlanceListItemFontWeight;
570
+ margin: @megaMenuGlanceListItemMargin;
571
+ }
572
+ }
562
573
 
563
- nav ul ul ul a {
564
- padding: @mobileToggleMenuThirdPadding;
565
- }
574
+ #mega-menu .ui.grid {
575
+ div.column:first-child {
576
+ padding-left: 0.625rem;
577
+ }
566
578
 
567
- nav ul ul {
568
- float: none;
569
- position: static;
570
- color: @mobileMegaMenuColor;
571
- }
579
+ div.column:last-child {
580
+ padding-right: 0.625rem;
581
+ }
582
+ }
572
583
 
573
- nav ul ul li:hover > ul,
574
- nav ul li:hover > ul {
575
- display: none;
576
- }
584
+ .menu-content > .ui.grid > .column {
585
+ padding-top: @megaMenuContentPaddingTop;
586
+ }
577
587
 
578
- nav ul ul li {
579
- display: block;
580
- width: 100%;
588
+ /*Mega Menu Accordion - Tablet & Mobile */
589
+ #mega-menu .ui.accordion {
590
+ .title {
591
+ font-size: @megaMenuAccordionTitleFontSize;
592
+ color: @megaMenuTextColor;
593
+ padding: @megaMenuAccordionTitlePadding;
594
+ border-bottom: @megaMenuAccordionTitleBorderBottom;
595
+
596
+ i:before {
597
+ font-size: @megaMenuAccordionIconFontSize;
581
598
  }
582
599
 
583
- nav ul ul ul li {
584
- position: static;
600
+ &:hover {
601
+
602
+ i {
603
+ color: @megaMenuTextColor;
604
+ }
585
605
  }
586
606
  }
587
607
 
588
- .menu {
589
- display: flex;
590
- flex-direction: column;
591
- }
592
- .sub {
593
- left: 100%;
608
+ .active.title {
609
+ background-color: transparent;
610
+ border-bottom: @megaMenuAccordionActiveTitleBorderBottom;
594
611
  }
595
612
 
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
- }
613
+ .content {
614
+ background: @megaMenuBackgroundColor;
615
+ padding: @megaMenuAccordionContentPadding;
623
616
 
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
- }
617
+ .accordion {
618
+ margin: @megaMenuNestedAccordionMargin;
619
+
620
+ .title {
621
+ font-size: @megaMenuNestedAccordionTitleFontSize;
622
+ font-weight: @megaMenuNestedAccordionTitleFontWeight;
623
+ border-bottom: none;
644
624
  }
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
- }
625
+
626
+ .content {
627
+ padding: @megaMenuNestedAccordionContentPadding;
655
628
  }
656
629
  }
657
- ul li:hover > a span {
658
- text-decoration: underline;
659
- }
660
630
  }
631
+ }
661
632
 
662
- @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
- }
633
+ #main #mega-menu .ui.accordion .title:first-child {
634
+ display: none; // hide home link from mobile menu
635
+ }
636
+
637
+ @media all and (min-width: @tabletBreakpoint) {
638
+ #mega-menu {
639
+ padding: @tabletMegaMenuPadding;
640
+ max-height: @tabletPopUpHeight;
690
641
  }
691
642
  }
643
+
644
+ @media only screen and (min-width: @computerBreakpoint) {
645
+ #mega-menu {
646
+ width: 100%;
647
+ padding: @computerMegaMenuPadding;
648
+ max-height: @computerPopUpHeight;
649
+ }
650
+ #mega-menu .title > a {
651
+ color: @megaMenuTextColor;
652
+ }
653
+ }