MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
OSRS style for Vector 2022 Tag: Blanking |
Winds of Valen OSRS theme |
||
| Line 1: | Line 1: | ||
/* ============================================================ | |||
WINDS OF VALEN WIKI - Fantasy Theme for Vector 2022 | |||
============================================================ */ | |||
/* Force light color scheme - overrides OS/browser dark mode */ | |||
:root { | |||
color-scheme: light !important; | |||
} | |||
/* ---- PAGE BACKGROUND & BANNER ---- */ | |||
html { | |||
background-color: #c9b99a !important; /* Sandy beige matches the banner fade */ | |||
} | |||
body { | |||
background-color: transparent !important; | |||
} | |||
/* The banner image sits on the html element itself and fades down */ | |||
html::before { | |||
content: ""; | |||
display: block; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 300px; | |||
background-image: url('/images/valen_banner.png'); | |||
background-size: cover; | |||
background-position: center top; | |||
background-repeat: no-repeat; | |||
mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%); | |||
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%); | |||
z-index: 0; | |||
pointer-events: none; | |||
} | |||
/* ---- MAKE HEADER TRANSPARENT so banner shows through ---- */ | |||
.mw-page-container { | |||
background: transparent !important; | |||
position: relative; | |||
z-index: 1; | |||
} | |||
.vector-header, | |||
.vector-header-container, | |||
.vector-sticky-header, | |||
.mw-header { | |||
background: transparent !important; | |||
border-bottom: none !important; | |||
box-shadow: none !important; | |||
} | |||
/* Slim dark overlay on JUST the tab row for readability */ | |||
.vector-page-toolbar { | |||
background: rgba(30, 20, 10, 0.55) !important; | |||
border-bottom: 1px solid rgba(255,255,255,0.15) !important; | |||
backdrop-filter: blur(2px); | |||
} | |||
/* Tab links: white text on dark overlay */ | |||
.vector-page-toolbar a, | |||
.mw-portlet-namespaces a, | |||
.mw-portlet-views a, | |||
.mw-portlet-cactions a { | |||
color: #f0ddb0 !important; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.9) !important; | |||
} | |||
.mw-portlet-namespaces .selected a { | |||
color: #ffd700 !important; | |||
border-bottom: 2px solid #ffd700 !important; | |||
font-weight: bold !important; | |||
} | |||
/* User links & top-right links */ | |||
.vector-user-links a, | |||
#pt-login a, #pt-createaccount a, | |||
.mw-portlet-user-menu a { | |||
color: #f0ddb0 !important; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important; | |||
} | |||
/* Logo */ | |||
.mw-logo-wordmark, .mw-logo-tagline { | |||
display: none; /* hide text, show only icon */ | |||
} | |||
.mw-logo-icon { | |||
background-color: transparent !important; | |||
} | |||
/* Search box */ | |||
.vector-search-box-vue-wrapper input, | |||
.vector-search-box input[type="search"], | |||
#searchInput { | |||
background-color: rgba(255,255,255,0.85) !important; | |||
border: 1px solid rgba(0,0,0,0.35) !important; | |||
color: #332717 !important; | |||
border-radius: 4px !important; | |||
} | |||
/* ---- SIDEBAR ---- */ | |||
.mw-portlet { | |||
background: transparent !important; | |||
} | |||
.mw-portlet-nav-bar { | |||
background: transparent !important; | |||
} | |||
.mw-portlet .mw-portlet-header, | |||
.vector-menu-heading { | |||
color: #332717 !important; | |||
font-weight: bold !important; | |||
border-bottom: 1px solid #9e8c74 !important; | |||
} | |||
.mw-portlet ul li a { | |||
color: #5c3a10 !important; | |||
} | |||
.mw-portlet ul li a:hover { | |||
color: #332717 !important; | |||
text-decoration: underline; | |||
} | |||
/* ---- MAIN CONTENT BOX ---- */ | |||
.mw-body { | |||
background-color: #e8dcc4 !important; | |||
border: 1px solid #9e8c74 !important; | |||
border-radius: 4px !important; | |||
color: #332717 !important; | |||
box-shadow: 0 1px 6px rgba(0,0,0,0.25) !important; | |||
margin-top: 0.5em !important; | |||
} | |||
#mw-content-text, | |||
.mw-content-ltr { | |||
color: #332717 !important; | |||
} | |||
/* Headings */ | |||
h1.firstHeading, .mw-page-title-main { | |||
color: #332717 !important; | |||
border-bottom: 2px solid #9e8c74 !important; | |||
font-family: 'Georgia', serif !important; | |||
} | |||
h2, h3, h4, h5, h6 { | |||
color: #332717 !important; | |||
border-bottom-color: #b5a48a !important; | |||
} | |||
/* Links */ | |||
a, a:link { | |||
color: #7a3c00 !important; | |||
} | |||
a:visited { | |||
color: #5c2c00 !important; | |||
} | |||
a:hover { | |||
color: #3a1800 !important; | |||
} | |||
/* ---- HIDE MAIN PAGE TITLE ---- */ | |||
.page-Main_Page .mw-first-heading, | |||
.page-Main_Page #firstHeading, | |||
.page-Main_Page .mw-page-title-main { | |||
display: none !important; | |||
} | |||
/* ---- HIDE THE APPEARANCE PANEL (not needed, looks cluttered) ---- */ | |||
.vector-column-end, .mw-portlet-appearances { | |||
display: none !important; | |||
} | |||
/* ---- TABLES ---- */ | |||
table.wikitable { | |||
background-color: #e8dcc4 !important; | |||
border: 1px solid #9e8c74 !important; | |||
color: #332717 !important; | |||
} | |||
table.wikitable > * > tr > th { | |||
background-color: #c9b99a !important; | |||
color: #332717 !important; | |||
} | |||
table.wikitable > * > tr:nth-child(even) > td { | |||
background-color: #ddd0b8 !important; | |||
} | |||
/* ---- INFOBOX ---- */ | |||
.infobox { | |||
background-color: #ddd0b8 !important; | |||
border: 1px solid #9e8c74 !important; | |||
color: #332717 !important; | |||
} | |||
/* ---- FOOTER ---- */ | |||
.mw-footer, #footer { | |||
background-color: #b5a48a !important; | |||
border-top: 2px solid #9e8c74 !important; | |||
color: #5c4a30 !important; | |||
} | |||
.mw-footer a, #footer a { | |||
color: #5c2c00 !important; | |||
} | |||
/* ---- CATEGORY GRID ---- */ | |||
.osrs-grid-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 12px; | |||
margin-top: 16px; | |||
} | |||
.osrs-grid-item { | |||
flex: 1 1 calc(25% - 12px); | |||
background: #fff; | |||
border: 2px solid #7d6b54; | |||
text-align: center; | |||
padding: 8px; | |||
box-shadow: 1px 1px 4px rgba(0,0,0,0.2); | |||
} | |||
.osrs-grid-item-title { | |||
font-weight: bold; | |||
color: #332717; | |||
background-color: #e0d0b5; | |||
padding: 4px; | |||
border-top: 1px solid #7d6b54; | |||
margin-top: 4px; | |||
} | |||
Latest revision as of 00:45, 11 July 2026
/* ============================================================
WINDS OF VALEN WIKI - Fantasy Theme for Vector 2022
============================================================ */
/* Force light color scheme - overrides OS/browser dark mode */
:root {
color-scheme: light !important;
}
/* ---- PAGE BACKGROUND & BANNER ---- */
html {
background-color: #c9b99a !important; /* Sandy beige matches the banner fade */
}
body {
background-color: transparent !important;
}
/* The banner image sits on the html element itself and fades down */
html::before {
content: "";
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 300px;
background-image: url('/images/valen_banner.png');
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
z-index: 0;
pointer-events: none;
}
/* ---- MAKE HEADER TRANSPARENT so banner shows through ---- */
.mw-page-container {
background: transparent !important;
position: relative;
z-index: 1;
}
.vector-header,
.vector-header-container,
.vector-sticky-header,
.mw-header {
background: transparent !important;
border-bottom: none !important;
box-shadow: none !important;
}
/* Slim dark overlay on JUST the tab row for readability */
.vector-page-toolbar {
background: rgba(30, 20, 10, 0.55) !important;
border-bottom: 1px solid rgba(255,255,255,0.15) !important;
backdrop-filter: blur(2px);
}
/* Tab links: white text on dark overlay */
.vector-page-toolbar a,
.mw-portlet-namespaces a,
.mw-portlet-views a,
.mw-portlet-cactions a {
color: #f0ddb0 !important;
text-shadow: 1px 1px 2px rgba(0,0,0,0.9) !important;
}
.mw-portlet-namespaces .selected a {
color: #ffd700 !important;
border-bottom: 2px solid #ffd700 !important;
font-weight: bold !important;
}
/* User links & top-right links */
.vector-user-links a,
#pt-login a, #pt-createaccount a,
.mw-portlet-user-menu a {
color: #f0ddb0 !important;
text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}
/* Logo */
.mw-logo-wordmark, .mw-logo-tagline {
display: none; /* hide text, show only icon */
}
.mw-logo-icon {
background-color: transparent !important;
}
/* Search box */
.vector-search-box-vue-wrapper input,
.vector-search-box input[type="search"],
#searchInput {
background-color: rgba(255,255,255,0.85) !important;
border: 1px solid rgba(0,0,0,0.35) !important;
color: #332717 !important;
border-radius: 4px !important;
}
/* ---- SIDEBAR ---- */
.mw-portlet {
background: transparent !important;
}
.mw-portlet-nav-bar {
background: transparent !important;
}
.mw-portlet .mw-portlet-header,
.vector-menu-heading {
color: #332717 !important;
font-weight: bold !important;
border-bottom: 1px solid #9e8c74 !important;
}
.mw-portlet ul li a {
color: #5c3a10 !important;
}
.mw-portlet ul li a:hover {
color: #332717 !important;
text-decoration: underline;
}
/* ---- MAIN CONTENT BOX ---- */
.mw-body {
background-color: #e8dcc4 !important;
border: 1px solid #9e8c74 !important;
border-radius: 4px !important;
color: #332717 !important;
box-shadow: 0 1px 6px rgba(0,0,0,0.25) !important;
margin-top: 0.5em !important;
}
#mw-content-text,
.mw-content-ltr {
color: #332717 !important;
}
/* Headings */
h1.firstHeading, .mw-page-title-main {
color: #332717 !important;
border-bottom: 2px solid #9e8c74 !important;
font-family: 'Georgia', serif !important;
}
h2, h3, h4, h5, h6 {
color: #332717 !important;
border-bottom-color: #b5a48a !important;
}
/* Links */
a, a:link {
color: #7a3c00 !important;
}
a:visited {
color: #5c2c00 !important;
}
a:hover {
color: #3a1800 !important;
}
/* ---- HIDE MAIN PAGE TITLE ---- */
.page-Main_Page .mw-first-heading,
.page-Main_Page #firstHeading,
.page-Main_Page .mw-page-title-main {
display: none !important;
}
/* ---- HIDE THE APPEARANCE PANEL (not needed, looks cluttered) ---- */
.vector-column-end, .mw-portlet-appearances {
display: none !important;
}
/* ---- TABLES ---- */
table.wikitable {
background-color: #e8dcc4 !important;
border: 1px solid #9e8c74 !important;
color: #332717 !important;
}
table.wikitable > * > tr > th {
background-color: #c9b99a !important;
color: #332717 !important;
}
table.wikitable > * > tr:nth-child(even) > td {
background-color: #ddd0b8 !important;
}
/* ---- INFOBOX ---- */
.infobox {
background-color: #ddd0b8 !important;
border: 1px solid #9e8c74 !important;
color: #332717 !important;
}
/* ---- FOOTER ---- */
.mw-footer, #footer {
background-color: #b5a48a !important;
border-top: 2px solid #9e8c74 !important;
color: #5c4a30 !important;
}
.mw-footer a, #footer a {
color: #5c2c00 !important;
}
/* ---- CATEGORY GRID ---- */
.osrs-grid-container {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 16px;
}
.osrs-grid-item {
flex: 1 1 calc(25% - 12px);
background: #fff;
border: 2px solid #7d6b54;
text-align: center;
padding: 8px;
box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.osrs-grid-item-title {
font-weight: bold;
color: #332717;
background-color: #e0d0b5;
padding: 4px;
border-top: 1px solid #7d6b54;
margin-top: 4px;
}