Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-10-22 23:00:10 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-10-23 11:19:00 +0300
commit97307025a17081802aa20ff12a89cf2e9ed775d5 (patch)
treec5da67568d458495455d4f0e354c4486c9b89986 /scss.scss
parentfe4fcce00544c8d17c33a75ac80db294f47c9c9f (diff)
Fix Dart Sass
Diffstat (limited to 'scss.scss')
-rw-r--r--scss.scss5
1 files changed, 4 insertions, 1 deletions
diff --git a/scss.scss b/scss.scss
index 45213e3..a68e738 100644
--- a/scss.scss
+++ b/scss.scss
@@ -214,6 +214,9 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
// Base value formatting
$min-width: if($rfs-unit == rem, #{$value-min / $rfs-rem-value}rem, #{$value-min}px);
+ // Use negative value if needed
+ $min-width: if($value < 0, -$min-width, $min-width);
+
// Use `vmin` if two-dimensional is enabled
$variable-unit: if($rfs-two-dimensional, vmin, vw);
@@ -221,7 +224,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
$variable-width: #{$value-diff * 100 / $rfs-breakpoint}#{$variable-unit};
// Return the calculated value
- $val: $val + ' calc(' + if($value < 0, -#{$min-width} - #{$variable-width}, #{$min-width} + #{$variable-width}) + ')';
+ $val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
}
}
}