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:
--------------------------------------------- */
--------------------------------------------- */


/* Background image top-left with solid color fill */
/* 🎨 Ensure body respects background + font (redundant but safe) */
body {
body {
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     color: var(--text-color);
     color: #2e2e2e;
    margin: 0;
}
}


/* Optional subtle gradient fade */
/* 🧾 Unify article + tab background color */
body::before {
.vector-body,
    content: "";
#mw-content-text,
    position: fixed;
#content {
    inset: 0;
     background-color: #fdfaf4;
    background: linear-gradient(to bottom, rgba(192,168,134,0.2), rgba(192,168,134,1) 200px);
    z-index: -1;
     pointer-events: none;
}
}


/* Main article area */
/* 📌 Logo position and subtle drop shadow */
#content,
#p-logo {
.mw-body,
     margin-top: -1.5em;
.vector-body {
     filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
     background-color: var(--content-background-color);
}
     padding: 1em;
 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
/* 🗂️ Legacy tab bar (top of article) */
     border: 1px solid var(--body-border);
.vector-menu-tabs-legacy {
     border-radius: 4px;
    background: #fdfaf4;
     border-bottom: 1px solid #d5c2a4;
     padding-left: 1em;
}
}


/* Headings */
.vector-menu-tabs-legacy ul {
.firstHeading {
     margin: 0;
     font-weight: bold;
    padding: 0;
     color: var(--text-color);
    list-style: none;
     display: flex;
    align-items: center;
}
}


/* Tabs */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li {
.vector-menu-tabs-legacy li {
     background: var(--content-background-color);
     background-color: #fdfaf4;
    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 {
.vector-menu-tabs-legacy li a {
     color: var(--background-link-color);
     display: block;
     padding: 1em 0.75em;
     padding: 1em 0.75em;
     font-weight: bold;
     font-weight: bold;
    color: #3d3d3d;
    text-decoration: none;
}
}


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


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


/* Sidebar */
/* 🧭 Sidebar section titles */
.vector-menu-portal .vector-menu-heading {
.vector-menu-portal .vector-menu-heading {
    color: #2e2e2e;
     font-weight: bold;
     font-weight: bold;
     color: var(--text-color);
     font-size: 1em;
     background: none;
     background: none;
    padding: 0.5em 0.75em;
}
}


/* 🧷 Sidebar links */
.vector-menu-portal .vector-menu-content li a {
.vector-menu-portal .vector-menu-content li a {
     color: var(--background-link-color);
     color: #3d3d3d;
    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);
}
}


/* Logo position */
/* 🔍 Search box tweaks */
#p-logo {
.vector-search-box-vue input.cdx-text-input__input {
     filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    background-color: #fff;
     margin-top: -1.5em;
    border: 1px solid #d5c2a4;
    color: #2e2e2e;
    padding: 7px;
    height: 2.5rem;
}
 
/* 🧱 Edit sections and brackets */
.mw-editsection {
     font-size: 0.85em;
     color: #666;
}
 
.client-js .mw-editsection-bracket {
    display: none;
}
}


/* Table of contents */
/* 📜 Table of contents styling backup */
.toc {
.toc {
    background-color: var(--body-light);
     border-radius: 4px;
     border: 1px solid var(--body-border);
     font-size: 0.9em;
    padding: 0.5em 1em;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


/* Remove redlink list dot */
/* 📎 Hide the article action "view" tab if present */
ul {
#ca-view {
     list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E");
     display: none !important;
}
}

Revision as of 22:02, 1 May 2025

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

/* 🎨 Ensure body respects background + font (redundant but safe) */
body {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    color: #2e2e2e;
    margin: 0;
}

/* 🧾 Unify article + tab background color */
.vector-body,
#mw-content-text,
#content {
    background-color: #fdfaf4;
}

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

/* 🗂️ Legacy tab bar (top of article) */
.vector-menu-tabs-legacy {
    background: #fdfaf4;
    border-bottom: 1px solid #d5c2a4;
    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: #fdfaf4;
    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: #3d3d3d;
    text-decoration: none;
}

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

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

/* 🧭 Sidebar section titles */
.vector-menu-portal .vector-menu-heading {
    color: #2e2e2e;
    font-weight: bold;
    font-size: 1em;
    background: none;
    padding: 0.5em 0.75em;
}

/* 🧷 Sidebar links */
.vector-menu-portal .vector-menu-content li a {
    color: #3d3d3d;
    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 box tweaks */
.vector-search-box-vue input.cdx-text-input__input {
    background-color: #fff;
    border: 1px solid #d5c2a4;
    color: #2e2e2e;
    padding: 7px;
    height: 2.5rem;
}

/* 🧱 Edit sections and brackets */
.mw-editsection {
    font-size: 0.85em;
    color: #666;
}

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

/* 📜 Table of contents styling backup */
.toc {
    border-radius: 4px;
    font-size: 0.9em;
}

/* 📎 Hide the article action "view" tab if present */
#ca-view {
    display: none !important;
}