Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cli/lib/compass/sass_extensions/sprites/image_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def has_active?(name)
SEPERATORS = ['_', '-']

def get_magic_selector_image(name, selector)
SEPERATORS.each do |seperator|
file = image_for("#{name}#{seperator}#{selector}")
return file if !file.nil?
end
SEPERATORS.each do |seperator|
file = image_for("#{name}#{seperator}#{selector}")
return file if !file.nil?
end

nil
end
nil
end

# Return and array of image names that make up this sprite
def sprite_names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ def supports?(aspect)
end
end

standardized_prefix :webkit
standardized_prefix :moz

def to_webkit(options = self.options)
s = "-webkit-radial-gradient("
s << old_standard_arguments(options)
Expand Down Expand Up @@ -759,9 +756,9 @@ def normalize_stops(color_list)
end
if (positions.last.stop.eq(number(0, "px")).to_bool ||
positions.last.stop.eq(number(0, "%")).to_bool)
raise Sass::SyntaxError.new("Color stops must be specified in increasing order")
end
opts(list(positions, color_list.separator))
raise Sass::SyntaxError.new("Color stops must be specified in increasing order")
end
opts(list(positions, color_list.separator))
end

def parse_color_stop(arg)
Expand Down Expand Up @@ -817,7 +814,7 @@ def color_stops_svg(color_stops)
end

def svg(gradient)
svg = <<-EOS
<<-EOS
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"><defs>#{gradient}</defs><rect x="0" y="0" width="100%" height="100%" fill="url(#grad)" /></svg>
EOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ def next
end
end
end
end
end
end