MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→Clear Vector skin defaults: .mw-body, .skin-vector .mw-body, .mw-page-container { background: none !important; background-color: transparent !important; } →Base body styles: body.skin-vector { background-color: #1a1a1a !important; color: #e0e0e0 !important; font-family: 'Georgia', serif !important; } →Main Page with image: body.skin-vector.page-Main_Page { background-color: #1a1a1a !important; →Fallback: background-image: ur..." |
No edit summary |
||
| Line 12: | Line 12: | ||
} | } | ||
/* Main Page with image */ | /* Main Page with image and overlay */ | ||
body.skin-vector.page-Main_Page { | body.skin-vector.page-Main_Page { | ||
background-color: #1a1a1a !important; | background-color: #1a1a1a !important; | ||
background-image: url('https://sunderingthegodswiki.com/images/e/e4/STG_Wiki_Background.jpg') !important; | background-image: url('https://sunderingthegodswiki.com/images/e/e4/STG_Wiki_Background.jpg') !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
| Line 20: | Line 20: | ||
background-size: cover !important; | background-size: cover !important; | ||
background-attachment: fixed !important; | background-attachment: fixed !important; | ||
} | |||
body.skin-vector.page-Main_Page::before { | |||
content: ''; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background: rgba(0, 0, 0, 0.4); /* Adjust opacity (0.2 to 0.6) as needed */ | |||
z-index: -1; | |||
} | } | ||
Revision as of 22:36, 4 April 2025
/* Clear Vector skin defaults */
.mw-body, .skin-vector .mw-body, .mw-page-container {
background: none !important;
background-color: transparent !important;
}
/* Base body styles */
body.skin-vector {
background-color: #1a1a1a !important;
color: #e0e0e0 !important;
font-family: 'Georgia', serif !important;
}
/* Main Page with image and overlay */
body.skin-vector.page-Main_Page {
background-color: #1a1a1a !important;
background-image: url('https://sunderingthegodswiki.com/images/e/e4/STG_Wiki_Background.jpg') !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: cover !important;
background-attachment: fixed !important;
}
body.skin-vector.page-Main_Page::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4); /* Adjust opacity (0.2 to 0.6) as needed */
z-index: -1;
}