Created
December 8, 2011 03:17
-
-
Save metaskills/1445958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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