Files
less.js/test/less/functions.less
cloudhead a4d4d55693 Evaluate function calls properly.
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00

21 lines
510 B
Plaintext

#functions {
@var: 10;
color: color("evil red"); // #660000
width: increment(15);
height: undefined("self");
border-width: add(2, 3);
variable: increment(@var);
}
#built-in {
@r: 32;
escaped: e("-Some::weird(#thing, y)");
lighten: lighten(#ff0000, 50%);
darken: darken(#ff0000, 50%);
saturate: saturate(#29332f, 20%);
desaturate: desaturate(#203c31, 20%);
greyscale: greyscale(#203c31);
format: %("rgb(%d, %d, %d)", @r, 128, 64);
eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
}