app/assets/stylesheets/settings/functions/_background.sass in oulu-0.12.0 vs app/assets/stylesheets/settings/functions/_background.sass in oulu-0.12.1

- old
+ new

@@ -3,23 +3,28 @@ @return true @else @return null @function background_position($value) - @if list($value) and nth($value, 1) != size - @return true + @if list($value) + @if string(nth($value, 1)) and not str-index(nth($value, 1), '/') + @return true + @else if number(nth($value, 1)) + @return true + @else + @return null @else @return null @function background_size($value) @if string($value) @if $value == 'auto' or $value == 'contain' or $value == 'cover' @return unquote('/') $value @else @return null @else if list($value) - @if nth($value, 1) == size - @return unquote('/') nth($value, 2) nth($value, 3) + @if string(nth($value, 1)) and str-index(nth($value, 1), '/') + @return $value @else @return null @else @return null