Closed
Description
Sometimes it is usefull to have a base-class to put all your stuff into. This makes it easy to avoid conflicts with other elements on the page that are out of your control.
Most of the time you can just wrap your less code in a wrapper class but the reversed nesting with & breaks this approach.
.bs3 {
.form-control {
height: 34px;
textarea& {
height: auto;
}
}
}
becomes
.bs3 .form-control{
height: 34px;
}
textarea.bs3 .form-control {
height: auto;
}
which totally breaks the intended behaviour.
The only two approaches I can think of is to either append the wrapper class in the compiler or add a depth parameter to the reverse nesting.