Created
May 21, 2012 07:35
-
-
Save illepic/2760957 to your computer and use it in GitHub Desktop.
SASS + Compass for social menus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include the social networks our social menu will have | |
$social-networks: facebook, spotify, vimeo, twitter, spotify, myspace, tumblr, youtube; | |
// This loops through that list, adding in those selectors | |
@each $social-network in $social-networks{ | |
#block-menu-menu-social{ | |
// select by href including network name | |
a[href*="#{$social-network}"]{ | |
// include the sprites, "false" means don't include dimensions (we do that in "#block-menu-menu-social a") | |
@include sitesprites-sprite(social-#{$social-network}, false); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment