sass/susy/language/susy/_isolate.scss in susy-2.0.0.alpha.6 vs sass/susy/language/susy/_isolate.scss in susy-2.0.0.beta.1
- old
+ new
@@ -23,18 +23,18 @@
// - $input: <map>
@function get-isolation(
$input
) {
$span : susy-get(span, $input);
- $location : susy-get(location, $input);
+ $location : get-location($input);
$columns : susy-get(columns, $input);
$width : null;
@if type-of($location) == number and not unitless($location) {
$width: $location;
- } @else {
- $push: get-location($span, $location, $columns) - 1;
+ } @else if $location {
+ $push: $location - 1;
@if $push > 0 {
$push: map-merge($input, (
span: $push,
location: 1,
spread: wide,
@@ -45,7 +45,7 @@
@if susy-get(gutter-position, $input) == split {
$width: if($width == null, gutters($input), $width + gutters($input));
}
- @return $width;
+ @return $width or 0;
}