Skip to content

Instantly share code, notes, and snippets.

@cimmanon
Last active August 29, 2015 14:26
Show Gist options
  • Save cimmanon/11703ff735e52bdf8780 to your computer and use it in GitHub Desktop.
Save cimmanon/11703ff735e52bdf8780 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="007">Bond</div>
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@function social($value){
$color: map-get($social-colors, $value);
@return $color;
}
$social: (
("facebook",social(facebook),'7'),
("flickr",social(flickr),'w'),
("googleplus",social(googleplus),'r'),
("twitter",social(twitter),"'"),
("linkedin",social(linkedin),'*'),
("instagram",social(instagram),'9'),
("pinterest",social(pinterest),'K'),
("vkontakte",social(vkontakte),'&'),
("youtube",social(youtube),'"')
);
@each $name,$color,$icon in $social{
.social{
&:before{ font-family: $social-font; }
&.#{$name}{ background: #{$color}; color: color(white);
@include shadow(rgba(black,0.25),black,false,true);
&:hover{ background: darken($color,10%); }
&:before{ content:"#{$icon}"; }
}
}
}
Undefined variable: "$social-colors".
<div class="007">Bond</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment