less 1.2.18 → 1.2.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/less.gemspec +1 -1
- data/lib/less/engine/nodes/function.rb +7 -2
- data/spec/css/dash-prefix.css +10 -3
- data/spec/less/dash-prefix.less +19 -6
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.19
|
data/less.gemspec
CHANGED
@@ -80,9 +80,14 @@ module Less
|
|
80
80
|
if Functions.available.include? self.to_sym
|
81
81
|
send to_sym, *@args
|
82
82
|
else
|
83
|
-
|
83
|
+
args = @args.map { |e|
|
84
|
+
e.parent = self.parent
|
85
|
+
e = e.evaluate(context) if e.respond_to?(:evaluate)
|
86
|
+
e.to_css
|
87
|
+
} * ', '
|
88
|
+
Node::Anonymous.new("#{to_sym}(#{args})")
|
84
89
|
end
|
85
90
|
end
|
86
91
|
end
|
87
92
|
end
|
88
|
-
end
|
93
|
+
end
|
data/spec/css/dash-prefix.css
CHANGED
@@ -1,5 +1,12 @@
|
|
1
|
-
|
2
|
-
background:
|
1
|
+
.test1 {
|
2
|
+
background-image: -moz-linear-gradient(top, bottom, from(#030303), to(#010101));
|
3
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#030303), to(#010101));
|
4
|
+
}
|
5
|
+
.test2 {
|
6
|
+
background-image: -moz-linear-gradient(top, bottom, from(#020202), to(#010101));
|
7
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), to(#010101));
|
8
|
+
}
|
9
|
+
.test3 {
|
3
10
|
background-image: -moz-linear-gradient(top, bottom, from(red), to(green));
|
4
|
-
background-image: -webkit-gradient(linear, left top, left bottom,
|
11
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(red), to(green));
|
5
12
|
}
|
data/spec/less/dash-prefix.less
CHANGED
@@ -1,8 +1,21 @@
|
|
1
|
-
@
|
2
|
-
@
|
1
|
+
@global_color: #010101;
|
2
|
+
@red_color: red;
|
3
|
+
@green_color: green;
|
3
4
|
|
4
|
-
|
5
|
-
background: @
|
6
|
-
background-image: -
|
7
|
-
|
5
|
+
.gradient (@local_color: #030303) {
|
6
|
+
background-image: -moz-linear-gradient(top, bottom, from(@local_color), to(@global_color));
|
7
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(@local_color), to(@global_color));
|
8
|
+
}
|
9
|
+
|
10
|
+
.test1 {
|
11
|
+
.gradient;
|
12
|
+
}
|
13
|
+
|
14
|
+
.test2 {
|
15
|
+
.gradient(#020202);
|
16
|
+
}
|
17
|
+
|
18
|
+
.test3 {
|
19
|
+
background-image: -moz-linear-gradient(top, bottom, from(@red_color), to(@green_color));
|
20
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(@red_color), to(@green_color));
|
8
21
|
}
|