Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #52 from jjandoc/patch-1

Use same media query as jQuery Mobile framework css to detect for hi-res
  • Loading branch information...
commit 2e481214c741bd3a906528cb01f30787dd3e629a 2 parents 7e7f7f8 + a298e92
Code Computerlove authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/photoswipe.css
View
9 src/photoswipe.css
@@ -146,12 +146,17 @@ div.ps-toolbar-play div.ps-toolbar-content
background-position: -88px 0;
}
-/* Hi-res retina display */
-@media only screen and (-webkit-min-device-pixel-ratio: 2)
+/* Hi-res display */
+@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
{
+ -moz-background-size: 176px 88px;
+ -o-background-size: 176px 88px;
-webkit-background-size: 176px 88px;
+ background-size: 176px 88px;
background-image: url(photoswipe-icons@2x.png);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.