Created
September 23, 2014 22:08
-
-
Save jdeagle/25c78cf1d9f1bf9ad9a0 to your computer and use it in GitHub Desktop.
Icon Fonts as Sass List - Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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