From d09433b4f11a44fe23b9b6e9415a1011296d6a8d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 26 Aug 2021 20:20:51 +0200 Subject: Explicitly set placeholder color for admin theme Explicitly set the placeholder color and opacity for the form fields of the admin theme as the various browsers are using different defaults. --- theme/admin/rsrc/css/bright.css | 8 ++++++++ theme/admin/rsrc/css/dark.css | 8 ++++++++ theme/admin/rsrc/css/import/_styles.scss | 8 ++++++++ 3 files changed, 24 insertions(+) (limited to 'theme/admin') diff --git a/theme/admin/rsrc/css/bright.css b/theme/admin/rsrc/css/bright.css index 3f76207..d9ffd14 100644 --- a/theme/admin/rsrc/css/bright.css +++ b/theme/admin/rsrc/css/bright.css @@ -52,6 +52,14 @@ color: #000; } +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Placeholders +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +::placeholder { + color: #444; + opacity: 0.5; +} + /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Scrollbars ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ diff --git a/theme/admin/rsrc/css/dark.css b/theme/admin/rsrc/css/dark.css index 3d5b883..8472aab 100644 --- a/theme/admin/rsrc/css/dark.css +++ b/theme/admin/rsrc/css/dark.css @@ -52,6 +52,14 @@ color: #000; } +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Placeholders +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +::placeholder { + color: #8D9AA7; + opacity: 0.5; +} + /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Scrollbars ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ diff --git a/theme/admin/rsrc/css/import/_styles.scss b/theme/admin/rsrc/css/import/_styles.scss index b499700..421aaac 100644 --- a/theme/admin/rsrc/css/import/_styles.scss +++ b/theme/admin/rsrc/css/import/_styles.scss @@ -11,6 +11,14 @@ color: #000; } +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Placeholders +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +::placeholder { + color: $textColorLight; + opacity: 0.5; +} + /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Scrollbars ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -- cgit v1.2.3