I'm trying to my grid system to LESS.
I'm using fractions as strings (there's a reason) and need to interpolate them in the calc()
expression.
In Sass I can do this...
@mixin move($fraction: '1/1') {
position: relative;
left: calc(99.999999% * #{$fraction});
}
In LESS when I try this...
.move(@fraction: '1/1') {
@_fraction: ~'@{fraction}';
left: calc(99.999999% * @_fraction);
}
It ends up throwing a Cannot read property 'numerator' of undefined
error.
Apparently LESS can tell it's a fraction but then it poops out.
Can any LESS pros enlighten me?