MediaWiki:Common.css: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
Fix banner visibility with gradient
Perfecting Classic Layout layout and dark mode override
Line 1: Line 1:
/* OSRS Beige Background globally */
/* Override MediaWiki Dark Mode variables to force OSRS Beige */
body, .mw-body, html {
: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;
     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 */
}
}


/*  
/*  
   Vector legacy skin uses #mw-page-base at the absolute top of the page.
   The banner image that spans the entire top of the centered body
  We will put the banner image here and use a CSS gradient to fade it into the beige background.
*/
*/
#mw-page-base {
#mw-page-base {
Line 15: Line 29:
     width: 100%;
     width: 100%;
     height: 400px !important;
     height: 400px !important;
     background-image: linear-gradient(to bottom, rgba(229,216,197,0) 40%, #e5d8c5 100%), url('/images/valen_banner.png');
     background-image: linear-gradient(to bottom, rgba(229,216,197,0) 60%, #e5d8c5 100%), url('/images/valen_banner.png') !important;
     background-position: center top;
     background-position: center top !important;
     background-repeat: no-repeat;
     background-repeat: no-repeat !important;
     background-size: cover;
     background-size: cover !important;
     z-index: 0;
     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;
}
}


/* The content area needs to be transparent at the top so the banner shows through */
/* 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 {
#content {
     background-color: transparent !important;
     background-color: transparent !important;
     background-image: none !important;
     background-image: none !important;
     border: none;
     border: none !important;
     position: relative;
     position: relative;
     z-index: 1;
     z-index: 1;
     margin-top: 1.5em; /* standard offset */
     margin-top: 20px;  
}
}


/* Inside #content, the actual article body is .mw-body. We make it semi-transparent beige */
/* Inside #content, the actual article body is .mw-body. We make it semi-transparent beige */
.mw-body {
.mw-body {
     background-color: rgba(229, 216, 197, 0.85) !important;
     background-color: rgba(229, 216, 197, 0.9) !important;
     border: 1px solid #d1c1a6;
     border: 1px solid #d1c1a6 !important;
     border-radius: 5px;
     border-radius: 5px;
     margin-top: 10px;
     margin-top: 10px;
     padding: 1.25em 1.5em 1.5em 1.5em;
     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 */
/* Hide the main page title header */
.page-Main_Page #firstHeading {
.page-Main_Page #firstHeading {
     display: none;
     display: none !important;
}
}


#mw-head-base {
/* Grid Layout for Main Page */
     background: transparent;
.osrs-grid-container {
     height: 0;
     display: flex;
    flex-wrap: wrap;
     gap: 15px;
    margin-top: 20px;
}
}
 
.osrs-grid-item {
/* Make header tabs and search transparent so they sit on the banner */
    flex: 1 1 calc(20% - 15px);
#mw-head {
    background-color: #fff;
     background: rgba(0, 0, 0, 0.4);
    border: 2px solid #7d6b54;
     z-index: 5;
    text-align: center;
    padding: 10px;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
     min-width: 100px;
}
}
#p-personal, #left-navigation, #right-navigation {
.osrs-grid-item img {
     background: transparent;
    max-width: 100px;
    height: auto;
     margin-bottom: 10px;
}
}
#p-personal ul li a, #left-navigation li a, #right-navigation li a {
.osrs-grid-item-title {
     color: #fff;
    font-weight: bold;
     text-shadow: 1px 1px 2px black;
     color: #332717;
}
     background-color: #e8dcc4;
#p-search form, #simpleSearch {
     padding: 5px;
     background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid #7d6b54;
}
.vector-menu-tabs li {
    background: transparent;
}
}


/* Logo override */
/* Popular Pages Buttons */
#p-logo a, .mw-wiki-logo {
.osrs-popular-grid {
    background-image: url('/images/windsofvalenlogo.ico') !important;
     display: flex;
    background-size: contain;
     flex-wrap: wrap;
    background-position: center;
     gap: 10px;
}
 
/* 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 {
.osrs-button {
     color: #332717;
    flex: 1 1 calc(33% - 10px);
    background-color: #4a3a25;
    color: white !important;
    text-align: center;
     padding: 10px;
     font-weight: bold;
     font-weight: bold;
     text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
     text-decoration: none;
    border: 2px solid #332717;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
}
}
.vector-menu-portal .vector-menu-content li a {
.osrs-button:hover {
     color: #4a3a25;
     background-color: #5c482e;
    text-decoration: none;
}
}

Revision as of 00:20, 11 July 2026

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