afonsoalban
6/22/2016 - 6:45 PM

Mixin for @font-face

Mixin for @font-face

font-face($fontName, $fileName, $fontWeight = normal, $fontStyle = normal, $path = '../fonts/')
	$fontPath = $path + $fileName

	font-family $fontName
	src url($fontPath + '.woff2') format('woff2'), url($fontPath + '.woff') format('woff')
	font-weight $fontWeight
	font-style $fontStyle

// USE LIKE THIS
@font-face
  font-face(nome, caminho, weight, style)