MediaWiki:Vector-2022.css: Difference between revisions

Winds of Valen theme
 
Sidebar blend + logo + Discord styles
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* =======================================================
/* ============================================================
   WINDS OF VALEN WIKI - Fantasy Theme
   WINDS OF VALEN WIKI — Vector 2022 Skin Overrides
   Targeting MediaWiki 1.46 / Vector 2022 skin
   OSRS-inspired parchment theme
   =======================================================
   ============================================================ */
 
  KEY DOM STRUCTURE (Vector 2022):
 
  <div class="vector-header-container">
    <header class="vector-header mw-header">
      <div class="vector-header-start"> ... logo ... </div>
      <div class="vector-header-end"> ... search ... user links ... </div>
    </header>
  </div>
  <div class="mw-page-container">
    <div class="mw-page-container-inner">
      <div class="vector-column-start">  <-- sidebar -->
      <div class="mw-content-container">
        <main id="content" class="mw-body">
          <div class="vector-page-toolbar"> <-- tabs row -->
*/


/* ---- 1. FORCE LIGHT MODE ---- */
/* --- CSS Variables (OSRS palette) --- */
:root {
body.skin-vector-2022 {
     color-scheme: light !important;
    --body-main: #e2dbc8;
    --body-light: #d8ccb4;
    --body-mid: #d0bd97;
    --body-dark: #b8a282;
    --body-border: #94866d;
    --body-background-color: #c0a886;
    --button-background: #605443;
    --button-color: #fff;
    --button-border: #3c352a;
    --button-dark: #18140c;
    --button-light: #3a301d;
    --link-color: #936039;
    --background-link-color: #52351e;
    --text-color: #000;
    --byline-color: #4c4c4c;
     --subtle-color: #777;
    --thumb-bg: var(--body-light);
    --thumb-caption-bg: var(--body-mid);
}
}


/* ---- 2. PAGE BACKGROUND - the banner sits on html ---- */
/* --- Page background (gradient sky into parchment) --- */
html {
body.skin-vector-2022 {
     background-color: #c9b99a !important;
     background-color: var(--body-main);
    background-image:
     color: var(--text-color);
        linear-gradient(to bottom, transparent 0%, transparent 200px, #c9b99a 340px),
     color-scheme: light;
        url('/images/valen_banner.png') !important;
     background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
     background-attachment: scroll !important;
}
}


body {
/* --- Header banner with background image bleed --- */
     background: transparent !important;
body.skin-vector-2022 .vector-header,
     min-height: 100vh;
body.skin-vector-2022 .mw-header {
     background: linear-gradient(to bottom,
        rgba(30, 24, 18, 0.92) 0%,
        rgba(80, 60, 35, 0.78) 60%,
        rgba(160, 120, 70, 0.55) 100%);
    background-size: cover;
    background-position: center top;
     min-height: 54px;
}
}


/* ---- 3. HEADER - transparent so banner shows through ---- */
/* --- Make the logo bigger in the top bar --- */
.vector-header-container,
body.skin-vector-2022 #p-logo {
.vector-header.mw-header {
     width: 66px !important;
     background: transparent !important;
     padding: 6px 4px;
     border-bottom: none !important;
}
     box-shadow: none !important;
body.skin-vector-2022 #p-logo .mw-logo-icon {
    width: 54px !important;
     height: 54px !important;
}
}


.vector-header-start,
/* --- Tab bar (Main page | Discussion) --- */
.vector-header-end {
body.skin-vector-2022 .vector-page-tabs .mw-list-item a {
     background: transparent !important;
     background: transparent;
    border-bottom: none;
    color: var(--body-main);
    font-size: 0.82em;
    letter-spacing: 0.02em;
}
}
 
body.skin-vector-2022 .vector-page-tabs .mw-list-item.selected a,
/* ---- 4. LOGO TEXT - hide wordmark, keep icon ---- */
body.skin-vector-2022 .vector-page-tabs .mw-list-item a:hover {
.mw-logo-wordmark,
     color: #fff;
.mw-logo-tagline {
     display: none !important;
}
}
.mw-logo-container.skin-invert {
body.skin-vector-2022 .vector-page-toolbar {
     display: none !important;
     background: rgba(30, 22, 12, 0.72);
    border-bottom: 1px solid rgba(180, 140, 80, 0.45);
}
}


/* ---- 5. USER LINKS (top right) ---- */
/* ============================================================
.vector-user-links a,
  SIDEBAR — blend into the page like OSRS
#pt-createaccount a,
  ============================================================ */
#pt-login a,
 
#pt-anonuserpage a,
/* Kill the white background on the sidebar container */
#pt-anontalk a,
body.skin-vector-2022 #vector-main-menu-pinned-container,
#pt-anoncontribs a {
body.skin-vector-2022 .vector-main-menu,
     color: #fff !important;
body.skin-vector-2022 #vector-main-menu {
     text-shadow: 1px 1px 2px rgba(0,0,0,0.85) !important;
    background: transparent !important;
     border: none !important;
     box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
}


/* ---- 6. SEARCH BOX ---- */
/* Hide the "Main menu / hide" header — logo replaces it */
.cdx-text-input__input,
body.skin-vector-2022 .vector-pinnable-header {
#searchInput,
     display: none !important;
.vector-search-box input {
     background-color: rgba(255,255,255,0.85) !important;
    border-color: rgba(0,0,0,0.3) !important;
    color: #332717 !important;
}
}


/* ---- 7. PAGE CONTAINER - transparent background ---- */
/* Section headings (Navigation, Guides, Community…) */
.mw-page-container,
body.skin-vector-2022 .vector-main-menu .mw-portlet h3,
.mw-page-container-inner {
body.skin-vector-2022 #vector-main-menu .mw-portlet h3 {
     background: transparent !important;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.83em;
    font-weight: bold;
    text-transform: none;
    color: var(--text-color);
    border: none;
    border-bottom: 1px solid var(--body-border);
    padding: 8px 12px 4px 12px;
    margin: 6px 0 0 0;
     background: none;
}
}


/* ---- 8. SIDEBAR ---- */
/* Nav links */
.vector-column-start,
body.skin-vector-2022 .vector-main-menu .mw-portlet-body ul,
.vector-main-menu-container,
body.skin-vector-2022 #vector-main-menu .mw-portlet-body ul {
#mw-panel,
    list-style: none;
#mw-navigation {
    margin: 0;
     background: transparent !important;
     padding: 2px 0 6px 0;
}
}
.vector-menu-heading {
body.skin-vector-2022 .vector-main-menu .mw-portlet-body ul li,
    color: #f5e6c8 !important;
body.skin-vector-2022 #vector-main-menu .mw-portlet-body ul li {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7) !important;
     margin: 0;
     font-weight: bold !important;
     padding: 0;
     border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}
}
.vector-menu-content-list li a {
body.skin-vector-2022 .vector-main-menu .mw-portlet-body ul li a,
     color: #f0ddb0 !important;
body.skin-vector-2022 #vector-main-menu .mw-portlet-body ul li a {
     text-shadow: 1px 1px 1px rgba(0,0,0,0.5) !important;
    display: block;
    padding: 2px 12px;
     color: var(--link-color);
    font-size: 0.85em;
     text-decoration: none;
    line-height: 1.7;
}
}
.vector-menu-content-list li a:hover {
body.skin-vector-2022 .vector-main-menu .mw-portlet-body ul li a:hover,
     color: #fff !important;
body.skin-vector-2022 #vector-main-menu .mw-portlet-body ul li a:hover {
     text-decoration: underline !important;
     color: var(--background-link-color);
     text-decoration: underline;
}
}


/* ---- 9. CONTENT CONTAINER ---- */
/* Toolbox section */
.mw-content-container {
body.skin-vector-2022 #vector-main-menu .mw-portlet-body {
     background: transparent !important;
     padding: 0;
}
}


/* ---- 10. MAIN CONTENT BODY - the actual article box ---- */
/* ============================================================
#content.mw-body {
  LOGO BANNER (injected via JS above sidebar)
     background-color: #e8dcc4 !important;
  ============================================================ */
     border: 1px solid #9e8c74 !important;
body.skin-vector-2022 .wov-sidebar-logo {
     border-radius: 4px !important;
     background: linear-gradient(160deg, #2c1d0d 0%, #4a3018 50%, #2c1d0d 100%);
     color: #332717 !important;
     border-bottom: 3px solid #8a6234;
     box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
     padding: 20px 10px 16px;
     margin-top: 220px !important; /* push down below banner */
     text-align: center;
     position: relative;
     overflow: hidden;
}
}
 
body.skin-vector-2016 .wov-sidebar-logo::before,
/* ---- 11. PAGE TOOLBAR (tabs row: Main Page | Discussion) ---- */
body.skin-vector-2022 .wov-sidebar-logo::before {
.vector-page-toolbar {
     content: '';
     background: rgba(20, 12, 4, 0.5) !important;
    position: absolute;
     border-bottom: 1px solid rgba(255, 220, 150, 0.3) !important;
    inset: 0;
    backdrop-filter: blur(3px) !important;
     background: radial-gradient(ellipse at 50% 30%, rgba(255,200,80,0.12) 0%, transparent 70%);
     -webkit-backdrop-filter: blur(3px) !important;
     pointer-events: none;
}
}
 
body.skin-vector-2022 .wov-sidebar-logo a {
.vector-page-toolbar-container {
     text-decoration: none;
     background: transparent !important;
}
}
 
body.skin-vector-2022 .wov-sidebar-logo img {
/* Tab links */
     display: block;
#p-associated-pages a,
    margin: 0 auto 8px;
#p-views a,
    width: 72px;
#p-cactions a {
    height: 72px;
     color: #f5e6c8 !important;
     filter: drop-shadow(0 2px 8px rgba(255,190,60,0.35));
     text-shadow: 1px 1px 2px rgba(0,0,0,0.9) !important;
    background: transparent !important;
    border-bottom: none !important;
}
}
 
body.skin-vector-2022 .wov-sidebar-logo-title {
#ca-nstab-main.selected a,
    font-family: 'Cinzel', 'PT Serif', Georgia, serif;
.selected.vector-tab-noicon a {
    font-size: 0.95em;
     color: #ffd700 !important;
    font-weight: 700;
     border-bottom: 2px solid #ffd700 !important;
     color: #e8c878;
     font-weight: bold !important;
    text-transform: uppercase;
     letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255,200,80,0.4), 0 1px 2px rgba(0,0,0,0.8);
     line-height: 1.3;
}
}
 
body.skin-vector-2022 .wov-sidebar-logo-sub {
/* ---- 12. TEXT CONTENT ---- */
    font-family: 'PT Serif', Georgia, serif;
h1.firstHeading, .mw-first-heading {
    font-size: 0.78em;
     color: #332717 !important;
     color: #c9a86c;
     border-bottom: 2px solid #9e8c74 !important;
    letter-spacing: 3px;
     font-family: 'Georgia', serif !important;
     text-transform: uppercase;
    margin-top: 2px;
     text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
}


h2, h3, h4, h5, h6 {
/* ============================================================
    color: #332717 !important;
  DISCORD BUTTON (injected via JS below logo)
    border-bottom-color: #b5a48a !important;
  ============================================================ */
body.skin-vector-2022 .wov-discord-btn {
    padding: 8px 10px 6px;
}
}
 
body.skin-vector-2022 .wov-discord-btn a {
a, a:link {
    display: flex;
     color: #7a3c00 !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #5865F2;
    border: 1px solid #4752c4;
    border-radius: 5px;
     color: #fff !important;
    font-size: 0.87em;
    font-weight: bold;
    padding: 7px 10px;
    text-decoration: none !important;
    transition: background 0.15s ease;
    box-shadow: 0 2px 6px rgba(88,101,242,0.3);
}
}
a:visited {
body.skin-vector-2022 .wov-discord-btn a:hover {
     color: #5c2c00 !important;
     background: #4752c4;
    text-decoration: none !important;
}
}
 
body.skin-vector-2022 .wov-discord-btn svg {
/* ---- 13. HIDE MAIN PAGE H1 ---- */
    flex-shrink: 0;
.page-Main_Page .mw-first-heading,
    width: 20px;
.page-Main_Page #firstHeading {
     height: 20px;
     display: none !important;
}
}


/* ---- 14. HIDE APPEARANCE PANEL ---- */
/* ============================================================
.vector-appearance-landmark,
  CONTENT AREA
#vector-appearance-dropdown {
  ============================================================ */
     display: none !important;
body.skin-vector-2022 .mw-body,
body.skin-vector-2022 #content {
    background: var(--body-main);
    border: 1px solid var(--body-border);
     border-radius: 0;
}
}


/* ---- 15. TABLES ---- */
/* Make wikitables look like OSRS */
table.wikitable {
body.skin-vector-2022 table.wikitable {
     background-color: #e8dcc4 !important;
     background-color: var(--body-light);
     border-color: #9e8c74 !important;
     border: 1px solid var(--body-border);
     color: #332717 !important;
     color: var(--text-color);
}
}
table.wikitable > * > tr > th {
body.skin-vector-2022 table.wikitable th {
     background-color: #c9b99a !important;
     background-color: var(--body-dark);
     color: #332717 !important;
    border: 1px solid var(--body-border);
     color: var(--text-color);
}
}
table.wikitable > * > tr:nth-child(even) > td {
body.skin-vector-2022 table.wikitable td {
     background-color: #ddd0b8 !important;
     background-color: var(--body-main);
    border: 1px solid var(--body-border);
}
}


/* ---- 16. FOOTER ---- */
/* Links */
footer.mw-footer, #footer {
body.skin-vector-2022 a {
     background-color: #b5a48a !important;
     color: var(--link-color);
    border-top: 2px solid #9e8c74 !important;
    color: #5c4a30 !important;
}
}
footer.mw-footer a {
body.skin-vector-2022 a:hover {
     color: #5c2c00 !important;
    color: var(--background-link-color);
}
 
/* Headings */
body.skin-vector-2022 h1,
body.skin-vector-2022 h2,
body.skin-vector-2022 h3 {
     font-family: 'PT Serif', Georgia, serif;
    border-bottom-color: var(--body-border);
}
}