Hey there,
I am trying to custom style the links in my main navigation. It’s a transparent header using the ‘Navigation as header’ I have used the Inspector to find out that the wrapping element of the main navigation is #site-navigation. Using display:none, the navigation disappears as expected. But it won’t apply any of the styles I am trying to apply to the menu. Namely I would like to add a thick underline behind the text on a:hover and a:active.
Here’s what I have atm (i found the attributes for the underline here: https://codepen.io/mikemai2awesome/pen/BIEgp and modified it for my needs)
$black: #000000;
#site-navigation a:hover {
text-decoration: none;
border-bottom: .0625em solid darken($black,10%);
box-shadow: 0 -.25em 0 darken($black,10%) inset;
}
But apart from the underline code not working, no matter what I change, even if i just change the text-decoration it doesn’t apply to the nav links, even with !important.
I must be making a very basic mistake here, any help is greatly appreciated.
Thanks!
Daniel