Seeking to style all child elements like div
, table
, ul
, dl
, under a specific selector using LESS.
It would be great if I could do something along these lines.
.myclass {
...
&.otherClass > (div, ul, dl, table) {
// define some rules...
}
}
I anticipate the following result.
.myclass.otherClass > div,
.myclass.otherClass > ul,
.myclass.otherClass > dl,
.myclass.otherClass > table {
// rules
}
However, it seems that the parentheses are not supported as is, leading to an invalid CSS output upon compilation.
Is there an alternative syntax or method to achieve this kind of shortcut in definitions?