Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Update formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Reda Lemeden committed Mar 14, 2014
1 parent 732970a commit c0cc8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/functions/_color-lightness.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$green: green(rgba($hex-color, 1.0));
$blue: blue(rgba($hex-color, 1.0));

$lightness: (($red * 299 + $green * 587 + $blue * 117) / 1000) / 255;
$lightness: ($red * 0.2126 + $green * 0.7152 + $blue * 0.0722) / 255;

@return $lightness > .6;
}

0 comments on commit c0cc8eb

Please sign in to comment.