Skip to content

Commit

Permalink
Hide footer when input are beeing focused on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Oct 14, 2024
1 parent d4ba7db commit 682a4df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ Colonne: ${colno}

// Empêche l'affichage de l'erreur dans la console du navigateur
event.preventDefault();
});
});
6 changes: 6 additions & 0 deletions styles/contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@
font-size: 16px;
}
}

@media (pointer: coarse) {
.contact-form:focus-within ~ .footer {
display: none;
}
}

0 comments on commit 682a4df

Please sign in to comment.