Skip to content

Commit c21bf10

Browse files
authored
Merge pull request #53 from pedantic-git/master
Change remaining / to math.div
2 parents 6f53634 + 08d4a4a commit c21bf10

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

styles/utilities/functions.sass

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math"
2+
13
@function mergeColorMaps($bulma-colors, $custom-colors)
24
// we return at least bulma hardcoded colors
35
$merged-colors: $bulma-colors
@@ -39,18 +41,18 @@
3941
$value: $value * $number
4042
@else if $exp < 0
4143
@for $i from 1 through -$exp
42-
$value: $value / $number
44+
$value: math.div($value, $number)
4345
@return $value
4446

4547
@function colorLuminance($color)
4648
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
4749
@each $name, $value in $color-rgb
4850
$adjusted: 0
49-
$value: $value / 255
51+
$value: math.div($value, 255)
5052
@if $value < 0.03928
51-
$value: $value / 12.92
53+
$value: math.div($value, 12.92)
5254
@else
53-
$value: ($value + .055) / 1.055
55+
$value: math.div($value + .055, 1.055)
5456
$value: powerNumber($value, 2)
5557
$color-rgb: map-merge($color-rgb, ($name: $value))
5658
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)

0 commit comments

Comments
 (0)