]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Increase the precision of the pow function when calculating luminance
authorNate Wiebe <nate@northern.co>
Tue, 20 Dec 2016 20:58:21 +0000 (15:58 -0500)
committerNate Wiebe <nate@northern.co>
Tue, 20 Dec 2016 20:58:21 +0000 (15:58 -0500)
scss/util/_color.scss

index 66fa9e71c2905db07b8fcb30b719b169e5f0d3a0..82d32b74feb4764526d34a7cba5a28f57200df65 100644 (file)
@@ -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));
+    $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4, 18));
 
     $rgba2: append($rgba2, $rgb);
   }