I have a mixin set up to do a cross browser calc,
@mixin calc($property, $expression...) {
#{$property}: -moz-calc(#{$expression});
#{$property}: -o-calc(#{$expression});
#{$property}: -webkit-calc(#{$expression});
#{$property}: calc(#{$expression});
}
I also have a variable.
$line: 12px;
I want to be able to use a variable within it.
@include calc(width, "30% - ( $line * 2) ) ");
But I'm not sure if that's the best way to go about it.
calc()
at all. When they do finally support it, there's no reason to expect it to be prefixed at all. – cimmanon