I have a less file to define a bunch of colours/color. Each class name contains the name of the relevant colour, such as .colourOrange{..}
or .colourBorderOrange{..}
or navLeftButtOrange{..}
.
To make this simple I have a mixin that uses a parameter name: colour, and uses this to name the classes thus:
.completeColour(@colourName, @col) {
.colour@{colourName}{
…
}
.colourBorder@{colourName}{
…
}
.leftNavButt@{colourName}{
….. } }
The problem is this the names of the classes are being evaluated to the relevant colour. So instead of getting .leftNavButtOrange{}
I get .leftNavButt#ffa500{}
in the resulting CSS
Is there a way to stop this with a compiler argument or something. Basically I don't want the parameter to be evaluated, read but not evaluated. Can I do this with a compiler argument or do I need to change the names so they don't match a color such as myAppOrange or something.