Skip to content

Instantly share code, notes, and snippets.

@jayllellis
Last active September 20, 2018 19:08
Show Gist options
  • Save jayllellis/d111a5ea87a487078f882e8ee70f762a to your computer and use it in GitHub Desktop.
Save jayllellis/d111a5ea87a487078f882e8ee70f762a to your computer and use it in GitHub Desktop.
Change placeholder colour
input[type="text"]::-webkit-input-placeholder{ /* Chrome/Opera/Safari */
color: pink;
}
input[type="text"]::-moz-placeholder { /* Firefox 19+ */
color: pink;
}
input[type="text"]:-ms-input-placeholder { /* IE 10+ */
color: pink;
}
input[type="text"]:-moz-placeholder { /* Firefox 18- */
color: pink;
}
input[type="text"]{
&::-webkit-input-placeholder{ /* Chrome/Opera/Safari */
color: pink;
}
&::-moz-placeholder { /* Firefox 19+ */
color: pink;
}
&:-ms-input-placeholder { /* IE 10+ */
color: pink;
}
&:-moz-placeholder { /* Firefox 18- */
color: pink;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment