Skip to content

Commit f365ab1

Browse files
authored
Merge pull request #4 from RafidMuhymin/dev
removed deprecated slash div
2 parents b05ccb8 + 5b3a151 commit f365ab1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_linear-interpolation.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math";
2+
13
/// linear-interpolation
24
/// Calculate the definition of a line between two points
35
/// @param $map - A SASS map of viewport widths and size value pairs
@@ -11,7 +13,7 @@
1113
@error "linear-interpolation() $map must be exactly 2 values";
1214
}
1315
// The slope
14-
$m: (map-get($map, nth($keys, 2)) - map-get($map, nth($keys, 1)))/(nth($keys, 2) - nth($keys,1));
16+
$m: math.div(map-get($map, nth($keys, 2)) - map-get($map, nth($keys, 1)), nth($keys, 2) - nth($keys,1));
1517

1618
// The y-intercept
1719
$b: map-get($map, nth($keys, 1)) - $m * nth($keys, 1);

0 commit comments

Comments
 (0)