Sha256: fb01e9e82bbc4d78a09d54a80d1f4b045092d3552b5381d02dec6a4a88bc38ad

Contents?: true

Size: 855 Bytes

Versions: 315

Compression:

Stored size: 855 Bytes

Contents

@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
  @if $asset-pipeline {
    background-image: image-url("#{$filename}.#{$extension}");
  }
  @else {
    background-image:       url("#{$filename}.#{$extension}");
  }

  @include hidpi {
    @if $asset-pipeline {
      @if $retina-filename {
        background-image: image-url("#{$retina-filename}.#{$extension}");
      }
      @else {
        background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
      }
    }

    @else {
      @if $retina-filename {
        background-image: url("#{$retina-filename}.#{$extension}");
      }
      @else {
        background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
      }
    }

    background-size: $background-size;

  }
}

Version data entries

315 entries across 312 versions & 7 rubygems

Version Path
hanuman-0.3.0 _sass/bourbon/addons/_retina-image.scss
hanuman-0.2.0 _sass/bourbon/addons/_retina-image.scss
hanuman-0.1.0 _sass/bourbon/addons/_retina-image.scss
wrgem-0.0.55 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
wrgem-0.0.54 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
wrgem-0.0.53 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
wrgem-0.0.52 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
wrgem-0.0.51 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
smock-0.1.268 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.267 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.266 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
wrgem-0.0.50 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
wrgem-0.0.49 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/addons/_retina-image.scss
smock-0.1.265 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.264 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.263 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.262 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.261 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.260 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/bourbon/addons/_retina-image.scss