cloudhead-less 0.8.12 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/README.md +10 -1
  2. data/Rakefile +21 -2
  3. data/VERSION +1 -1
  4. data/bin/lessc +0 -8
  5. data/less.gemspec +48 -15
  6. data/lib/less/command.rb +24 -25
  7. data/lib/less/engine/builder.rb +13 -0
  8. data/lib/less/engine/less.tt +379 -0
  9. data/lib/less/engine/nodes/element.rb +153 -0
  10. data/lib/less/engine/nodes/entity.rb +59 -0
  11. data/lib/less/engine/nodes/function.rb +61 -0
  12. data/lib/less/engine/nodes/literal.rb +132 -0
  13. data/lib/less/engine/nodes/property.rb +120 -0
  14. data/lib/less/engine/nodes/selector.rb +39 -0
  15. data/lib/less/engine/nodes.rb +8 -0
  16. data/lib/less/engine/parser.rb +3854 -0
  17. data/lib/less/engine.rb +42 -139
  18. data/lib/less.rb +65 -10
  19. data/spec/command_spec.rb +2 -6
  20. data/spec/css/accessors-1.0.css +20 -0
  21. data/spec/css/big-1.0.css +3770 -0
  22. data/spec/css/comments-1.0.css +11 -0
  23. data/spec/css/css-1.0.css +40 -0
  24. data/spec/css/functions-1.0.css +8 -0
  25. data/spec/css/import-1.0.css +13 -0
  26. data/spec/css/mixins-1.0.css +30 -0
  27. data/spec/css/operations-1.0.css +30 -0
  28. data/spec/css/rulesets-1.0.css +19 -0
  29. data/spec/css/scope-1.0.css +16 -0
  30. data/spec/css/strings-1.0.css +14 -0
  31. data/spec/css/variables-1.0.css +7 -0
  32. data/spec/css/whitespace-1.0.css +11 -0
  33. data/spec/engine_spec.rb +66 -18
  34. data/spec/less/accessors-1.0.less +20 -0
  35. data/spec/less/big-1.0.less +4810 -0
  36. data/spec/less/colors-1.0.less +0 -0
  37. data/spec/less/comments-1.0.less +46 -0
  38. data/spec/less/css-1.0.less +82 -0
  39. data/spec/less/exceptions/mixed-units-error.less +0 -0
  40. data/spec/less/exceptions/name-error-1.0.less +0 -0
  41. data/spec/less/exceptions/syntax-error-1.0.less +0 -0
  42. data/spec/less/functions-1.0.less +6 -0
  43. data/spec/less/import/import-test-a.less +2 -0
  44. data/spec/less/import/import-test-b.less +8 -0
  45. data/spec/less/import/import-test-c.less +5 -0
  46. data/spec/less/import-1.0.less +7 -0
  47. data/spec/less/mixins-1.0.less +43 -0
  48. data/spec/less/operations-1.0.less +39 -0
  49. data/spec/less/rulesets-1.0.less +30 -0
  50. data/spec/less/scope-1.0.less +33 -0
  51. data/spec/less/strings-1.0.less +14 -0
  52. data/spec/less/variables-1.0.less +16 -0
  53. data/spec/less/whitespace-1.0.less +21 -0
  54. data/spec/spec.css +81 -23
  55. data/spec/spec.less +3 -4
  56. data/spec/spec_helper.rb +4 -1
  57. metadata +46 -13
  58. data/lib/less/tree.rb +0 -82
  59. data/spec/css/less-0.8.10.css +0 -30
  60. data/spec/css/less-0.8.11.css +0 -31
  61. data/spec/css/less-0.8.12.css +0 -28
  62. data/spec/css/less-0.8.5.css +0 -24
  63. data/spec/css/less-0.8.6.css +0 -24
  64. data/spec/css/less-0.8.7.css +0 -24
  65. data/spec/css/less-0.8.8.css +0 -25
  66. data/spec/tree_spec.rb +0 -5
@@ -1,30 +0,0 @@
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); }
@@ -1,31 +0,0 @@
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); }
@@ -1,28 +0,0 @@
1
- ul li:first-child { border-top: none; }
2
- h5:focus { outline: 0; content: '*}#f~ '; }
3
- .duplicate { color: blue; width: 11px; }
4
- body, div > p a, h2 a > span:first-child { font-family: sans-serif; }
5
- q:lang(no) { quotes: '~' '~'; }
6
- .no-semi-column { color: orange; }
7
- body { text-shadow: #333 -1px 1px 2px; font-size: 10px; margin: -5px 0 5px 10px; background-color: #aaa; border: solid 1px #000; font-family: 'Lucida Grande', 'Helvetica', Verdana, sans-serif; -moz-border-radius: 3px; color: #ccc; }
8
- td, tr, table { border-width: 88px; }
9
- div > a, a span { color: grey; }
10
- .space { color: purple; font-color: yellow; }
11
- blockquote:before { color: red; }
12
- #operations { font-size: 66; colorb: #333333; colorc: #777777; color: #eeeeee; font: 12px/16px; width: 110px; }
13
- #operations div { width: 80px; }
14
- .root a:hover, a:focus { color: orange; }
15
- .root a { display: none; color: blue; }
16
- .root .first { color: green; }
17
- .root .first .second .third { font-size: 8px; border-color: red; background-color: blue; color: red; }
18
- .p:first-letter { color: red; }
19
- .extra .dark-borders { border-color: #444444; }
20
- .extra .light-borders { border-color: #888; }
21
- a:link, a:hover { color: brown; }
22
- ul li:first-child, ul li:last-child { background-color: #333; }
23
- div { color: purple; }
24
- input[type='text'] { background-color: blue; }
25
- .root:hover a { display: block; }
26
- .theme { background-color: #aaa; color: #ccc; }
27
- blockquote:before, blockquote:after, q:before, q:after { content: ''; }
28
- .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
@@ -1,24 +0,0 @@
1
- ul li:first-child { border-top: none; }
2
- q:lang(no) { quotes: '~' '~'; }
3
- .no-semi-column { color: orange; }
4
- 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; }
5
- td, tr, table { border-width: 4px; }
6
- .space { color: purple; font-color: yellow; }
7
- blockquote:before { color: red; }
8
- .root > a:hover, a:focus { color: orange; }
9
- .root > a { display: none; color: blue; }
10
- .root > .first > .second > .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
11
- .root > .first > .second { }
12
- .root > .first { color: green; }
13
- .root { }
14
- .p:first-letter { color: red; }
15
- .extra > .dark-borders { border-color: #444444; }
16
- .extra > .light-borders { border-color: #888; }
17
- .extra { }
18
- ul li:first-child, ul li:last-child { background-color: #333; }
19
- .borders { }
20
- .root:hover a { display: block; }
21
- .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; }
22
- :focus { outline: 0; content: '*}#f~ '; }
23
- .theme { background-color: #aaa; color: #ccc; }
24
- .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
@@ -1,24 +0,0 @@
1
- ul li:first-child { border-top: none; }
2
- q:lang(no) { quotes: '~' '~'; }
3
- .no-semi-column { color: orange; }
4
- 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; }
5
- td, tr, table { border-width: 4px; }
6
- .space { color: purple; font-color: yellow; }
7
- blockquote:before { color: red; }
8
- .root a:hover, a:focus { color: orange; }
9
- .root a { display: none; color: blue; }
10
- .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
11
- .root .first .second { }
12
- .root .first { color: green; }
13
- .root { }
14
- .p:first-letter { color: red; }
15
- .extra .dark-borders { border-color: #444444; }
16
- .extra .light-borders { border-color: #888; }
17
- .extra { }
18
- ul li:first-child, ul li:last-child { background-color: #333; }
19
- .borders { }
20
- .root:hover a { display: block; }
21
- .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; }
22
- :focus { outline: 0; content: '*}#f~ '; }
23
- .theme { background-color: #aaa; color: #ccc; }
24
- .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
@@ -1,24 +0,0 @@
1
- ul li:first-child { border-top: none; }
2
- q:lang(no) { quotes: '~' '~'; }
3
- .no-semi-column { color: orange; }
4
- 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; }
5
- td, tr, table { border-width: 4px; }
6
- .space { color: purple; font-color: yellow; }
7
- blockquote:before { color: red; }
8
- .root a:hover, a:focus { color: orange; }
9
- .root a { display: none; color: blue; }
10
- .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
11
- .root .first .second { }
12
- .root .first { color: green; }
13
- .root { }
14
- .p:first-letter { color: red; }
15
- .extra .dark-borders { border-color: #444444; }
16
- .extra .light-borders { border-color: #888; }
17
- .extra { }
18
- ul li:first-child, ul li:last-child { background-color: #333; }
19
- .borders { }
20
- .root:hover a { display: block; }
21
- .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; }
22
- :focus { outline: 0; content: '*}#f~ '; }
23
- .theme { background-color: #aaa; color: #ccc; }
24
- .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
@@ -1,25 +0,0 @@
1
- ul li:first-child { border-top: none; }
2
- q:lang(no) { quotes: '~' '~'; }
3
- .no-semi-column { color: orange; }
4
- 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; }
5
- td, tr, table { border-width: 4px; }
6
- .space { color: purple; font-color: yellow; }
7
- blockquote:before { color: red; }
8
- .root a:hover, a:focus { color: orange; }
9
- .root a { display: none; color: blue; }
10
- .root .first .second .third { border-color: blue; font-size: 8px; background-color: blue; color: red; }
11
- .root .first .second { }
12
- .root .first { color: green; }
13
- .root { }
14
- .p:first-letter { color: red; }
15
- .extra .dark-borders { border-color: #444444; }
16
- .extra .light-borders { border-color: #888; }
17
- .extra { }
18
- ul li:first-child, ul li:last-child { background-color: #333; }
19
- .borders { }
20
- .root:hover a { display: block; }
21
- .operations div { width: 80px; }
22
- .operations { colorb: #333333; font-size: 66; colorc: #777777; line-height: 7px; border-width: 16px; color: #eeeeee; font: 12px/16px; width: 110px; }
23
- :focus { outline: 0; content: '*}#f~ '; }
24
- .theme { background-color: #aaa; color: #ccc; }
25
- .transparent_box { opacity: 0.6; background-color: #FFF; filter: alpha(opacity=60); }
data/spec/tree_spec.rb DELETED
@@ -1,5 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
2
-
3
- describe Less::Tree do
4
- it "should get some specs..."
5
- end