Skip to content

Instantly share code, notes, and snippets.

@ryanburgess
Created December 9, 2013 19:38
Show Gist options
  • Save ryanburgess/7879429 to your computer and use it in GitHub Desktop.
Save ryanburgess/7879429 to your computer and use it in GitHub Desktop.
Change the default input field placeholder text with the placeholder color SASS mixin.
// -----------------------------------------
// Change placeholder text color
// -------------------------------------------
// example: @include placeholder-color(#333);
@mixin placeholder-color($color){
&.placeholder{
color: $color
}
&:-moz-placeholder{
color: $color
}
&::-webkit-input-placeholder{
color: $color
}
&:-ms-input-placeholder{
color: $color
}
}
@caleywoods
Copy link

Used this today - Thanks.

@jovan7
Copy link

jovan7 commented Jul 4, 2017

that's what i need
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment