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>2019-02-12 22:13:21 +0300
committerGitHub <noreply@github.com>2019-02-12 22:13:21 +0300
commit328cc0e725a842b7fa0dcda3dc8053b4d40618bc (patch)
treee166f95ba468dc5fc1358e5ce771cfb248d9f681
parent181c865330b12db18afc8709f900c44347245189 (diff)
Remove warning if RFS is included more than once (#73)
-rw-r--r--scss.scss8
-rw-r--r--stylus.styl7
-rw-r--r--test/lib/tests.js2
3 files changed, 1 insertions, 16 deletions
diff --git a/scss.scss b/scss.scss
index c541a85..497e07e 100644
--- a/scss.scss
+++ b/scss.scss
@@ -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'
},
];