Only unquote strings

This commit is contained in:
Chris Eppstein 2010-12-01 01:34:07 -08:00
parent 247d6dc8e6
commit f209524228

View File

@ -9,6 +9,8 @@ $default-background-size: 100% auto !default;
// * percentages are relative to the background-origin (default = padding-box) // * percentages are relative to the background-origin (default = padding-box)
// * mixin defaults to: `$default-background-size` // * mixin defaults to: `$default-background-size`
@mixin background-size($size: $default-background-size) { @mixin background-size($size: $default-background-size) {
$size: unquote($size); @if type-of($size) == string {
$size: unquote($size);
}
@include experimental(background-size, $size, -moz, -webkit, -o, not -ms, not -khtml); @include experimental(background-size, $size, -moz, -webkit, -o, not -ms, not -khtml);
} }