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:
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 + ')';
}
}
}