Skip to content

Instantly share code, notes, and snippets.

@matthewcopeland
Created July 4, 2012 07:39
Show Gist options
  • Save matthewcopeland/3045939 to your computer and use it in GitHub Desktop.
Save matthewcopeland/3045939 to your computer and use it in GitHub Desktop.
simple sample _gradients.scss partial, driven by _colors.scss
// let's chain our @mixin linear-gradient from _mixins.scss
// and drive the colors from _colors.scss
@mixin blue-gradient {
@include linear-gradient( top, $lightblue, $darkblue );
&:hover { @include linear-gradient( top, lighten($lightblue, 10%), $darkblue );
&:active { background: $darkblue; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment