Sha256: f224d1b34bdfc6fe4ddb7799b577442b95436e2fbbecc81c9e2604e8d9d68dfb

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

// Direction helpers
// =================

// Return the 'from' or 'to' direction of a ltr or rtl flow.
@function get-direction(
  $flow: $flow,
  $key: from
) {
  $from: if($flow == rtl, right, left);
  $to: if($flow == rtl, left, right);

  @if $key == from { @return $from; }
  @else if $key == to { @return $to; }
}

// Return the 'to' direction of a flow
@function to(
  $flow: $flow
) {
  @return get-direction($flow,to);
}

// Return the 'from' direction of a flow
@function from(
  $flow: $flow
) {
  @return get-direction($flow,from);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.2 sass/susy/helpers/_direction.scss