You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get Less to parse the selectors?
Note: I'm aware that I could use a mixin and pass the ruleset in, but that's a workaround, and not a great one at that. Awesome feature, but not the proper tool for this job. One specific limitation of that approach comes when other selectors should be added to a specific instance:
// via mixin
.my-selector {
// can't put additional selectors here
.pseudo-states({
// rules
}, //maybe here as a catch-all arg? feels wrong.);
// via variable
.my-selector {
.my-other-selector,
.and-another,
@{pseudo-states} {
// rules
}
}
The text was updated successfully, but these errors were encountered:
For example:
Is there a way to get Less to parse the selectors?
Note: I'm aware that I could use a mixin and pass the ruleset in, but that's a workaround, and not a great one at that. Awesome feature, but not the proper tool for this job. One specific limitation of that approach comes when other selectors should be added to a specific instance:
The text was updated successfully, but these errors were encountered: