Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4609

How can I quote strings in SASS?

$
0
0

I'm using SASS to generate a @font-face mixin, however this:

=remotefont(!name, !url)  @font-face    font-family = !name    src = url(!url +".eot")    src = local(!name), url(!url +".ttf") format("truetype")+remotefont("My font", "/myfont.ttf")

becomes this:

@font-face {  font-family: My font;  src: url(/myfont.ttf.eot);  src: local(My font), url(/myfont.ttf.ttf) format(truetype); }

No matter how much I try, I can't have it quote either "My font" (with "!name") or "truetype" (it removes the quotes). Any ideas on how I can do this?


Viewing all articles
Browse latest Browse all 4609

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>