Skip to content

Commit

Permalink
Merge pull request fancyapps#564 from chrismbarr/patch-1
Browse files Browse the repository at this point in the history
Add retina graphics for sprite & loader
  • Loading branch information
fancyapps committed Jun 12, 2013
2 parents 90c3f43 + f8b0bcf commit 4a8113b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Binary file modified source/fancybox_loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions source/jquery.fancybox.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,20 @@
padding: 10px;
background: #000;
background: rgba(0, 0, 0, .8);
}

/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('[email protected]');
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
}

#fancybox-loading div {
background-image: url('[email protected]');
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
}
}
Binary file added sprite.psd
Binary file not shown.

0 comments on commit 4a8113b

Please sign in to comment.