Sha256: 8555a498b57a6c040044a6ca8b77332a3a07baa4988b8e559db73069ac1fa51a

Contents?: true

Size: 888 Bytes

Versions: 15

Compression:

Stored size: 888 Bytes

Contents

//////////////////////////////
// Find Opposite Direction
//////////////////////////////
@function opposite-direction($dir) {
  @if $dir == 'left' {
    @return right;
  }
  @else if  $dir == 'right' {
    @return left;
  }
  @else if $dir == 'ltr' {
    @return rtl;
  }
  @else if $dir == 'rtl' {
    @return ltr;
  }
  @else if $dir == 'top' {
    @return bottom;
  }
  @else if $dir == 'bottom' {
    @return top;
  }
  @else {
    @warn "#{$dir} is not a direction! Make sure your direction is all lowercase!";
    @return false;
  }
}

//////////////////////////////
// Find Direction Name
//////////////////////////////
@function named-direction($dir) {
  @if $dir == 'ltr' {
    @return left;
  }
  @else if $dir == 'rtl' {
    @return right;
  }
  @else {
    @warn "#{$dir} is not a valid HTML direction! Make sure you are using a valid HTML direction";
    @return false;
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
singularitygs-1.8.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.7.1 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.7.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.6.2 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.6.1 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.5.1 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.5.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.4.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.3.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.3 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.1 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.0 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.0.rc.6 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.0.rc.3 stylesheets/singularitygs/helpers/_directions.scss
singularitygs-1.2.0.rc.1 stylesheets/singularitygs/helpers/_directions.scss