Skip to content

Instantly share code, notes, and snippets.

@ShanonJackson
Created May 9, 2020 01:32
Show Gist options
  • Save ShanonJackson/74e45894d0d0dbce28b6142f044d0e0c to your computer and use it in GitHub Desktop.
Save ShanonJackson/74e45894d0d0dbce28b6142f044d0e0c to your computer and use it in GitHub Desktop.
.input {
&:empty:before {
content: attr(data-placeholder);
color: lightgrey;
}
/* IE / Edge */
_:-ms-lang(x),
&:empty:focus:before {
content: unset;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment