File: calls.less

package info (click to toggle)
python-lesscpy 0.13.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,428 kB
  • sloc: python: 3,572; sh: 5; makefile: 4
file content (42 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
	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);
        round25: round(2.5);
        round15: round(1.5);
}
#escapes {
  	escaped: e("-Some(#thing, y)");
  	escaped1: ~"-Some(#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));
}
#gradient(@startColor, @endColor) {
	background-image: linear-gradient(top, @startColor, @endColor);
}
a {
	#gradient(#fff, #333);
	#gradient(#a6a6a6, #000);
}