Skip to content

Instantly share code, notes, and snippets.

$supports-first-class-calc: calc(1) == 1;
@function divide-portable($number1, $number2) {
@if $supports-first-class-calc {
@return calc($number1 / $number2);
} @else {
@return $number1 / $number2;
}
}