cloudhead-less 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/less.gemspec +8 -4
- data/lib/less/engine/grammar/less.tt +2 -6
- data/spec/css/css-3.css +2 -0
- data/spec/less/css-3.less +8 -0
- metadata +5 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.5
|
data/less.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{less}
|
5
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.5"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["cloudhead"]
|
9
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-11}
|
10
13
|
s.default_executable = %q{lessc}
|
11
14
|
s.description = %q{LESS is leaner CSS}
|
12
15
|
s.email = %q{self@cloudhead.net}
|
@@ -92,11 +95,12 @@ Gem::Specification.new do |s|
|
|
92
95
|
"spec/spec.less",
|
93
96
|
"spec/spec_helper.rb"
|
94
97
|
]
|
98
|
+
s.has_rdoc = true
|
95
99
|
s.homepage = %q{http://www.lesscss.org}
|
96
100
|
s.rdoc_options = ["--charset=UTF-8"]
|
97
101
|
s.require_paths = ["lib"]
|
98
102
|
s.rubyforge_project = %q{less}
|
99
|
-
s.rubygems_version = %q{1.3.
|
103
|
+
s.rubygems_version = %q{1.3.1}
|
100
104
|
s.summary = %q{LESS compiler}
|
101
105
|
s.test_files = [
|
102
106
|
"spec/command_spec.rb",
|
@@ -106,7 +110,7 @@ Gem::Specification.new do |s|
|
|
106
110
|
|
107
111
|
if s.respond_to? :specification_version then
|
108
112
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
109
|
-
s.specification_version =
|
113
|
+
s.specification_version = 2
|
110
114
|
|
111
115
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
112
116
|
s.add_runtime_dependency(%q<treetop>, [">= 1.3.0"])
|
@@ -247,11 +247,7 @@ module Less
|
|
247
247
|
# div / .class / #id / input[type="text"] / lang(fr)
|
248
248
|
#
|
249
249
|
rule element
|
250
|
-
(
|
251
|
-
end
|
252
|
-
|
253
|
-
rule class_id
|
254
|
-
tag? (class / id)+
|
250
|
+
((class / id / tag / ident) attribute* ('(' (selector / number) ')')?)+ / attribute+ / '@media' / '@font-face'
|
255
251
|
end
|
256
252
|
|
257
253
|
#
|
@@ -279,7 +275,7 @@ module Less
|
|
279
275
|
|
280
276
|
# TODO: Merge this with attribute rule
|
281
277
|
rule accessor
|
282
|
-
ident:(
|
278
|
+
ident:(class / id / tag) '[' attr:(string / variable) ']' {
|
283
279
|
def build env
|
284
280
|
env.nearest(ident.text_value)[attr.text_value.delete(%q["'])].evaluate
|
285
281
|
end
|
data/spec/css/css-3.css
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
}
|
10
10
|
.other { -moz-transform: translate(0, 11em) rotate(-90deg); }
|
11
11
|
p:not([class*="lead"]) { color: black; }
|
12
|
+
input[type="text"].class#id[attr=32]:not(1) { color: white; }
|
13
|
+
div#id.class[a=1][b=2].class:not(1) { color: white; }
|
12
14
|
ul.comma > li:not(:only-child)::after { color: white; }
|
13
15
|
ol.comma > li:nth-last-child(2)::after { color: white; }
|
14
16
|
a[href^="http://"], a[href$="http://"] { color: black; }
|
data/spec/less/css-3.less
CHANGED
@@ -16,6 +16,14 @@ p:not([class*="lead"]) {
|
|
16
16
|
color: black;
|
17
17
|
}
|
18
18
|
|
19
|
+
input[type="text"].class#id[attr=32]:not(1) {
|
20
|
+
color: white;
|
21
|
+
}
|
22
|
+
|
23
|
+
div#id.class[a=1][b=2].class:not(1) {
|
24
|
+
color: white;
|
25
|
+
}
|
26
|
+
|
19
27
|
ul.comma > li:not(:only-child)::after {
|
20
28
|
color: white;
|
21
29
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudhead-less
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
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-09-
|
12
|
+
date: 2009-09-11 00:00:00 -07:00
|
13
13
|
default_executable: lessc
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -117,9 +117,8 @@ files:
|
|
117
117
|
- spec/spec.css
|
118
118
|
- spec/spec.less
|
119
119
|
- spec/spec_helper.rb
|
120
|
-
has_rdoc:
|
120
|
+
has_rdoc: true
|
121
121
|
homepage: http://www.lesscss.org
|
122
|
-
licenses:
|
123
122
|
post_install_message:
|
124
123
|
rdoc_options:
|
125
124
|
- --charset=UTF-8
|
@@ -140,9 +139,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
139
|
requirements: []
|
141
140
|
|
142
141
|
rubyforge_project: less
|
143
|
-
rubygems_version: 1.
|
142
|
+
rubygems_version: 1.2.0
|
144
143
|
signing_key:
|
145
|
-
specification_version:
|
144
|
+
specification_version: 2
|
146
145
|
summary: LESS compiler
|
147
146
|
test_files:
|
148
147
|
- spec/command_spec.rb
|