feat: add opt-in pinch to zoom setting (#1557)

This commit is contained in:
Joaquín Sánchez 2023-02-01 15:43:27 +01:00 committed by GitHub
parent 22fea9d53a
commit 4c054a37fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 0 deletions

View file

@ -186,6 +186,11 @@ html {
--at-apply: bg-base text-base;
}
html:not(.enable-pinch-to-zoom) body {
/* Prevent arbitrary zooming on mobile devices */
touch-action: pan-x pan-y;
}
.sparkline--fill {
fill: var(--c-primary-active);
opacity: 0.2;