From a59680430955ff4a0a546d4ced279c153cbea6f9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 7 Jan 2016 20:30:03 +0100 Subject: [PATCH] Added placeholder color --- wcfsetup/install/files/style/layout/form.scss | 20 +++++++++++++++++++ wcfsetup/setup/db/install.sql | 1 + 2 files changed, 21 insertions(+) diff --git a/wcfsetup/install/files/style/layout/form.scss b/wcfsetup/install/files/style/layout/form.scss index 195e417695..755a1e9c7b 100644 --- a/wcfsetup/install/files/style/layout/form.scss +++ b/wcfsetup/install/files/style/layout/form.scss @@ -33,6 +33,26 @@ textarea { } } +/* set placeholder color */ +input[type="date"], +input[type="datetime"], +input[type="email"], +input[type="number"], +input[type="password"], +input[type="search"], +input[type="text"], +input[type="url"] { + &::-webkit-input-placeholder { /* WebKit browsers */ + color: $wcfInputPlaceholderText; + } + &::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: $wcfInputPlaceholderText; + } + &:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: $wcfInputPlaceholderText; + } +} + textarea[readonly] { background-color: $wcfInputDisabledBackground !important; border-color: $wcfInputDisabledBorder !important; diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 4ecf5da30c..024e7ac4e0 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -2046,6 +2046,7 @@ INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfInputDi INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfInputDisabledText', 'rgba(125, 130, 100, 1)'); INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfInputText', 'rgba(44, 62, 80, 1)'); INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfInputTextActive', 'rgba(44, 62, 80, 1)'); +INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfInputPlaceholderText', 'rgba(169, 169, 169, 1)'); INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfLayoutFixedWidth', '1200px'); INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfLayoutMaxWidth', '1400px'); INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfLayoutMinWidth', '980px'); -- 2.20.1