MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* --------------------------------------------- | /* --------------------------------------------- | ||
OSRS Wiki-Inspired | OSRS Wiki-Inspired Background + Content Layout | ||
--------------------------------------------- */ | --------------------------------------------- */ | ||
/* 🌄 Background image + solid color */ | |||
:root { | :root { | ||
--body-background-image: url("/resources/assets/bg.png"); | --body-background-image: url("/resources/assets/bg.png"); | ||
--body-background-color: #c0a886; | --body-background-color: #c0a886; | ||
} | } | ||
/* | /* 🧱 Apply the background the OSRS way */ | ||
body | body { | ||
background-color: var(--body-background-color); | |||
background-image: var(--body-background-image); | |||
background-position: top left; | |||
background-repeat: no-repeat; | |||
background-size: 1500px 375px; | |||
background-attachment: scroll; | |||
font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif; | font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif; | ||
color: #2e2e2e; | |||
margin: 0; | |||
} | |||
/* 🌫️ Optional soft gradient overlay */ | |||
body::before { | |||
content: ""; | |||
position: fixed; | |||
inset: 0; | |||
background: linear-gradient(to bottom, rgba(192,168,134,0.0) 0%, rgba(192,168,134,1) 300px); | |||
z-index: -1; | |||
pointer-events: none; | |||
} | |||
/* 📄 Content & tab container (matching OSRS) */ | |||
#content, | |||
.vector-body, | |||
#mw-content-text { | |||
background-color: #fdfaf4; | |||
border: 1px solid #d5c2a4; | |||
padding: 1em; | |||
border-radius: 4px; | |||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.03); | |||
} | |||
/* 🗂️ Tabs and nav bar unified on same background */ | |||
.vector-menu-tabs-legacy, | |||
.vector-menu-tabs-legacy li, | |||
.vector-menu-tabs-legacy .selected { | |||
background-color: #fdfaf4 !important; | |||
} | |||
.vector-menu-tabs-legacy li a { | |||
color: #3d3d3d; | |||
padding: 1em 0.75em; | |||
font-weight: bold; | |||
} | |||
.vector-menu-tabs-legacy .selected a { | |||
color: #000; | |||
} | |||
/* 🧭 Sidebar section headers */ | |||
.vector-menu-portal .vector-menu-heading { | |||
font-weight: bold; | |||
color: #2e2e2e; | |||
background: none; | background: none; | ||
} | } | ||
/* | /* 🧾 Lists with custom dot */ | ||
ul { | |||
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"); | |||
} | |||
/* 📦 Tables */ | |||
table.wikitable { | |||
background: #fffdf9; | |||
border: 1px solid #d4c4a3; | |||
border-collapse: collapse; | |||
} | } | ||
.wikitable th, | |||
.wikitable td { | |||
border: 1px solid #d4c4a3; | |||
padding: 0.4em 0.6em; | |||
border: 1px solid # | |||
padding: | |||
} | } | ||
.wikitable th { | |||
background-color: #eee1c9; | |||
font-weight: bold; | |||
text-align: center; | |||
} | } | ||
/* | /* 📎 Code blocks */ | ||
pre, | pre, | ||
code { | code { | ||
background-color: #f5f2e7; | |||
border: 1px solid #d4c4a3; | |||
padding: 0.6em; | |||
font-family: Consolas, Monaco, monospace; | font-family: Consolas, Monaco, monospace; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
overflow: auto; | overflow: auto; | ||
} | |||
/* 📚 TOC */ | |||
.toc { | |||
background-color: #fdfaf4; | |||
border: 1px solid #d4c4a3; | |||
padding: 0.5em 1em; | |||
margin-top: 1em; | |||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); | |||
} | } |
Revision as of 22:01, 1 May 2025
/* ---------------------------------------------
OSRS Wiki-Inspired Background + Content Layout
--------------------------------------------- */
/* 🌄 Background image + solid color */
:root {
--body-background-image: url("/resources/assets/bg.png");
--body-background-color: #c0a886;
}
/* 🧱 Apply the background the OSRS way */
body {
background-color: var(--body-background-color);
background-image: var(--body-background-image);
background-position: top left;
background-repeat: no-repeat;
background-size: 1500px 375px;
background-attachment: scroll;
font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
color: #2e2e2e;
margin: 0;
}
/* 🌫️ Optional soft gradient overlay */
body::before {
content: "";
position: fixed;
inset: 0;
background: linear-gradient(to bottom, rgba(192,168,134,0.0) 0%, rgba(192,168,134,1) 300px);
z-index: -1;
pointer-events: none;
}
/* 📄 Content & tab container (matching OSRS) */
#content,
.vector-body,
#mw-content-text {
background-color: #fdfaf4;
border: 1px solid #d5c2a4;
padding: 1em;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}
/* 🗂️ Tabs and nav bar unified on same background */
.vector-menu-tabs-legacy,
.vector-menu-tabs-legacy li,
.vector-menu-tabs-legacy .selected {
background-color: #fdfaf4 !important;
}
.vector-menu-tabs-legacy li a {
color: #3d3d3d;
padding: 1em 0.75em;
font-weight: bold;
}
.vector-menu-tabs-legacy .selected a {
color: #000;
}
/* 🧭 Sidebar section headers */
.vector-menu-portal .vector-menu-heading {
font-weight: bold;
color: #2e2e2e;
background: none;
}
/* 🧾 Lists with custom dot */
ul {
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");
}
/* 📦 Tables */
table.wikitable {
background: #fffdf9;
border: 1px solid #d4c4a3;
border-collapse: collapse;
}
.wikitable th,
.wikitable td {
border: 1px solid #d4c4a3;
padding: 0.4em 0.6em;
}
.wikitable th {
background-color: #eee1c9;
font-weight: bold;
text-align: center;
}
/* 📎 Code blocks */
pre,
code {
background-color: #f5f2e7;
border: 1px solid #d4c4a3;
padding: 0.6em;
font-family: Consolas, Monaco, monospace;
font-size: 0.9em;
overflow: auto;
}
/* 📚 TOC */
.toc {
background-color: #fdfaf4;
border: 1px solid #d4c4a3;
padding: 0.5em 1em;
margin-top: 1em;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}