MediaWiki:Vector.css: Difference between revisions

From Straftat Wiki
No edit summary
No edit summary
Line 2: Line 2:


/* Set the background image to fill the page and stay behind all content */
/* Set the background image to fill the page and stay behind all content */
body {
    background-image: url("straftat.png");
    background-color: #cccccc; /* Fallback color if the image doesn't load */
    background-repeat: no-repeat; /* Prevents repeating the image */
    background-size: cover; /* Ensures the image fills the entire page */
    background-position: center center; /* Centers the image on the page */
    background-attachment: fixed; /* Keeps the background in place when scrolling */
}
/* Ensure that all content sections use transparent backgrounds to show the page background */
#content,
#mw-content-text,
#p-logo,
.vector-menu-content,
.vector-body,
#footer {
    background-color: transparent;
}

Revision as of 04:26, 10 December 2024

/* All CSS here will be loaded for users of the Vector skin */

/* Set the background image to fill the page and stay behind all content */