mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-03 20:29:05 +02:00
fix: disable skew-y-[-18deg] in gecko browsers (#962)
Firefox/Gecko suffers severe scrolling jank on the documentation pages because of the large decorative SVG in the page header. The SVG uses both: - `mix-blend-mode: overlay` - `transform: skewY(-18deg)` Removing only the transform (`skew-y-[-18deg]`) for firefox-base browsers makes scrolling smooth immediately. Reproduced in: - Firefox on Windows - Zen on Windows - Zen on macOS Chromium is unaffected.
This commit is contained in:
@@ -15,7 +15,17 @@ export function HeroPattern() {
|
|||||||
[7, 3],
|
[7, 3],
|
||||||
[10, 6],
|
[10, 6],
|
||||||
]}
|
]}
|
||||||
className="absolute inset-x-0 inset-y-[-50%] h-[200%] w-full skew-y-[-18deg] fill-black/40 stroke-black/50 mix-blend-overlay dark:fill-white/2.5 dark:stroke-white/5"
|
className="absolute
|
||||||
|
inset-x-0
|
||||||
|
inset-y-[-50%]
|
||||||
|
h-[200%]
|
||||||
|
w-full
|
||||||
|
skew-y-[-18deg]
|
||||||
|
supports-[(-moz-appearance:none)]:skew-y-0
|
||||||
|
fill-black/40
|
||||||
|
stroke-black/50
|
||||||
|
mix-blend-overlay
|
||||||
|
dark:fill-white/2.5 dark:stroke-white/5"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="absolute inset-x-0 top-0 h-[25rem] dark:[mask-image:linear-gradient(white,transparent)] pointer-events-none z-10">
|
<div className="absolute inset-x-0 top-0 h-[25rem] dark:[mask-image:linear-gradient(white,transparent)] pointer-events-none z-10">
|
||||||
|
|||||||
Reference in New Issue
Block a user