I am tired of writing all the vendor prefixes for the calc function everytime I am using it :
width: calc(100px - 50px);
width: -o-calc(100px - 50px);
width: -moz-calc(100px - 50px);
width: -webkit-calc(100px - 50px);
What I usually do, is to create a mixin in sass which does integrate the vendor prefixes (that example is for box-shadow) :
@mixin box-shadow($args...) {
-webkit-box-shadow: $args;
-moz-box-shadow: $args;
box-shadow: $args;
}
Is there any way to write a similar one for the calc function ? (I didn't manage to do it)