@@ 3414-3416 (lines=3) @@ | ||
3411 | $dark = $this->rgba(0, 0, 0, 1.0); |
|
3412 | } |
|
3413 | ||
3414 | if (!$dark instanceof Less_Tree_Color) { |
|
3415 | throw new Less_Exception_Compiler('The second argument to contrast must be a color' . ($dark instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3416 | } |
|
3417 | if (!$light instanceof Less_Tree_Color) { |
|
3418 | throw new Less_Exception_Compiler('The third argument to contrast must be a color' . ($light instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3419 | } |
|
@@ 3417-3419 (lines=3) @@ | ||
3414 | if (!$dark instanceof Less_Tree_Color) { |
|
3415 | throw new Less_Exception_Compiler('The second argument to contrast must be a color' . ($dark instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3416 | } |
|
3417 | if (!$light instanceof Less_Tree_Color) { |
|
3418 | throw new Less_Exception_Compiler('The third argument to contrast must be a color' . ($light instanceof Less_Tree_Expression ? ' (did you forgot commas?)' : '') ); |
|
3419 | } |
|
3420 | ||
3421 | //Figure out which is actually light and dark! |
|
3422 | if( $dark->luma() > $light->luma() ){ |