From d61e263e0e11da84a1b7b674bdcc8b526f615f52 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 17 Jun 2019 21:04:10 +0100 Subject: [PATCH] Updated CSS hack for Chrome and Safari only Avoids this CSS being applied to other browers such as Firefox and IE where it causes tree misalignment of dirs --- lib/file-types.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/file-types.css b/lib/file-types.css index 226f88d..5ed3e9f 100644 --- a/lib/file-types.css +++ b/lib/file-types.css @@ -17,9 +17,9 @@ } .fileManager LI.dirOpen:before {background-position: -16px 0} -@media screen and (-webkit-min-device-pixel-ratio:0) { /* hacked for chrome and safari */ +@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) { /* hacked for chrome and safari */ .fileManager LI.pft-directory:before, .fileManager LI.pft-file:before { margin-top: -19px; } } -.fileManager LI.pft-file:before {background-position: -32px 0} \ No newline at end of file +.fileManager LI.pft-file:before {background-position: -32px 0}