From 20c252e5c6f8181bf3e6f8aeced0cc7277030d54 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Fri, 14 Apr 2017 12:45:45 +0200 Subject: [PATCH] fix placeholder styling in safari --- www/poll/poll.css | 3 +++ www/poll/poll.less | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/www/poll/poll.css b/www/poll/poll.css index 321121b59..030b8898e 100644 --- a/www/poll/poll.css +++ b/www/poll/poll.css @@ -32,6 +32,9 @@ textarea[disabled] { font: white; border: 0px; } +input[type="text"]::placeholder { + color: #333; +} table#table { margin: 0px; } diff --git a/www/poll/poll.less b/www/poll/poll.less index 7292b0e15..2ae85c25c 100644 --- a/www/poll/poll.less +++ b/www/poll/poll.less @@ -3,6 +3,7 @@ @poll-th-bg: #aaa; @poll-td-bg: #aaa; +@poll-placeholder: #333; @poll-border-color: #555; @poll-cover-color: #000; @poll-fg: #000; @@ -42,6 +43,14 @@ input[type="text"][disabled], textarea[disabled] { font: white; border: 0px; } + +// The placeholder color only seems to effect Safari when not set, but +// setting others just in case. + +input[type="text"]::placeholder { + color: @poll-placeholder; +} + table#table { margin: 0px; }