Reputation: 182
I am trying to create me a PX/REM converter in LESS CSS but I am facing a problem. The following lines do not want to compile, the problem comes from @{propertyValue}:.
.rem(@propertyValue; @sizeValue) {
@remValue: @sizeValue / unit(@base-font-size);
@{propertyValue}: ~"@{remValue}rem";
}
But yet I think the syntax is good... at last I thought! Can you help me?
Thank you!
Upvotes: 1
Views: 133