Answer the question
In order to leave comments, you need to log in
How to use variable as class name in LESS mixin?
Caution, terrible wrong syntax.
How can you write such a mixin?
.social(@social, @color){
.color_[email protected]social{
color: @color;
}
}
.social('facebook', '#ff0000');
.social('vkontakte', '#00ff00');
.color_facebook{
color: #ff0000;
}
.color_vkontakte{
color: #00ff00;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question