MediaWiki:Vector.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
--------------------------------------------- */
--------------------------------------------- */


/* 🎨 Ensure body respects background + font (redundant but safe) */
/* 📄 Unified article background */
body {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: #2e2e2e;
    margin: 0;
}
 
/* 🧾 Unify article + tab background color */
.vector-body,
.vector-body,
#mw-content-text,
#mw-content-text,
#content {
#content {
     background-color: #fdfaf4;
     background-color: var(--content-background-color);
    padding: 1em;
    border: 1px solid var(--body-border);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}
}


/* 📌 Logo position and subtle drop shadow */
/* 📌 Logo drop shadow and offset */
#p-logo {
#p-logo {
     margin-top: -1.5em;
     margin-top: -1.5em;
Line 23: Line 20:
}
}


/* 🗂️ Legacy tab bar (top of article) */
/* 🗂️ Tab bar and top navigation */
.vector-menu-tabs-legacy {
.vector-menu-tabs-legacy {
     background: #fdfaf4;
     background: var(--content-background-color);
     border-bottom: 1px solid #d5c2a4;
     border-bottom: 1px solid var(--body-border);
     padding-left: 1em;
     padding-left: 1em;
}
}
Line 39: Line 36:


.vector-menu-tabs-legacy li {
.vector-menu-tabs-legacy li {
     background-color: #fdfaf4;
     background-color: var(--content-background-color);
     border: 1px solid transparent;
     border: 1px solid transparent;
     border-bottom: none;
     border-bottom: none;
Line 50: Line 47:
     padding: 1em 0.75em;
     padding: 1em 0.75em;
     font-weight: bold;
     font-weight: bold;
     color: #3d3d3d;
     color: var(--background-link-color);
     text-decoration: none;
     text-decoration: none;
}
}
Line 56: Line 53:
.vector-menu-tabs-legacy li.selected {
.vector-menu-tabs-legacy li.selected {
     background-color: #fffaf0;
     background-color: #fffaf0;
     border: 1px solid #d5c2a4;
     border: 1px solid var(--body-border);
     border-bottom: none;
     border-bottom: none;
     z-index: 1;
     z-index: 1;
Line 65: Line 62:
}
}


/* 🧭 Sidebar section titles */
/* 🧭 Sidebar headers */
.vector-menu-portal .vector-menu-heading {
.vector-menu-portal .vector-menu-heading {
    color: #2e2e2e;
     font-weight: bold;
     font-weight: bold;
     font-size: 1em;
     color: var(--text-color);
     background: none;
     background: none;
     padding: 0.5em 0.75em;
     padding: 0.5em 0.75em;
Line 76: Line 72:
/* 🧷 Sidebar links */
/* 🧷 Sidebar links */
.vector-menu-portal .vector-menu-content li a {
.vector-menu-portal .vector-menu-content li a {
     color: #3d3d3d;
     color: var(--background-link-color);
     text-decoration: none;
     text-decoration: none;
     display: block;
     display: block;
Line 87: Line 83:
}
}


/* 🔍 Search box tweaks */
/* 🔍 Search input */
.vector-search-box-vue input.cdx-text-input__input {
.vector-search-box-vue input.cdx-text-input__input {
     background-color: #fff;
     background-color: #fff;
     border: 1px solid #d5c2a4;
     border: 1px solid var(--body-border);
     color: #2e2e2e;
     color: var(--text-color);
     padding: 7px;
     padding: 7px;
     height: 2.5rem;
     height: 2.5rem;
}
}


/* 🧱 Edit sections and brackets */
/* 🧾 Hide edit section brackets */
.mw-editsection {
.mw-editsection {
     font-size: 0.85em;
     font-size: 0.85em;
Line 106: Line 102:
}
}


/* 📜 Table of contents styling backup */
/* 🧹 Clean up the default "View" tab */
.toc {
    border-radius: 4px;
    font-size: 0.9em;
}
 
/* 📎 Hide the article action "view" tab if present */
#ca-view {
#ca-view {
     display: none !important;
     display: none !important;
}
}

Revision as of 22:03, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Vector Skin Styling
--------------------------------------------- */

/* 📄 Unified article background */
.vector-body,
#mw-content-text,
#content {
    background-color: var(--content-background-color);
    padding: 1em;
    border: 1px solid var(--body-border);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

/* 📌 Logo drop shadow and offset */
#p-logo {
    margin-top: -1.5em;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

/* 🗂️ Tab bar and top navigation */
.vector-menu-tabs-legacy {
    background: var(--content-background-color);
    border-bottom: 1px solid var(--body-border);
    padding-left: 1em;
}

.vector-menu-tabs-legacy ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.vector-menu-tabs-legacy li {
    background-color: var(--content-background-color);
    border: 1px solid transparent;
    border-bottom: none;
    margin: 0;
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}

.vector-menu-tabs-legacy li a {
    display: block;
    padding: 1em 0.75em;
    font-weight: bold;
    color: var(--background-link-color);
    text-decoration: none;
}

.vector-menu-tabs-legacy li.selected {
    background-color: #fffaf0;
    border: 1px solid var(--body-border);
    border-bottom: none;
    z-index: 1;
}

.vector-menu-tabs-legacy li.selected a {
    color: #000;
}

/* 🧭 Sidebar headers */
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: var(--text-color);
    background: none;
    padding: 0.5em 0.75em;
}

/* 🧷 Sidebar links */
.vector-menu-portal .vector-menu-content li a {
    color: var(--background-link-color);
    text-decoration: none;
    display: block;
    padding: 0.35em 0.75em;
    transition: background 0.2s;
}

.vector-menu-portal .vector-menu-content li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 🔍 Search input */
.vector-search-box-vue input.cdx-text-input__input {
    background-color: #fff;
    border: 1px solid var(--body-border);
    color: var(--text-color);
    padding: 7px;
    height: 2.5rem;
}

/* 🧾 Hide edit section brackets */
.mw-editsection {
    font-size: 0.85em;
    color: #666;
}

.client-js .mw-editsection-bracket {
    display: none;
}

/* 🧹 Clean up the default "View" tab */
#ca-view {
    display: none !important;
}