MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Refined OSRS Global Layout & Colors |
OSRS precise color pallette and CSS Grid |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
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'); | |||
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400 | |||
/* --- 1. Global Page Background & Overrides --- */ | |||
body, body.skin-vector-2022 { | body, body.skin-vector-2022 { | ||
background-color: #e1d5be !important; | background-color: #e1d5be !important; | ||
| Line 20: | Line 13: | ||
#content, .mw-body { | #content, .mw-body { | ||
background-color: # | background-color: #e1d5be !important; /* Force tan background everywhere */ | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
| Line 29: | Line 22: | ||
} | } | ||
/* Hide appearance | /* Hide appearance sidebar tools globally */ | ||
#vector-appearance, | #vector-appearance, | ||
#vector-page-tools-pinned-container, | #vector-page-tools-pinned-container, | ||
| Line 36: | Line 29: | ||
} | } | ||
/* | /* Hide Main Page h1 heading via CSS */ | ||
.page-Main_Page #firstHeading, | .page-Main_Page #firstHeading, | ||
.page-Main_Page .mw-first-heading { | .page-Main_Page .mw-first-heading { | ||
| Line 86: | Line 38: | ||
} | } | ||
/* | /* --- 2. Main Page Layout Engine --- */ | ||
.osrs-main-page-wrapper { | |||
max-width: 100%; | |||
color: #4a3c28; | 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: # | background-color: #f1e7d3; | ||
border: 1px solid # | border: 1px solid #b3a07d; | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
overflow: hidden; | |||
} | } | ||
. | |||
.osrs-section-title { | |||
font-family: 'PT Serif', Georgia, serif; | font-family: 'PT Serif', Georgia, serif; | ||
font-size: 1. | font-size: 1.05em; | ||
font-weight: bold; | font-weight: bold; | ||
color: #4a3c28; | 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; | |||
. | |||
. | |||
background: #fcf6e8; | |||
border: 1px solid # | |||
margin-bottom: 14px; | margin-bottom: 14px; | ||
} | } | ||
.osrs-welcome-title { | |||
font-size: 1.6em; | |||
. | |||
font-size: | |||
font-weight: bold; | font-weight: bold; | ||
color: #4a3c28; | color: #4a3c28; | ||
margin-bottom: 8px; | |||
line-height: 1.2; | |||
} | } | ||
. | .osrs-welcome-sub { | ||
font-size: 0.95em; | |||
font-size: 0. | color: #5c4e38; | ||
color: # | |||
} | } | ||
/* Updates | /* --- 5. Latest Updates --- */ | ||
. | .osrs-updates-row { | ||
display: | display: grid; | ||
grid-template-columns: 1fr 1fr; | |||
background-color: #fcf6e8; | |||
} | } | ||
. | .osrs-update-card { | ||
padding: 12px 14px; | |||
padding: | border-right: 1px solid #b3a07d; | ||
border-right: 1px solid # | |||
} | } | ||
. | .osrs-update-card:last-child { border-right: none; } | ||
.osrs-update-tag { | |||
} | |||
. | |||
font-family: 'Inter', sans-serif; | font-family: 'Inter', sans-serif; | ||
font-size: 0. | font-size: 0.7em; | ||
font-weight: | font-weight: 700; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | color: #5c4e38; | ||
letter-spacing: 0.05em; | |||
margin-bottom: | margin-bottom: 4px; | ||
} | } | ||
. | .osrs-update-title { | ||
font-size: 0. | font-size: 0.95em; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
line-height: 1.3; | |||
} | } | ||
. | .osrs-update-title a { | ||
color: #a61c1c !important; | color: #a61c1c !important; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
. | .osrs-update-title a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
. | .osrs-update-snippet { | ||
font-size: 0. | font-size: 0.85em; | ||
color: #4a3c28; | color: #4a3c28; | ||
line-height: 1.5; | |||
line-height: 1. | |||
} | } | ||
/* Categories Grid */ | /* --- 6. Categories Grid --- */ | ||
. | .osrs-categories-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: 8px; | gap: 8px; | ||
padding: 10px; | padding: 10px; | ||
background: #f1e7d3; | background-color: #f1e7d3; | ||
} | } | ||
. | .osrs-cat-card { | ||
border: 1px solid # | border: 1px solid #b3a07d; | ||
background-color: #ffffff; | |||
background: #ffffff; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
. | .osrs-cat-img-box { | ||
height: 110px; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 0; | padding: 0; | ||
background-color: #ffffff; | |||
} | } | ||
. | .osrs-cat-img-box img { | ||
max-width: 100%; | max-width: 100%; | ||
max-height: 100%; | max-height: 100%; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
. | .osrs-cat-label { | ||
background: #fcf6e8; | background-color: #fcf6e8; | ||
padding: 6px; | border-top: 1px solid #b3a07d; | ||
padding: 8px 6px; | |||
text-align: center; | text-align: center; | ||
font-size: 0. | font-size: 0.9em; | ||
} | } | ||
. | .osrs-cat-label a { | ||
color: #611313 !important; | color: #611313 !important; | ||
font-weight: bold; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
display: block; | |||
} | } | ||
.osrs-cat-label a:hover { text-decoration: underline !important; } | |||
/* Popular Pages */ | /* --- 7. Popular Pages (Buttons) --- */ | ||
. | .osrs-popular-inner { | ||
padding: 10px; | padding: 10px; | ||
background: #f1e7d3; | background-color: #f1e7d3; | ||
} | } | ||
. | .osrs-popular-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: 8px; | gap: 8px; | ||
} | } | ||
. | .osrs-btn-wrapper a { | ||
display: block; | display: block; | ||
background: #5c4e38 | background-color: #5c4e38; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Inter', sans-serif; | font-family: 'Inter', sans-serif; | ||
font-weight: bold; | |||
font-size: 0.85em; | font-size: 0.85em; | ||
text-align: center; | text-align: center; | ||
padding: 12px | padding: 12px 6px; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
line-height: 1. | 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; | padding: 8px 10px 10px; | ||
} | } | ||
. | .osrs-skills-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
background: #fcf6e8; | background-color: #fcf6e8; | ||
border: 1px solid # | border: 1px solid #b3a07d; | ||
} | } | ||
. | .osrs-skill-item { | ||
padding: | padding: 8px 10px; | ||
font-size: 0.85em; | font-size: 0.85em; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #b3a07d; | ||
border-right: 1px solid # | border-right: 1px solid #b3a07d; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 8px; | ||
} | } | ||
. | .osrs-skill-item:nth-child(3n) { border-right: none; } | ||
.osrs-skill-item a { | |||
} | |||
. | |||
color: #4a3c28 !important; | color: #4a3c28 !important; | ||
font-weight: bold; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.osrs-skill-item a:hover { color: #611313 !important; text-decoration: underline; } | |||
/* Sidebar Widgets */ | /* --- 9. Sidebar Widgets --- */ | ||
. | .osrs-widget-body { | ||
padding: 12px 14px; | |||
padding: | |||
font-size: 0.85em; | font-size: 0.85em; | ||
color: # | background-color: #fcf6e8; | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||
. | |||
display: | /* Stats */ | ||
.osrs-stat-row { | |||
display: flex; | |||
justify-content: space-between; | |||
margin-bottom: 4px; | |||
} | } | ||
. | .osrs-stat-row b { color: #4a3c28; } | ||
/* Help */ | |||
. | .osrs-help ul { | ||
margin: 0; | 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 | /* Discord Box */ | ||
. | .osrs-discord-widget { | ||
background: # | background-color: #3b5580; | ||
border: 1px solid # | border: 1px solid #2a3c5a; | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
} | } | ||
. | .osrs-discord-title { | ||
padding: | 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; | font-size: 0.85em; | ||
color: #e2e8f0; | color: #e2e8f0; | ||
margin-bottom: 12px; | |||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
.osrs-discord-btn-wrapper a { | |||
. | |||
display: block; | display: block; | ||
background: #5865F2; | background-color: #5865F2; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Inter', sans-serif; | font-family: 'Inter', sans-serif; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
text-align: center; | |||
padding: 10px; | padding: 10px; | ||
border-radius: 4px; | border-radius: 4px; | ||
| Line 384: | Line 289: | ||
border: 1px solid #4752c4; | border: 1px solid #4752c4; | ||
} | } | ||
. | .osrs-discord-btn-wrapper a:hover { background-color: #4752c4; } | ||
} | |||
@media screen and (max-width: | /* Responsive adjustments */ | ||
. | @media screen and (max-width: 900px) { | ||
. | .osrs-updates-row, | ||
.osrs-categories-grid, | |||
grid-template-columns: | .osrs-popular-grid, | ||
.osrs-skills-grid { | |||
grid-template-columns: 1fr; | |||
} | } | ||
.osrs-update-card { border-right: none; border-bottom: 1px solid #b3a07d; } | |||
} | } | ||
Revision as of 01:19, 11 July 2026
/* ============================================================
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; }
}