diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-02-12 22:13:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 22:13:21 +0300 |
commit | 328cc0e725a842b7fa0dcda3dc8053b4d40618bc (patch) | |
tree | e166f95ba468dc5fc1358e5ce771cfb248d9f681 | |
parent | 181c865330b12db18afc8709f900c44347245189 (diff) |
Remove warning if RFS is included more than once (#73)
-rw-r--r-- | scss.scss | 8 | ||||
-rw-r--r-- | stylus.styl | 7 | ||||
-rw-r--r-- | test/lib/tests.js | 2 |
3 files changed, 1 insertions, 16 deletions
@@ -202,11 +202,3 @@ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint); @mixin responsive-font-size($fs, $important: false) { @include rfs($fs, $important); } - -$rfs-is-included: false !default; - -@if $rfs-is-included { - @warn "Watch out, RFS is included more than once!"; -} - -$rfs-is-included: true; diff --git a/stylus.styl b/stylus.styl index 7c4bea9..ecbb13b 100644 --- a/stylus.styl +++ b/stylus.styl @@ -172,10 +172,3 @@ rfs($fs, $important = false) // The responsive-font-size mixin uses RFS to rescale font sizes responsive-font-size($fs, $important = false) rfs($fs, $important) - -$rfs-is-included ?= false - -if $rfs-is-included - warn("Watch out, RFS is included more than once!") - -$rfs-is-included = true diff --git a/test/lib/tests.js b/test/lib/tests.js index b5170f1..361b0bf 100644 --- a/test/lib/tests.js +++ b/test/lib/tests.js @@ -37,6 +37,6 @@ module.exports = [ }, { id: 'test-10', - name: 'Include mixins multiple times (Should throw a warning for SCSS & Stylus and not fail for less & PostCSS)' + name: 'Include mixins multiple times' }, ]; |