Skip to content

Instantly share code, notes, and snippets.

@alexshive
Created July 18, 2014 17:18
Show Gist options
  • Save alexshive/8fd305f08264444438b3 to your computer and use it in GitHub Desktop.
Save alexshive/8fd305f08264444438b3 to your computer and use it in GitHub Desktop.
SASS Social Network colors
// Credit Jonathan Suh via https://news.layervault.com/stories/28802-ask-dn-what-are-your-little-sassless-time-savers
$social-colors: (
dribbble: #ea4c89,
facebook: #3b5998,
github: #171515,
google: #db4437,
twitter: #55acee
);
@each $social-network, $social-color in $social-colors {
.social-link--#{$social-network} {
background: $social-color;
}
.social-link--#{$social-network}:hover {
background: lighten($social-color, 10%);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment