MediaWiki:Vector.css: Difference between revisions

From Straftat Wiki
No edit summary
css fix
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Vector skin */
/* All CSS here will be loaded for users of the Vector skin */
#mw-page-base,
#mw-content-container {
    background-color: #b39662;
}


/* Adjust the sidebar background for consistency */
/* Set the background image to fill the page and stay behind all content */
#mw-panel {
body.skin-vector {
     background-color: #b39662;
     background: url('/straftat.png') no-repeat center center fixed;
}
     background-size: cover;
 
/* Header adjustments */
#mw-header,
#p-personal,
#p-search {
     background-color: #b39662;
}
}


/* Ensure the footer is also consistent */
body.skin-vector-legacy::before {
#footer {
    content: "";
     background-color: #b39662;
    width: 100%;
    height: 100%;
     background-color: var(--background-color-base);
    position: fixed;
    z-index: -1;
}
}


/* Optional: If the main content is nested within a white box */
:root {
#content,
     --background-color-base: #fffa;
#bodyContent {
     background-color: transparent; /* Allow the background to show through */
    border: none; /* Remove any borders, if applicable */
}
}
/* Additional adjustments for Vector 2022 */
.skin-vector-2022 #mw-navigation {
    background-color: #b39662;
}
/* Set the background image to fill the page and stay behind all content */

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;
}