Skip to content

Commit 840f2b2

Browse files
committed
Update nav dropdown hovers
1 parent 50c6dcf commit 840f2b2

File tree

1 file changed

+17
-76
lines changed

1 file changed

+17
-76
lines changed

media/css/m24/components/navigation-refresh.scss

Lines changed: 17 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ $margin-top: 54px; // top margin offset for mobile navigation menu
115115
padding: 0;
116116
position: relative;
117117
text-decoration: underline;
118-
text-underline-offset: 2px;
119-
text-decoration-thickness: 1px;
118+
text-underline-offset: 0.1em;
120119

121120
&.mzp-is-active {
122121
background: transparent url('/media/protocol/img/icons/close.svg') center center no-repeat;
@@ -357,7 +356,6 @@ $margin-top: 54px; // top margin offset for mobile navigation menu
357356
text-decoration: none;
358357
width: 100%;
359358

360-
// extra specificity to override link colors on some Firefox pages
361359
&:link,
362360
&:visited {
363361
color: $color-black;
@@ -451,56 +449,31 @@ $margin-top: 54px; // top margin offset for mobile navigation menu
451449
align-items: center;
452450
display: flex;
453451
padding: 8px 0;
454-
text-decoration: none;
455452
width: 100%;
456453

457454
&:link,
458455
&:visited {
459456
text-decoration: none;
460-
}
461457

462-
.m24-c-menu-item-title {
463-
border: none;
464-
position: relative;
458+
svg path {
459+
fill: $color-black;
460+
}
465461
}
466-
}
467-
}
468-
469-
.m24-c-menu-item .m24-c-menu-item-link
470-
.m24-c-menu-item .m24-c-menu-item-link:link,
471-
.m24-c-menu-item .m24-c-menu-item-link:visited {
472-
text-decoration: none;
473-
474-
.m24-c-menu-item-title {
475-
border: none;
476-
}
477-
478-
svg path {
479-
fill: $color-black;
480-
}
481-
}
482462

483-
.m24-c-menu-item .m24-c-menu-item-link:hover,
484-
.m24-c-menu-item .m24-c-menu-item-link:visited:hover {
485-
.m24-c-menu-item-title {
486-
color: $m24-color-dark-green;
487-
border: none;
463+
&:link:hover,
464+
&:visited:hover {
465+
.m24-c-menu-item-title {
466+
color: $m24-color-dark-green;
467+
text-decoration: underline;
468+
text-decoration-thickness: 1px;
469+
text-underline-offset: 0.1em;
470+
}
488471

489-
&::after {
490-
background: $m24-color-dark-green;
491-
bottom: 1px;
492-
content: "";
493-
display: block;
494-
height: 1px;
495-
left: 0;
496-
position: absolute;
497-
width: 100%;
472+
svg path {
473+
fill: $m24-color-dark-green;
474+
}
498475
}
499476
}
500-
501-
svg path {
502-
fill: $m24-color-dark-green;
503-
}
504477
}
505478

506479
.m24-c-menu-panel-content.multi-column {
@@ -553,24 +526,17 @@ $margin-top: 54px; // top margin offset for mobile navigation menu
553526
}
554527

555528
.m24-c-menu-panel .m24-c-menu-category-link {
556-
border: none;
557529
display: flex;
558530
font-family: $primary-font;
559531
font-size: $text-body-md;
560532
justify-content: flex-end;
561533
margin: $spacer-lg $spacer-lg 0;
562-
padding: 0;
563534
}
564535

565-
.m24-c-menu-panel .m24-c-menu-category-link a,
566-
.m24-c-menu-panel .m24-c-menu-category-link a:visited,
567-
.m24-c-menu-panel .m24-c-menu-category-link a:link {
568-
border: none;
536+
.m24-c-menu-panel .m24-c-menu-category-link a:link,
537+
.m24-c-menu-panel .m24-c-menu-category-link a:visited {
569538
color: $color-black;
570539
display: flex;
571-
font-family: $primary-font;
572-
font-weight: 600;
573-
position: relative;
574540
text-decoration: none;
575541
width: fit-content;
576542

@@ -614,31 +580,6 @@ $margin-top: 54px; // top margin offset for mobile navigation menu
614580
}
615581
}
616582

617-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link,
618-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link:link,
619-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link:active,
620-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link:visited {
621-
.m24-c-menu-item-title {
622-
border: none;
623-
font-weight: 600;
624-
position: relative;
625-
text-decoration: none;
626-
}
627-
}
628-
629-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link:hover,
630-
.mzp-has-icon.m24-c-menu-item .m24-c-menu-item-link:visited:hover {
631-
.m24-c-menu-item-title {
632-
border: none;
633-
text-decoration: none;
634-
635-
&::after {
636-
background: $m24-color-dark-green;
637-
}
638-
}
639-
}
640-
641-
// Menu panel close button shown on desktop sized view ports.
642583
.m24-c-menu-button-close {
643584
@include bidi(((right, 15px, left, auto), (left, auto, right, 15px)));
644585
@include image-replaced;

0 commit comments

Comments
 (0)