Sha256: b6f3332d223caaeee90bde5fb1e2abe73c859229612d24189c6c1f53eb385860

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

// Shared Container API
// ====================

// Container Output
// ----------------
// - [$width]         : <length>
// - [$justify]       : left | center | right
// - [$layout-math]   : fluid | static
@mixin container-output(
  $width        : $container,
  $justify      : $container-position,
  $layout-math  : $layout-math
) {
  $position   : parse-container-position($justify);
  $property   : if($layout-math == static, width, max-width);
  $left       : nth($position,1);
  $right      : nth($position,2);

  @if not $width {
    $width: 100%;
  }

  #{$property}: $width;
  margin-left: $left;
  margin-right: $right;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.4 sass/susy/api/shared/_container.scss
susy-2.0.0.alpha.3 sass/susy/api/shared/_container.scss