Created
March 25, 2012 22:01
-
-
Save Granze/2200257 to your computer and use it in GitHub Desktop.
[LESS] Horizontal 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
| .hGradient (@startColor: #eee, @endColor: #fff) { | |
| background-color: @startColor; | |
| background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor)); | |
| background-image: -webkit-linear-gradient(left, @startColor, @endColor); | |
| background-image: -moz-linear-gradient(left, @startColor, @endColor); | |
| background-image: -ms-linear-gradient(left, @startColor, @endColor); | |
| background-image: -o-linear-gradient(left, @startColor, @endColor); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment