How can I simplify the css below in LESS code?
.push-nav > .active > a,
.push-nav > .active > a:hover,
.push-nav > .active > a:focus {
background:#000;
color: #fff;
}
My attempt:
.push-nav > .active > a {
&:focus,
&:hover {
background:#000;
color: #fff;
}
}
Result:
.push-nav > .active > a:focus,
.push-nav > .active > a:hover {
background: #000;
color: #fff;
}
.push-nav > .active > a is missing.
Any ideas?
&, &:focus, &:hover {..}.