From a11567c9168aea42f2a3c6465a435ef0572c14c4 Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Thu, 27 Mar 2014 21:46:49 +0100 Subject: [PATCH] Fix issue with color function scope --- dist/functions/_color-lightness.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/functions/_color-lightness.scss b/dist/functions/_color-lightness.scss index 74060d35d..8c6df4e25 100644 --- a/dist/functions/_color-lightness.scss +++ b/dist/functions/_color-lightness.scss @@ -3,11 +3,11 @@ // More details here http://robots.thoughtbot.com/closer-look-color-lightness @function is-light($hex-color) { - $red: red(rgba($hex-color, 1.0)); - $green: green(rgba($hex-color, 1.0)); - $blue: blue(rgba($hex-color, 1.0)); + $-local-red: red(rgba($hex-color, 1.0)); + $-local-green: green(rgba($hex-color, 1.0)); + $-local-blue: blue(rgba($hex-color, 1.0)); - $lightness: ($red * 0.2126 + $green * 0.7152 + $blue * 0.0722) / 255; + $-local-lightness: ($-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722) / 255; - @return $lightness > .6; + @return $-local-lightness > .6; }