Using one mixin from LESS within another mixin
- by user1165984
I am trying to use a mix that calculates the base line height in another that contains my base font styles. Each time I try to compile, I get an error.
Here is an example.
.lineHeight(@sizeValue){
@remValue: @sizeValue;
@pxValue: (@sizeValue * 10);
line-height: ~"@{pxValue}px";
line-height: ~"@{remValue}rem";
}
.baseFont(@weight: normal, @size:…