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