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>2018-08-30 21:54:43 +0300
committerMartijn Cuppens <martijn.cuppens@gmail.com>2018-08-30 21:54:54 +0300
commit8faebf19e139d5970540f239c04c43ba245456b3 (patch)
tree2a7462646c3a70e904fffcd830d561c8d1179fe1 /scss/_rfs.scss
parentc379acb7d3870ee53e522b16299798b91669b4a9 (diff)
Allow to enable/disable RFS on the flyv7.1.4
Diffstat (limited to 'scss/_rfs.scss')
-rw-r--r--scss/_rfs.scss7
1 files changed, 1 insertions, 6 deletions
diff --git a/scss/_rfs.scss b/scss/_rfs.scss
index 854248c..4538742 100644
--- a/scss/_rfs.scss
+++ b/scss/_rfs.scss
@@ -34,11 +34,6 @@ $rfs-safari-iframe-resize-bug-fix: false !default;
// Disable RFS by setting $enable-responsive-font-sizes to false
$enable-responsive-font-sizes: true !default;
-@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: $rfs-minimum-font-size / ($rfs-minimum-font-size * 0 + 1);
@@ -98,7 +93,7 @@ $enable-responsive-font-sizes: true !default;
// 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;