Skip to content

Instantly share code, notes, and snippets.

@nedSaf
Created August 13, 2014 09:42
Show Gist options
  • Save nedSaf/ae23dc9a6ca0d37bc78f to your computer and use it in GitHub Desktop.
Save nedSaf/ae23dc9a6ca0d37bc78f to your computer and use it in GitHub Desktop.
Create a function in mixins.
// Mixins
@mixin gradient($color) {
background: -webkit-linear-gradient(top, $color 0%,$color 100%);
background: -o-linear-gradient(top, $color 0%,$color 100%);
background: -ms-linear-gradient(top, $color 0%,$color 100%);
background: linear-gradient(top, $color 0%,$color 100%);
background: -moz-linear-gradient(top, $color 0%,$color 100%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment