From 50748069f8dc2d35fac63dd17101070450b1d2d4 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 23 Jul 2014 12:09:11 +0100 Subject: [PATCH] Don't just use webkit retina detection: --- .../web/public/stylesheets/components/navbar.less | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/services/web/public/stylesheets/components/navbar.less b/services/web/public/stylesheets/components/navbar.less index b93ea3a806..23158c29d4 100755 --- a/services/web/public/stylesheets/components/navbar.less +++ b/services/web/public/stylesheets/components/navbar.less @@ -378,11 +378,16 @@ padding: 0; width: 135px; } - - @media(-webkit-min-device-pixel-ratio: 2) { - .navbar-brand { - background-image: url('/img/logo@2x.png'); - } + @media + only screen and (-webkit-min-device-pixel-ratio: 2), + only screen and ( min--moz-device-pixel-ratio: 2), + only screen and ( -o-min-device-pixel-ratio: 2/1), + only screen and ( min-device-pixel-ratio: 2), + only screen and ( min-resolution: 192dpi), + only screen and ( min-resolution: 2dppx) { + .navbar-brand { + background-image: url('/img/logo@2x.png'); + } } .navbar-text {