Another way to write it:
@mixin calc($prop, $val) { @each $pre in -webkit-, -moz-, -o- { #{$prop}: $pre + calc(#{$val}); } #{$prop}: calc(#{$val}); } I think it is more elegant way :)
Another way to write it:
@mixin calc($prop, $val) {
@each $pre in -webkit-, -moz-, -o- {
#{$prop}: $pre + calc(#{$val});
} #{$prop}: calc(#{$val});
}
I think it is more elegant way :)