I'm currently getting this output:
.'teal-dark' { color: #xxx; }
What I want is this: {
.teal-dark { color; #xxx; }
Here is what I'm trying to do:
@teal-dark: #xxx;
.@{currentMember} div { background: ~"@{@{currentMember}}" };
I'm currently getting this output:
.'teal-dark' { color: #xxx; }
What I want is this: {
.teal-dark { color; #xxx; }
Here is what I'm trying to do:
@teal-dark: #xxx;
.@{currentMember} div { background: ~"@{@{currentMember}}" };
See: http://lesscss.org/features/#variables-feature-variable-interpolation http://lesscss.org/features/#variables-feature-variable-names and
@current-member: teal-dark;
@teal-dark: red;
.@{current-member} {
color: @@current-member;
}
compiles into:
.teal-dark {
color: red;
}
Possible relevant questions:
Here's the fix from another post:
@selector: ~'.@{currentMember}';
@{selector} div { background: ~"@{@{currentMember}}" };