Joined May 2013
·

Ben Kalsky

benkalsky
·
Eilat ↔ Tel Aviv
·
·
·

Posted to SASS CSS3 calc mixin over 1 year ago

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 :)

Achievements
1 Karma
0 Total ProTip Views