Hello everyone! I have the following mixin and I am looking to make it a global one. What I mean is, without setting the margin, I want to use it for font-size for example, or for anything else that you might want to set into rem/em units. I am new to Less and preprocessors, so I was wondering if someone here could help me change the code. Thank you very much for your time.
.marginSizeCalc(@sv) {
@sizeValue: unit(@sv);
@remValue: (@sizeValue / @font-size-base);
margin: unit(@sv, px);
margin: unit(@remValue, rem);
}