Sha256: e659204e7b46c6572335e6df1f57ce4f471fef80eb22a77bf45129d05b35dae1

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

module Compass::SassExtensions::Functions::ColorStop
  def color_stop(*args)
    raise Sass::SyntaxError, "An even number of arguments must be passed to color-stop()" unless args.size % 2 == 0
    stops = []
    while args.size > 0
      stops << "color-stop(#{args.shift}, #{args.shift})"
    end
    Sass::Script::String.new(stops.join(", "))
  end
end

Version data entries

12 entries across 11 versions & 3 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/compass-0.10.0.pre5/lib/compass/sass_extensions/functions/color_stop.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/lib/compass/sass_extensions/functions/color_stop.rb
compass-0.10.0.pre5 lib/compass/sass_extensions/functions/color_stop.rb
compass-0.10.0.pre4 lib/compass/sass_extensions/functions/color_stop.rb
compass-0.10.0.pre3 lib/compass/sass_extensions/functions/color_stop.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/sass_extensions/functions/color_stop.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/sass_extensions/functions/color_stop.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/sass_extensions/functions/color_stop.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/sass_extensions/functions/color_stop.rb
compass-0.10.0.pre2 lib/compass/sass_extensions/functions/color_stop.rb
compass-0.10.0.pre1 lib/compass/sass_extensions/functions/color_stop.rb
compass-edge-0.9.5.0 lib/compass/sass_extensions/functions/color_stop.rb