Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scss/util/_math.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
///
/// @returns {Number} The product of the exponentiation.
@function pow($base, $exponent, $prec: 16) {
@if (floor($exponent) != $exponent) {
@if (math.floor($exponent) != $exponent) {
$prec2: pow(10, $prec);
$exponent: round($exponent * $prec2);
$denominator: gcd($exponent, $prec2);
Expand Down
3 changes: 2 additions & 1 deletion scss/util/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
////

@use "sass:color";
@use "sass:math";

// Patch to fix issue #12080
$-zf-bp-value: null;
Expand Down Expand Up @@ -96,7 +97,7 @@ $-zf-bp-value: null;
$spacing: divide($height - ($weight * $bars), $bars - 1);

@if unit($spacing) == 'px' {
$spacing: floor($spacing);
$spacing: math.floor($spacing);
}

@for $i from 2 through $bars {
Expand Down