Use iOS selector properly

This commit is contained in:
Penar Musaraj 2024-10-10 10:38:54 -04:00
parent a41f05b343
commit 2fc48d274f
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7
1 changed files with 2 additions and 3 deletions

View File

@ -242,11 +242,10 @@ input[type="search"] {
// Safari hack to prevent scrolling when focusing an input
// See https://gist.github.com/kiding/72721a0553fa93198ae2bb6eefaa3299
// TODO: use a Safari iOS/iPadOS specific selector
.discourse-touch {
.ios-device {
input:focus,
textarea:focus {
animation: blink_input_opacity_to_prevent_scrolling_when_focus 0.05s;
animation: blink_input_opacity_to_prevent_scrolling_when_focus 0.01s;
}
}