From: Nate Wiebe Date: Fri, 13 Jan 2017 22:00:00 +0000 (-0500) Subject: Increase default precision of the pow function X-Git-Tag: 6.3.1~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9540%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Increase default precision of the pow function --- diff --git a/scss/util/_color.scss b/scss/util/_color.scss index 82d32b74f..66fa9e71c 100644 --- a/scss/util/_color.scss +++ b/scss/util/_color.scss @@ -23,7 +23,7 @@ $rgb: nth($rgba, $i); $rgb: $rgb / 255; - $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4, 18)); + $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4)); $rgba2: append($rgba2, $rgb); } diff --git a/scss/util/_math.scss b/scss/util/_math.scss index 9b3e470e2..e3d190886 100644 --- a/scss/util/_math.scss +++ b/scss/util/_math.scss @@ -28,7 +28,7 @@ /// @param {Number} $exponent - The exponent. /// /// @returns {Number} The product of the exponentiation. -@function pow($base, $exponent, $prec: 12) { +@function pow($base, $exponent, $prec: 16) { @if (floor($exponent) != $exponent) { $prec2 : pow(10, $prec); $exponent: round($exponent * $prec2);