Jump to content

Issues with removing mobile underline and having a Nav with an active state

Recommended Posts

a:hover {
cursor: url(https://static1.squarespace.com/static/63d9e42ef9f9404df3be3dcd/t/63dc79c131cdbe79b7af45ef/1675393473636/eye.png) 50 50, auto !important; 
}


.header-title-logo a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -10px;
  left: 0;
  background-color: #03DAD5;
  transform-origin: bottom right;
  transition: transform 1s ease-out;
}


.sqs-block-button-element  {   
    width: 100%;
    text-decoration: none !important;
}

a {
  display: inline;
  position: relative;
  color: #FFFFFF;
  text-decoration: none !important;
}

a:hover {
  color: #7FFAF7;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #03DAD5;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

I'm having difficulty doing changes to the Nav. I wonder if it's because of the "after" state I have for my underline animation. Thanks in advance!

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

#1. Nav active underline

Because you are using Link Item to Header, so difficult to achieve this effect. You can consider moving page to Main Navigation, instead of using Link item

#2. I don't see underline on mobile. Can you take a screenshot?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.