How can I condense the following CSS into a more concise LESS code?
.push-nav > .active > a,
.push-nav > .active > a:hover,
.push-nav > .active > a:focus {
background:#000;
color: #fff;
}
Here is my attempt:
.push-nav > .active > a {
&:focus,
&:hover {
background:#000;
color: #fff;
}
}
As a result, we get:
.push-nav > .active > a:focus,
.push-nav > .active > a:hover {
background: #000;
color: #fff;
}
The selector .push-nav > .active > a
seems to be missing.
Any other suggestions on how to improve this further?