[Compass Core] Only unquote strings when a number might be passed instead.

This commit is contained in:
Chris Eppstein 2010-05-31 11:41:42 -07:00
parent f3a2c9110a
commit 4830f9018b

View File

@ -40,7 +40,8 @@ $default-transition-delay: false !default;
// * these durations will affect the properties in the same list position // * these durations will affect the properties in the same list position
@mixin transition-duration($duration: $default-transition-duration) { @mixin transition-duration($duration: $default-transition-duration) {
@include experimental(transition-duration, unquote($duration), @if type-of($duration) == string { $duration: unquote($duration); }
@include experimental(transition-duration, $duration,
-moz, -webkit, -o, not -ms, not -khtml, official -moz, -webkit, -o, not -ms, not -khtml, official
); );
} }
@ -63,7 +64,8 @@ $default-transition-delay: false !default;
// * these delays will effect the properties in the same list position // * these delays will effect the properties in the same list position
@mixin transition-delay($delay: $default-transition-delay) { @mixin transition-delay($delay: $default-transition-delay) {
@include experimental(transition-delay, unquote($delay), @if type-of($delay) == string { $delay: unquote($delay); }
@include experimental(transition-delay, $delay,
-moz, -webkit, -o, not -ms, not -khtml, official -moz, -webkit, -o, not -ms, not -khtml, official
); );
} }