Last active
December 17, 2015 13:39
-
-
Save zesda/5618612 to your computer and use it in GitHub Desktop.
Very simple Input Placeholder Mixin for SASS. Allow styling of an <input> placeholder. Support for: Webkit browsers, Mozilla Firefox 4 to 18, Mozilla Firefox 19+, IE 10+.
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
/** | |
* Usage example: | |
* | |
* input { | |
* @include placeholder { | |
* // styles | |
* } | |
* } | |
*/ | |
@mixin input-placeholder { | |
&::-webkit-input-placeholder { @content } | |
&:-moz-placeholder { @content } | |
&::-moz-placeholder { @content } | |
&:-ms-input-placeholder { @content } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment