Skip to content

Instantly share code, notes, and snippets.

@macbleser
Created June 20, 2014 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macbleser/bbf09fb499977678d8dc to your computer and use it in GitHub Desktop.
Save macbleser/bbf09fb499977678d8dc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
%icon-base-styles {
display: inline-block;
font-family: "icons";
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
}
$icons: (
github: "\E001",
twitter: "\E002",
codepen: "\E003",
instagram: "\E004",
facebook: "\E005"
);
@each $name, $icon in $icons {
.icon-#{$name}:before {
@extend %icon-base-styles;
content: $icon;
}
}
.icon-github:before, .icon-twitter:before, .icon-codepen:before, .icon-instagram:before, .icon-facebook:before {
display: inline-block;
font-family: "icons";
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
}
.icon-github:before {
content: "\E001";
}
.icon-twitter:before {
content: "\E002";
}
.icon-codepen:before {
content: "\E003";
}
.icon-instagram:before {
content: "\E004";
}
.icon-facebook:before {
content: "\E005";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment