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
app_sleuth-0.0.1.pre lib/app_sleuth/server/assets/sass/mixins/addons/_position.scss
bourbon-1.4.0 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.6 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.5 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.4 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.3 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.2 app/assets/stylesheets/addons/_position.scss
bourbon-1.3.0 app/assets/stylesheets/addons/_position.scss
bourbon-1.2.0 app/assets/stylesheets/addons/_position.scss
wiskey-0.0.2 app/assets/stylesheets/addons/_position.scss
wiskey-0.0.1 app/assets/stylesheets/addons/_position.scss
bourbon-1.1.0 app/assets/stylesheets/addons/_position.scss
bourbon-1.0.4 app/assets/stylesheets/addons/_position.scss
bourbon-1.0.3 app/assets/stylesheets/addons/_position.scss
bourbon-1.0.2 app/assets/stylesheets/addons/_position.scss
bourbon-1.0.1 app/assets/stylesheets/addons/_position.scss
bourbon-1.0.0 app/assets/stylesheets/addons/_position.scss
bourbon-0.2.1 app/assets/stylesheets/addons/_position.scss
bourbon-0.2.0 app/assets/stylesheets/addons/_position.scss
bourbon-0.1.9 app/assets/stylesheets/addons/_position.scss