Sha256: e16ee624686267b4def15f8ffd5053e19529e34284db4ea73a3e6cb49f6058d0

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

// Isolation Syntax
// ================

// Isolation Override
@mixin isolate(
  $input
) {
  $input              : parse-span($input);

  $span               : get-span-setting(span, $input);
  $location           : get-span-setting(location, $input);
  $this-columns       : get-span-setting(columns, $input);
  $this-gutters       : get-span-setting(gutters, $input);
  $this-column-width  : get-span-setting(column-width, $input);
  $this-static        : get-span-setting(static, $input);
  $this-flow          : get-span-setting(flow, $input);

  $push: get-isolation($span, $location, $columns, $gutters, $column-width, $static);

  @include isolate-output($push,$this-flow);
}

// Isolation Helpers
// -----------------

// Return the isolation position
@function get-isolation(
  $span,
  $location,
  $columns        : $columns,
  $gutters        : $gutters,
  $column-width   : $column-width,
  $static         : $static,
  $gutter-place   : $gutter-placement
) {
  $context  : column-sum($columns, $gutters);
  $width    : null;

  @if type-of($location) == number and not unitless($location) {
    $width: $location;
  } @else {
    $push: get-location-position($span, $location, $columns) - 1;
    @if $push > 0 {
      $width: get-span-width($push, 1, $columns, $gutters, $column-width, $static, $gutter-place, outer);
    } @else {
      $width: null;
    }
  }

  @return $width;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.2 sass/susy/language/susy/_isolate.scss