diff --git a/composer.json b/composer.json index edc914a..a11af3b 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Compass for scssphp", "homepage": "http://leafo.net/scssphp/", "require": { - "leafo/scssphp": "dev-master" + "leafo/scssphp": "~0.0.15" }, "authors": [ { diff --git a/stylesheets/compass/css3/font-face.scss b/stylesheets/compass/css3/font-face.scss index bd3db34..88cffb5 100644 --- a/stylesheets/compass/css3/font-face.scss +++ b/stylesheets/compass/css3/font-face.scss @@ -23,6 +23,15 @@ // Order of the includes matters, and it is: normal, bold, italic, bold+italic. +@function font-files($args...) { + $ret: (); + @for $i from 1 through length($args)/2 { + $ret: append($ret, (url(nth($args, $i * 2 - 1)) format(quote(nth($args, $i * 2)))), comma); + } + + @return $ret; +} + @mixin font-face( $name, $font-files, @@ -34,8 +43,8 @@ @font-face { font-family: quote($name); @if $eot { - src: font-url($eot); - $font-files: font-url($iefont) unquote("format('eot')"), $font-files; + src: url($eot); + $font-files: url($iefont) unquote("format('eot')"), $font-files; } src: $font-files; @if $weight {