Is there a way to dynamically pick between the two colors below based on a class on the body without adding the body class to every less snippet that contains the color using less?
@basketballColor: #ff9900;
@footballColor: #99743d;
Can we do this?
.navbar-inner {
background-color: @mainColor;
}
I know we can do this but would like to condense it
body.basketball {
.navbar-inner {
background-color: @basketballColor;
}
}
body.football {
.navbar-inner {
background-color: @footballColor;
}
}