Skip to content

Commit

Permalink
fix(a11y): allow pinch to zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jan 29, 2023
1 parent e197a1d commit eb42d7a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,6 @@ html {
--at-apply: bg-base text-base;
}

body {
/* Prevent arbitrary zooming on mobile devices */
touch-action: pan-x pan-y;
}

.sparkline--fill {
fill: var(--c-primary-active);
opacity: 0.2;
Expand All @@ -214,8 +209,8 @@ footer {
clip-path: url(#avatar-mask);
}

/*
Grayscale mode
/*
Grayscale mode
Setting each element filter to a different var
allows controlling them individually
*/
Expand All @@ -230,7 +225,7 @@ allows controlling them individually
[data-mode="grayscale"] .poll-wrapper {
filter: grayscale(var(--poll-grayscale, 1));
}
[data-mode="grayscale"] .status-actions,
[data-mode="grayscale"] .status-actions,
[data-mode="grayscale"] .status-boosted {
filter: grayscale(var(--status-grayscale, 1));
}
Expand Down

0 comments on commit eb42d7a

Please sign in to comment.