Only unquote strings
This commit is contained in:
parent
20bb8c0d28
commit
b244105ea3
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user