I am trying to change the color of the text of my Navigation Menu.
Here is my CSS Code:
li {
a {
color: $color4;
text-decoration: none;
display: block;
padding: 0.25rem 5rem 0rem 0rem;
font-size: 1.2rem;
font-weight: bold;
&:hover {
color: $color5;
}
}
&.current-menu-item {
color: $color5 !important;
background:blue;
}
}
I am using SASS instead of just CSS.
The issue is that the .current-menu-item gets the background of blue, but the text color does not seem to change, even with the infamous !important.
I know the class is correct, but I can't seem to override the a{}.
Any advice?