cloudhead-less 0.8.9 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.10
1
+ 0.8.11
data/less.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "0.8.9"
5
+ s.version = "0.8.11"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["cloudhead"]
9
- s.date = %q{2009-06-17}
9
+ s.date = %q{2009-06-18}
10
10
  s.default_executable = %q{lessc}
11
11
  s.description = %q{LESS is leaner CSS}
12
12
  s.email = %q{alexis@cloudhead.net}
@@ -28,6 +28,8 @@ Gem::Specification.new do |s|
28
28
  "lib/less/engine.rb",
29
29
  "lib/less/tree.rb",
30
30
  "spec/command_spec.rb",
31
+ "spec/css/less-0.8.10.css",
32
+ "spec/css/less-0.8.11.css",
31
33
  "spec/css/less-0.8.5.css",
32
34
  "spec/css/less-0.8.6.css",
33
35
  "spec/css/less-0.8.7.css",
data/lib/less/engine.rb CHANGED
@@ -4,7 +4,7 @@ module Less
4
4
  COMPOUND = {'font' => true, 'background' => false, 'border' => false }
5
5
  REGEX = {
6
6
  :path => /([#.][->#.\w ]+)?( ?> ?)?/, # #header > .title
7
- :selector => /[-\w #.,*>:\(\)]/, # .cow .milk > a
7
+ :selector => /[-\w #.,>*:\(\)\=\[\]']/, # .cow .milk > a
8
8
  :variable => /@([-\w]+)/, # @milk-white
9
9
  :property => /@[-\w]+|[-a-z]+/, # font-size
10
10
  :color => /#([a-zA-Z0-9]{3,6})\b/, # #f0f0f0
@@ -0,0 +1,30 @@
1
+ ul li:first-child { border-top: none; }
2
+ .duplicate { color: blue; width: 11px; }
3
+ q:lang(no) { quotes: '~' '~'; }
4
+ .no-semi-column { color: orange; }
5
+ body { text-shadow: #333 -1px 1px 2px; border-color: #888; font-size: 10px; margin: -5px 0 5px 10px; background-color: #aaa; border: solid 1px #000; -moz-border-radius: 3px; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans-serif; color: #ccc; }
6
+ td, tr, table { border-width: 4px; }
7
+ div > a, a span { color: grey; }
8
+ .space { color: purple; font-color: yellow; }
9
+ blockquote:before { color: red; }
10
+ .root a:hover, a:focus { color: orange; }
11
+ .root a { display: none; color: blue; }
12
+ .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
13
+ .root .first .second { }
14
+ .root .first { color: green; }
15
+ .root { }
16
+ .p:first-letter { color: red; }
17
+ .extra .dark-borders { border-color: #444444; }
18
+ .extra .light-borders { border-color: #888; }
19
+ .extra { }
20
+ a:link, a:hover { color: brown; }
21
+ ul li:first-child, ul li:last-child { background-color: #333; }
22
+ div { color: purple; }
23
+ .borders { }
24
+ .root:hover a { display: block; }
25
+ .operations div { width: 80px; }
26
+ .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; font: 12px/16px; width: 110px; }
27
+ :focus { outline: 0; content: '*}#f~ '; }
28
+ .theme { background-color: #aaa; color: #ccc; }
29
+ blockquote:before, blockquote:after, q:before, q:after { content: ''; }
30
+ .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
@@ -0,0 +1,31 @@
1
+ ul li:first-child { border-top: none; }
2
+ .duplicate { color: blue; width: 11px; }
3
+ q:lang(no) { quotes: '~' '~'; }
4
+ .no-semi-column { color: orange; }
5
+ body { text-shadow: #333 -1px 1px 2px; border-color: #888; font-size: 10px; margin: -5px 0 5px 10px; background-color: #aaa; border: solid 1px #000; -moz-border-radius: 3px; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans-serif; color: #ccc; }
6
+ td, tr, table { border-width: 4px; }
7
+ div > a, a span { color: grey; }
8
+ .space { color: purple; font-color: yellow; }
9
+ blockquote:before { color: red; }
10
+ .root a:hover, a:focus { color: orange; }
11
+ .root a { display: none; color: blue; }
12
+ .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
13
+ .root .first .second { }
14
+ .root .first { color: green; }
15
+ .root { }
16
+ .p:first-letter { color: red; }
17
+ .extra .dark-borders { border-color: #444444; }
18
+ .extra .light-borders { border-color: #888; }
19
+ .extra { }
20
+ a:link, a:hover { color: brown; }
21
+ ul li:first-child, ul li:last-child { background-color: #333; }
22
+ div { color: purple; }
23
+ input[type='text'] { background-color: blue; }
24
+ .borders { }
25
+ .root:hover a { display: block; }
26
+ .operations div { width: 80px; }
27
+ .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; font: 12px/16px; width: 110px; }
28
+ :focus { outline: 0; content: '*}#f~ '; }
29
+ .theme { background-color: #aaa; color: #ccc; }
30
+ blockquote:before, blockquote:after, q:before, q:after { content: ''; }
31
+ .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
data/spec/engine_spec.rb CHANGED
@@ -29,6 +29,10 @@ describe Less::Engine do
29
29
  it "should handle instances of double-quotes" do
30
30
  lessify("blockquote:before, blockquote:after, q:before, q:after {\n content: \"\"; }").should == "blockquote:before, blockquote:after, q:before, q:after { content: ''; }"
31
31
  end
32
+
33
+ it "should parse tag attributes" do
34
+ lessify("input[type=text] { color: red; }").should == "input[type=text] { color: red; }"
35
+ end
32
36
  end
33
37
  end
34
38
 
data/spec/spec.less CHANGED
@@ -136,9 +136,9 @@ div {
136
136
  color: blue;
137
137
  }
138
138
 
139
- /*input[type="text"] {
139
+ input[type="text"] {
140
140
  background-color: blue;
141
- }*/
141
+ }
142
142
  .transparent_box {
143
143
  background-color:#FFF;
144
144
  filter:alpha(opacity=60); /* for IE */
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: 0.8.9
4
+ version: 0.8.11
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-06-17 00:00:00 -07:00
12
+ date: 2009-06-18 00:00:00 -07:00
13
13
  default_executable: lessc
14
14
  dependencies: []
15
15
 
@@ -35,6 +35,8 @@ files:
35
35
  - lib/less/engine.rb
36
36
  - lib/less/tree.rb
37
37
  - spec/command_spec.rb
38
+ - spec/css/less-0.8.10.css
39
+ - spec/css/less-0.8.11.css
38
40
  - spec/css/less-0.8.5.css
39
41
  - spec/css/less-0.8.6.css
40
42
  - spec/css/less-0.8.7.css