Hi
I have used the following css to create a nice hover effect on my desktop navigation and I’d like it to apply to my off canvas mobile menu too. How should I amend it, so it works on mobile too? – Thanks
.menu-toggle .mobile-menu {
color: white;
padding-left: 3px;
}
.menu-toggle:before {
color: white;
content: “\f0c9”;
font-family: GeneratePress;
width: 1.28571429em;
text-align: center;
display: inline-block;
}
@media (min-width: 415px) {
.main-navigation .menu > .menu-item > a::after {
content: “”;
position: absolute;
right: 0;
left: 50%;
bottom: 15px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
display: block;
width: 0;
height: 2px;
background-color: currentColor;
transition: 0.3s width ease;
}
.main-navigation .menu > .menu-item.current-menu-item > a::after,
.main-navigation .menu > .menu-item.current-menu-ancestor > a::after,
.main-navigation .menu > .menu-item > a:hover::after {
width: 50%;
}
}