Closed
Description
I wanted a variable that optionally adds an extra CSS class to scope some selectors, and this works:
This:
@scope-selector:;
@{scope-selector} {
.red {
color: red;
}
}
Generates:
.red {
color: red;
}
And this:
@scope-selector: ~".theme-class";
@{scope-selector} {
.red {
color: red;
}
}
Generates:
.theme-class .red {
color: red;
}
I'm not confident that the first example with @scope-selector:;
is an intentional language feature, though. Can someone confirm this?