Is it possible to pass a generic string to a mixin in less? I am used to passing values like:
.border-radius (@radius) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
-ms-border-radius: @radius;
-o-border-radius: @radius;
border-radius: @radius;
}
However I now find I want to do something like this:
.makeRed (@style) {
@style: red;
}
.makeRed('border-color');
I have tried the above but it does not work, it doesn't throw a compile error it just doesnt compile anything.
Ideas?