summaryrefslogtreecommitdiff
path: root/vendor/leafo/lessphp/tests/inputs/misc.less
blob: eb690b9a31b6bd13358c791579bd94326a678751 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

@color: #fff;
@base_path: "/assets/images/";
@images: @base_path + "test/";
.topbar { background: url(@{images}topbar.png); }
.hello { test: empty-function(@images, 40%, to(@color)); }

.css3 {
	background-image: -webkit-gradient(linear, 0% 0%, 0% 90%,
		from(#E9A000), to(#A37000));
}


/**

Here is a block comment

**/


// this is a comment

.test, /*hello*/.world {
	border: 1px solid red; // world
	/* another property */
	color: url(http://mage-page.com);
	string: "hello /* this is not a comment */";
	world: "// neither is this";
	string: 'hello /* this is not a comment */' /*what if this is a comment */;
	world: '// neither is this' // hell world;
	;
	what-/*something?*/ever: 100px;
	background: url(/*no comment here*/);
}


.urls {
	@var: "http://google.com";
	background1: url(@var);
	background2: url(@{var});
	background3: url("@{var}");
}

.mix(@arg) { color: @arg; }
@aaa: aaa;
@bbb: bbb;
// make sure the opening selector isn't too greedy
.cool {.mix("@{aaa}, @{bbb}")}
.cool();



// merging of mixins
.span-17 { float: left; }
.span-17 { width: 660px; }

.x {.span-17;}

.hi {
	pre {
		color: red;
	}
}

.hi {
	pre {
		color: blue;
	}
}

.rad {
	.hi;
}


hello {
	numbers: 1.0 0.1 .1 1.;
	numbers: 1.0s 0.1s .1s 1.s;
	numbers: -1.0s -0.1s -.1s -1.s;
	numbers: -1.0 -0.1 -.1 -1.;
}


#string {
	hello: 'what\'s going on here';
	hello: 'blah blag @{ blah blah';

	join: 3434 + "hello";
	join: 3434 + hello;
}


.duplicates {
	hello: world;
	hello: "world";
	hello: world;
	hello: "what";
	hello: world;
	hello: "world";
}