Skip to content

Instantly share code, notes, and snippets.

@alienresident
Created February 21, 2014 20:20
Show Gist options
  • Save alienresident/9142644 to your computer and use it in GitHub Desktop.
Save alienresident/9142644 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin font-face($font-family, $font-file-name: false, $weight: normal, $style: normal, $otf: false) {
@font-face {
$font: $font-family;
$ottf: ttf;
$ottf-format: truetype;
@if $font-file-name {
$font: $font-file-name;
}
@if $otf {
$ottf: otf;
$ottf-format: OpenType;
}
font: {
family: $font-family;
weight: $weight;
style: $style;
}
src: font-url('#{$font}.eot');
src: font-url('#{$font}.eot?#iefix') format('embedded-opentype'),
font-url('#{$font}.woff') format('woff'),
font-url('#{$font}.#{$ottf}') format('#{$ottf-format}'),
font-url('#{$font}.svg##{$font-family}') format('svg');
}
}
// @include font-face("ABeeZee");
@include font-face("ABeeZee", "abz/ABeeZee-Italic", "normal", "italic", "otf");
@font-face {
font-family: "ABeeZee";
font-weight: "normal";
font-style: "italic";
src: url('/fonts/abz/ABeeZee-Italic.eot');
src: url('/fonts/abz/ABeeZee-Italic.eot?#iefix') format("embedded-opentype"), url('/fonts/abz/ABeeZee-Italic.woff') format("woff"), url('/fonts/abz/ABeeZee-Italic.otf') format("OpenType"), url('/fonts/abz/ABeeZee-Italic.svg#ABeeZee') format("svg");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment