Skip to content

Commit 6c062d6

Browse files
committed
/ to math.div for Dart Sass
1 parent 887e9f1 commit 6c062d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scss/_colors-functions.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use "sass:math";
12

23
// region //////////////////////////////////////////////// Getters
34

@@ -141,7 +142,7 @@
141142
$red: red($color);
142143
$green: green($color);
143144
$blue: blue($color);
144-
$yiq: (($red*299)+($green*587)+($blue*114))/1000;
145+
$yiq: math.div(($red*299)+($green*587)+($blue*114), 1000);
145146

146147
@return if($yiq >= $threshold, true, false);
147148
}

0 commit comments

Comments
 (0)