MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
padding: 1em; | padding: 1em; | ||
border-radius: 8px; | border-radius: 8px; | ||
} | |||
/* Vignette + Bottom Gradient Overlay */ | |||
body::before { | |||
content: ""; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100vw; | |||
height: 100vh; | |||
z-index: -1; | |||
pointer-events: none; | |||
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.0) 40%, rgba(0, 0, 0, 0.4) 100%), | |||
linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.5) 100%); | |||
} | } |
Revision as of 21:15, 1 May 2025
#bg-video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
object-fit: cover;
object-position: center 50%; /* shifts the video down */
pointer-events: none;
opacity: 0.3;
}
#content, .mw-body, .mw-body-content {
background-color: #ffffff; /* or dark like #1a1a1a for dark mode */
color: #000; /* adjust if you're in dark mode */
padding: 1em;
border-radius: 8px;
}
/* Vignette + Bottom Gradient Overlay */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
pointer-events: none;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.0) 40%, rgba(0, 0, 0, 0.4) 100%),
linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.5) 100%);
}