From: karland Date: Sun, 14 Feb 2016 20:21:12 +0000 (+0100) Subject: Fix SASS depreciation warning X-Git-Tag: v6.2.0-rc.1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8162%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix SASS depreciation warning SASS is generatng the following depreciation warning: DEPRECATION WARNING on line 25 of /foundation/components/_visibility.scss: The result of `0px == 0` will be `false` in future releases of Sass. Unitless numbers will no longer be equal to the same numbers with units. This PR fixes the issue --- diff --git a/scss/components/_visibility.scss b/scss/components/_visibility.scss index 2ec691965..f9a6c1266 100644 --- a/scss/components/_visibility.scss +++ b/scss/components/_visibility.scss @@ -22,7 +22,7 @@ // more often than not this will be correct, just one time round the loop it won't so set in scope here $lower-bound: -zf-bp-to-em($lower-bound-size) - (1/16); // test actual lower-bound-size, if 0 set it to 0em - @if $lower-bound-size == 0 { + @if strip-unit($lower-bound-size) == 0 { $lower-bound: -zf-bp-to-em($lower-bound-size); }