Skip to content

Instantly share code, notes, and snippets.

@bartcis
Last active May 12, 2019 10:00
Show Gist options
  • Save bartcis/fff0ef8684cbf20e309a404cf93c3ee2 to your computer and use it in GitHub Desktop.
Save bartcis/fff0ef8684cbf20e309a404cf93c3ee2 to your computer and use it in GitHub Desktop.
Invaild status placeholde fix
// Zmodyfikowany styl
.form__field__input:invalid + .form__field__label {
top: -.5rem;
font-size: .6rem;
}
// Oryginalny styl - reset modyfikacji jeśli placeholder istnieje
.form__field__input:placeholder-shown + .form__field__label {
top: .35rem;
font-size: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment