Skip to content

Instantly share code, notes, and snippets.

@erin-dot-io
Created April 21, 2015 16:03
Show Gist options
  • Save erin-dot-io/4db5688f5b6c9a477697 to your computer and use it in GitHub Desktop.
Save erin-dot-io/4db5688f5b6c9a477697 to your computer and use it in GitHub Desktop.
Custom IcoMoon base styles
/* Move base font icon styles onto :before in order to
avoid affecting text styles on the parent element */
[class^="icon-"], [class*=" icon-"] {
&:before {
font-family: 'su-icons';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Normalize font size adjust incase its been changed for
custom web fonts. This fixes incorrect icon sizes in Firefox ~37 */
font-size-adjust: none;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment