From: Marcel Werk Date: Mon, 6 May 2013 12:47:43 +0000 (+0200) Subject: Added styling for input placeholder X-Git-Tag: 2.0.0_Beta_1~251 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c18b325bcd2a2de628a9f882be784708fc40bb94;p=GitHub%2FWoltLab%2FWCF.git Added styling for input placeholder --- diff --git a/wcfsetup/install/files/style/form.less b/wcfsetup/install/files/style/form.less index e910b219bc..e431de9b1e 100644 --- a/wcfsetup/install/files/style/form.less +++ b/wcfsetup/install/files/style/form.less @@ -233,6 +233,16 @@ select[multiple] { border-style: solid; border-width: 1px; color: @wcfInputColor; + + &::-webkit-input-placeholder { /* WebKit browsers */ + color: lighten(@wcfInputColor, 20%); + } + &::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: lighten(@wcfInputColor, 20%); + } + &:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: lighten(@wcfInputColor, 20%); + } } /* hover */ diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index f9387cafa9..c7485940b6 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -138,6 +138,16 @@ &:focus { outline: 0; } + + &::-webkit-input-placeholder { /* WebKit browsers */ + color: darken(@wcfUserPanelColor, 20%); + } + &::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: darken(@wcfUserPanelColor, 20%); + } + &:-ms-input-placeholder { /* Internet Explorer 10+ */ + color: darken(@wcfUserPanelColor, 20%); + } } }