Skip to content

Instantly share code, notes, and snippets.

@jdeagle
Created September 23, 2014 22:08
Show Gist options
  • Save jdeagle/25c78cf1d9f1bf9ad9a0 to your computer and use it in GitHub Desktop.
Save jdeagle/25c78cf1d9f1bf9ad9a0 to your computer and use it in GitHub Desktop.
Icon Fonts as Sass List - Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$icon-names : (twitter '\e001') (github '\e002');
%ico-font-base {
font-family: "ico-font";
speak: none;
font-style: normal;
line-height: 1;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: greyscale;
}
@each $name, $pua in $icon-names {
.icon-#{$name}:after {
@extend %ico-font-base;
content: $pua;
}
}
@charset "UTF-8";
.icon-twitter:after, .icon-github:after {
font-family: "ico-font";
speak: none;
font-style: normal;
line-height: 1;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: greyscale;
}
.icon-twitter:after {
content: "";
}
.icon-github:after {
content: "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment