From 09482aed7b085f99792216d88a57957011eb4361 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 14 Apr 2018 10:24:39 +0300 Subject: [PATCH] Update placeholder rules for modern browsers --- client/css/style.css | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index a362209d..17771103 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -7,6 +7,16 @@ --link-color: #50a656; } +/* Samsung Internet <7.0 and Microsoft Edge support (yes, both of them use webkit prefix) */ +::-webkit-input-placeholder { + color: rgba(0, 0, 0, 0.35); +} + +::placeholder { + color: rgba(0, 0, 0, 0.35); + opacity: 1; /* fix opacity in Firefox */ +} + html, body { height: 100%; @@ -180,19 +190,6 @@ kbd { max-width: 600px; } -::-moz-placeholder { - color: rgba(0, 0, 0, 0.35); - opacity: 1; -} - -::-webkit-input-placeholder { - color: rgba(0, 0, 0, 0.35); -} - -:-ms-input-placeholder { - color: rgba(0, 0, 0, 0.35) !important; -} - #js-copy-hack, #loading pre, #help,