Skip to content

Instantly share code, notes, and snippets.

@airtonix
Created March 26, 2014 12:03
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 airtonix/9781681 to your computer and use it in GitHub Desktop.
Save airtonix/9781681 to your computer and use it in GitHub Desktop.
@mixin fontface($name, $path) {
@font-face {
font-family: $name;
src: url('#{$path}.eot');
src: url('#{$path}.eot#iefix') format('embedded-opentype'),
url('#{$path}.woff') format('woff'),
url('#{$path}.ttf') format('truetype'),
url('#{$path}.svg?##{$name}') format('svg');
font-weight: normal;
font-style: normal;
}
[class^='icon-#{$name}-'], [class*=" icon-#{$name}-"] {
display: inline-block;
font-family: "#{$name}";
font-size: 24px;
text-decoration: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment