From 9f9fca02e503add35dec79844c6c54520630c3b5 Mon Sep 17 00:00:00 2001 From: Jeremy O'Brien Date: Mon, 4 Nov 2019 08:19:13 -0500 Subject: [PATCH] fix: use a css class for the pixelated property, since apparently this still isn't standardized among different browsers Signed-off-by: Jeremy O'Brien --- pwnagotchi/ui/web.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/web.py b/pwnagotchi/ui/web.py index e4afdd6..561c1e3 100644 --- a/pwnagotchi/ui/web.py +++ b/pwnagotchi/ui/web.py @@ -30,6 +30,16 @@ STYLE = """ cursor: pointer; text-align: center; } +.pixelated { + image-rendering:optimizeSpeed; /* Legal fallback */ + image-rendering:-moz-crisp-edges; /* Firefox */ + image-rendering:-o-crisp-edges; /* Opera */ + image-rendering:-webkit-optimize-contrast; /* Safari */ + image-rendering:optimize-contrast; /* CSS3 Proposed */ + image-rendering:crisp-edges; /* CSS4 Proposed */ + image-rendering:pixelated; /* CSS4 Proposed */ + -ms-interpolation-mode:nearest-neighbor; /* IE8+ */ +} """ SCRIPT = """ @@ -48,8 +58,8 @@ INDEX = """ -
- +
+