Created
March 7, 2021 02:27
-
-
Save niikkiin/366d88ae4d728366a419240262d5dd25 to your computer and use it in GitHub Desktop.
Placeholder mixins
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
/* | |
SECTION PLACEHOLDERS MIXINS | |
Usage: | |
input { | |
@include placeholder { | |
//STYLES here | |
} | |
} | |
Output | |
input::-webkit-input-placeholder { | |
//STYLES here | |
} | |
input:-moz-placeholder { | |
//STYLES here | |
} | |
input::-moz-placeholder { | |
//STYLES here | |
} | |
input:-ms-input-placeholder { | |
//STYLES here | |
} | |
}*/ | |
@mixin 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