Sha256: 6ad1c37e4757b81897addb9c11653aab30f9429d38e644d535538ffe3c3c32c8

Contents?: true

Size: 780 Bytes

Versions: 313

Compression:

Stored size: 780 Bytes

Contents

@mixin size($size) {
  @if length($size) == 1 {
    @if $size == auto {
      width:  $size;
      height: $size;
    }

    @else if unitless($size) {
      width:  $size + px;
      height: $size + px;
    }

    @else if not(unitless($size)) {
      width:  $size;
      height: $size;
    }
  }

  // Width x Height
  @if length($size) == 2 {
    $width:  nth($size, 1);
    $height: nth($size, 2);

    @if $width == auto {
      width: $width;
    }
    @else if not(unitless($width)) {
      width: $width;
    }
    @else if unitless($width) {
      width: $width + px;
    }

    @if $height == auto {
      height: $height;
    }
    @else if not(unitless($height)) {
      height: $height;
    }
    @else if unitless($height) {
      height: $height + px;
    }
  }
}

Version data entries

313 entries across 307 versions & 10 rubygems

Version Path
smock-0.1.218 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
bourbon-3.2.4 dist/addons/_size.scss
bourbon-3.2.4 app/assets/stylesheets/addons/_size.scss
smock-0.1.217 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.216 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.215 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.214 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.213 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.212 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.211 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.210 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.209 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.208 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.207 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.206 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.205 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
stump-cli-0.1.3 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_size.scss
stump-cli-0.1.2 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_size.scss
smock-0.1.204 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss
smock-0.1.203 app/assets/stylesheets/thirdparty/bourbon/addons/_size.scss