From c28bae77080df2d20f051e8c75daec15e5d74c53 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 1 Aug 2023 09:12:43 +0800 Subject: [PATCH] Try prevent touch callout when long-press --- src/app.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app.css b/src/app.css index c20def3d..723e25dd 100644 --- a/src/app.css +++ b/src/app.css @@ -717,6 +717,12 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) { animation: appear 0.2s ease-out; -webkit-touch-callout: none; } +@media (pointer: coarse) { + .status-focus { + -webkit-tap-highlight-color: transparent; + -webkit-touch-callout: none; + } +} :is(.status-link, .status-focus):is(:focus, .is-active) { background-color: var(--link-bg-hover-color); outline-offset: -2px;