summaryrefslogtreecommitdiff
path: root/vendor/leafo/lessphp/tests/inputs/scopes.less
blob: 42e4696962a861b3773f3634e5c581bde4130225 (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
37
38
39
40


@a: 10;
@some {
	@b: @a + 10;
	div {
		@c: @b + 10;
		other {
			@d: @c + 10;
			world {
				@e: @d + 10;
				height: @e;
			}
		}
	}
}


body {
	@some;
}

@some;

.test(@x: 10) {
	height: @x;
	.test(@y: 11) {
		height: @y;
		.test(@z: 12) {
			height: @z;
		}
		.test;
	}
	.test;
}

pre {
	.test;
}