mirror of
https://github.com/less/less.js.git
synced 2026-02-04 03:55:10 -05:00
22 lines
551 B
Plaintext
22 lines
551 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);
|
|
format-string: %("hello %s", "world");
|
|
eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
|
|
}
|