MediaWiki:Common.css: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
User provided OSRS layout
OSRS native DOM architecture styling
Line 1: Line 1:
/* ==========================================================================
/* ==========================================================================
   1. GLOBAL BACKGROUNDS & SKIN OVERRIDES (Forces the OSRS Tone)
   OSRS NATIVE DOM ARCHITECTURE (Main Page)
   ========================================================================== */
   ========================================================================== */
/* Force the entire background layout to the outer canvas tan */
 
body,
@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');
#mw-page-base,
 
#mw-head-base,
/* --- 1. Global Page Background & Override --- */
#content,
body, body.skin-vector-2022 {
#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;
     border: none !important;
     border: none !important;
     box-shadow: none !important;
     box-shadow: none !important;
}
}


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


/* ==========================================================================
.page-Main_Page #firstHeading,
  2. MAIN PAGE ENGINE CONTAINER
.page-Main_Page .mw-first-heading {
  ========================================================================== */
    display: none !important;
.osrs-main-page-wrapper {
}
.page-Main_Page .mw-body-content {
    padding-top: 0 !important;
}
 
/* --- 2. Main Page Structural DOM --- */
.mainpage-container {
    max-width: 100%;
    color: #4a3c28;
    box-sizing: border-box;
    font-family: 'PT Serif', Georgia, serif;
}
 
.mainpage-layout {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 300px;
     grid-template-columns: 1fr 300px;
     gap: 24px;
     gap: 14px;
     font-family: Arial, sans-serif;
     align-items: start;
    color: #333333;
    max-width: 1400px;
    margin: 0 auto;
}
}


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


/* ==========================================================================
/* --- 3. Header Section (.mainpage-header) --- */
  3. BASIC PARCHMENT BLOCKS & HEADINGS
.mainpage-header {
  ========================================================================== */
    display: flex;
/* Standard parchment container box */
    gap: 14px;
.osrs-block {
    margin-bottom: 14px;
     background-color: #f1e7d3 !important;  
}
     border: 1px solid #b3a07d !important;
.header-intro {
     padding: 18px;
    flex: 1;
     margin-bottom: 16px;
     background-color: #fcf6e8 !important;
    border-radius: 2px;
     border: 1px solid #b3a07d;
     padding: 25px;
     text-align: center;
}
}
 
.header-title {
/* Custom header class */
     font-size: 1.6em;
.osrs-section-title {
     font-size: 1.4em;
     font-weight: bold;
     font-weight: bold;
     color: #4a3c28;
     color: #4a3c28;
     margin: 24px 0 12px 0;
     margin-bottom: 8px;
     border-bottom: 2px solid #b3a07d;
    line-height: 1.2;
     padding-bottom: 4px;
}
.header-intro p {
    font-size: 0.95em;
     color: #5c4e38;
     margin: 0;
}
}


/* ==========================================================================
.header-stats {
  4. WELCOME BOX & UPDATES
     width: 300px;
  ========================================================================== */
    flex-shrink: 0;
.osrs-welcome-box {
     background-color: #f1e7d3 !important;
     text-align: center;
    border: 1px solid #b3a07d;
     background-color: #fcf6e8 !important; /* Bright parchment focus color */
     padding: 20px 25px;
     padding: 25px;
    box-sizing: border-box;
}
}
.osrs-welcome-title {
.header-stats ul {
     font-size: 1.8em;
     list-style: none;
     font-weight: bold;
     margin: 0;
     color: #2b2214;
     padding: 0;
    margin-bottom: 8px;
}
}
 
.header-stats li {
.osrs-card-row {
     display: flex;
     display: grid;
     justify-content: space-between;
     grid-template-columns: 1fr 1fr;
    margin-bottom: 6px;
     gap: 16px;
     font-size: 0.9em;
    border-bottom: 1px dashed #d1c4ac;
    padding-bottom: 6px;
}
}
.osrs-update-card {
.header-stats li:last-child {
    background-color: #fcf6e8 !important;
     margin-bottom: 0;
     margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.header-stats b {
    color: #4a3c28;
}
}
.osrs-update-card .card-header {
 
    font-size: 0.8em;
@media screen and (max-width: 900px) {
     color: #7a684d;
    .mainpage-header { flex-direction: column; }
    font-weight: bold;
     .header-stats { width: 100%; }
    margin-bottom: 6px;
}
}
.osrs-update-card .card-title-red a {
 
/* --- 4. Section Titles --- */
.section-title {
    font-family: 'PT Serif', Georgia, serif;
     font-size: 1.15em;
     font-size: 1.15em;
     font-weight: bold;
     font-weight: bold;
     color: #a61c1c !important; /* News Red */
     color: #4a3c28;
     text-decoration: none;
     padding: 8px 14px 7px;
}
    border-bottom: 2px solid #b3a07d;
.osrs-update-card .card-title-red a:hover {
    background-color: #f1e7d3;
     text-decoration: underline;
     margin: 0 0 14px 0;
}
}


/* ==========================================================================
/* --- 5. Tile Layout Engine --- */
  5. CATEGORIES SEPARATION FIXED
.tile-row {
  ========================================================================== */
.osrs-nav-grid {
     display: grid;
     display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.updates-row {
    grid-template-columns: 1fr 1fr;
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    gap: 0;
}
.categories-grid {
     grid-template-columns: repeat(4, 1fr);
     grid-template-columns: repeat(4, 1fr);
     gap: 14px;
     background-color: #f1e7d3;
    padding: 10px;
    border: 1px solid #b3a07d;
}
}
.osrs-nav-card {
 
    background: #f1e7d3 !important;
.tile-halves {
    border: 1px solid #b3a07d !important;
    text-align: center;
    border-radius: 2px;
    overflow: hidden;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
}
}
.osrs-nav-card .nav-card-image {
 
     background: #ffffff !important; /* Forces the white square box behind the item graphics */
/* Update Cards specific */
.update-card {
    padding: 12px 14px;
    border-right: 1px solid #b3a07d;
}
.update-card:last-child { border-right: none; }
.update-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    color: #5c4e38;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.update-title {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.3;
}
.update-title a {
     color: #a61c1c !important;
    text-decoration: none;
}
.update-title a:hover { text-decoration: underline; }
 
/* Category Cards specific (.tile-top / .tile-bottom) */
.categories-grid .tile-halves {
    border: 1px solid #b3a07d;
    background-color: #ffffff;
}
.tile-top.tile-image {
    background-color: #ffffff !important;
     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;
     padding: 10px;
    border-bottom: 1px solid #b3a07d;
}
}
.osrs-nav-card .nav-card-image img {
.tile-top.tile-image img {
     max-height: 90px;
    max-width: 100%;
     width: auto;
     max-height: 100%;
     object-fit: contain;
}
}
.osrs-nav-card .nav-card-label {
.tile-bottom.link-button {
     padding: 10px 4px;
    background-color: #fcf6e8 !important;
     background: #fcf6e8 !important; /* Bright banner tone below the white box */
     padding: 8px 6px;
    text-align: center;
     font-size: 0.9em;
     flex-grow: 1;
     flex-grow: 1;
}
}
.osrs-nav-card .nav-card-label a {
.tile-bottom.link-button a {
    color: #611313 !important;
     font-weight: bold;
     font-weight: bold;
     color: #611313 !important; /* OSRS Interface Maroon text */
     text-decoration: none !important;
     text-decoration: none;
     display: block;
}
}
.tile-bottom.link-button a:hover { text-decoration: underline !important; }


/* ==========================================================================
/* --- 6. Popular Pages & Skills --- */
  6. POPULAR PAGES STYLES
.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;
     background-color: #f1e7d3;
     border: 1px solid #b3a07d !important;
    padding: 10px;
     padding: 12px;
     border: 1px solid #b3a07d;
     margin-bottom: 14px;
}
}
.osrs-btn-wrapper a {
.link-button.dark-button a {
     display: block;
     display: block;
     background: #5c4e38 !important; /* Interface Brown */
     background-color: #5c4e38 !important;
     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 #3d3324 !important;
     border: 1px solid #3d3324;
}
.link-button.dark-button a:hover { background-color: #6e5e44 !important; }
 
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    padding: 8px 10px;
    margin-bottom: 14px;
}
}
.osrs-btn-wrapper a:hover {
.skill-item {
     background: #6e5e44 !important;
    padding: 8px 10px;
    font-size: 0.85em;
     border-bottom: 1px solid #b3a07d;
    border-right: 1px solid #b3a07d;
    display: flex;
    align-items: center;
    gap: 8px;
}
}
 
.skill-item:nth-child(3n) { border-right: none; }
/* ==========================================================================
.skill-item a {
  7. SIDEBAR COMPONENT WIDGETS
     color: #4a3c28 !important;
  ========================================================================== */
.widget-title {
     font-size: 1.15em;
     font-weight: bold;
     font-weight: bold;
     color: #4a3c28;
     text-decoration: none;
    border-bottom: 1px solid #b3a07d;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
}
.stats-row {
.skill-item a:hover { color: #611313 !important; text-decoration: underline; }
    display: flex;
 
    justify-content: space-between;
/* --- 7. Sidebar Widgets --- */
     padding: 6px 0;
.discord-widget, .widget-box {
     border-bottom: 1px dashed #d1c4ac;
     background-color: #f1e7d3;
     font-size: 0.9em;
     border: 1px solid #b3a07d;
     margin-bottom: 14px;
}
}
.stats-row:last-child { border-bottom: none; }


/* Discord Widget Styling */
.discord-widget {
.discord-widget {
     background-color: #3b5580 !important;
     background-color: #3b5580 !important;
     border-color: #263854 !important;
     border: 1px solid #263854 !important;
     color: #ffffff !important;
     color: #ffffff;
}
}
.widget-title-discord {
.discord-title {
    font-family: 'PT Serif', Georgia, serif;
     font-size: 1.15em;
     font-size: 1.15em;
     font-weight: bold;
     font-weight: bold;
     border-bottom: 1px solid #526e9c;
     border-bottom: 1px solid #526e9c;
     padding-bottom: 6px;
     padding: 10px 14px;
    margin-bottom: 12px;
}
}
.discord-btn-container a {
.discord-body { padding: 12px 14px; }
.discord-body p { margin: 0 0 12px 0; font-size: 0.85em; line-height: 1.5; color: #e2e8f0; }
.discord-btn a {
     display: block;
     display: block;
     background: #21324d !important;
     background-color: #21324d !important;
     color: #ffffff !important;
     color: #ffffff !important;
     text-align: center;
     text-align: center;
     padding: 10px;
     padding: 10px;
    font-family: 'Inter', sans-serif;
     font-weight: bold;
     font-weight: bold;
     text-decoration: none !important;
     text-decoration: none !important;
     border: 1px solid #141f30;
     border: 1px solid #141f30;
     margin-top: 12px;
    border-radius: 2px;
}
.discord-btn a:hover { background-color: #17253a !important; }
 
.widget-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    color: #4a3c28;
    border-bottom: 1px solid #b3a07d;
    padding: 10px 14px;
}
.widget-body {
    padding: 12px 14px;
    font-size: 0.85em;
    background-color: #fcf6e8;
    line-height: 1.6;
}
.widget-body p { margin: 0 0 8px 0; }
.plainlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.plainlist li {
     margin-bottom: 4px;
}
.plainlist li::before {
    content: "•";
    color: #611313;
    margin-right: 6px;
    font-weight: bold;
}
}
.discord-btn-container a:hover {
.plainlist a {
     background: #17253a !important;
     color: #611313 !important;
    font-weight: bold;
    text-decoration: none;
}
}
.plainlist a:hover { text-decoration: underline; }


/* Hide Main Page title */
@media screen and (max-width: 900px) {
.page-Main_Page #firstHeading,
    .updates-row, .categories-grid, .popular-grid, .skills-grid {
.page-Main_Page .mw-first-heading {
        grid-template-columns: 1fr;
     display: none !important;
    }
     .update-card { border-right: none; border-bottom: 1px solid #b3a07d; }
}
}

Revision as of 01:26, 11 July 2026

/* ==========================================================================
   OSRS NATIVE DOM ARCHITECTURE (Main Page)
   ========================================================================== */

@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 & Override --- */
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;
    border: none !important;
    box-shadow: none !important;
}

#mw-content-text {
    background-color: transparent !important;
}

#vector-appearance,
#vector-page-tools-pinned-container,
.vector-column-end {
    display: none !important;
}

.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 Structural DOM --- */
.mainpage-container {
    max-width: 100%;
    color: #4a3c28;
    box-sizing: border-box;
    font-family: 'PT Serif', Georgia, serif;
}

.mainpage-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 14px;
    align-items: start;
}

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

/* --- 3. Header Section (.mainpage-header) --- */
.mainpage-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.header-intro {
    flex: 1;
    background-color: #fcf6e8 !important;
    border: 1px solid #b3a07d;
    padding: 25px;
    text-align: center;
}
.header-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #4a3c28;
    margin-bottom: 8px;
    line-height: 1.2;
}
.header-intro p {
    font-size: 0.95em;
    color: #5c4e38;
    margin: 0;
}

.header-stats {
    width: 300px;
    flex-shrink: 0;
    background-color: #f1e7d3 !important;
    border: 1px solid #b3a07d;
    padding: 20px 25px;
    box-sizing: border-box;
}
.header-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-stats li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9em;
    border-bottom: 1px dashed #d1c4ac;
    padding-bottom: 6px;
}
.header-stats li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.header-stats b {
    color: #4a3c28;
}

@media screen and (max-width: 900px) {
    .mainpage-header { flex-direction: column; }
    .header-stats { width: 100%; }
}

/* --- 4. Section Titles --- */
.section-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    color: #4a3c28;
    padding: 8px 14px 7px;
    border-bottom: 2px solid #b3a07d;
    background-color: #f1e7d3;
    margin: 0 0 14px 0;
}

/* --- 5. Tile Layout Engine --- */
.tile-row {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.updates-row {
    grid-template-columns: 1fr 1fr;
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    gap: 0;
}
.categories-grid {
    grid-template-columns: repeat(4, 1fr);
    background-color: #f1e7d3;
    padding: 10px;
    border: 1px solid #b3a07d;
}

.tile-halves {
    display: flex;
    flex-direction: column;
}

/* Update Cards specific */
.update-card {
    padding: 12px 14px;
    border-right: 1px solid #b3a07d;
}
.update-card:last-child { border-right: none; }
.update-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    color: #5c4e38;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.update-title {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.3;
}
.update-title a {
    color: #a61c1c !important;
    text-decoration: none;
}
.update-title a:hover { text-decoration: underline; }

/* Category Cards specific (.tile-top / .tile-bottom) */
.categories-grid .tile-halves {
    border: 1px solid #b3a07d;
    background-color: #ffffff;
}
.tile-top.tile-image {
    background-color: #ffffff !important;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #b3a07d;
}
.tile-top.tile-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.tile-bottom.link-button {
    background-color: #fcf6e8 !important;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.9em;
    flex-grow: 1;
}
.tile-bottom.link-button a {
    color: #611313 !important;
    font-weight: bold;
    text-decoration: none !important;
    display: block;
}
.tile-bottom.link-button a:hover { text-decoration: underline !important; }

/* --- 6. Popular Pages & Skills --- */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background-color: #f1e7d3;
    padding: 10px;
    border: 1px solid #b3a07d;
    margin-bottom: 14px;
}
.link-button.dark-button a {
    display: block;
    background-color: #5c4e38 !important;
    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 #3d3324;
}
.link-button.dark-button a:hover { background-color: #6e5e44 !important; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #fcf6e8;
    border: 1px solid #b3a07d;
    padding: 8px 10px;
    margin-bottom: 14px;
}
.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;
}
.skill-item:nth-child(3n) { border-right: none; }
.skill-item a {
    color: #4a3c28 !important;
    font-weight: bold;
    text-decoration: none;
}
.skill-item a:hover { color: #611313 !important; text-decoration: underline; }

/* --- 7. Sidebar Widgets --- */
.discord-widget, .widget-box {
    background-color: #f1e7d3;
    border: 1px solid #b3a07d;
    margin-bottom: 14px;
}

.discord-widget {
    background-color: #3b5580 !important;
    border: 1px solid #263854 !important;
    color: #ffffff;
}
.discord-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    border-bottom: 1px solid #526e9c;
    padding: 10px 14px;
}
.discord-body { padding: 12px 14px; }
.discord-body p { margin: 0 0 12px 0; font-size: 0.85em; line-height: 1.5; color: #e2e8f0; }
.discord-btn a {
    display: block;
    background-color: #21324d !important;
    color: #ffffff !important;
    text-align: center;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    text-decoration: none !important;
    border: 1px solid #141f30;
    border-radius: 2px;
}
.discord-btn a:hover { background-color: #17253a !important; }

.widget-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.15em;
    font-weight: bold;
    color: #4a3c28;
    border-bottom: 1px solid #b3a07d;
    padding: 10px 14px;
}
.widget-body {
    padding: 12px 14px;
    font-size: 0.85em;
    background-color: #fcf6e8;
    line-height: 1.6;
}
.widget-body p { margin: 0 0 8px 0; }
.plainlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.plainlist li {
    margin-bottom: 4px;
}
.plainlist li::before {
    content: "•";
    color: #611313;
    margin-right: 6px;
    font-weight: bold;
}
.plainlist a {
    color: #611313 !important;
    font-weight: bold;
    text-decoration: none;
}
.plainlist a:hover { text-decoration: underline; }

@media screen and (max-width: 900px) {
    .updates-row, .categories-grid, .popular-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    .update-card { border-right: none; border-bottom: 1px solid #b3a07d; }
}