Open claudchan opened 7 years ago
My current fixes:
font-files(font-name, formats...)
full = ""
for $i in 0..length(formats)
if formats[$i] != null
full = full + 'url("' + font-name + "." + formats[$i]
if formats[$i] == "ttf"
full = full + '") format("truetype")'
else if formats[$i] == "svg"
full = full + '") format("svg")'
else
full = full + '") format("' + formats[$i] + '")'
if $i+1 != length(formats)
full = full + ", "
return unquote(full)
font-face(name, font-files, eot = null, weight = normal, style = normal)
iefont = unquote(eot+'?#iefix')
@font-face
font-family name
if eot != false
src url(eot)
font-files = url(iefont) format('embedded-opentype'), font-files
src font-files
if weight
font-weight weight
if style
font-style style
Hi, I am trying to convert these sass code:
End result:
Anyone could help how to make something same result using the sass above? Thanks in advance.