less 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -58,5 +58,4 @@ begin
58
58
  end
59
59
  end
60
60
 
61
- task :spec => :check_dependencies
62
61
  task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.9
1
+ 1.2.10
data/less.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{less}
8
- s.version = "1.2.9"
8
+ s.version = "1.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["cloudhead"]
@@ -92,7 +92,6 @@ Gem::Specification.new do |s|
92
92
  "spec/less/variables.less",
93
93
  "spec/less/whitespace.less",
94
94
  "spec/spec.css",
95
- "spec/spec.less",
96
95
  "spec/spec_helper.rb"
97
96
  ]
98
97
  s.homepage = %q{http://www.lesscss.org}
@@ -154,8 +154,7 @@ module Less
154
154
  ' ' * 2 + i.to_css(env)
155
155
  end.compact.reject(&:empty?) * "\n"
156
156
 
157
- content = content.include?("\n") ? "\n#{content}\n"
158
- : " #{content.strip} "
157
+ content = content.include?("\n") ? "\n#{content}\n" : " #{content.strip} "
159
158
  ruleset = if is_a?(Mixin::Def)
160
159
  content.strip
161
160
  else
@@ -63,7 +63,7 @@ module Less
63
63
  end
64
64
 
65
65
  def to_css env = nil
66
- self.evaluate(env).to_css *env
66
+ self.evaluate(env).to_css
67
67
  end
68
68
 
69
69
  #
@@ -165,7 +165,7 @@ module Less
165
165
  def to_css env = nil
166
166
  # puts "TOCSS, delim: |#{@delimiter}|"
167
167
  map do |i|
168
- i.respond_to?(:to_css) ? i.to_css(*env) : i.to_s
168
+ i.respond_to?(:to_css) ? i.to_css() : i.to_s
169
169
  end * @delimiter
170
170
  end
171
171
 
data/spec/command_spec.rb CHANGED
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/spec_helper'
2
2
 
3
3
  module LessCommandSpecHelper
4
4
  def required_options
5
- {:source => File.dirname(__FILE__) + '/spec.less'}
5
+ {:source => File.dirname(__FILE__) + '/less/css.less', :destination => File.dirname(__FILE__) + '/spec.css' }
6
6
  end
7
7
 
8
8
  def valid_options
data/spec/spec.css CHANGED
@@ -1,82 +1,50 @@
1
- .theme {
2
- color: #cccccc;
3
- background-color: #aaaaaa;
1
+ div { color: black; }
2
+ div { width: 99%; }
3
+ * { min-width: 45em; }
4
+ h1 { color: none; }
5
+ h2 > a > p { color: none; }
6
+ h3 { color: none; }
7
+ div.class { color: blue; }
8
+ div#id { color: green; }
9
+ .class#id { color: purple; }
10
+ .one.two.three { color: grey; }
11
+ @media print { font-size: 3em; }
12
+ @media screen { font-size: 10px; }
13
+ @font-face {
14
+ font-family: 'Garamond Pro';
15
+ src: url("/fonts/garamond-pro.ttf");
16
+ }
17
+ a:hover { color: #999999; }
18
+ a:link { color: #999999; }
19
+ p { text-transform: none; }
20
+ p:first-child { text-transform: none; }
21
+ q:lang(no) { quotes: none; }
22
+ p + h1 { font-size: 2.2em; }
23
+ input[type="text"] { font-weight: normal; }
24
+ h2[title] { font-size: 100%; }
25
+ [disabled] { color: transparent; }
26
+ #shorthands {
27
+ border: 1px solid #000000;
28
+ font: 12px/16px Arial;
29
+ margin: 1px 0;
30
+ padding: 0 auto;
31
+ background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
32
+ }
33
+ #more-shorthands {
34
+ margin: 0;
35
+ padding: 1px 0 2px 0;
36
+ font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
37
+ }
38
+ .misc {
39
+ -moz-border-radius: 2px;
40
+ display: -moz-inline-stack;
41
+ width: 0.1em;
42
+ background-color: #009998;
43
+ background-image: url(images/image.jpg);
44
+ background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
45
+ }
46
+ #important {
47
+ color: red !important;
48
+ width: 100% !important;
49
+ height: 20px ! important;
4
50
  }
5
- .extra .dark-borders { border-color: #444444; }
6
- .extra .light-borders { border-color: #888888; }
7
- body { font-family: sans-serif; }
8
- div > p a { font-family: sans-serif; }
9
- h2 a > span:first-child { font-family: sans-serif; }
10
- .root a {
11
- color: blue;
12
- display: none;
13
- }
14
- .root a:hover { color: orange; }
15
- .root a:focus { color: orange; }
16
- .root .first { color: green; }
17
- .root .first .second .third {
18
- background-color: blue;
19
- font-size: 8px;
20
- color: red;
21
- border-color: red;
22
- }
23
- .root:hover a { display: block; }
24
- body {
25
- font-size: 10px;
26
- font-family: "Lucida Grande", 'Helvetica', Verdana, sans-serif;
27
- margin: -5px 0 5px 10px;
28
- border: solid 1px #000000;
29
- text-shadow: #333333 -1px 1px 2px;
30
- -moz-border-radius: 3px;
31
- color: #cccccc;
32
- background-color: #aaaaaa;
33
- }
34
- #operations {
35
- font: 12px/16px;
36
- width: 110px;
37
- font-size: 66;
38
- color: #eeeeee;
39
- colorb: #333333;
40
- colorc: #777777;
41
- }
42
- #operations div { width: 80px; }
43
- td, tr, table { border-width: 88px; }
44
- blockquote:before { content: ""; }
45
- blockquote:after { content: ""; }
46
- q:before { content: ""; }
47
- q:after { content: ""; }
48
- a:link { color: brown; }
49
- a:hover { color: brown; }
50
- div > a { color: grey; }
51
- a span { color: grey; }
52
- ul li:first-child { border-top: none; }
53
- ul li:first-child { background-color: #333333; }
54
- ul li:last-child { background-color: #333333; }
55
- .p:first-letter { color: red; }
56
- h5:focus {
57
- outline: 0;
58
- content: "*}#f~ ";
59
- }
60
- q:lang(no) { quotes: "~" "~"; }
61
- blockquote:before { color: red; }
62
- div { width: 9px; }
63
- div { color: purple; }
64
- .duplicate {
65
- width: 9px;
66
- height: 11px;
67
- }
68
- .duplicate {
69
- width: 11px;
70
- color: blue;
71
- }
72
- .loading { background: "http://"; }
73
- input[type="text"] { background-color: blue; }
74
- .transparent_box {
75
- background-color: #ffffff;
76
- opacity: 0.6;
77
- }
78
- .space {
79
- color: purple;
80
- font-color: yellow;
81
- }
82
- .no-semi-column { color: orange; }
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.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead
@@ -115,7 +115,6 @@ files:
115
115
  - spec/less/variables.less
116
116
  - spec/less/whitespace.less
117
117
  - spec/spec.css
118
- - spec/spec.less
119
118
  - spec/spec_helper.rb
120
119
  has_rdoc: true
121
120
  homepage: http://www.lesscss.org
data/spec/spec.less DELETED
@@ -1,148 +0,0 @@
1
- // ------------------------------------------------
2
- // LESS Spec
3
- // www.lesscss.org
4
- // ------------------------------------------------
5
-
6
- // Global vars
7
- @main-color: #444;
8
- @dark-color: #111;
9
- @between-color: @main-color - @dark-color;
10
-
11
- // Mixins
12
- .theme {
13
- color: #ccc;
14
- background-color: #aaa;
15
- }
16
- .extra {
17
- @main: #888;
18
- .dark-borders {
19
- border-color: @main / 2;
20
- }
21
- .light-borders {
22
- border-color: @main;
23
- }
24
- }
25
-
26
- // Complex Selectors
27
- body, div > p a, h2 a > span:first-child {
28
- font-family: sans-serif;
29
- }
30
-
31
- // Hierarchy
32
- .root {
33
- a {
34
- color: blue;
35
- display: none;
36
- }
37
- a:hover, a:focus {
38
- color: orange;
39
- }
40
- .first {
41
- @size: 8px;
42
- @dark-color: green;
43
- @main-color: red;
44
- color: @dark-color; // 'green'
45
- .second {
46
- @color: blue;
47
- .third {
48
- background-color: @color; // blue
49
- font-size: @size; // 8px
50
- color: @main-color; // red
51
- border-color: @main-color; // 'red'
52
- }
53
- }
54
- }
55
- }
56
- .root:hover a {
57
- display: block;
58
- }
59
-
60
- // Standard CSS properties and shorthand
61
- body {
62
- font-size: 10px;
63
- font-family: "Lucida Grande", 'Helvetica', Verdana, sans-serif;
64
- margin: -5px 0 5px 10px;
65
- border: solid 1px #000;
66
- text-shadow: #333 -1px 1px 2px;
67
- -moz-border-radius: 3px; /* CSS3 for older Firefox */
68
- .theme;
69
- }
70
-
71
- // Operations
72
- #operations {
73
- @ten: 10;
74
- @dark: #111;
75
- @box: 100px;
76
- @border_width: 10px;
77
- font: 12px/16px; // 12px/16px
78
- width: @box + @border_width; // 110px
79
- div { width: @box - 2 * @border_width; } // 80px
80
- font-size: 10 - 4 + 6 * @ten; // 66
81
- color: #fff - #111; // #eeeeee
82
- colorb: #111 + #222222; // #333333
83
- colorc: @dark + #222 * 3; // #777777
84
- }
85
-
86
- td, tr, table {
87
- border-width: 88px;
88
- }
89
-
90
- // More complex CSS selectors
91
- blockquote:before, blockquote:after, q:before, q:after { content: ""; }
92
- a:link,
93
- a:hover {
94
- color:brown;
95
- }
96
- div > a, a span {
97
- color: grey;
98
- }
99
- ul li:first-child {
100
- border-top: none;
101
- }
102
- ul li:first-child, ul li:last-child {
103
- background-color: #333;
104
- }
105
- .p:first-letter {
106
- color: red;
107
- }
108
- h5:focus {
109
- outline: 0;
110
- content: "*}#f~ ";
111
- }
112
- q:lang(no) {
113
- quotes: "~" "~";
114
- }
115
- blockquote:before {
116
- color: red;
117
- }
118
-
119
- // Duplicates
120
- div {
121
- width: 9px;
122
- }
123
- div {
124
- color: purple;
125
- }
126
- .duplicate {
127
- width: 9px;
128
- height: 11px;
129
- }
130
- .duplicate {
131
- width: 11px;
132
- color: blue;
133
- }
134
- .loading { background: "http://"; }
135
- input[type="text"] {
136
- background-color: blue;
137
- }
138
- .transparent_box {
139
- background-color: #FFF;
140
- opacity: 0.6; /* CSS3 standard */
141
- }
142
-
143
- // Spacing
144
- .space
145
- { color: purple ;font-color:yellow; }
146
-
147
- // No semi-column
148
- .no-semi-column { color: orange }