MediaWiki:Vector.css: Difference between revisions

From Straftat Wiki
No edit summary
css fix
 
(5 intermediate revisions by the same user not shown)
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 {
body.skin-vector {
     background-image: url("straftat.png");
     background: url('/straftat.png') no-repeat center center fixed;
    background-color: #cccccc; /* Fallback color if the image doesn't load */
     background-size: cover;
    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 */
body.skin-vector-legacy::before {
#content,
    content: "";
#mw-content-text,
    width: 100%;
#p-logo,
    height: 100%;
.vector-menu-content,
    background-color: var(--background-color-base);
.vector-body,
    position: fixed;
#footer {
    z-index: -1;
     background-color: transparent;
}
 
:root {
     --background-color-base: #fffa;
}
}

Latest revision as of 11:15, 18 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 */
body.skin-vector {
    background: url('/straftat.png') no-repeat center center fixed;
    background-size: cover;
}

body.skin-vector-legacy::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--background-color-base);
    position: fixed;
    z-index: -1;
}

:root {
    --background-color-base: #fffa;
}