style modification

This commit is contained in:
2015-10-02 11:37:47 +02:00
parent b647f99153
commit 54338065e0
@@ -20,6 +20,6 @@ App.CssObject.reopenClass
isColorDark: (rgb_hex)->
return false unless rgb_hex?.match /#[0-9a-zA-Z]{6}/
[r, g, b] = @rgb_to_numeric(rgb_hex)
[r, g, b] = @rgb_to_numeric rgb_hex
luma = 0.2126 * r + 0.7152 * g + 0.0722 * b # per ITU-R BT.709
luma < 40