LESS code:
.btn-default:hover {
background-color: rgba(217, 217, 217, 0.65);
background-clip: content-box;
.btn-default:focus {
outline: 2px solid #047a9c;
}
}
What i want to do here is that btn-default:focus
should have background color of hover state but only focus state should have the outline. so the output CSS should be:
.btn-default:hover {
background-color: rgba(217, 217, 217, 0.65);
background-clip: content-box;
}
.btn-default:focus {
background-color: rgba(217, 217, 217, 0.65);
background-clip: content-box;
outline: 2px solid #047a9c;
}
I am bit lost at the LESS nesting part, is this something possible with less? So that i don't have to duplicate the code.