Skip to content

Commit

Permalink
Merge pull request #52 from jjandoc/patch-1
Browse files Browse the repository at this point in the history
Use same media query as jQuery Mobile framework css to detect for hi-res
  • Loading branch information
Code Computerlove committed Jul 13, 2011
2 parents 7e7f7f8 + a298e92 commit 2e48121
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/photoswipe.css
Expand Up @@ -146,12 +146,17 @@ div.ps-toolbar-play div.ps-toolbar-content
background-position: -88px 0; background-position: -88px 0;
} }


/* Hi-res retina display */ /* Hi-res display */
@media only screen and (-webkit-min-device-pixel-ratio: 2) @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-resolution: 240dpi)
{ {
div.ps-toolbar div div.ps-toolbar-content div.ps-toolbar div div.ps-toolbar-content
{ {
-moz-background-size: 176px 88px;
-o-background-size: 176px 88px;
-webkit-background-size: 176px 88px; -webkit-background-size: 176px 88px;
background-size: 176px 88px;
background-image: url(photoswipe-icons@2x.png); background-image: url(photoswipe-icons@2x.png);
} }
} }

0 comments on commit 2e48121

Please sign in to comment.