Skip to content

Commit

Permalink
Change method of interpolating value in fluid mixin to avoid compatib…
Browse files Browse the repository at this point in the history
…ility issues in older Sass.
  • Loading branch information
cmalven committed Sep 15, 2023
1 parent 2b0685d commit 0a4cf3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _fluid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

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

@if $custom-property-name {
:root { --#{$custom-property-name}: #{$val}; }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malven/sass-toolkit",
"version": "6.0.0",
"version": "6.0.1",
"description": "A collection of foundational utilities for Sass",
"repository": {
"type": "git",
Expand Down

0 comments on commit 0a4cf3c

Please sign in to comment.