aboutsummaryrefslogtreecommitdiff
path: root/mod/less/vendors/lessphp/tests/inputs/builtins.less
blob: ae2c4ef6e8d7a6b41e85795a3af80a4cd12600cf (plain)
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
// builtin

@something: "hello world";
@color: #112233;
@color2: rgba(44,55,66, .6);

body {
	color: @something;

	@num: 7 / 6;
	height: @num + 4;
	height: floor(@num) + 4px;
	height: ceil(@num) + 4px;

	@num2: 2 / 3;
	width: @num2;
	width: round(@num2);
	width: floor(@num2);
	width: ceil(@num2);
	width: round(10px / 3);

	color: rgbahex(@color);
	color: rgbahex(@color2);
}


format {
  @r: 32;
  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);
  eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
}