I seem to be encountering some unexpected outcomes with one of my selectors.
Following a reset, I have established certain base settings - including this one:
a:not([class]) {
text-decoration:underline;
&:link, &:visited, &:hover, &:active {
color:@primaryColor;
}
&:hover {
text-decoration:none;
}
}
It is somewhat effective, but not entirely.
This anchor without an href attribute functions correctly
<a class="link-more mt24">Learn more</a>
However, this anchor with an href does not behave as expected.
<a class="link-more mt24" href="https://www.bbc.co.uk">Learn more</a>
When I say it doesn't work, I mean that the first link is properly ignored while the second one isn't ignored despite having a class.
For thoroughness, this is what Less is generating:
a:not([class]) {
text-decoration: underline;
}
a:not([class]):link,
a:not([class]):visited,
a:not([class]):hover,
a:not([class]):active {
color: #03a9f4;
}
a:not([class]):hover {
text-decoration: none;
}
Any suggestions or thoughts on this matter?