Im trying to create a LESS mixin for my font size and line-height but at the moment get an error when I try to run it. Can anyone advise where I might be going wrong with this:
.font( @size: 1.6, @line: @size * 1.5 ){
@fontSizeRem: @size;
@fontSizePx: ( @size * 10 );
@lineHeightRem: @line;
@lineHeightPx: ( @line * 10 );
font-size: ~"@{fontSizePx}px";
font-size: ~"@{fontSizeRem}rem";
line-height: ~"@{lineHeightPx}px";
line-height: ~"@{lineHeightRem}rem";
}
h1{
.font(1.6);
}