Created
August 4, 2012 09:13
-
-
Save shakyShane/3256236 to your computer and use it in GitHub Desktop.
mixin-vert-grad
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
@mixin vert_gradient($start, $finish){ | |
background: $start; /* Old browsers */ | |
background: -moz-linear-gradient(top, $start 1%, $finish 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,$start), color-stop(100%,$finish)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, $start 1%,$finish 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, $start 1%,$finish 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, $start 1%,$finish 100%); /* IE10+ */ | |
background: linear-gradient(top, $start 1%,$finish 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = #{$start}, endColorstr = #{$finish}, GradientType = 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment