Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created December 8, 2011 03:17
Show Gist options
  • Save metaskills/1445958 to your computer and use it in GitHub Desktop.
Save metaskills/1445958 to your computer and use it in GitHub Desktop.
module Compass::SassExtensions::Functions::GradientSupport
module Functions
def linear_gradient_hm_header(color)
stop1 = Sass::Script::Number.new(45, ["%"])
stop2 = Sass::Script::Number.new(50, ["%"])
cstops = color_stops(
hmBoxHdrGrad1(color),
ColorStop.new(hmBoxHdrGrad2(color), stop1),
ColorStop.new(color, stop2),
color
)
linear_gradient(cstops)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment