Created
December 22, 2017 02:51
-
-
Save wycliffepeart/244e15ef95afa1ee3f76ccb3ba0aa2b9 to your computer and use it in GitHub Desktop.
form input placeholder color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
outline: none; | |
padding: 12px; | |
border-radius: 3px; | |
border: 1px solid black; | |
} | |
::-webkit-input-placeholder { /* Chrome */ | |
color: red; | |
transition: opacity 250ms ease-in-out; | |
} | |
:focus::-webkit-input-placeholder { | |
opacity: 0.5; | |
} | |
:-ms-input-placeholder { /* IE 10+ */ | |
color: red; | |
transition: opacity 250ms ease-in-out; | |
} | |
:focus:-ms-input-placeholder { | |
opacity: 0.5; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: red; | |
opacity: 1; | |
transition: opacity 250ms ease-in-out; | |
} | |
:focus::-moz-placeholder { | |
opacity: 0.5; | |
} | |
:-moz-placeholder { /* Firefox 4 - 18 */ | |
color: red; | |
opacity: 1; | |
transition: opacity 250ms ease-in-out; | |
} | |
:focus:-moz-placeholder { | |
opacity: 0.5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment