Created
March 11, 2013 20:52
-
-
Save joshuatuscan/5137644 to your computer and use it in GitHub Desktop.
Mixin for css background gradient
This file contains hidden or 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 bg-gradient-linear($bottom-color, $top-color) { | |
background-color: $bottom-color; | |
background-image: -ms-linear-gradient(bottom, $bottom-color 0%, $top-color 100%); | |
background-image: -moz-linear-gradient(bottom, $bottom-color 0%, $top-color 100%); | |
background-image: -o-linear-gradient(bottom, $bottom-color 0%, $top-color 100%); | |
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, $bottom-color), color-stop(1, $top-color)); | |
background-image: -webkit-linear-gradient(bottom, $bottom-color 0%, $top-color 100%); | |
background-image: linear-gradient(to top, $bottom-color 0%, $top-color 100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment