MediaWiki:Common.css

From Winds Of Valen Wiki
Revision as of 01:16, 11 July 2026 by Maintenance script (talk | contribs) (Refined OSRS Global Layout & Colors)
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.
/* ============================================================
   WINDS OF VALEN WIKI — Global CSS Overrides
   ============================================================ */

/* ---- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@700&family=Inter:wght@400;600&display=swap');

:root {
    --header-bg-image: url('/images/header-bg-placeholder.jpg'); /* Placeholder tiled bg */
}

/* ============================================================
   GLOBAL BACKGROUND & BORDERS
   ============================================================ */
body, body.skin-vector-2022 {
    background-color: #e1d5be !important;
    color-scheme: light;
    font-family: 'PT Serif', Georgia, serif;
}

#content, .mw-body {
    background-color: #f1e7d3 !important;
    border: none !important;
    box-shadow: none !important;
}

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

/* Hide appearance / text / width / color tools and right rail globally */
#vector-appearance,
#vector-page-tools-pinned-container,
.vector-column-end {
    display: none !important;
}

/* ============================================================
   HEADER & TOP NAVIGATION
   ============================================================ */
.vector-header-container,
.mw-header {
    background-image: var(--header-bg-image);
    background-repeat: repeat-x;
    background-position: top left;
    background-color: #4a3c28; /* Fallback */
}

/* Precise Logo Positioning */
#p-logo, .mw-logo {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 999;
}
#p-logo img, .mw-logo img, .mw-logo-icon {
    width: 140px !important;
    height: auto !important;
}

/* Navigation Top Bar */
.vector-page-toolbar {
    background-color: #4a3c28 !important;
    border-bottom: 1px solid #2a2214 !important;
}
.vector-page-tabs .mw-list-item a {
    color: #eedfad !important;
}
.vector-page-tabs .mw-list-item.selected a,
.vector-page-tabs .mw-list-item a:hover {
    color: #ffffff !important;
    border-bottom: 2px solid #eedfad !important;
}

/* ============================================================
   MAIN PAGE HIDE H1
   ============================================================ */
.page-Main_Page #firstHeading,
.page-Main_Page .mw-first-heading {
    display: none !important;
}
.page-Main_Page .mw-body-content {
    padding-top: 0 !important;
}

/* ============================================================
   WIKITABLES
   ============================================================ */
table.wikitable {
    background: #fcf6e8;
    border: 1px solid #a19277;
    color: #4a3c28;
}
table.wikitable > * > tr > th {
    background: #b3a07d;
    border: 1px solid #a19277;
    color: #4a3c28;
}
table.wikitable > * > tr > td {
    background: #fcf6e8;
    border: 1px solid #a19277;
}

/* ============================================================
   MAIN PAGE COMPONENTS
   ============================================================ */
.wov-main-page {
    font-family: 'PT Serif', Georgia, serif;
    color: #4a3c28;
    max-width: 100%;
    box-sizing: border-box;
}

/* Welcome Box */
.wov-welcome-box {
    background: #fcf6e8;
    border: 1px solid #a19277;
    text-align: center;
    padding: 22px 24px 18px;
    margin-bottom: 14px;
}
.wov-welcome-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.55em;
    font-weight: bold;
    color: #4a3c28;
    margin: 0 0 6px;
    line-height: 1.2;
}

/* Layout Grid */
.wov-layout-grid {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.wov-main-col {
    flex: 1 1 0;
    min-width: 0;
}
.wov-side-col {
    width: 300px;
    flex-shrink: 0;
}

/* Parchment Box */
.wov-parchment-box {
    background: #fcf6e8; /* Inside content area block */
    border: 1px solid #a19277;
    margin-bottom: 14px;
    overflow: hidden;
}

/* Section Header */
.wov-section-header {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.97em;
    font-weight: bold;
    color: #4a3c28;
    padding: 7px 14px 6px;
    border-bottom: 1px solid #a19277;
    background: #f1e7d3;
    letter-spacing: 0.015em;
}
.wov-section-header-dark {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.97em;
    font-weight: bold;
    color: #ffffff;
    padding: 8px 14px 7px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: #1e3a6e;
}

/* Updates Row */
.wov-updates-row {
    display: flex;
    gap: 0;
}
.wov-update-card {
    flex: 1;
    padding: 10px 14px 12px;
    border-right: 1px solid #a19277;
    background: #fcf6e8;
}
.wov-update-card:last-child {
    border-right: none;
}
.wov-update-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.71em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #7a6848;
    margin-bottom: 5px;
}
.wov-update-title {
    font-size: 0.93em;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 6px;
}
.wov-update-title a {
    color: #a61c1c !important;
    text-decoration: none;
}
.wov-update-title a:hover {
    text-decoration: underline;
    color: #7a1212 !important;
}
.wov-update-snippet {
    font-size: 0.84em;
    color: #4a3c28;
    margin: 0;
    line-height: 1.55;
}

/* Categories Grid */
.wov-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: #f1e7d3;
}
.wov-cat-card {
    border: 1px solid #a19277;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}
.wov-cat-img-box {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 0;
    border-bottom: 1px solid #a19277;
}
.wov-cat-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.wov-cat-label {
    background: #fcf6e8;
    padding: 6px;
    text-align: center;
    font-size: 0.84em;
}
.wov-cat-label a {
    color: #611313 !important;
    text-decoration: none !important;
    font-weight: bold;
}
.wov-cat-label a:hover {
    text-decoration: underline !important;
}

/* Popular Pages */
.wov-popular-inner {
    padding: 10px;
    background: #f1e7d3;
}
.wov-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.wov-popular-btn {
    display: block;
    background: #5c4e38;
    border: 1px solid #4a3c28;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    padding: 12px 10px;
    text-decoration: none !important;
    line-height: 1.3;
}
.wov-popular-btn:hover {
    background: #4a3c28;
}

/* Skills Grid */
.wov-skills-inner {
    padding: 8px 10px 10px;
}
.wov-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fcf6e8;
    border: 1px solid #a19277;
}
.wov-skill-item {
    padding: 6px 10px;
    font-size: 0.85em;
    border-bottom: 1px solid #a19277;
    border-right: 1px solid #a19277;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wov-skill-item:nth-child(3n) {
    border-right: none;
}
.wov-skill-item img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
}
.wov-skill-item a {
    color: #4a3c28 !important;
    text-decoration: none;
    font-weight: bold;
}
.wov-skill-item a:hover {
    color: #a61c1c !important;
    text-decoration: underline;
}

/* Sidebar Widgets */
.wov-widget {
    background: #fcf6e8;
    border: 1px solid #a19277;
    margin-bottom: 14px;
}
.wov-widget-body {
    padding: 10px 14px;
    font-size: 0.85em;
    color: #4a3c28;
    line-height: 1.6;
}
.wov-widget-body dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    margin: 0;
}
.wov-widget-body dt {
    font-weight: bold;
}
.wov-widget-body dd {
    margin: 0;
    text-align: right;
}

/* Discord Community Box */
.wov-discord-widget {
    background: #1e3a6e;
    border: 1px solid #14284f;
    margin-bottom: 14px;
}
.wov-discord-body {
    padding: 12px 14px;
}
.wov-discord-desc {
    font-size: 0.85em;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0 0 12px;
}

/* Simple solid HTML button for Discord */
.wov-discord-btn-link {
    display: block;
    background: #5865F2;
    color: #ffffff !important;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid #4752c4;
}
.wov-discord-btn-link:hover {
    background: #4752c4;
}

/* Help Improve */
.wov-help-list {
    margin: 6px 0 0;
    padding-left: 16px;
}
.wov-help-list a {
    color: #a61c1c !important;
    text-decoration: none;
}
.wov-help-list a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 800px) {
    .wov-layout-grid { flex-direction: column; }
    .wov-side-col { width: 100%; }
    .wov-categories-grid, .wov-popular-grid, .wov-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}