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 'stylus/rfs.styl')
-rw-r--r--stylus/rfs.styl6
1 files changed, 1 insertions, 5 deletions
diff --git a/stylus/rfs.styl b/stylus/rfs.styl
index 88419c2..b423bb4 100644
--- a/stylus/rfs.styl
+++ b/stylus/rfs.styl
@@ -34,10 +34,6 @@ $rfs-safari-iframe-resize-bug-fix ?= false
// Disable RFS by setting $enable-responsive-font-sizes to false
$enable-responsive-font-sizes ?= true
-if $enable-responsive-font-sizes == false
- // If $rfs-factor is set to 1, fluid font-resizing is disabled
- $rfs-factor = 1
-
// Remove px-unit from $rfs-minimum-font-size for calculations
if unit($rfs-minimum-font-size) == "px"
$rfs-minimum-font-size = unit($rfs-minimum-font-size, "")
@@ -85,7 +81,7 @@ rfs($fs, $important = false)
// Only add media query if font-size is bigger as the minimum font-size
// If $rfs-factor == 1, no rescaling will take place
- if $fs > $rfs-minimum-font-size and $rfs-factor != 1
+ if $fs > $rfs-minimum-font-size and $rfs-factor != 1 and $enable-responsive-font-sizes
$min-width = null
$variable-unit = null