Skip to content

Instantly share code, notes, and snippets.

@saki007ster
Created September 3, 2013 05:24
Show Gist options
  • Save saki007ster/6419980 to your computer and use it in GitHub Desktop.
Save saki007ster/6419980 to your computer and use it in GitHub Desktop.
@mixin font-stack($primaryFont:"", $secondaryFont:"", $fallbackFonts:"Arial, Helvetica, Geneva, sans-serif") {
/* might add inline-font-files() at some point */
@if $secondaryFont != "" {
font-family:#{$primaryFont}, #{$secondaryFont}, #{$fallbackFonts};
} @else {
@if $primaryFont != "" {
font-family:#{$primaryFont}, #{$fallbackFonts};
} @else {
font-family:#{$fallbackFonts};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment