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
path: root/stylus
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@intracto.com>2018-07-16 20:16:05 +0300
committerMartijn Cuppens <martijn.cuppens@intracto.com>2018-07-16 20:16:05 +0300
commit7ebf3fd17c4d4005e1f719dbeff469203ce46dad (patch)
tree05183f8a3f63d1acfe0a6e45774898cbca1a38e5 /stylus
parenta87301ba0b1e2de97e0a2ed38c140f90931e6b87 (diff)
#18: stylus- allow overring variables
Diffstat (limited to 'stylus')
-rw-r--r--stylus/rfs.styl20
1 files changed, 10 insertions, 10 deletions
diff --git a/stylus/rfs.styl b/stylus/rfs.styl
index 2bc5946..88419c2 100644
--- a/stylus/rfs.styl
+++ b/stylus/rfs.styl
@@ -9,30 +9,30 @@
// Configuration
// Minimum font size
-$rfs-minimum-font-size = 1rem
-$rfs-font-size-unit = rem
+$rfs-minimum-font-size ?= 1rem
+$rfs-font-size-unit ?= rem
// Breakpoint at where font-size starts decreasing if screen width is smaller
-$rfs-breakpoint = 1200px
-$rfs-breakpoint-unit = px
+$rfs-breakpoint ?= 1200px
+$rfs-breakpoint-unit ?= px
// Resize font-size based on screen height and width
-$rfs-two-dimensional = false
+$rfs-two-dimensional ?= false
// Factor of decrease
-$rfs-factor = 5
+$rfs-factor ?= 5
// Generate enable or disable classes. Possibilities: false, "enable" or "disable"
-$rfs-classes = false
+$rfs-classes ?= false
// 1 rem = $rfs-rem-value px
-$rfs-rem-value = 16
+$rfs-rem-value ?= 16
// Safari iframe resize bug: https://github.com/project-rfs/rfs/issues/14
-$rfs-safari-iframe-resize-bug-fix = false
+$rfs-safari-iframe-resize-bug-fix ?= false
// Disable RFS by setting $enable-responsive-font-sizes to false
-$enable-responsive-font-sizes = true
+$enable-responsive-font-sizes ?= true
if $enable-responsive-font-sizes == false
// If $rfs-factor is set to 1, fluid font-resizing is disabled