Permalink
Browse files

Adding retina display support

  • Loading branch information...
1 parent 8b211e8 commit 7cef1c64d61d1c38b8d0614aea31aa5980ef5c94 @adamjgrant adamjgrant committed Jul 10, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 less/responsive-utilities.less
View
8 less/responsive-utilities.less
@@ -17,6 +17,8 @@
.hidden-phone { }
.hidden-tablet { }
.hidden-desktop { display: none !important; }
+.hidden-hd { display: inherit !important; }
+.visible-hd { display: none !important; }
// Phones only
@media (max-width: 767px) {
@@ -39,3 +41,9 @@
.hidden-desktop { display: inherit !important; }
.visible-desktop { display: none !important ; }
}
+
+// Retina display devices only
+@media all and (-webkit-min-device-pixel-ratio : 1.5) {
+ .hidden-hd { display: none !important; }
+ .visible-hd { display: inherit !important; }
+}

0 comments on commit 7cef1c6

Please sign in to comment.