frameworks/compass/stylesheets/compass/css3/_text-shadow.scss in compass-0.12.alpha.0 vs frameworks/compass/stylesheets/compass/css3/_text-shadow.scss in compass-0.12.alpha.1

- old
+ new

@@ -21,30 +21,16 @@ $shadow-7 : false, $shadow-8 : false, $shadow-9 : false, $shadow-10: false ) { - // This has to be on a single line due to a bug in the scss parser: https://github.com/nex3/sass/issues/issue/26 - $legacy: type-of($shadow-1) == color and type-of(if($shadow-2, $shadow-2, 0)) == number and type-of(if($shadow-3, $shadow-3, 0)) == number and type-of(if($shadow-4, $shadow-4, 0)) == number and ($shadow-2 or $shadow-3 or $shadow-4) and not($shadow-5 or $shadow-6 or $shadow-7 or $shadow-8 or $shadow-9 or $shadow-10); - @if $legacy { - @warn "Passing separate arguments for a single shadow to text-shadow is deprecated. " + - "Pass the values as a single space-separated list, or use the single-text-shadow mixin. " + - "See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info."; - @include single-text-shadow( - $shadow-1, - if($shadow-2, $shadow-2, $default-text-shadow-h-offset), - if($shadow-3, $shadow-3, $default-text-shadow-v-offset), - if($shadow-4, $shadow-4, $default-text-shadow-blur) - ); - } @else { - @if $shadow-1 == default { - $shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur; - } - text-shadow: compact($shadow-1, $shadow-2, $shadow-3, - $shadow-4, $shadow-5, $shadow-6, - $shadow-7, $shadow-8, $shadow-9, $shadow-10); + @if $shadow-1 == default { + $shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur; } + text-shadow: compact($shadow-1, $shadow-2, $shadow-3, + $shadow-4, $shadow-5, $shadow-6, + $shadow-7, $shadow-8, $shadow-9, $shadow-10); } // Provides a single cross-browser CSS text shadow. // Includes default arguments for color, horizontal offset, vertical offset, and blur @mixin single-text-shadow( @@ -55,8 +41,8 @@ ) { // XXX I'm surprised we don't need experimental support for this property. @if $color == none { text-shadow: none; } @else { - text-shadow: $color $hoff $voff $blur; + text-shadow: $color $hoff $voff $blur; } }