MediaWiki:Common.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
#bg-video {
#bg-video {
     position: fixed;
     position: fixed;
     top: 0;
     top: 50%;
     left: 0;
     left: 50%;
     width: 100vw;
    transform: translate(-50%, -50%);
     height: 100vh;
     width: 100%;
     object-fit: contain; /* <-- was cover */
     height: 100%;
     object-fit: contain;
     z-index: -1;
     z-index: -1;
     opacity: 0.3;
     opacity: 0.3;
     pointer-events: none;
     pointer-events: none;
     background-color: black; /* fills empty space */
     background-color: black;
}
}

Revision as of 15:08, 1 May 2025

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    background-color: black;
}