Created
September 3, 2013 05:24
-
-
Save saki007ster/6419980 to your computer and use it in GitHub Desktop.
From http://groundwork.sidereel.com/mixins
Font Stack
This file contains 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
@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