MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
OSRS precise color pallette and CSS Grid |
User provided OSRS layout |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ========================================================================== | ||
OSRS | 1. GLOBAL BACKGROUNDS & SKIN OVERRIDES (Forces the OSRS Tone) | ||
============================================================ */ | ========================================================================== */ | ||
/* Force the entire background layout to the outer canvas tan */ | |||
body, | |||
#mw-page-base, | |||
#mw-head-base, | |||
body, | #content, | ||
#mw-content-text, | |||
.mw-body, | |||
.mw-body-content { | |||
background-color: #e1d5be !important; | background-color: #e1d5be !important; | ||
} | } | ||
/* Strip default MediaWiki borders and shadows */ | |||
#content, .mw-body { | #content, .mw-body { | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
/* Hide appearance / text / width / color tools globally to prevent bleeding */ | |||
/* Hide appearance | |||
#vector-appearance, | #vector-appearance, | ||
#vector-page-tools-pinned-container, | #vector-page-tools-pinned-container, | ||
| Line 29: | Line 26: | ||
} | } | ||
/* | /* ========================================================================== | ||
. | 2. MAIN PAGE ENGINE CONTAINER | ||
========================================================================== */ | |||
.osrs-main-page-wrapper { | .osrs-main-page-wrapper { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr 300px; | grid-template-columns: 1fr 300px; | ||
gap: | gap: 24px; | ||
font-family: Arial, sans-serif; | |||
color: #333333; | |||
max-width: 1400px; | |||
margin: 0 auto; | |||
} | } | ||
@media | @media (max-width: 900px) { | ||
.osrs- | .osrs-main-page-wrapper { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | } | ||
/* | /* ========================================================================== | ||
3. BASIC PARCHMENT BLOCKS & HEADINGS | |||
background-color: #f1e7d3; | ========================================================================== */ | ||
border: 1px solid #b3a07d; | /* Standard parchment container box */ | ||
margin-bottom: | .osrs-block { | ||
background-color: #f1e7d3 !important; | |||
border: 1px solid #b3a07d !important; | |||
padding: 18px; | |||
margin-bottom: 16px; | |||
border-radius: 2px; | |||
} | } | ||
/* Custom header class */ | |||
.osrs-section-title { | .osrs-section-title { | ||
font-size: 1.4em; | |||
font-size: 1. | |||
font-weight: bold; | font-weight: bold; | ||
color: #4a3c28; | color: #4a3c28; | ||
margin: 24px 0 12px 0; | |||
border-bottom: 2px solid #b3a07d; | border-bottom: 2px solid #b3a07d; | ||
padding-bottom: 4px; | |||
} | } | ||
/* | /* ========================================================================== | ||
4. WELCOME BOX & UPDATES | |||
========================================================================== */ | |||
.osrs-welcome-box { | .osrs-welcome-box { | ||
text-align: center; | text-align: center; | ||
background-color: #fcf6e8 !important; /* Bright parchment focus color */ | |||
padding: 25px; | padding: 25px; | ||
} | } | ||
.osrs-welcome-title { | .osrs-welcome-title { | ||
font-size: 1. | font-size: 1.8em; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #2b2214; | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
} | } | ||
.osrs-card-row { | |||
.osrs- | |||
display: grid; | display: grid; | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
gap: 16px; | |||
} | } | ||
.osrs-update-card { | .osrs-update-card { | ||
background-color: #fcf6e8 !important; | |||
margin-bottom: 0; | |||
margin-bottom: | |||
} | } | ||
.osrs-update- | .osrs-update-card .card-header { | ||
font-size: 0. | font-size: 0.8em; | ||
color: #7a684d; | |||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
} | } | ||
.osrs-update-title a { | .osrs-update-card .card-title-red a { | ||
color: #a61c1c !important; | font-size: 1.15em; | ||
font-weight: bold; | |||
color: #a61c1c !important; /* News Red */ | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.osrs-update-title a:hover { | .osrs-update-card .card-title-red a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* | /* ========================================================================== | ||
.osrs- | 5. CATEGORIES SEPARATION FIXED | ||
========================================================================== */ | |||
.osrs-nav-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: | gap: 14px; | ||
} | } | ||
.osrs- | .osrs-nav-card { | ||
border: 1px solid #b3a07d; | background: #f1e7d3 !important; | ||
border: 1px solid #b3a07d !important; | |||
text-align: center; | |||
border-radius: 2px; | |||
overflow: hidden; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.osrs- | .osrs-nav-card .nav-card-image { | ||
background: #ffffff !important; /* Forces the white square box behind the item graphics */ | |||
height: 110px; | height: 110px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
border-bottom: 1px solid #b3a07d !important; | |||
padding: 10px; | |||
} | } | ||
.osrs- | .osrs-nav-card .nav-card-image img { | ||
max-height: 90px; | |||
max-height: | width: auto; | ||
} | } | ||
.osrs- | .osrs-nav-card .nav-card-label { | ||
padding: 10px 4px; | |||
background: #fcf6e8 !important; /* Bright banner tone below the white box */ | |||
flex-grow: 1; | |||
} | } | ||
.osrs- | .osrs-nav-card .nav-card-label a { | ||
font-weight: bold; | font-weight: bold; | ||
color: #611313 !important; /* OSRS Interface Maroon text */ | |||
text-decoration: none; | |||
} | } | ||
/* | /* ========================================================================== | ||
6. POPULAR PAGES STYLES | |||
========================================================================== */ | |||
.osrs-popular-grid { | .osrs-popular-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: 8px; | gap: 8px; | ||
background: #f1e7d3 !important; | |||
border: 1px solid #b3a07d !important; | |||
padding: 12px; | |||
} | } | ||
.osrs-btn-wrapper a { | .osrs-btn-wrapper a { | ||
display: block; | display: block; | ||
background | background: #5c4e38 !important; /* Interface Brown */ | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-align: center; | text-align: center; | ||
padding: 12px 6px; | padding: 12px 6px; | ||
font-weight: bold; | |||
font-size: 0.9em; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
border: 1px solid # | border: 1px solid #3d3324 !important; | ||
} | |||
.osrs-btn-wrapper a:hover { | |||
background: #6e5e44 !important; | |||
} | } | ||
/* | /* ========================================================================== | ||
. | 7. SIDEBAR COMPONENT WIDGETS | ||
========================================================================== */ | |||
.widget-title { | |||
. | font-size: 1.15em; | ||
font-weight: bold; | |||
color: #4a3c28; | |||
border-bottom: 1px solid #b3a07d; | border-bottom: 1px solid #b3a07d; | ||
padding-bottom: 6px; | |||
margin-bottom: 12px; | |||
} | } | ||
.stats-row { | |||
. | |||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: 6px 0; | |||
border-bottom: 1px dashed #d1c4ac; | |||
font-size: 0.9em; | |||
} | } | ||
. | .stats-row:last-child { border-bottom: none; } | ||
/* | /* Discord Widget Styling */ | ||
. | .discord-widget { | ||
background-color: #3b5580 !important; | |||
border-color: #263854 !important; | |||
color: #ffffff !important; | |||
} | } | ||
. | .widget-title-discord { | ||
font-size: 1.15em; | |||
font-size: | |||
font-weight: bold; | font-weight: bold; | ||
border-bottom: 1px solid #526e9c; | |||
padding-bottom: 6px; | |||
border-bottom: 1px solid | |||
margin-bottom: 12px; | margin-bottom: 12px; | ||
} | } | ||
. | .discord-btn-container a { | ||
display: block; | display: block; | ||
background | background: #21324d !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
text-align: center; | text-align: center; | ||
padding: 10px; | padding: 10px; | ||
font-weight: bold; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
border: 1px solid # | border: 1px solid #141f30; | ||
margin-top: 12px; | |||
} | |||
.discord-btn-container a:hover { | |||
background: #17253a !important; | |||
} | } | ||
/* | /* Hide Main Page title */ | ||
.page-Main_Page #firstHeading, | |||
.page-Main_Page .mw-first-heading { | |||
display: none !important; | |||
} | } | ||
Revision as of 01:23, 11 July 2026
/* ==========================================================================
1. GLOBAL BACKGROUNDS & SKIN OVERRIDES (Forces the OSRS Tone)
========================================================================== */
/* Force the entire background layout to the outer canvas tan */
body,
#mw-page-base,
#mw-head-base,
#content,
#mw-content-text,
.mw-body,
.mw-body-content {
background-color: #e1d5be !important;
}
/* Strip default MediaWiki borders and shadows */
#content, .mw-body {
border: none !important;
box-shadow: none !important;
}
/* Hide appearance / text / width / color tools globally to prevent bleeding */
#vector-appearance,
#vector-page-tools-pinned-container,
.vector-column-end {
display: none !important;
}
/* ==========================================================================
2. MAIN PAGE ENGINE CONTAINER
========================================================================== */
.osrs-main-page-wrapper {
display: grid;
grid-template-columns: 1fr 300px;
gap: 24px;
font-family: Arial, sans-serif;
color: #333333;
max-width: 1400px;
margin: 0 auto;
}
@media (max-width: 900px) {
.osrs-main-page-wrapper {
grid-template-columns: 1fr;
}
}
/* ==========================================================================
3. BASIC PARCHMENT BLOCKS & HEADINGS
========================================================================== */
/* Standard parchment container box */
.osrs-block {
background-color: #f1e7d3 !important;
border: 1px solid #b3a07d !important;
padding: 18px;
margin-bottom: 16px;
border-radius: 2px;
}
/* Custom header class */
.osrs-section-title {
font-size: 1.4em;
font-weight: bold;
color: #4a3c28;
margin: 24px 0 12px 0;
border-bottom: 2px solid #b3a07d;
padding-bottom: 4px;
}
/* ==========================================================================
4. WELCOME BOX & UPDATES
========================================================================== */
.osrs-welcome-box {
text-align: center;
background-color: #fcf6e8 !important; /* Bright parchment focus color */
padding: 25px;
}
.osrs-welcome-title {
font-size: 1.8em;
font-weight: bold;
color: #2b2214;
margin-bottom: 8px;
}
.osrs-card-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.osrs-update-card {
background-color: #fcf6e8 !important;
margin-bottom: 0;
}
.osrs-update-card .card-header {
font-size: 0.8em;
color: #7a684d;
font-weight: bold;
margin-bottom: 6px;
}
.osrs-update-card .card-title-red a {
font-size: 1.15em;
font-weight: bold;
color: #a61c1c !important; /* News Red */
text-decoration: none;
}
.osrs-update-card .card-title-red a:hover {
text-decoration: underline;
}
/* ==========================================================================
5. CATEGORIES SEPARATION FIXED
========================================================================== */
.osrs-nav-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
.osrs-nav-card {
background: #f1e7d3 !important;
border: 1px solid #b3a07d !important;
text-align: center;
border-radius: 2px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.osrs-nav-card .nav-card-image {
background: #ffffff !important; /* Forces the white square box behind the item graphics */
height: 110px;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid #b3a07d !important;
padding: 10px;
}
.osrs-nav-card .nav-card-image img {
max-height: 90px;
width: auto;
}
.osrs-nav-card .nav-card-label {
padding: 10px 4px;
background: #fcf6e8 !important; /* Bright banner tone below the white box */
flex-grow: 1;
}
.osrs-nav-card .nav-card-label a {
font-weight: bold;
color: #611313 !important; /* OSRS Interface Maroon text */
text-decoration: none;
}
/* ==========================================================================
6. POPULAR PAGES STYLES
========================================================================== */
.osrs-popular-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
background: #f1e7d3 !important;
border: 1px solid #b3a07d !important;
padding: 12px;
}
.osrs-btn-wrapper a {
display: block;
background: #5c4e38 !important; /* Interface Brown */
color: #ffffff !important;
text-align: center;
padding: 12px 6px;
font-weight: bold;
font-size: 0.9em;
text-decoration: none !important;
border: 1px solid #3d3324 !important;
}
.osrs-btn-wrapper a:hover {
background: #6e5e44 !important;
}
/* ==========================================================================
7. SIDEBAR COMPONENT WIDGETS
========================================================================== */
.widget-title {
font-size: 1.15em;
font-weight: bold;
color: #4a3c28;
border-bottom: 1px solid #b3a07d;
padding-bottom: 6px;
margin-bottom: 12px;
}
.stats-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px dashed #d1c4ac;
font-size: 0.9em;
}
.stats-row:last-child { border-bottom: none; }
/* Discord Widget Styling */
.discord-widget {
background-color: #3b5580 !important;
border-color: #263854 !important;
color: #ffffff !important;
}
.widget-title-discord {
font-size: 1.15em;
font-weight: bold;
border-bottom: 1px solid #526e9c;
padding-bottom: 6px;
margin-bottom: 12px;
}
.discord-btn-container a {
display: block;
background: #21324d !important;
color: #ffffff !important;
text-align: center;
padding: 10px;
font-weight: bold;
text-decoration: none !important;
border: 1px solid #141f30;
margin-top: 12px;
}
.discord-btn-container a:hover {
background: #17253a !important;
}
/* Hide Main Page title */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
display: none !important;
}