aliddle-sass 1.01 → 3.2.10
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/lib/sass/exec.rb +0 -4
- data/lib/sass/tree/visitors/to_css.rb +4 -9
- metadata +6 -5
data/lib/sass/exec.rb
CHANGED
|
@@ -258,10 +258,6 @@ END
|
|
|
258
258
|
'Output style. Can be nested (default), compact, compressed, or expanded.') do |name|
|
|
259
259
|
@options[:for_engine][:style] = name.to_sym
|
|
260
260
|
end
|
|
261
|
-
opts.on('--singlespace', '--singlespace BOOL',
|
|
262
|
-
'Output can remove all blank lines, or leave them as SASS defaults.') do |linebreak|
|
|
263
|
-
@options[:for_engine][:singlespace] = linebreak
|
|
264
|
-
end
|
|
265
261
|
opts.on('--precision NUMBER_OF_DIGITS', Integer,
|
|
266
262
|
'How many digits of precision to use when outputting decimal numbers. Defaults to 3.') do |precision|
|
|
267
263
|
::Sass::Script::Number.precision = precision
|
|
@@ -53,7 +53,7 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
|
|
|
53
53
|
|
|
54
54
|
def visit_charset(node)
|
|
55
55
|
"@charset \"#{node.name}\";"
|
|
56
|
-
end
|
|
56
|
+
end
|
|
57
57
|
|
|
58
58
|
def visit_comment(node)
|
|
59
59
|
return if node.invisible?
|
|
@@ -127,7 +127,7 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
|
|
|
127
127
|
if node.style == :compressed
|
|
128
128
|
"#{tab_str}#{node.resolved_name}:#{node.resolved_value}"
|
|
129
129
|
elsif node.style == :compact
|
|
130
|
-
"#{tab_str}#{node.resolved_name}:#
|
|
130
|
+
"#{tab_str}#{node.resolved_name}:#node.resolved_value}"
|
|
131
131
|
else
|
|
132
132
|
"#{tab_str}#{node.resolved_name}: #{node.resolved_value};"
|
|
133
133
|
end
|
|
@@ -189,21 +189,16 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
|
|
|
189
189
|
end
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
-
line_break = "\n"
|
|
193
|
-
if node.options[:singlespace] == 'true'
|
|
194
|
-
line_break = ''
|
|
195
|
-
end
|
|
196
|
-
|
|
197
192
|
if node.style == :compact
|
|
198
193
|
properties = with_tabs(0) {node.children.map {|a| visit(a)}.join(' ')}
|
|
199
|
-
to_return << "#{total_rule} { #{properties} }#{
|
|
194
|
+
to_return << "#{total_rule} { #{properties} }#{"\n" if node.group_end}"
|
|
200
195
|
elsif node.style == :compressed
|
|
201
196
|
properties = with_tabs(0) {node.children.map {|a| visit(a)}.join(';')}
|
|
202
197
|
to_return << "#{total_rule}{#{properties}}"
|
|
203
198
|
else
|
|
204
199
|
properties = with_tabs(@tabs + 1) {node.children.map {|a| visit(a)}.join("\n")}
|
|
205
200
|
end_props = (node.style == :expanded ? "\n" + old_spaces : ' ')
|
|
206
|
-
to_return << "#{total_rule} {\n#{properties}#{end_props}}#{
|
|
201
|
+
to_return << "#{total_rule} {\n#{properties}#{end_props}}#{"\n" if node.group_end}"
|
|
207
202
|
end
|
|
208
203
|
|
|
209
204
|
to_return
|
metadata
CHANGED
|
@@ -3,9 +3,10 @@ name: aliddle-sass
|
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
|
|
6
|
+
- 3
|
|
7
|
+
- 2
|
|
8
|
+
- 10
|
|
9
|
+
version: 3.2.10
|
|
9
10
|
platform: ruby
|
|
10
11
|
authors:
|
|
11
12
|
- Nathan Weizenbaum
|
|
@@ -15,7 +16,7 @@ autorequire:
|
|
|
15
16
|
bindir: bin
|
|
16
17
|
cert_chain: []
|
|
17
18
|
|
|
18
|
-
date: 2013-09-
|
|
19
|
+
date: 2013-09-27 00:00:00 -07:00
|
|
19
20
|
default_executable:
|
|
20
21
|
dependencies:
|
|
21
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -46,7 +47,7 @@ dependencies:
|
|
|
46
47
|
version: 0.5.9
|
|
47
48
|
type: :development
|
|
48
49
|
version_requirements: *id002
|
|
49
|
-
description: "
|
|
50
|
+
description: " Sass makes CSS fun again. Sass is an extension of CSS3, adding\n nested rules, variables, mixins, selector inheritance, and more.\n It's translated to well-formatted, standard CSS using the\n command line tool or a web-framework plugin.\n"
|
|
50
51
|
email: sass-lang@googlegroups.com
|
|
51
52
|
executables:
|
|
52
53
|
- sass
|