MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
--------------------------------------------- */ | --------------------------------------------- */ | ||
/* | /* 🎨 Ensure body respects background + font (redundant but safe) */ | ||
body { | body { | ||
font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif; | font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif; | ||
color: | color: #2e2e2e; | ||
margin: 0; | |||
} | } | ||
/* | /* 🧾 Unify article + tab background color */ | ||
body | .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) */ | |||
border: 1px solid | .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 { | .vector-menu-tabs-legacy li { | ||
background: | 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 { | ||
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: | 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: | 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; | ||
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: | 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 */ | /* 📜 Table of contents styling backup */ | ||
.toc { | .toc { | ||
border-radius: 4px; | |||
border | font-size: 0.9em; | ||
} | } | ||
/* | /* 📎 Hide the article action "view" tab if present */ | ||
#ca-view { | |||
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;
}