Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lancejpollard/519854 to your computer and use it in GitHub Desktop.
Save lancejpollard/519854 to your computer and use it in GitHub Desktop.
@mixin gradient($first, $second) {
background: $second;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$first', endColorstr='$second');
background: -webkit-gradient(linear, left top, left bottom, from($first), to($second));
background: -moz-linear-gradient(top, $first, $second);
}
.gradient {
@include gradient(black, white);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment