I have downloaded a theme for bootstrap and In their less sources I have a mixin like:
.label-color(@color) {
@label-class:~"label-@{color}";
@badge-class:~"badge-@{color}";
@label-color:@@label-class;
.@{label-class}, .@{badge-class} {
background-color:@label-color !important;
}
}
.label-arrow(@color) {
@label-class:~"label-@{color}";
@label-color:@@label-class;
.@{label-class}{
&.arrowed:before {
border-right-color:@label-color;
}
&.arrowed-in:before {
border-color:@label-color;
}
&.arrowed-right:after {
border-left-color:@label-color;
}
&.arrowed-in-right:after {
border-color:@label-color;
}
}
}
.label-color(~"lime");
.label-color(~"red");
My problem is that @label-color:@@label-class;
because my internal compiler less4j
give me error at this double @@
and I don't understand why. Local compiler Crunch
is working and know to compile that so is not a wrong syntax.
Can someone give me a hint pls, ty.