MediaWiki:Common.css: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
OSRS precise color pallette and CSS Grid
User provided OSRS layout
Line 1: Line 1:
/* ============================================================
/* ==========================================================================
   OSRS EXACT REPLICA DESIGN SYSTEM
   1. GLOBAL BACKGROUNDS & SKIN OVERRIDES (Forces the OSRS Tone)
   ============================================================ */
   ========================================================================== */
 
/* Force the entire background layout to the outer canvas tan */
@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');
body,  
 
#mw-page-base,  
/* --- 1. Global Page Background & Overrides --- */
#mw-head-base,
body, body.skin-vector-2022 {
#content,  
#mw-content-text,
.mw-body,
.mw-body-content {
     background-color: #e1d5be !important;
     background-color: #e1d5be !important;
    color-scheme: light;
    font-family: 'PT Serif', Georgia, serif;
}
}


/* Strip default MediaWiki borders and shadows */
#content, .mw-body {
#content, .mw-body {
    background-color: #e1d5be !important; /* Force tan background everywhere */
     border: none !important;
     border: none !important;
     box-shadow: none !important;
     box-shadow: none !important;
}
}


#mw-content-text {
/* Hide appearance / text / width / color tools globally to prevent bleeding */
    background-color: transparent !important;
}
 
/* Hide appearance sidebar tools globally */
#vector-appearance,
#vector-appearance,
#vector-page-tools-pinned-container,
#vector-page-tools-pinned-container,
Line 29: Line 26:
}
}


/* Hide Main Page h1 heading via CSS */
/* ==========================================================================
.page-Main_Page #firstHeading,
  2. MAIN PAGE ENGINE CONTAINER
.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 {
.osrs-main-page-wrapper {
    max-width: 100%;
    color: #4a3c28;
    box-sizing: border-box;
    font-family: 'PT Serif', Georgia, serif;
}
.osrs-layout-grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 300px;
     grid-template-columns: 1fr 300px;
     gap: 14px;
     gap: 24px;
     align-items: start;
     font-family: Arial, sans-serif;
    color: #333333;
    max-width: 1400px;
    margin: 0 auto;
}
}


@media screen and (max-width: 900px) {
@media (max-width: 900px) {
     .osrs-layout-grid {
     .osrs-main-page-wrapper {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
     }
     }
}
}


/* --- 3. Component Hierarchy --- */
/* ==========================================================================
.osrs-component-box, .osrs-widget {
  3. BASIC PARCHMENT BLOCKS & HEADINGS
     background-color: #f1e7d3;
  ========================================================================== */
     border: 1px solid #b3a07d;
/* Standard parchment container box */
     margin-bottom: 14px;
.osrs-block {
     overflow: hidden;
     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-family: 'PT Serif', Georgia, serif;
     font-size: 1.4em;
     font-size: 1.05em;
     font-weight: bold;
     font-weight: bold;
     color: #4a3c28;
     color: #4a3c28;
     padding: 8px 14px 7px;
     margin: 24px 0 12px 0;
     border-bottom: 2px solid #b3a07d;
     border-bottom: 2px solid #b3a07d;
     background-color: #f1e7d3;
     padding-bottom: 4px;
    letter-spacing: 0.01em;
}
}


/* --- 4. Welcome Box --- */
/* ==========================================================================
  4. WELCOME BOX & UPDATES
  ========================================================================== */
.osrs-welcome-box {
.osrs-welcome-box {
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
     text-align: center;
     text-align: center;
    background-color: #fcf6e8 !important; /* Bright parchment focus color */
     padding: 25px;
     padding: 25px;
    margin-bottom: 14px;
}
}
.osrs-welcome-title {
.osrs-welcome-title {
     font-size: 1.6em;
     font-size: 1.8em;
     font-weight: bold;
     font-weight: bold;
     color: #4a3c28;
     color: #2b2214;
     margin-bottom: 8px;
     margin-bottom: 8px;
    line-height: 1.2;
}
.osrs-welcome-sub {
    font-size: 0.95em;
    color: #5c4e38;
}
}


/* --- 5. Latest Updates --- */
.osrs-card-row {
.osrs-updates-row {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 1fr;
     grid-template-columns: 1fr 1fr;
     background-color: #fcf6e8;
     gap: 16px;
}
}
.osrs-update-card {
.osrs-update-card {
     padding: 12px 14px;
     background-color: #fcf6e8 !important;
    border-right: 1px solid #b3a07d;
     margin-bottom: 0;
}
.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 {
.osrs-update-card .card-header {
     font-size: 0.95em;
     font-size: 0.8em;
    color: #7a684d;
     font-weight: bold;
     font-weight: bold;
     margin-bottom: 6px;
     margin-bottom: 6px;
    line-height: 1.3;
}
}
.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-update-snippet {
    font-size: 0.85em;
    color: #4a3c28;
    line-height: 1.5;
}
}


/* --- 6. Categories Grid --- */
/* ==========================================================================
.osrs-categories-grid {
  5. CATEGORIES SEPARATION FIXED
  ========================================================================== */
.osrs-nav-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-columns: repeat(4, 1fr);
     gap: 8px;
     gap: 14px;
    padding: 10px;
    background-color: #f1e7d3;
}
}
.osrs-cat-card {
.osrs-nav-card {
     border: 1px solid #b3a07d;
    background: #f1e7d3 !important;
     background-color: #ffffff;
     border: 1px solid #b3a07d !important;
    text-align: center;
     border-radius: 2px;
    overflow: hidden;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
}
}
.osrs-cat-img-box {
.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;
     padding: 0;
     border-bottom: 1px solid #b3a07d !important;
     background-color: #ffffff;
     padding: 10px;
}
}
.osrs-cat-img-box img {
.osrs-nav-card .nav-card-image img {
    max-width: 100%;
     max-height: 90px;
     max-height: 100%;
     width: auto;
     object-fit: contain;
}
}
.osrs-cat-label {
.osrs-nav-card .nav-card-label {
     background-color: #fcf6e8;
     padding: 10px 4px;
     border-top: 1px solid #b3a07d;
     background: #fcf6e8 !important; /* Bright banner tone below the white box */
    padding: 8px 6px;
     flex-grow: 1;
     text-align: center;
    font-size: 0.9em;
}
}
.osrs-cat-label a {
.osrs-nav-card .nav-card-label a {
    color: #611313 !important;
     font-weight: bold;
     font-weight: bold;
     text-decoration: none !important;
     color: #611313 !important; /* OSRS Interface Maroon text */
     display: block;
     text-decoration: none;
}
}
.osrs-cat-label a:hover { text-decoration: underline !important; }


/* --- 7. Popular Pages (Buttons) --- */
/* ==========================================================================
.osrs-popular-inner {
  6. POPULAR PAGES STYLES
    padding: 10px;
  ========================================================================== */
    background-color: #f1e7d3;
}
.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-color: #5c4e38;
     background: #5c4e38 !important; /* Interface Brown */
     color: #ffffff !important;
     color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 0.85em;
     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 #4a3c28;
     border: 1px solid #3d3324 !important;
     line-height: 1.2;
}
.osrs-btn-wrapper a:hover {
     background: #6e5e44 !important;
}
}
.osrs-btn-wrapper a:hover { background-color: #4a3c28; }


/* --- 8. Skill Training --- */
/* ==========================================================================
.osrs-skills-inner {
  7. SIDEBAR COMPONENT WIDGETS
     padding: 8px 10px 10px;
  ========================================================================== */
}
.widget-title {
.osrs-skills-grid {
     font-size: 1.15em;
    display: grid;
     font-weight: bold;
     grid-template-columns: repeat(3, 1fr);
     color: #4a3c28;
     background-color: #fcf6e8;
    border: 1px solid #b3a07d;
}
.osrs-skill-item {
    padding: 8px 10px;
    font-size: 0.85em;
     border-bottom: 1px solid #b3a07d;
     border-bottom: 1px solid #b3a07d;
     border-right: 1px solid #b3a07d;
     padding-bottom: 6px;
    display: flex;
     margin-bottom: 12px;
    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-row {
/* Stats */
.osrs-stat-row {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
     margin-bottom: 4px;
     padding: 6px 0;
    border-bottom: 1px dashed #d1c4ac;
    font-size: 0.9em;
}
}
.osrs-stat-row b { color: #4a3c28; }
.stats-row:last-child { border-bottom: none; }


/* Help */
/* Discord Widget Styling */
.osrs-help ul {
.discord-widget {
     margin: 6px 0 0;
     background-color: #3b5580 !important;
     padding-left: 20px;
     border-color: #263854 !important;
    color: #ffffff !important;
}
}
.osrs-help a { color: #611313 !important; text-decoration: none; font-weight: bold; }
.widget-title-discord {
.osrs-help a:hover { text-decoration: underline; }
     font-size: 1.15em;
 
/* 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;
     font-weight: bold;
    color: #ffffff;
     border-bottom: 1px solid #526e9c;
    padding: 8px 14px;
    padding-bottom: 6px;
     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;
     margin-bottom: 12px;
    line-height: 1.5;
}
}
.osrs-discord-btn-wrapper a {
.discord-btn-container a {
     display: block;
     display: block;
     background-color: #5865F2;
     background: #21324d !important;
     color: #ffffff !important;
     color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
     text-align: center;
     text-align: center;
     padding: 10px;
     padding: 10px;
     border-radius: 4px;
     font-weight: bold;
     text-decoration: none !important;
     text-decoration: none !important;
     border: 1px solid #4752c4;
     border: 1px solid #141f30;
    margin-top: 12px;
}
.discord-btn-container a:hover {
    background: #17253a !important;
}
}
.osrs-discord-btn-wrapper a:hover { background-color: #4752c4; }


/* Responsive adjustments */
/* Hide Main Page title */
@media screen and (max-width: 900px) {
.page-Main_Page #firstHeading,
    .osrs-updates-row,
.page-Main_Page .mw-first-heading {
    .osrs-categories-grid,
     display: none !important;
    .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: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;
}