Skip to content

Instantly share code, notes, and snippets.

@LukyVj
Created June 12, 2014 15:12
Show Gist options
  • Save LukyVj/ab433e989a3a1dfb9318 to your computer and use it in GitHub Desktop.
Save LukyVj/ab433e989a3a1dfb9318 to your computer and use it in GitHub Desktop.
Iconic SASS system
$icons: "phone", "twitter", "email";
@each $icon in $icons {
.ico{
display: block;
&:before{
@include single-element();
@include square(1.2em);
}
&[class*="ico-#{($icon)}"]{
&:before{
@include icon-background('../images/icon_#{($icon)}.png');
}
}
}
}
@baptistebriel
Copy link

Dommage que ce soit un .png ! :)

@LukyVj
Copy link
Author

LukyVj commented Jun 16, 2014

C'est pour des images placeholder, il sers à générer des iconset en SVG sinon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment