// Srtips the units from a value. e.g. 12px -> 12 @function strip-units($val) { @return ($val / ($val * 0 + 1)); }
info at phpclasses dot org