I want to temporarily strip the units from my variables @baseLineHeight
and @baseFontSize
so that I can divide them to get a relative line-height
. Here is my attempt:
@baseFontSize: 12px;
@baseLineHeight: 18px;
font: @baseFontSize~"/"@baseLineHeight/@baseFontSize sans-serif;
This code snippet results in the following error:
Object #<Object> has no method 'toCSS' (Less::ParseError)
Desired output:
font: 12px/1.5 sans-serif;