diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-10-22 23:00:10 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-10-23 11:19:00 +0300 |
commit | 97307025a17081802aa20ff12a89cf2e9ed775d5 (patch) | |
tree | c5da67568d458495455d4f0e354c4486c9b89986 /scss.scss | |
parent | fe4fcce00544c8d17c33a75ac80db294f47c9c9f (diff) |
Fix Dart Sass
Diffstat (limited to 'scss.scss')
-rw-r--r-- | scss.scss | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 + ')'; } } } |