Sha256: 6be9e7f681730eb7eb2323286370d669d5f55aeb93df50b149dda46a288230d3

Contents?: true

Size: 845 Bytes

Versions: 41

Compression:

Stored size: 845 Bytes

Contents

@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: false) {
  @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

41 entries across 33 versions & 6 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.18.0 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.17.0 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.16.0 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.6 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.5 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.4 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.3 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.1.2 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.2.pre1 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.1.1 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.1 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
card-mod-bootstrap-0.15.0 vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
portfolio-jekyll-theme-2.0.0 _sass/1-tools/bourbon/addons/_retina-image.scss
tenon-1.0 spec/dummy/public/assets/source_maps/_retina-image.scss
growbot-web-0.0.6 lib/growbot/web/views/sass/bourbon/addons/_retina-image.scss
growbot-web-0.0.5 lib/growbot/web/views/sass/bourbon/addons/_retina-image.scss
growbot-web-0.0.4 lib/growbot/web/views/sass/bourbon/addons/_retina-image.scss
growbot-web-0.0.2 lib/growbot/web/views/sass/bourbon/addons/_retina-image.scss
growbot-web-0.0.1 lib/growbot/web/views/sass/bourbon/addons/_retina-image.scss