less 1.2.14 → 1.2.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.14
1
+ 1.2.15
data/less.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{less}
8
- s.version = "1.2.14"
8
+ s.version = "1.2.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["cloudhead"]
12
- s.date = %q{2009-11-20}
12
+ s.date = %q{2009-11-23}
13
13
  s.default_executable = %q{lessc}
14
14
  s.description = %q{LESS is leaner CSS}
15
15
  s.email = %q{self@cloudhead.net}
@@ -5,7 +5,7 @@ module Less
5
5
  # Entity: Any whitespace delimited token
6
6
  #
7
7
  rule entity
8
- url / function / accessor / keyword / variable / literal / font
8
+ url / alpha / function / accessor / keyword / variable / literal / font
9
9
  end
10
10
 
11
11
  rule fonts
@@ -125,6 +125,18 @@ module Less
125
125
  rule hex
126
126
  [a-fA-F0-9]
127
127
  end
128
+
129
+ #
130
+ # Special case for IE alpha filter
131
+ #
132
+ rule alpha
133
+ "alpha" '(' "opacity=" variable ')' {
134
+ def build env
135
+ var = variable.text_value
136
+ Node::Quoted.new(text_value.sub(var, env.nearest(var).evaluate.to_i.to_s))
137
+ end
138
+ }
139
+ end
128
140
  end
129
141
  end
130
- end
142
+ end
@@ -5,3 +5,4 @@
5
5
  font-family: "Trebuchet MS", Verdana, sans-serif;
6
6
  quotes: "~" "~";
7
7
  }
8
+ .alpha { filter: alpha(opacity=95); }
@@ -22,3 +22,8 @@
22
22
  font-family: @f;
23
23
  quotes: @q;
24
24
  }
25
+
26
+ .alpha {
27
+ @o: 95;
28
+ filter: alpha(opacity=@o);
29
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-20 00:00:00 -05:00
12
+ date: 2009-11-23 00:00:00 -05:00
13
13
  default_executable: lessc
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency