Introduce luminance function.

The behaviour of this function is identical to luma prior to LESS 1.7.
This commit is contained in:
Roel van Duijnhoven
2014-02-27 08:45:24 +01:00
parent 193ce01be9
commit e7389a0e7a
3 changed files with 18 additions and 2 deletions

View File

@@ -25,7 +25,11 @@
luma-yellow: 93%;
luma-cyan: 79%;
luma-differs-from-luminance: 24%;
luma-white-alpha: 50%;
luminance-white: 100%;
luminance-black: 0%;
luminance-black-alpha: 0%;
luminance-red: 21%;
luminance-differs-from-luma: 36%;
contrast-filter: contrast(30%);
saturate-filter: saturate(5%);
contrast-white: #000000;