mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 19:15:05 +01:00
Fixed flares
This commit is contained in:
parent
a362559d9c
commit
bb147a1367
@ -69,7 +69,7 @@ function Light(props: FlareProps) {
|
|||||||
},
|
},
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `radial-gradient(circle at center, rgba(var(${cssVar}), 1), rgba(var(${cssVar}), 0) 70%)`,
|
backgroundImage: `radial-gradient(circle at center, rgba(var(${cssVar}) / 1), rgba(var(${cssVar}) / 0) 70%)`,
|
||||||
backgroundPosition: `var(--bg-x) var(--bg-y)`,
|
backgroundPosition: `var(--bg-x) var(--bg-y)`,
|
||||||
backgroundRepeat: "no-repeat",
|
backgroundRepeat: "no-repeat",
|
||||||
backgroundSize: `${size.toFixed(0)}px ${size.toFixed(0)}px`,
|
backgroundSize: `${size.toFixed(0)}px ${size.toFixed(0)}px`,
|
||||||
@ -85,7 +85,7 @@ function Light(props: FlareProps) {
|
|||||||
<div
|
<div
|
||||||
className="absolute inset-0 opacity-10"
|
className="absolute inset-0 opacity-10"
|
||||||
style={{
|
style={{
|
||||||
background: `radial-gradient(circle at center, rgba(var(${cssVar}), 1), rgba(var(${cssVar}), 0) 70%)`,
|
background: `radial-gradient(circle at center, rgba(var(${cssVar}) / 1), rgba(var(${cssVar}) / 0) 70%)`,
|
||||||
backgroundPosition: `var(--bg-x) var(--bg-y)`,
|
backgroundPosition: `var(--bg-x) var(--bg-y)`,
|
||||||
backgroundRepeat: "no-repeat",
|
backgroundRepeat: "no-repeat",
|
||||||
backgroundSize: `${size.toFixed(0)}px ${size.toFixed(0)}px`,
|
backgroundSize: `${size.toFixed(0)}px ${size.toFixed(0)}px`,
|
||||||
|
Loading…
Reference in New Issue
Block a user