MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Fix banner visibility |
Fix banner visibility with gradient |
||
| Line 1: | Line 1: | ||
/* OSRS Beige Background */ | /* OSRS Beige Background globally */ | ||
body, .mw-body { | body, .mw-body, html { | ||
background-color: #e5d8c5 !important; | background-color: #e5d8c5 !important; | ||
} | } | ||
/* | /* | ||
Vector legacy skin uses #mw-page-base at the absolute top of the page. | |||
We will put the banner image here and use a CSS gradient to fade it into the beige background. | |||
*/ | |||
#mw-page-base { | |||
display: block !important; | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
height: | height: 400px !important; | ||
background-image: url('/images/valen_banner.png'); | background-image: linear-gradient(to bottom, rgba(229,216,197,0) 40%, #e5d8c5 100%), url('/images/valen_banner.png'); | ||
background-position: center top; | background-position: center top; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: cover; | background-size: cover; | ||
- | z-index: 0; | ||
} | |||
z-index: | |||
/* The content area needs to be transparent at the top so the banner shows through */ | |||
#content { | |||
background-color: transparent !important; | |||
background-image: none !important; | |||
border: none; | |||
position: relative; | |||
z-index: 1; | |||
margin-top: 1.5em; /* standard offset */ | |||
} | } | ||
#mw-page- | /* Inside #content, the actual article body is .mw-body. We make it semi-transparent beige */ | ||
.mw-body { | |||
background-color: rgba(229, 216, 197, 0.85) !important; | |||
border: 1px solid #d1c1a6; | |||
border-radius: 5px; | |||
margin-top: 10px; | |||
padding: 1.25em 1.5em 1.5em 1.5em; | |||
} | |||
/* Hide the main page title header */ | |||
.page-Main_Page #firstHeading { | |||
display: none; | display: none; | ||
} | } | ||
#mw-head-base { | #mw-head-base { | ||
background: transparent; | background: transparent; | ||
| Line 33: | Line 54: | ||
#mw-head { | #mw-head { | ||
background: rgba(0, 0, 0, 0.4); | background: rgba(0, 0, 0, 0.4); | ||
z-index: 5; | |||
} | } | ||
#p-personal, #left-navigation, #right-navigation { | #p-personal, #left-navigation, #right-navigation { | ||
| Line 52: | Line 74: | ||
background-image: url('/images/windsofvalenlogo.ico') !important; | background-image: url('/images/windsofvalenlogo.ico') !important; | ||
background-size: contain; | background-size: contain; | ||
background-position: center; | |||
background- | |||
} | } | ||
| Line 70: | Line 81: | ||
background-color: transparent; | background-color: transparent; | ||
padding-top: 1em; | padding-top: 1em; | ||
z-index: 2; | |||
position: relative; | |||
} | } | ||
#p-logo { | #p-logo { | ||
| Line 81: | Line 94: | ||
.vector-menu-portal .vector-menu-content li a { | .vector-menu-portal .vector-menu-content li a { | ||
color: #4a3a25; | color: #4a3a25; | ||
} | } | ||
Revision as of 00:17, 11 July 2026
/* OSRS Beige Background globally */
body, .mw-body, html {
background-color: #e5d8c5 !important;
}
/*
Vector legacy skin uses #mw-page-base at the absolute top of the page.
We will put the banner image here and use a CSS gradient to fade it into the beige background.
*/
#mw-page-base {
display: block !important;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 400px !important;
background-image: linear-gradient(to bottom, rgba(229,216,197,0) 40%, #e5d8c5 100%), url('/images/valen_banner.png');
background-position: center top;
background-repeat: no-repeat;
background-size: cover;
z-index: 0;
}
/* The content area needs to be transparent at the top so the banner shows through */
#content {
background-color: transparent !important;
background-image: none !important;
border: none;
position: relative;
z-index: 1;
margin-top: 1.5em; /* standard offset */
}
/* Inside #content, the actual article body is .mw-body. We make it semi-transparent beige */
.mw-body {
background-color: rgba(229, 216, 197, 0.85) !important;
border: 1px solid #d1c1a6;
border-radius: 5px;
margin-top: 10px;
padding: 1.25em 1.5em 1.5em 1.5em;
}
/* Hide the main page title header */
.page-Main_Page #firstHeading {
display: none;
}
#mw-head-base {
background: transparent;
height: 0;
}
/* Make header tabs and search transparent so they sit on the banner */
#mw-head {
background: rgba(0, 0, 0, 0.4);
z-index: 5;
}
#p-personal, #left-navigation, #right-navigation {
background: transparent;
}
#p-personal ul li a, #left-navigation li a, #right-navigation li a {
color: #fff;
text-shadow: 1px 1px 2px black;
}
#p-search form, #simpleSearch {
background: rgba(255, 255, 255, 0.8);
}
.vector-menu-tabs li {
background: transparent;
}
/* Logo override */
#p-logo a, .mw-wiki-logo {
background-image: url('/images/windsofvalenlogo.ico') !important;
background-size: contain;
background-position: center;
}
/* Sidebar styling */
#mw-panel {
background-color: transparent;
padding-top: 1em;
z-index: 2;
position: relative;
}
#p-logo {
margin-bottom: 20px;
}
.vector-menu-portal .vector-menu-heading {
color: #332717;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}
.vector-menu-portal .vector-menu-content li a {
color: #4a3a25;
}