Skip to content

Commit f26d592

Browse files
committed
Add missing Webkit prefixes for older Chrome.
1 parent 425a13a commit f26d592

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/index-page/hero.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ function HeroStripes() {
4747
className="relative h-full bg-gradient-to-b from-pri-base to-pri-lighter opacity-0 transition-opacity duration-[1.5s] [mask-position:center_12%] [mask-size:110%] data-[loaded=true]:opacity-100 dark:to-pri-base sm:[mask-size:auto_300%] lg:[mask-position:7%_7%] lg:[mask-size:200%]"
4848
style={{
4949
maskImage: `url(${logoBlurred.src})`,
50+
WebkitMaskImage: `url(${logoBlurred.src})`,
5051
maskRepeat: "no-repeat",
52+
WebkitMaskRepeat: "no-repeat",
5153
}}
5254
/>
5355
<StripesDecoration

src/components/navbar/navbar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ export function Navbar({ items }: NavBarProps): ReactElement {
223223
}
224224

225225
function BackdropBlur() {
226-
const mask = "linear-gradient(to bottom, #000 0% 50%, transparent 50% 100%)"
227226
const thickness = "1px"
227+
228+
const mask = "linear-gradient(to bottom, #000 0% 50%, transparent 50% 100%)"
229+
const edgeMask = `linear-gradient(to bottom, black 0, black ${thickness}, transparent ${thickness})`
228230
return (
229231
<>
230232
<div
@@ -240,7 +242,8 @@ function BackdropBlur() {
240242
className="pointer-events-none absolute inset-0 h-full translate-y-full bg-white/10"
241243
style={{
242244
backdropFilter: "blur(8px) brightness(120%) saturate(113%)",
243-
maskImage: `linear-gradient(to bottom, black 0, black ${thickness}, transparent ${thickness})`,
245+
maskImage: edgeMask,
246+
WebkitMaskImage: edgeMask,
244247
}}
245248
/>
246249
</>

0 commit comments

Comments
 (0)