Created
August 24, 2016 19:52
-
-
Save tjinauyeung/46e90462a5ee26c3e0ed8e40a43421b4 to your computer and use it in GitHub Desktop.
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
// MILO WEB FONTT | |
$font-faces: ( | |
null: 'MiloWeb.woff', | |
'Regular': 'MiloWeb.woff', | |
'Text': 'MiloWeb-Text.woff', | |
'Medium': 'MiloWeb-Medium.woff', | |
'Light': 'MiloWeb-Light.woff', | |
'LightItalic': 'MiloWeb-LightIta.woff', | |
'ExtraLight': 'MiloWeb-Extralight.woff' | |
); | |
@mixin font-faces { | |
@each $font-name, $font-file in $font-faces { | |
@if $font-name { | |
$font-name: 'MiloWeb-' + $font-name; | |
} @else { | |
$font-name: 'MiloWeb'; | |
} | |
@font-face { | |
font-family: $font-name; | |
src: url('../fonts/milo/' + $font-file) format('woff'); | |
} | |
} | |
} | |
@include font-faces; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment