I have been trying this for a while, looking at other answers, but to no avail. Hopefully someone can help me.
I am trying to generate some dynamic variable names wi
You can use Variable Names. And I've tested the code at http://lesstester.com/, it works.
@horizontal-default-color: #fff;
@horizontal-inverse-color: #000;
.horizontal-variant(@variant) {
@color: "horizontal-@{variant}-color";
color: @@color;
}
.horizontal-default{
.horizontal-variant(default);
}
.horizontal-inverse{
.horizontal-variant(inverse);
}