MediaWiki:Vector.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* ---------------------------------------------
/* ---------------------------------------------
   OSRS Wiki-Inspired Vector Skin Styling
   OSRS Wiki-Inspired Vector Layout Styling
--------------------------------------------- */
--------------------------------------------- */


/* Article background container */
/* 📄 Content and article area */
.vector-body,
.vector-body,
#mw-content-text,
#mw-content-text,
Line 14: Line 14:
}
}


/* Logo drop shadow like OSRS */
/* 📌 Logo style */
#p-logo {
#p-logo {
     margin-top: -1.5em;
     margin-top: -1.5em;
Line 20: Line 20:
}
}


/* Top tab bar styling */
/* 🗂️ Tabs (Main Page / Discussion) */
.vector-menu-tabs-legacy {
.vector-menu-tabs-legacy {
     background: var(--content-background-color);
     background: var(--content-background-color);
Line 62: Line 62:
}
}


/* Sidebar headings and links */
/* 🧭 Sidebar styling */
.vector-menu-portal .vector-menu-heading {
.vector-menu-portal .vector-menu-heading {
     font-weight: bold;
     font-weight: bold;
Line 82: Line 82:
}
}


/* Search input appearance */
/* 🔍 Search field */
.vector-search-box-vue input.cdx-text-input__input {
.vector-search-box-vue input.cdx-text-input__input {
     background-color: #fff;
     background-color: #fff;
Line 91: Line 91:
}
}


/* Edit links and bracket removal */
/* 🛠 Hide view tab (optional) */
#ca-view {
    display: none !important;
}
 
/* Edit links cleanup */
.mw-editsection {
.mw-editsection {
     font-size: 0.85em;
     font-size: 0.85em;
Line 99: Line 104:
.client-js .mw-editsection-bracket {
.client-js .mw-editsection-bracket {
     display: none;
     display: none;
}
/* Hide unused "view" tab */
#ca-view {
    display: none !important;
}
}

Revision as of 22:08, 1 May 2025

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

/* 📄 Content and article area */
.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 style */
#p-logo {
    margin-top: -1.5em;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

/* 🗂️ Tabs (Main Page / Discussion) */
.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 styling */
.vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    color: var(--text-color);
    background: none;
    padding: 0.5em 0.75em;
}

.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 field */
.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 view tab (optional) */
#ca-view {
    display: none !important;
}

/* Edit links cleanup */
.mw-editsection {
    font-size: 0.85em;
    color: #666;
}

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