I'm searching for a possibility to change the variable in case of an id. I've seen following post about this topic but when I compile the Less files I get the error message, that the variable isn't defined.
.colorDefs(@color) {
@HoverActiveBg: @color;
}
body#theme1 {
.colorDefs(@brand-info);
}
body#theme2 {
.colorDefs(@brand-warning);
}
body#theme3 {
.colorDefs(@brand-success);
}
...
.nav-pills:active, .nav-justified:active,
.nav-pills:hover, .nav-justified:hover,
.nav-pills:focus, .nav-justified:focus {
background-color: @HoverActiveBg;
}
Do you have a working solution for this?