Files
deb-python-lesscpy/lesscpy/test/less/calls.less
2012-05-07 09:37:07 +00:00

33 lines
819 B
Plaintext

/*
Built in functions
*/
@r: 32;
#standard {
@var: 10;
width: increment(15);
height: undefined("self");
border-width: add(2, 3);
variable: increment(@var);
decrement: decrement(@var);
rounded: round(@r/3);
roundedpx: round(10px / 3);
}
#escapes {
escaped: e("-Some::weird(#thing, y)");
escaped1: ~"-Some::weird(#thing, z)";
eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
}
#format {
format: %("rgb(%d, %d, %d)", @r, 128, 64);
format-string: %("hello %s", "world");
format-multiple: %("hello %s %d", "earth", 2);
format-url-encode: %('red is %A', #ff0000);
}
#more {
width: ceil(5/3.0px);
height: floor(5.0/3px);
top: percentage(0.5);
}
#colors {
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",#fff,#333));
}