Jump to content

Hide hover underline on vertical secondary navigation only

Recommended Posts

Site URL: https://evolutionofbrilliance.squarespace.com/

Hello, I have created a vertical secondary navigation. I have also added some code which creates an underline on hover on both primary and secondary navigation. My issue is, I only want the underline to appear on the primary navigation, and not the secondary vertical navigation. I need some help with the code please as I can't figure it out!

Password is: 123456

Many thanks!!!

Link to comment
  • Replies 2
  • Views 224
  • Created
  • Last Reply

Top Posters In This Topic

Edit your code to this

@media all and (min-width: 700px) {
    nav.Header-nav--primary a {
        display:inline-block;
        float: none;
    }

    nav.Header-nav--primary a:hover:after {
        transform: scalex(1);
    }

    nav.Header-nav--primary a:after {
        display: block;
        content: '';
        border-bottom: solid 2px #fd8f32;
        padding: .2em;
        transform: scalex(0);
        transition: transform 250ms ease-in-out;
        z-index: 999;
    }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.