Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page

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.

/* ===== STICKY MENU BASE STYLES ===== */
#newMenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1c2426 0%, #2d3e40 100%);
    border-bottom: 2px solid #d4af37;
    z-index: 9999;
    padding: 0 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#newMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#newMenu ul li {
    position: relative;
}

#newMenu ul li a {
    display: block;
    padding: 12px 18px;
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
}

#newMenu ul li a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
}

/* Dropdown menus */
#newMenu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #1c2426 0%, #2d3e40 100%);
    border: 1px solid #d4af37;
    border-top: none;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#newMenu ul li:hover > ul {
    display: block;
}

#newMenu ul li ul li a {
    padding: 10px 15px;
    font-size: 0.85em;
    font-weight: normal;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#newMenu ul li ul li:last-child a {
    border-bottom: none;
}

/* Body padding to account for fixed menu */
body {
    padding-top: 50px;
}

/* ===== FANCY TABLE STYLES ===== */
.wikitable {
    border-collapse: collapse;
    border: 2px solid #4a7c59;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #fff;
    margin: 1em 0;
}

.wikitable th {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    text-align: left;
    border: 1px solid #4a7c59;
}

.wikitable td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.wikitable tr:nth-child(even) td {
    background: #f8fdf8;
}

.wikitable tr:hover td {
    background: #e8f5e8;
}

/* ===== NAVBOX STYLES ===== */
.navbox {
    border: 2px solid #4a7c59;
    border-radius: 8px;
    margin: 1em 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbox-title {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
}

.navbox-group {
    background: #e8f5e8;
    padding: 8px 12px;
    font-weight: bold;
    border-right: 2px solid #4a7c59;
    vertical-align: middle;
}

.navbox-list {
    padding: 8px 12px;
}

.navbox-list a {
    padding: 2px 6px;
}

/* ===== INFOBOX STYLES ===== */
.infobox {
    float: right;
    width: 280px;
    margin: 0 0 1em 1em;
    border: 2px solid #4a7c59;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #fff;
}

.infobox-title {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

.infobox-image {
    text-align: center;
    padding: 10px;
    background: #f8fdf8;
}

.infobox th {
    background: #e8f5e8;
    padding: 8px 10px;
    text-align: right;
    width: 40%;
    font-weight: bold;
}

.infobox td {
    padding: 8px 10px;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    /* Sticky menu mobile - horizontal scrolling */
    #newMenu {
        padding: 0 !important;
        max-height: 44px !important;
        overflow: hidden;
    }

    #newMenu ul {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }

    #newMenu ul li {
        flex-shrink: 0;
    }

    #newMenu ul li a {
        padding: 10px 14px !important;
        font-size: 0.8em !important;
        white-space: nowrap;
    }

    /* Hide dropdown on mobile */
    #newMenu ul li ul {
        display: none !important;
    }

    body {
        padding-top: 44px !important;
    }

    /* Fix tables on mobile */
    .wikitable {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wikitable th,
    .wikitable td {
        padding: 8px 10px !important;
        font-size: 0.9em;
        white-space: nowrap;
    }

    /* Fix images - make them responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Keep small icons their size */
    img[width="30"] {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        min-width: 30px !important;
    }
    img[width="32"] {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
    }
    img[width="24"] {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
    }
    img[width="20"] {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
    }

    /* Banner images scale down */
    img[width="400"],
    img[width="350"],
    img[width="300"],
    img[width="250"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* InfoBox responsive */
    .infobox {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 1em 0 !important;
    }

    .infobox-image img {
        max-width: 200px !important;
        height: auto !important;
    }

    /* Navbox mobile */
    .navbox {
        font-size: 0.9em;
    }

    .navbox-group {
        display: block;
        border-right: none;
        border-bottom: 1px solid #4a7c59;
        text-align: center;
    }

    .navbox-list {
        display: block;
        text-align: center;
    }

    /* Hide TOC on mobile */
    .toc {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    #newMenu ul li a {
        padding: 8px 10px !important;
        font-size: 0.75em !important;
    }

    #newMenu {
        max-height: 40px !important;
    }

    body {
        padding-top: 40px !important;
    }

    .wikitable th,
    .wikitable td {
        padding: 6px 8px !important;
        font-size: 0.85em;
    }

    /* Smaller headings */
    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    /* InfoBox image smaller */
    .infobox-image img {
        max-width: 150px !important;
    }
}

/* ===== FIX SCROLLABLE TABLES ===== */
div[style*="overflow-y: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ===== FIX HTML IMG TAGS ===== */
html img {
    max-width: 100%;
    height: auto;
}

/* Make sure rank table scrolls properly on mobile */
div[style*="max-height: 600px"] {
    max-height: none !important;
}

@media (max-width: 768px) {
    div[style*="max-height: 600px"] {
        max-height: 400px !important;
        overflow-y: auto !important;
    }
}

/* ===== FORCE RANK IMAGES TO FIXED SIZE ===== */
.wikitable img[src*="ranks/"],
.mw-parser-output img[src*="ranks/"],
.mw-body-content img[src*="ranks/"],
#mw-content-text img[src*="ranks/"],
img[src*="ranks/"],
img[src*="ranks/"][width="30"] {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    min-width: 30px !important;
    max-height: 30px !important;
    min-height: 30px !important;
}

@media (max-width: 768px) {
    .wikitable img[src*="ranks/"],
    .mw-parser-output img[src*="ranks/"],
    img[src*="ranks/"] {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        min-width: 30px !important;
        max-height: 30px !important;
        min-height: 30px !important;
    }
}

/* ===== HIDE FOOTER BOTTOM SECTION ===== */
.citizen-footer__bottom,
footer.citizen-footer .citizen-footer__bottom,
.mw-footer .citizen-footer__bottom,
section.citizen-footer__bottom,
#footer-tagline,
#footer-icons {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}