MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
OSRS EXACT REPLICA DESIGN SYSTEM
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600;700&display=swap');
/* --- 1. Global Page Background & Overrides --- */
body, body.skin-vector-2022 {
background-color: #e1d5be !important;
color-scheme: light;
font-family: 'PT Serif', Georgia, serif;
}
#content, .mw-body {
background-color: #e1d5be !important; /* Force tan background everywhere */
border: none !important;
box-shadow: none !important;
}
#mw-content-text {
background-color: transparent !important;
}
/* Hide appearance sidebar tools globally */
#vector-appearance,
#vector-page-tools-pinned-container,
.vector-column-end {
display: none !important;
}
/* Hide Main Page h1 heading via CSS */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
display: none !important;
}
.page-Main_Page .mw-body-content {
padding-top: 0 !important;
}
/* --- 2. Main Page Layout Engine --- */
.osrs-main-page-wrapper {
max-width: 100%;
color: #4a3c28;
box-sizing: border-box;
font-family: 'PT Serif', Georgia, serif;
}
.osrs-layout-grid {
display: grid;
grid-template-columns: 1fr 300px;
gap: 14px;
align-items: start;
}
@media screen and (max-width: 900px) {
.osrs-layout-grid {
grid-template-columns: 1fr;
}
}
/* --- 3. Component Hierarchy --- */
.osrs-component-box, .osrs-widget {
background-color: #f1e7d3;
border: 1px solid #b3a07d;
margin-bottom: 14px;
overflow: hidden;
}
.osrs-section-title {
font-family: 'PT Serif', Georgia, serif;
font-size: 1.05em;
font-weight: bold;
color: #4a3c28;
padding: 8px 14px 7px;
border-bottom: 2px solid #b3a07d;
background-color: #f1e7d3;
letter-spacing: 0.01em;
}
/* --- 4. Welcome Box --- */
.osrs-welcome-box {
background-color: #fcf6e8;
border: 1px solid #b3a07d;
text-align: center;
padding: 25px;
margin-bottom: 14px;
}
.osrs-welcome-title {
font-size: 1.6em;
font-weight: bold;
color: #4a3c28;
margin-bottom: 8px;
line-height: 1.2;
}
.osrs-welcome-sub {
font-size: 0.95em;
color: #5c4e38;
}
/* --- 5. Latest Updates --- */
.osrs-updates-row {
display: grid;
grid-template-columns: 1fr 1fr;
background-color: #fcf6e8;
}
.osrs-update-card {
padding: 12px 14px;
border-right: 1px solid #b3a07d;
}
.osrs-update-card:last-child { border-right: none; }
.osrs-update-tag {
font-family: 'Inter', sans-serif;
font-size: 0.7em;
font-weight: 700;
text-transform: uppercase;
color: #5c4e38;
letter-spacing: 0.05em;
margin-bottom: 4px;
}
.osrs-update-title {
font-size: 0.95em;
font-weight: bold;
margin-bottom: 6px;
line-height: 1.3;
}
.osrs-update-title a {
color: #a61c1c !important;
text-decoration: none;
}
.osrs-update-title a:hover {
text-decoration: underline;
}
.osrs-update-snippet {
font-size: 0.85em;
color: #4a3c28;
line-height: 1.5;
}
/* --- 6. Categories Grid --- */
.osrs-categories-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
padding: 10px;
background-color: #f1e7d3;
}
.osrs-cat-card {
border: 1px solid #b3a07d;
background-color: #ffffff;
display: flex;
flex-direction: column;
}
.osrs-cat-img-box {
height: 110px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
background-color: #ffffff;
}
.osrs-cat-img-box img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.osrs-cat-label {
background-color: #fcf6e8;
border-top: 1px solid #b3a07d;
padding: 8px 6px;
text-align: center;
font-size: 0.9em;
}
.osrs-cat-label a {
color: #611313 !important;
font-weight: bold;
text-decoration: none !important;
display: block;
}
.osrs-cat-label a:hover { text-decoration: underline !important; }
/* --- 7. Popular Pages (Buttons) --- */
.osrs-popular-inner {
padding: 10px;
background-color: #f1e7d3;
}
.osrs-popular-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.osrs-btn-wrapper a {
display: block;
background-color: #5c4e38;
color: #ffffff !important;
font-family: 'Inter', sans-serif;
font-weight: bold;
font-size: 0.85em;
text-align: center;
padding: 12px 6px;
text-decoration: none !important;
border: 1px solid #4a3c28;
line-height: 1.2;
}
.osrs-btn-wrapper a:hover { background-color: #4a3c28; }
/* --- 8. Skill Training --- */
.osrs-skills-inner {
padding: 8px 10px 10px;
}
.osrs-skills-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
background-color: #fcf6e8;
border: 1px solid #b3a07d;
}
.osrs-skill-item {
padding: 8px 10px;
font-size: 0.85em;
border-bottom: 1px solid #b3a07d;
border-right: 1px solid #b3a07d;
display: flex;
align-items: center;
gap: 8px;
}
.osrs-skill-item:nth-child(3n) { border-right: none; }
.osrs-skill-item a {
color: #4a3c28 !important;
font-weight: bold;
text-decoration: none;
}
.osrs-skill-item a:hover { color: #611313 !important; text-decoration: underline; }
/* --- 9. Sidebar Widgets --- */
.osrs-widget-body {
padding: 12px 14px;
font-size: 0.85em;
background-color: #fcf6e8;
line-height: 1.6;
}
/* Stats */
.osrs-stat-row {
display: flex;
justify-content: space-between;
margin-bottom: 4px;
}
.osrs-stat-row b { color: #4a3c28; }
/* Help */
.osrs-help ul {
margin: 6px 0 0;
padding-left: 20px;
}
.osrs-help a { color: #611313 !important; text-decoration: none; font-weight: bold; }
.osrs-help a:hover { text-decoration: underline; }
/* Discord Box */
.osrs-discord-widget {
background-color: #3b5580;
border: 1px solid #2a3c5a;
margin-bottom: 14px;
}
.osrs-discord-title {
font-family: 'PT Serif', Georgia, serif;
font-size: 0.95em;
font-weight: bold;
color: #ffffff;
padding: 8px 14px;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
.osrs-discord-body { padding: 12px 14px; }
.osrs-discord-desc {
font-size: 0.85em;
color: #e2e8f0;
margin-bottom: 12px;
line-height: 1.5;
}
.osrs-discord-btn-wrapper a {
display: block;
background-color: #5865F2;
color: #ffffff !important;
font-family: 'Inter', sans-serif;
font-weight: bold;
font-size: 0.9em;
text-align: center;
padding: 10px;
border-radius: 4px;
text-decoration: none !important;
border: 1px solid #4752c4;
}
.osrs-discord-btn-wrapper a:hover { background-color: #4752c4; }
/* Responsive adjustments */
@media screen and (max-width: 900px) {
.osrs-updates-row,
.osrs-categories-grid,
.osrs-popular-grid,
.osrs-skills-grid {
grid-template-columns: 1fr;
}
.osrs-update-card { border-right: none; border-bottom: 1px solid #b3a07d; }
}