Sha256: f92891f39bec3c9a083d62f40841a6436fa2942f72f1441cf14e8713e819d4be

Contents?: true

Size: 715 Bytes

Versions: 87

Compression:

Stored size: 715 Bytes

Contents

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

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

  $coordinates: unpack($coordinates);

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

  position: $position;

  @if ($top and $top == auto) or (type-of($top) == number) {
    top: $top;
  }

  @if ($right and $right == auto) or (type-of($right) == number) {
    right: $right;
  }

  @if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
    bottom: $bottom;
  }

  @if ($left and $left == auto) or (type-of($left) == number) {
    left: $left;
  }
}

Version data entries

87 entries across 82 versions & 9 rubygems

Version Path
wrgem-0.0.52 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.51 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.50 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.49 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.48 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.47 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.46 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.45 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.44 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
thesis-0.1.3 app/assets/stylesheets/thesis/base/bourbon/addons/_position.scss
wrgem-0.0.43 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.42 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.41 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.40 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.39 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.38 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.37 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.35 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.32 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss
wrgem-0.0.31 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_position.scss