all repos — wp-autoless @ c037d09840f32b02aec40f2b34d2647692182e24

vendor/leafo/lessphp/tests/inputs/scopes.less (view raw)

 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;
}