Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for retina graphics in Opera and Firefox.

  • Loading branch information...
commit 08849a1b6c5b1230ae5c3c99f71400522cbc8f5e 1 parent 490687c
@jamesfinley jamesfinley authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 _mixins.scss
View
12 _mixins.scss
@@ -119,6 +119,18 @@
background-image: url('../images/' + $retina_name) !important;
@include experimental-property(-webkit, background-size, $width $height);
}
+ @media (-moz-min-device-pixel-ratio: 2) {
+ background-image: url('../images/' + $retina_name) !important;
+ @include experimental-property(-webkit, background-size, $width $height);
+ }
+ @media (-o-min-device-pixel-ratio: 2) {
+ background-image: url('../images/' + $retina_name) !important;
+ @include experimental-property(-webkit, background-size, $width $height);
+ }
+ @media (min-device-pixel-ratio: 2) {
+ background-image: url('../images/' + $retina_name) !important;
+ @include experimental-property(-webkit, background-size, $width $height);
+ }
}
@mixin sprite($file, $type, $row:1, $col:1, $width: 16px, $height: 16px, $retina: false, $sprite_width: '', $sprite_height: '')

0 comments on commit 08849a1

Please sign in to comment.
Something went wrong with that request. Please try again.