changed calc to mixin for webkit and moz