Created
April 30, 2018 12:05
-
-
Save omnichronous/eac3cfc90588aee1ffdc022e89acfb41 to your computer and use it in GitHub Desktop.
This file contains 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
.placeholder(@color) { | |
// WebKit, Blink, Edge | |
::-webkit-input-placeholder { | |
color: @color; | |
} | |
// Mozilla Firefox 4 to 18 | |
:-moz-placeholder { | |
opacity: 1; | |
color: @color; | |
} | |
// Mozilla Firefox 19+ | |
::-moz-placeholder { | |
opacity: 1; | |
color: @color; | |
} | |
// Internet Explorer 10-11 | |
:-ms-input-placeholder { | |
color: @color; | |
} | |
// Microsoft Edge | |
::-ms-input-placeholder { | |
color: @color; | |
} | |
// Most modern browsers support this now. | |
::placeholder { | |
color: @color; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment