Skip to content

Commit

Permalink
Added support for retina graphics in Opera and Firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfinley committed Jul 17, 2012
1 parent 490687c commit 08849a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _mixins.scss
Expand Up @@ -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: '')
Expand Down

0 comments on commit 08849a1

Please sign in to comment.