I can't understand some syntax usage. I have a simple mixin with default params:
@red: #ff4136;
@blue: #00aef9;
@green: #01ff70;
@yellow: #ffdc00;
.paint(@color: @yellow, @height:100px, @width:200px) {
background-color: @color;
height: @height;
width: @width;
}
.monster-happy {
.paint(@color, 100px, 10px);
}
I want to change only first and last default param and I dont want to change the middle param, something like:
.monster-happy {
.paint(@red, @height, 10px);
}
But it doesn't work. How should I make it correct and what better way to do this?