@@ 3406-3408 (lines=3) @@ | ||
3403 | $dark = $this->rgba(0, 0, 0, 1.0); |
|
3404 | } |
|
3405 | ||
3406 | if (!$dark instanceof Less_Tree_Color) { |
|
3407 | throw new Less_Exception_Compiler('The second argument to contrast must be a color' . ($dark instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3408 | } |
|
3409 | if (!$light instanceof Less_Tree_Color) { |
|
3410 | throw new Less_Exception_Compiler('The third argument to contrast must be a color' . ($light instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3411 | } |
|
@@ 3409-3411 (lines=3) @@ | ||
3406 | if (!$dark instanceof Less_Tree_Color) { |
|
3407 | throw new Less_Exception_Compiler('The second argument to contrast must be a color' . ($dark instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3408 | } |
|
3409 | if (!$light instanceof Less_Tree_Color) { |
|
3410 | throw new Less_Exception_Compiler('The third argument to contrast must be a color' . ($light instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3411 | } |
|
3412 | ||
3413 | //Figure out which is actually light and dark! |
|
3414 | if( $dark->luma() > $light->luma() ){ |