@ecl/mega-menu 5.0.0-alpha.10 → 5.0.0-alpha.11

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/mega-menu.scss CHANGED
@@ -12,10 +12,48 @@
12
12
  $theme: null !default;
13
13
  $mega-menu: null !default;
14
14
 
15
+ :root {
16
+ --ecl-mega-menu-item-promotional-bg: #{map.get(
17
+ $mega-menu,
18
+ 'global',
19
+ 'promotional-item-bg'
20
+ )};
21
+ --ecl-mega-menu-item-promotional-hover-bg: #{map.get(
22
+ $mega-menu,
23
+ 'global',
24
+ 'promotional-item-bg-hover'
25
+ )};
26
+ --ecl-mega-menu-item-promotional-focus-bg: #{map.get(
27
+ $mega-menu,
28
+ 'global',
29
+ 'promotional-item-bg-focus'
30
+ )};
31
+ --ecl-mega-menu-item-promotional-outline-color: #{map.get(
32
+ $mega-menu,
33
+ 'global',
34
+ 'promotional-item-outline-color'
35
+ )};
36
+ --ecl-mega-menu-item-promotional-text-color: #{map.get(
37
+ $mega-menu,
38
+ 'global',
39
+ 'promotional-item-text-color'
40
+ )};
41
+ --ecl-mega-menu-item-promotional-hover-text-color: #{map.get(
42
+ $mega-menu,
43
+ 'global',
44
+ 'promotional-item-hover-text-color'
45
+ )};
46
+ --ecl-mega-menu-item-promotional-focus-text-color: #{map.get(
47
+ $mega-menu,
48
+ 'global',
49
+ 'promotional-item-focus-text-color'
50
+ )};
51
+ }
52
+
15
53
  @mixin with-scrollbar {
16
54
  overflow-y: auto;
17
55
  scrollbar-color: var(--cm-on-surface-neutral-medium, var(--c-n))
18
- rgba(0, 0, 0, 0);
56
+ rgb(0, 0, 0, 0);
19
57
  scrollbar-width: thin;
20
58
  }
21
59
 
@@ -183,6 +221,7 @@ $mega-menu: null !default;
183
221
  display: flex;
184
222
  flex-flow: row-reverse;
185
223
  height: map.get($mega-menu, 'mobile', 'header-height');
224
+ padding-block-end: var(--s-xs);
186
225
  }
187
226
 
188
227
  .ecl-mega-menu__title {
@@ -329,7 +368,7 @@ $mega-menu: null !default;
329
368
  left: 0;
330
369
  padding: 0;
331
370
  top: 0;
332
- width: calc(100vw - var(--s-m));
371
+ width: 100%;
333
372
  }
334
373
 
335
374
  /*
@@ -353,6 +392,11 @@ $mega-menu: null !default;
353
392
  .ecl-mega-menu__inner--expanded & {
354
393
  margin-top: 0;
355
394
  }
395
+
396
+ .ecl-mega-menu--one-panel &,
397
+ .ecl-mega-menu--two-panels & {
398
+ margin-inline: 0;
399
+ }
356
400
  }
357
401
 
358
402
  .ecl-mega-menu__item {
@@ -375,6 +419,7 @@ $mega-menu: null !default;
375
419
  line-height: map.get($theme, 'line-height-ui', 'xs');
376
420
  padding: map.get($mega-menu, 'mobile', 'item-padding');
377
421
  position: relative;
422
+ text-align: start;
378
423
  width: 100%;
379
424
 
380
425
  > span {
@@ -421,24 +466,38 @@ $mega-menu: null !default;
421
466
  }
422
467
  }
423
468
 
469
+ .ecl-mega-menu__item--promotional .ecl-mega-menu__link {
470
+ background: var(--ecl-mega-menu-item-promotional-bg);
471
+ color: var(--ecl-mega-menu-item-promotional-text-color);
472
+
473
+ &:hover {
474
+ background: var(--ecl-mega-menu-item-promotional-hover-bg);
475
+ color: var(--ecl-mega-menu-item-promotional-hover-text-color);
476
+ }
477
+
478
+ &:focus-visible {
479
+ background: var(--ecl-mega-menu-item-promotional-focus-bg);
480
+ color: var(--ecl-mega-menu-item-promotional-focus-text-color);
481
+ outline-color: var(--ecl-mega-menu-item-promotional-outline-color);
482
+ outline-offset: -4px;
483
+ }
484
+ }
485
+
424
486
  .ecl-mega-menu__featured-list__item {
425
487
  .ecl-link {
426
- /* stylelint-disable-next-line declaration-property-value-no-unknown */
427
- border-bottom: 1px solid
428
- map.get($mega-menu, 'mobile', 'featured-link-border');
429
-
430
488
  .ecl-picture {
431
- margin-inline: calc(-1 * var(--s-s)) calc(-1 * var(--s-2xl));
432
- }
433
-
434
- &:hover {
435
- border-color: map.get($mega-menu, 'mobile', 'featured-link-border');
489
+ margin-inline: calc(-1 * var(--s-s)) 0;
436
490
  }
437
491
  }
438
492
 
439
493
  &--combo .ecl-mega-menu__featured-image {
440
494
  margin-block-end: var(--s-xs);
441
495
  }
496
+
497
+ .ecl-mega-menu__featured-list__item-description {
498
+ font: map.get($mega-menu, 'global', 'featured-description-font');
499
+ margin-inline-start: var(--s-l);
500
+ }
442
501
  }
443
502
 
444
503
  .ecl-mega-menu--rtl .ecl-icon--flip-horizontal {
@@ -448,11 +507,9 @@ $mega-menu: null !default;
448
507
  .ecl-mega-menu__sublink.ecl-mega-menu__parent-link {
449
508
  border: none;
450
509
  box-sizing: border-box;
451
- margin-inline-start: calc(-1 * var(--s-xs));
452
510
  padding-bottom: var(--s-xs);
453
511
  padding-inline-start: 1.75rem;
454
512
  padding-top: var(--s-xs);
455
- width: calc(100% + var(--s-m));
456
513
 
457
514
  &:focus-visible {
458
515
  outline: none;
@@ -477,7 +534,7 @@ $mega-menu: null !default;
477
534
  .ecl-mega-menu__info {
478
535
  background: map.get($mega-menu, 'global', 'greysh-background');
479
536
  box-sizing: content-box;
480
- margin: 0 calc(-1 * var(--s-xs)) var(--s-m);
537
+ margin: 0 0 var(--s-m) 0;
481
538
  padding-inline-start: 1.75rem;
482
539
  padding-bottom: var(--s-2xl);
483
540
  padding-inline-end: 1.75rem;
@@ -492,25 +549,11 @@ $mega-menu: null !default;
492
549
  }
493
550
  }
494
551
 
495
- .ecl-mega-menu__info-link {
496
- border-bottom: 1px solid transparent;
497
- display: inline-block;
498
- width: fit-content;
499
-
500
- &:hover {
501
- text-decoration: underline !important;
502
- }
503
-
504
- &:focus-visible {
505
- border-radius: 0;
506
- }
507
-
508
- .ecl-mega-menu__info-content + & {
509
- margin-top: var(--s-xs);
552
+ .ecl-mega-menu__subitem {
553
+ .ecl-button__label {
554
+ margin-inline-end: var(--s-m);
510
555
  }
511
- }
512
556
 
513
- .ecl-mega-menu__subitem {
514
557
  .ecl-mega-menu__sublink--level-2 {
515
558
  background: transparent;
516
559
  color: var(--cm-on-surface-primary, var(--c-p));
@@ -598,11 +641,27 @@ $mega-menu: null !default;
598
641
  border-radius: 0;
599
642
  color: map.get($mega-menu, 'desktop', 'item-color-focus');
600
643
  outline-color: #fff;
601
- outline-offset: -8px;
644
+ outline-offset: map.get($mega-menu, 'desktop', 'outline-offset');
602
645
  outline-width: map.get($mega-menu, 'desktop', 'outline-width');
603
646
  }
604
647
  }
605
648
 
649
+ .ecl-mega-menu__item--promotional .ecl-mega-menu__link {
650
+ background: var(--ecl-mega-menu-item-promotional-bg);
651
+ color: var(--ecl-mega-menu-item-promotional-text-color);
652
+
653
+ &:hover {
654
+ background: var(--ecl-mega-menu-item-promotional-hover-bg);
655
+ color: var(--ecl-mega-menu-item-promotional-hover-text-color);
656
+ }
657
+
658
+ &:focus-visible {
659
+ background: var(--ecl-mega-menu-item-promotional-focus-bg);
660
+ color: var(--ecl-mega-menu-item-promotional-focus-text-color);
661
+ outline-color: var(--ecl-mega-menu-item-promotional-outline-color);
662
+ }
663
+ }
664
+
606
665
  .ecl-mega-menu__sublink {
607
666
  border-bottom: none;
608
667
  }
@@ -630,6 +689,10 @@ $mega-menu: null !default;
630
689
  }
631
690
  }
632
691
 
692
+ .ecl-mega-menu__featured-list__item-description {
693
+ margin-inline-start: var(--s-s);
694
+ }
695
+
633
696
  .ecl-mega-menu__item--current {
634
697
  background-color: map.get(
635
698
  $mega-menu,
@@ -743,6 +806,7 @@ $mega-menu: null !default;
743
806
  cursor: default;
744
807
  font: var(--f-l);
745
808
  margin: 0 calc(-1 * var(--s-xs));
809
+ width: 100vw;
746
810
 
747
811
  &::after {
748
812
  background: map.get(
@@ -754,9 +818,9 @@ $mega-menu: null !default;
754
818
  display: block;
755
819
  height: var(--s-xl);
756
820
  position: absolute;
757
- left: calc(-1 * var(--s-l));
821
+ left: 0;
758
822
  top: 100%;
759
- width: calc(100% + var(--s-l));
823
+ width: 100vw;
760
824
  }
761
825
  }
762
826
 
@@ -780,7 +844,11 @@ $mega-menu: null !default;
780
844
  list-style: none;
781
845
  list-style-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
782
846
  margin-bottom: var(--s-m);
783
- padding-inline-start: 0;
847
+ padding: 0 var(--s-xs);
848
+
849
+ .ecl-mega-menu__sublist {
850
+ padding-inline: 0 !important;
851
+ }
784
852
 
785
853
  .ecl-mega-menu__see-all {
786
854
  .ecl-link {
@@ -805,6 +873,25 @@ $mega-menu: null !default;
805
873
  }
806
874
  }
807
875
 
876
+ .ecl-mega-menu__see-all .ecl-link.ecl-mega-menu__info-link {
877
+ border-bottom: 1px solid transparent;
878
+ display: inline-block;
879
+ margin-block-end: var(--s-m);
880
+ width: fit-content;
881
+
882
+ &:hover {
883
+ text-decoration: underline !important;
884
+ }
885
+
886
+ &:focus-visible {
887
+ border-radius: 0;
888
+ }
889
+
890
+ .ecl-mega-menu__info-content + & {
891
+ margin-top: var(--s-xs);
892
+ }
893
+ }
894
+
808
895
  .ecl-mega-menu__featured-list {
809
896
  margin: 0;
810
897
  padding: 0;
@@ -872,16 +959,30 @@ $mega-menu: null !default;
872
959
  }
873
960
  }
874
961
 
875
- .ecl-mega-menu__sublist--scrollable {
962
+ .ecl-mega-menu__mega--has-featured {
963
+ @at-root .ecl-mega-menu--featured--primary
964
+ .ecl-mega-menu__subitem--current
965
+ .ecl-mega-menu__featured {
966
+ display: none !important;
967
+ }
968
+
969
+ @at-root .ecl-mega-menu--has-secondary-featured:not(
970
+ .ecl-mega-menu--featured--primary
971
+ )
972
+ &
973
+ > .ecl-mega-menu__featured {
974
+ display: none !important;
975
+ }
976
+
977
+ .ecl-mega-menu__featured-list__item:last-child {
978
+ padding-block-end: var(--s-m);
979
+ }
980
+
876
981
  @include with-scrollbar;
877
982
  }
878
983
 
879
984
  .ecl-mega-menu__mega--level-2 {
880
- @include with-scrollbar;
881
-
882
- margin-top: var(--s-3xl);
883
- margin-inline-start: calc(-1 * var(--s-xs));
884
- margin-inline-end: calc(-1 * var(--s-xs));
985
+ margin-top: map.get($mega-menu, 'mobile', 'spacing-top-level-2');
885
986
 
886
987
  > .ecl-mega-menu__sublist {
887
988
  padding: 0 var(--s-xs);
@@ -910,6 +1011,10 @@ $mega-menu: null !default;
910
1011
  .ecl-mega-menu__sublink .ecl-icon {
911
1012
  margin-inline-start: var(--s-xs);
912
1013
  }
1014
+
1015
+ &.ecl-mega-menu-featured-only {
1016
+ margin-block-start: var(--s-xl);
1017
+ }
913
1018
  }
914
1019
 
915
1020
  .ecl-mega-menu__featured {
@@ -917,7 +1022,8 @@ $mega-menu: null !default;
917
1022
  border-color: var(--cm-border-neutral, var(--c-n));
918
1023
  border-width: 0.5px;
919
1024
  flex-direction: column;
920
- padding: 0 var(--s-xs);
1025
+ flex-grow: 1;
1026
+ padding: 0;
921
1027
 
922
1028
  .ecl-mega-menu__featured-scrollable {
923
1029
  background-color: map.get($mega-menu, 'mobile', 'featured-background');
@@ -927,7 +1033,7 @@ $mega-menu: null !default;
927
1033
  display: block;
928
1034
 
929
1035
  .ecl-mega-menu__featured-image {
930
- aspect-ratio: 16/9;
1036
+ aspect-ratio: 3/2;
931
1037
  display: block;
932
1038
  margin-inline-start: var(--s-l);
933
1039
  margin-block-start: var(--s-m);
@@ -961,7 +1067,7 @@ $mega-menu: null !default;
961
1067
  color: var(--cm-on-surface-primary, var(--c-p));
962
1068
  display: block;
963
1069
  outline-offset: -2px;
964
- padding: var(--s-m) var(--s-l);
1070
+ padding: var(--s-2xs) var(--s-l);
965
1071
  width: 100%;
966
1072
 
967
1073
  &:hover {
@@ -970,12 +1076,19 @@ $mega-menu: null !default;
970
1076
  }
971
1077
 
972
1078
  &--image-only {
973
- margin-block-end: var(--s-xs);
1079
+ margin-block-end: var(--s-2xs);
974
1080
  }
975
1081
  }
976
1082
  }
977
1083
  }
978
1084
 
1085
+ .ecl-mega-menu__mega:not(.ecl-mega-menu__mega--level-2)
1086
+ > .ecl-mega-menu__featured {
1087
+ margin-inline: var(--s-xs);
1088
+ margin-block-start: calc(-1 * var(--s-m));
1089
+ padding-block: 0;
1090
+ }
1091
+
979
1092
  .ecl-mega-menu--rtl {
980
1093
  .ecl-mega-menu__see-all .ecl-icon,
981
1094
  .ecl-mega-menu__info-link .ecl-icon {
@@ -995,7 +1108,6 @@ $mega-menu: null !default;
995
1108
  .ecl-mega-menu__wrapper {
996
1109
  padding-top: var(--s-m);
997
1110
  min-height: 200px !important;
998
- width: 100vw;
999
1111
 
1000
1112
  &::before {
1001
1113
  background: var(--cm-border-neutral, '#e3e3e3');
@@ -1045,15 +1157,21 @@ $mega-menu: null !default;
1045
1157
  z-index: map.get($theme, 'z-index', 'dropdown');
1046
1158
  }
1047
1159
 
1160
+ @at-root .ecl-mega-menu--rtl .ecl-mega-menu__info::after {
1161
+ right: auto !important;
1162
+ left: 10px !important;
1163
+ }
1164
+
1048
1165
  .ecl-mega-menu__item
1049
1166
  > .ecl-mega-menu__wrapper
1050
1167
  .ecl-container
1051
1168
  > .ecl-mega-menu__info {
1052
1169
  margin-bottom: var(--s-m);
1053
- margin-inline-start: calc(-1 * var(--s-m));
1054
- padding: 0 0 var(--s-m) var(--s-m);
1170
+ padding: 0 0 var(--s-m);
1055
1171
  position: static;
1056
1172
  width: auto;
1173
+
1174
+ @include with-scrollbar;
1057
1175
  }
1058
1176
 
1059
1177
  &.ecl-mega-menu--rtl {
@@ -1074,6 +1192,7 @@ $mega-menu: null !default;
1074
1192
  }
1075
1193
 
1076
1194
  .ecl-mega-menu__mega {
1195
+ overflow-x: visible;
1077
1196
  width: 21rem;
1078
1197
  }
1079
1198
 
@@ -1127,7 +1246,35 @@ $mega-menu: null !default;
1127
1246
 
1128
1247
  > .ecl-mega-menu__info {
1129
1248
  box-sizing: border-box;
1130
- box-shadow: 0px 4px 10px 0px rgba(224, 229, 245, 0.42);
1249
+ box-shadow: 0px 4px 10px 0px rgb(224, 229, 245, 0.42);
1250
+ margin-inline: calc(
1251
+ -1 * map.get($mega-menu, 'desktop', 'container-padding-horizontal')
1252
+ );
1253
+ padding-inline-start: map.get(
1254
+ $mega-menu,
1255
+ 'desktop',
1256
+ 'container-padding-horizontal'
1257
+ );
1258
+ }
1259
+
1260
+ .ecl-mega-menu__mega:not(.ecl-mega-menu__mega--level-2)
1261
+ > .ecl-mega-menu__featured {
1262
+ background: var(--cm-on-surface-inverted, #fff);
1263
+ display: flex;
1264
+ height: auto;
1265
+ margin-block: 0;
1266
+ margin-inline-start: 21rem;
1267
+
1268
+ .ecl-mega-menu__featured-list__item .ecl-link {
1269
+ border-bottom: none;
1270
+ margin: 0;
1271
+ padding-inline: var(--s-s) 0;
1272
+ padding-block: var(--s-2xs);
1273
+ }
1274
+
1275
+ .ecl-mega-menu__featured-list__item .ecl-link > .ecl-picture {
1276
+ margin-block-start: calc(-1 * var(--s-2xs));
1277
+ }
1131
1278
  }
1132
1279
 
1133
1280
  .ecl-mega-menu__subitem--expanded .ecl-mega-menu__featured {
@@ -1144,8 +1291,8 @@ $mega-menu: null !default;
1144
1291
  .ecl-mega-menu__featured-list__item .ecl-link {
1145
1292
  border-bottom: none;
1146
1293
  margin: 0;
1147
- padding: calc(var(--s-xs) + 2px) var(--s-2xl) calc(var(--s-xs) + 2px)
1148
- var(--s-s);
1294
+ padding-inline: var(--s-s) 0;
1295
+ padding-block: var(--s-2xs);
1149
1296
  }
1150
1297
  }
1151
1298
  }
@@ -1157,7 +1304,7 @@ $mega-menu: null !default;
1157
1304
  flex-direction: column;
1158
1305
  flex: 1;
1159
1306
  margin: 0;
1160
- padding-inline-start: 0;
1307
+ padding-inline: 0;
1161
1308
 
1162
1309
  @include with-scrollbar;
1163
1310
 
@@ -1169,6 +1316,7 @@ $mega-menu: null !default;
1169
1316
  display: block;
1170
1317
  flex-grow: 0;
1171
1318
  margin-top: auto;
1319
+ padding-inline-start: var(--s-xs);
1172
1320
  position: relative;
1173
1321
 
1174
1322
  .ecl-link {
@@ -1191,8 +1339,7 @@ $mega-menu: null !default;
1191
1339
  display: block;
1192
1340
  height: 1px;
1193
1341
  position: absolute;
1194
- left: var(--s-s);
1195
- top: calc(-1 * var(--s-s));
1342
+ left: var(--s-l);
1196
1343
  width: calc(100% - (var(--s-l) * 2));
1197
1344
  background: map.get($mega-menu, 'desktop', 'see-all-divider');
1198
1345
  }
@@ -1210,11 +1357,18 @@ $mega-menu: null !default;
1210
1357
  position: absolute;
1211
1358
  visibility: hidden;
1212
1359
  opacity: 0;
1213
- overflow-y: visible;
1214
1360
  transition-timing-function: ease;
1215
1361
  transition-property: opacity;
1216
1362
  transition-duration: 0.3s;
1217
1363
 
1364
+ @include with-scrollbar;
1365
+
1366
+ overflow-y: visible;
1367
+
1368
+ &.ecl-mega-menu-featured-only {
1369
+ background: var(--cm-surface-inverted, #fff);
1370
+ }
1371
+
1218
1372
  > .ecl-mega-menu__sublist {
1219
1373
  border: none;
1220
1374
  position: relative;
@@ -1314,7 +1468,7 @@ $mega-menu: null !default;
1314
1468
  font: var(--f-m);
1315
1469
  height: 100%;
1316
1470
  margin: 0;
1317
- padding-inline-start: 0;
1471
+ padding-inline: 0;
1318
1472
  position: absolute;
1319
1473
  left: calc(100% + var(--s-m));
1320
1474
  width: 16.25rem;
@@ -1331,7 +1485,7 @@ $mega-menu: null !default;
1331
1485
  display: block;
1332
1486
 
1333
1487
  .ecl-mega-menu__featured-image {
1334
- aspect-ratio: 16/9;
1488
+ aspect-ratio: 3/2;
1335
1489
  display: block;
1336
1490
  margin-block-start: 0;
1337
1491
  margin-inline-start: var(--s-s);
@@ -1344,12 +1498,16 @@ $mega-menu: null !default;
1344
1498
  }
1345
1499
 
1346
1500
  .ecl-mega-menu__featured-title {
1347
- font: var(--f-m);
1501
+ font: var(--f-l);
1348
1502
  margin-bottom: calc(var(--s-xs) + 2px);
1349
1503
  margin-top: calc(var(--s-xs) + 2px);
1350
1504
  margin-inline-start: var(--s-s);
1351
1505
  }
1352
1506
  }
1507
+
1508
+ .ecl-mega-menu__mega--has-featured {
1509
+ overflow-y: unset;
1510
+ }
1353
1511
  }
1354
1512
 
1355
1513
  @include breakpoints.up('xl') {
@@ -1357,16 +1515,29 @@ $mega-menu: null !default;
1357
1515
  .ecl-mega-menu--forced-mobile,
1358
1516
  .ecl-mega-menu--forced-close
1359
1517
  ) {
1518
+ .ecl-container {
1519
+ padding-inline: map.get(
1520
+ $mega-menu,
1521
+ 'desktop',
1522
+ 'container-extra-large-padding-horizontal'
1523
+ );
1524
+ }
1525
+
1360
1526
  .ecl-mega-menu__item.ecl-mega-menu__item--expanded
1361
1527
  > .ecl-mega-menu__wrapper
1362
1528
  > .ecl-container {
1363
1529
  > .ecl-mega-menu__info {
1364
1530
  box-shadow: none;
1365
1531
  border-radius: 0px 4px 4px 0px;
1366
- left: var(--s-m);
1532
+ left: map.get(
1533
+ $mega-menu,
1534
+ 'desktop',
1535
+ 'container-extra-large-padding-horizontal'
1536
+ );
1367
1537
  margin-bottom: 0;
1368
- padding-inline-start: var(--s-m);
1369
- padding-inline-end: var(--s-xl);
1538
+ margin-inline: 0;
1539
+ padding-inline-start: 0;
1540
+ padding-inline-end: 1.5rem;
1370
1541
  position: absolute;
1371
1542
  width: 15.875rem;
1372
1543
  z-index: 16;
@@ -1375,10 +1546,10 @@ $mega-menu: null !default;
1375
1546
  content: '';
1376
1547
  position: absolute;
1377
1548
  top: 0;
1378
- right: 0;
1549
+ right: 10px;
1379
1550
  bottom: 0;
1380
1551
  width: 10px;
1381
- box-shadow: 4px 0px 10px 0px rgba(224, 229, 245, 0.5);
1552
+ box-shadow: 4px 0px 10px 0px rgb(224, 229, 245, 0.5);
1382
1553
  pointer-events: none;
1383
1554
  }
1384
1555
 
@@ -1403,10 +1574,19 @@ $mega-menu: null !default;
1403
1574
  }
1404
1575
 
1405
1576
  > .ecl-mega-menu__mega {
1406
- left: calc(15.875rem + var(--s-xl));
1577
+ left: 18rem;
1407
1578
  }
1408
1579
  }
1409
1580
 
1581
+ &.ecl-mega-menu--rtl .ecl-mega-menu__info {
1582
+ left: auto !important;
1583
+ right: map.get(
1584
+ $mega-menu,
1585
+ 'desktop',
1586
+ 'container-extra-large-padding-horizontal'
1587
+ ) !important;
1588
+ }
1589
+
1410
1590
  &.ecl-mega-menu--rtl
1411
1591
  .ecl-mega-menu__item--expanded
1412
1592
  > .ecl-mega-menu__wrapper
@@ -1422,6 +1602,19 @@ $mega-menu: null !default;
1422
1602
  .ecl-mega-menu--forced-mobile,
1423
1603
  .ecl-mega-menu--forced-close
1424
1604
  ) {
1605
+ .ecl-container {
1606
+ padding-inline: map.get(
1607
+ $mega-menu,
1608
+ 'global',
1609
+ 'container-extra-large-padding-horizontal'
1610
+ );
1611
+ }
1612
+
1613
+ .ecl-mega-menu__mega:not(.ecl-mega-menu__mega--level-2)
1614
+ > .ecl-mega-menu__featured {
1615
+ margin-inline-start: 18.75rem !important;
1616
+ }
1617
+
1425
1618
  .ecl-mega-menu__wrapper::before {
1426
1619
  width: 96%;
1427
1620
  margin-inline-start: 2%;
@@ -1429,6 +1622,50 @@ $mega-menu: null !default;
1429
1622
  }
1430
1623
  }
1431
1624
 
1625
+ @include breakpoints.up('xxl') {
1626
+ .ecl-mega-menu:not(
1627
+ .ecl-mega-menu--forced-mobile,
1628
+ .ecl-mega-menu--forced-close
1629
+ ) {
1630
+ .ecl-mega-menu__mega:not(.ecl-mega-menu__mega--level-2)
1631
+ > .ecl-mega-menu__featured {
1632
+ margin-inline-start: 20.68rem !important;
1633
+ }
1634
+
1635
+ .ecl-mega-menu__item.ecl-mega-menu__item--expanded
1636
+ > .ecl-mega-menu__wrapper
1637
+ > .ecl-container {
1638
+ .ecl-mega-menu__featured {
1639
+ width: 17.875rem;
1640
+ }
1641
+
1642
+ .ecl-mega-menu__mega {
1643
+ width: 20.68rem;
1644
+ }
1645
+
1646
+ > {
1647
+ .ecl-mega-menu__info {
1648
+ padding-inline-start: 0;
1649
+ width: 18.875rem;
1650
+ }
1651
+
1652
+ .ecl-mega-menu__mega {
1653
+ left: 22rem;
1654
+ width: 20.93rem;
1655
+ }
1656
+ }
1657
+ }
1658
+
1659
+ &.ecl-mega-menu--rtl
1660
+ .ecl-mega-menu__item--expanded
1661
+ > .ecl-mega-menu__wrapper
1662
+ > .ecl-container
1663
+ > .ecl-mega-menu__mega {
1664
+ right: 20.93rem;
1665
+ }
1666
+ }
1667
+ }
1668
+
1432
1669
  .ecl-mega-menu-prevent-scroll {
1433
1670
  position: fixed;
1434
1671
  overflow-y: scroll;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ecl/mega-menu",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "5.0.0-alpha.10",
5
+ "version": "5.0.0-alpha.11",
6
6
  "description": "ECL Mega Menu",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -11,11 +11,11 @@
11
11
  "module": "mega-menu.js",
12
12
  "style": "mega-menu.scss",
13
13
  "dependencies": {
14
- "@ecl/button": "5.0.0-alpha.10",
15
- "@ecl/dom-utils": "5.0.0-alpha.10",
16
- "@ecl/event-manager": "5.0.0-alpha.10",
17
- "@ecl/link": "5.0.0-alpha.10",
18
- "@ecl/picture": "5.0.0-alpha.10",
14
+ "@ecl/button": "5.0.0-alpha.11",
15
+ "@ecl/dom-utils": "5.0.0-alpha.11",
16
+ "@ecl/event-manager": "5.0.0-alpha.11",
17
+ "@ecl/link": "5.0.0-alpha.11",
18
+ "@ecl/picture": "5.0.0-alpha.11",
19
19
  "bowser": "2.11.0",
20
20
  "focus-trap": "7.6.4"
21
21
  },
@@ -33,5 +33,5 @@
33
33
  "design-system",
34
34
  "twig"
35
35
  ],
36
- "gitHead": "8f085d9bbc9ebe568932bc297fdcf7f7a47da47b"
36
+ "gitHead": "e2c8581dfaabe6f67ff063fed5839034f0148db3"
37
37
  }