MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Background video wrapper takes up full screen */ | |||
#bg-video-wrapper { | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
height: 100vh; | |||
width: 100vw; | |||
overflow: hidden; | |||
z-index: -2; | |||
} | |||
/* Video fills wrapper properly and remains scaled */ | |||
#bg-video { | #bg-video { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
object-fit: contain; | object-fit: contain; /* ensure full video is visible */ | ||
object-position: center center; | |||
pointer-events: none; | |||
opacity: 0.3; | opacity: 0.3; | ||
} | } |
Revision as of 15:10, 1 May 2025
/* Background video wrapper takes up full screen */
#bg-video-wrapper {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
overflow: hidden;
z-index: -2;
}
/* Video fills wrapper properly and remains scaled */
#bg-video {
width: 100%;
height: 100%;
object-fit: contain; /* ensure full video is visible */
object-position: center center;
pointer-events: none;
opacity: 0.3;
}