Fix background image overlay - Combined background and overlay into single CSS property
This commit is contained in:
@@ -455,7 +455,7 @@ const EventAdmin: React.FC = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
minHeight: '100vh',
|
minHeight: '100vh',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundImage: event?.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
|
backgroundImage: event?.wallpaper ? `linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
@@ -464,16 +464,6 @@ const EventAdmin: React.FC = () => {
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
py: 4,
|
py: 4,
|
||||||
'&::before': event?.wallpaper ? {
|
|
||||||
content: '""',
|
|
||||||
position: 'fixed',
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
||||||
zIndex: 0,
|
|
||||||
} : {},
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Container maxWidth="lg" sx={{ position: 'relative', zIndex: 1 }}>
|
<Container maxWidth="lg" sx={{ position: 'relative', zIndex: 1 }}>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ const EventView: React.FC = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
minHeight: '100vh',
|
minHeight: '100vh',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundImage: event?.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
|
backgroundImage: event?.wallpaper ? `linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)',
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
@@ -146,16 +146,6 @@ const EventView: React.FC = () => {
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
py: 4,
|
py: 4,
|
||||||
'&::before': event?.wallpaper ? {
|
|
||||||
content: '""',
|
|
||||||
position: 'fixed',
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
||||||
zIndex: 0,
|
|
||||||
} : {},
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Container maxWidth="lg" sx={{ position: 'relative', zIndex: 1 }}>
|
<Container maxWidth="lg" sx={{ position: 'relative', zIndex: 1 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user