Sha256: ab1ae1e552e6a4fe6ecf40c3249e9aef046af13935cde8138bdb4d4821f9a5ab

Contents?: true

Size: 849 Bytes

Versions: 2

Compression:

Stored size: 849 Bytes

Contents

// Float Span API
// ==============

// Float Span Output
// -----------------
// - $width             : <length>
// - [$float]           : from | to
// - [$margin-before]   : <length>
// - [$margin-after]    : <length>
// - [$padding-before]  : <length>
// - [$padding-after]   : <length>
// - [$flow]            : ltr | rtl
@mixin float-span-output(
  $width,
  $float            : from,
  $margin-before    : null,
  $margin-after     : null,
  $padding-before   : null,
  $padding-after    : null,
  $flow             : $flow
) {
  $to     : to($flow);
  $from   : from($flow);

  @if $float {
    $float: if($float == to, $to, $from);
  } @else {
    $float: null;
  }

  width: $width;
  float: $float;
  margin-#{$from}: $margin-before;
  margin-#{$to}: $margin-after;
  padding-#{$from}: $padding-before;
  padding-#{$to}: $padding-after;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.4 sass/susy/api/float/_span.scss
susy-2.0.0.alpha.3 sass/susy/api/float/_span.scss