Not much to say, I just think it would be a good idea if in LESS you could do the following : ``` css .blue { color: blue } .red { color: red } .color(@color) { .@{color} } div { .color(red) } ``` Resulting in ``` div { color: red } ``` .@{variable} is a proposition of syntax but .@variable, .{variable} or .{@variable} would maybe fit better the LESS syntax, I don't know.
Activity
turboelk commentedon Feb 14, 2012
Resulting in
Could be a substitution?
lukeapage commentedon Feb 25, 2013
this can be achieved with mixin guards.. you would have
.color when @color = redetc.[edit - example corrected]
Soviut commentedon Feb 26, 2013
guards use
whennotwhere, just a mild correction in case someone decides to cut and paste.