Skip to content

Instantly share code, notes, and snippets.

@DKunin
Created July 15, 2013 05:49
Show Gist options
  • Save DKunin/5997746 to your computer and use it in GitHub Desktop.
Save DKunin/5997746 to your computer and use it in GitHub Desktop.
.gradient(@color,@color2){
background: @color; /* Old browsers */
background: -moz-linear-gradient(top, @color 0%, @color2 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@color), color-stop(100%,@color2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, @color 0%,@color2 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, @color 0%,@color2 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, @color 0%,@color2 100%); /* IE10+ */
background: linear-gradient(to bottom, @color 0%,@color2 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=@color, endColorstr=@color2,GradientType=0 ); /* IE6-9 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment