Sha256: a5cd160d9b12da10f7764832b9babaafd902ad7e680dbd46b1cee4acc0c3a1d1

Contents?: true

Size: 520 Bytes

Versions: 31

Compression:

Stored size: 520 Bytes

Contents

@mixin position ($position: relative, $coordinates: 0 0 0 0) {

  @if type-of($position) == list {
    $coordinates: $position;
    $position: relative;
  }

  $top: nth($coordinates, 1);
  $right: nth($coordinates, 2);
  $bottom: nth($coordinates, 3);
  $left: nth($coordinates, 4);

  position: $position;

  @if not(unitless($top)) {
    top: $top;
  }

  @if not(unitless($right)) {
    right: $right;
  }

  @if not(unitless($bottom)) {
    bottom: $bottom;
  }

  @if not(unitless($left)) {
    left: $left;
  }
}

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
bourbon-0.1.8 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.7 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.6 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.5 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.4 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.3 app/assets/stylesheets/addons/_position.css.scss
bourbon-0.1.2 app/assets/stylesheets/addons/_position.css.scss
bourbon-0.1.1 app/assets/stylesheets/addons/_position.css.scss
bourbon-0.0.8 app/assets/stylesheets/addons/_position.css.scss
bourbon-0.0.7 app/assets/stylesheets/addons/_position.css.scss
bourbon-0.0.6 app/assets/stylesheets/addons/_position.css.scss