Skip to content

Instantly share code, notes, and snippets.

@Djules
Djules / fonts.styl
Last active August 29, 2015 14:01 — forked from diogomoretti/fonts.styl
Updated Stylus mixin @font-face
// Fonts mixin
font-file(file, ext, path)
return path + file + ext
webfont(family, file, path = '../fonts/', hack-chrome-windows = false, weight = 'normal', style = 'normal')
@font-face
font-family family
src url(font-file(file, '.eot', path))
src url(font-file(file, '.eot?#iefix', path)) format('embedded-opentype'),
url(font-file(file, '.woff', path)) format('woff'),