Skip to content

Instantly share code, notes, and snippets.

@talgautb talgautb/icons.styl
Last active Jul 2, 2016

Embed
What would you like to do?
Stylus mixin: create social links on site
.icon
display: inline-block
vertical-align: middle
width: 30px
height: @width
background-position center
background-repeat no-repeat
for $icon in vk tw fb ok
.icon--{$icon}
background-image: url('../img/icons/'+$icon+'.png')
&:hover
background-image: url('../img/icons/'+$icon+'--hover.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.