Utilizzoil framework Zurb Foundation.tramide Sass.
Quando vado ha compilare ricevo tale errore:
error scss/node_modules/foundation-sites/scss/util/_math.scss (Line 23: Invalid CSS after " @return math": expected "}", was ".abs($a);")
codice:
@use "sass:math";
////
/// @group functions
/// Finds the greatest common divisor of two integers.
///
/// @param {Number} $a - First number to compare.
/// @param {Number} $b - Second number to compare.
///
/// @returns {Number} The greatest common divisor.
@function gcd($a, $b) {
// From: http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
@if ($b != 0) {
@return gcd($b, $a % $b);
}
@else {
@return math.abs($a); //LINE 23
//@return math.abs(#{$a%});
}
}