MediaWiki:Common.css

From Winds Of Valen Wiki
Revision as of 01:23, 11 July 2026 by Maintenance script (talk | contribs) (User provided OSRS layout)
Jump to navigation Jump to search

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.
/* ==========================================================================
   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;
}