MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Override MediaWiki Dark Mode variables to force OSRS Beige */
:root, html {
--color-surface: #e5d8c5 !important;
--color-base: #332717 !important;
--background-color-base: #e5d8c5 !important;
--background-color-interactive: transparent !important;
--color-text: #332717 !important;
background-color: #e5d8c5 !important;
}
/* Center the entire Wiki on large screens like OSRS does */
body {
background-color: #e5d8c5 !important;
color: #332717 !important;
max-width: 1300px !important;
margin: 0 auto !important;
position: relative !important;
box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Nice shadow on the edges */
}
/*
The banner image that spans the entire top of the centered body
*/
#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) 60%, #e5d8c5 100%), url('/images/valen_banner.png') !important;
background-position: center top !important;
background-repeat: no-repeat !important;
background-size: cover !important;
z-index: 0 !important;
}
/* Sidebar styling - Must be transparent to show the banner behind it! */
#mw-panel {
background-color: transparent !important;
padding-top: 1em !important;
z-index: 2 !important;
position: absolute !important;
}
#p-logo {
margin-bottom: 20px;
background: transparent !important;
}
#p-logo a, .mw-wiki-logo {
background-image: url('/images/windsofvalenlogo.ico') !important;
background-size: contain !important;
background-position: center !important;
background-color: transparent !important;
}
.portal, .portal .body, .vector-menu-portal, .vector-menu-portal .vector-menu-content {
background: transparent !important;
}
.vector-menu-portal .vector-menu-heading {
color: #332717 !important;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}
.vector-menu-portal .vector-menu-content li a {
color: #4a3a25 !important;
}
.vector-menu-portal .vector-menu-content li a:hover {
text-decoration: underline;
}
/* Transparent top navigation tabs */
#mw-head-base {
background: transparent !important;
height: 0 !important;
}
#mw-head {
background: transparent !important;
z-index: 5 !important;
}
#left-navigation, #right-navigation, #p-personal {
background: transparent !important;
}
/* Force every single tab background to be transparent */
#p-namespaces li, #p-views li, #p-variants li, .vector-menu-tabs li, .vector-menu-tabs li span, .vector-menu-tabs li a {
background: transparent !important;
background-image: none !important;
}
#p-namespaces li a, #p-views li a, #p-personal ul li a {
color: #fff !important;
text-shadow: 1px 1px 3px black !important;
font-weight: bold;
}
#p-namespaces li.selected a, #p-views li.selected a {
color: #ffd700 !important; /* Golden text for selected tab */
}
/* Search bar styling */
#p-search form, #simpleSearch, #searchInput {
background: rgba(255, 255, 255, 0.8) !important;
border: 1px solid #7d6b54 !important;
color: #332717 !important;
}
/* Content Area */
#content {
background-color: transparent !important;
background-image: none !important;
border: none !important;
position: relative;
z-index: 1;
margin-top: 20px;
}
/* Inside #content, the actual article body is .mw-body. We make it semi-transparent beige */
.mw-body {
background-color: rgba(229, 216, 197, 0.9) !important;
border: 1px solid #d1c1a6 !important;
border-radius: 5px;
margin-top: 10px;
padding: 1.25em 1.5em 1.5em 1.5em;
color: #332717 !important;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
color: #332717 !important;
border-bottom-color: #d1c1a6 !important;
}
/* Hide the main page title header */
.page-Main_Page #firstHeading {
display: none !important;
}
/* Grid Layout for Main Page */
.osrs-grid-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 20px;
}
.osrs-grid-item {
flex: 1 1 calc(20% - 15px);
background-color: #fff;
border: 2px solid #7d6b54;
text-align: center;
padding: 10px;
box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
min-width: 100px;
}
.osrs-grid-item img {
max-width: 100px;
height: auto;
margin-bottom: 10px;
}
.osrs-grid-item-title {
font-weight: bold;
color: #332717;
background-color: #e8dcc4;
padding: 5px;
border-top: 1px solid #7d6b54;
}
/* Popular Pages Buttons */
.osrs-popular-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.osrs-button {
flex: 1 1 calc(33% - 10px);
background-color: #4a3a25;
color: white !important;
text-align: center;
padding: 10px;
font-weight: bold;
text-decoration: none;
border: 2px solid #332717;
display: inline-block;
box-sizing: border-box;
width: 100%;
}
.osrs-button:hover {
background-color: #5c482e;
text-decoration: none;
}