Remove mobile tap highlight

This commit is contained in:
Codex 2026-09-07 20:28:50 +00:00
parent d2ee5b96b4
commit b23e42e54b
2 changed files with 17 additions and 3 deletions

View file

@ -6,7 +6,7 @@
<meta name="color-scheme" content="dark" /> <meta name="color-scheme" content="dark" />
<meta name="theme-color" content="#111111" /> <meta name="theme-color" content="#111111" />
<title>Пожитки</title> <title>Пожитки</title>
<link rel="stylesheet" href="./styles.css?v=4" /> <link rel="stylesheet" href="./styles.css?v=5" />
<script src="./telegram-web-app.js"></script> <script src="./telegram-web-app.js"></script>
<script src="./app.js?v=4" defer></script> <script src="./app.js?v=4" defer></script>
</head> </head>

View file

@ -15,7 +15,10 @@
background: var(--bg); background: var(--bg);
} }
* { box-sizing: border-box; } * {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html, body { margin: 0; min-height: 100%; background: var(--bg); } html, body { margin: 0; min-height: 100%; background: var(--bg); }
@ -47,7 +50,18 @@ body::after {
} }
button, input, select { font: inherit; color: inherit; } button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; } button {
cursor: pointer;
appearance: none;
-webkit-appearance: none;
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
}
button:focus { outline: none; }
button:focus-visible { outline: 2px solid rgba(255, 255, 255, .72); outline-offset: 2px; }
button:active { filter: brightness(.88); }
.shell { width: min(100%, 560px); margin: 0 auto; } .shell { width: min(100%, 560px); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 26px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); } .topbar { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 26px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }