Skip to content

Commit 0a4cf3c

Browse files
committed
Change method of interpolating value in fluid mixin to avoid compatibility issues in older Sass.
1 parent 2b0685d commit 0a4cf3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_fluid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}
7878

7979
@media (min-#{$size-unit}: $min-size) {
80-
$val: calc(#{$min-value} + #{strip-unit($max-value - $min-value)} * (100#{$viewport-unit} - #{$min-size}) / #{strip-unit($max-size - $min-size)});
80+
$val: calc(#{$min-value} + #{strip-unit($max-value - $min-value)} * (#{"100" + $viewport-unit} - #{$min-size}) / #{strip-unit($max-size - $min-size)});
8181

8282
@if $custom-property-name {
8383
:root { --#{$custom-property-name}: #{$val}; }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@malven/sass-toolkit",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "A collection of foundational utilities for Sass",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)