Sha256: bffc75797cc6a351c98201b8211826d45b4d703337fed590562d7c1fcc297bc9
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
// retina.sass // A helper mixin for applying high-resolution background images (http://www.retinajs.com) // Submitted by Nathan Crank // nathancrank.com @mixin at2x($path, $ext: "jpg", $w: auto, $h: auto) { $at1x_path: "#{$path}.#{$ext}"; $at2x_path: "#{$path}@2x.#{$ext}"; background-image: image-url("#{$at1x_path}"); @media all and (-webkit-min-device-pixel-ratio : 1.5), all and (-o-min-device-pixel-ratio: 3/2), all and (min--moz-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5) { background-image: image-url("#{$at2x_path}"); background-size: $w $h; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
retinajs-rails-0.2 | app/assets/stylesheets/retina.scss |