Reputation: 85
I have variable and need to construct mixin with its value:
$param = 'color';
{$param}() {
color: green;
}
.foo {
color: red;
}
It's renders as
color() {
color: #008000;
}
.foo {
color: #f00;
}
But I need
.foo {
color: #008000;
}
Maybe, I don't know, how to do it right.
How can I get it?
Upvotes: 1
Views: 423