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: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* eDominations Wiki Custom Styles */
/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* ===== NAVIGATION BOX STYLES ===== */
.navbox {
    border: 1px solid #4a7c59;
    background-color: #f8f9fa;
    margin: 1em 0;
    padding: 0;
    width: 100%;
    clear: both;
    border-radius: 8px;
    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 !important;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    font-size: 1.1em;
}
.navbox-title a {
    color: white !important;
    text-decoration: none;
}
.navbox-title a:hover {
    text-decoration: underline;
}
.navbox-group {
    background-color: #e8f4e8;
    font-weight: bold;
    text-align: center;
    padding: 8px 10px;
    white-space: nowrap;
    border-right: 1px solid #4a7c59;
    min-width: 80px;
}
.navbox-list {
    padding: 8px 15px;
    text-align: left;
}
.navbox-list a {
    color: #2d5a3d;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin: 2px;
}
.navbox-list a:hover {
    background-color: #4a7c59;
    color: white;
}
/* ===== PORTAL BOX STYLES ===== */
.portal-box {
    border: 2px solid #4a7c59;
    border-radius: 10px;
    margin: 10px;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7f0 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.portal-box-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 12px 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #234830;
}
.portal-box-header a {
    color: white !important;
    text-decoration: none;
}
.portal-box-content {
    padding: 15px;
}
.portal-box-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portal-box-content li {
    padding: 6px 10px;
    border-bottom: 1px solid #e0e0e0;
}
.portal-box-content li:last-child {
    border-bottom: none;
}
.portal-box-content li a {
    color: #2d5a3d;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}
.portal-box-content li a:hover {
    color: #4a7c59;
    padding-left: 10px;
}
/* ===== MAIN PAGE GRID ===== */
.main-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
/* ===== BUTTON STYLES ===== */
.wiki-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.wiki-button:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #3d6a4d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.wiki-button-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
}
.wiki-button-gold:hover {
    background: linear-gradient(135deg, #e4bf47 0%, #c8a61c 100%);
}
.wiki-button-red {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
}
.wiki-button-red:hover {
    background: linear-gradient(135deg, #d04a3c 0%, #a23b31 100%);
}
.wiki-button-blue {
    background: linear-gradient(135deg, #3498db 0%, #2471a3 100%);
}
.wiki-button-blue:hover {
    background: linear-gradient(135deg, #44a8eb 0%, #3481b3 100%);
}
/* ===== INFO BOX STYLES ===== */
.infobox {
    border: 2px solid #4a7c59;
    background-color: #f8f9fa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 0;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.infobox-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}
.infobox-image {
    text-align: center;
    padding: 15px;
    background-color: #fff;
}
.infobox-content {
    padding: 0;
}
.infobox-content table {
    width: 100%;
    border-collapse: collapse;
}
.infobox-content th {
    background-color: #e8f4e8;
    padding: 8px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    width: 40%;
}
.infobox-content td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}
/* ===== CATEGORY HEADER STYLES ===== */
.category-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0 15px 0;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.category-header a {
    color: white !important;
}
/* ===== ICON STYLES ===== */
.wiki-icon {
    vertical-align: middle;
    margin-right: 8px;
}
.wiki-icon-small {
    width: 20px;
    height: 20px;
}
.wiki-icon-medium {
    width: 32px;
    height: 32px;
}
.wiki-icon-large {
    width: 48px;
    height: 48px;
}
/* ===== QUICK LINKS BAR ===== */
.quick-links {
    background: linear-gradient(135deg, #1c2426 0%, #2a3638 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.quick-links a {
    color: #d4af37 !important;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}
.quick-links a:hover {
    background-color: #d4af37;
    color: #1c2426 !important;
}
/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, #1c2426 0%, #2d3e40 100%);
    border: 3px solid #d4af37;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.welcome-banner h1 {
    color: #d4af37;
    font-size: 2em;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.welcome-banner p {
    font-size: 1.1em;
    color: #e0e0e0;
    margin: 10px 0;
}
/* ===== STATS BOX ===== */
.stats-box {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8e8e8 100%);
    border: 2px solid #4a7c59;
    border-radius: 8px;
    padding: 15px 25px;
    margin: 10px;
    text-align: center;
    min-width: 120px;
}
.stats-box-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2d5a3d;
}
.stats-box-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}
/* ===== TABLE ENHANCEMENTS ===== */
.wikitable {
    border: 2px solid #4a7c59;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wikitable th {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%) !important;
    color: white !important;
    padding: 10px 15px !important;
}
.wikitable td {
    padding: 8px 15px !important;
}
.wikitable tr:nth-child(even) {
    background-color: #f0f7f0;
}
.wikitable tr:hover {
    background-color: #e8f4e8;
}
/* ===== TOC STYLING ===== */
.toc {
    border: 2px solid #4a7c59;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7f0 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toc .toctitle {
    font-weight: bold;
    color: #2d5a3d;
}
/* ===== FEATURED BOX ===== */
.featured-box {
    border: 3px solid #d4af37;
    background: linear-gradient(135deg, #fffef0 0%, #fff8dc 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(212,175,55,0.3);
}
.featured-box-title {
    color: #b8960c;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
}
/* ===== GAME RESOURCE ICONS ===== */
.icon-gold::before {
    content: url('https://www.edominations.com/public/game/items/gold-icon.webp');
    margin-right: 5px;
}
.icon-energy::before {
    content: url('https://www.edominations.com/public/game/icons/energy.webp');
    margin-right: 5px;
}
.icon-strength::before {
    content: url('https://www.edominations.com/public/game/icons/strength.webp');
    margin-right: 5px;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-page-grid {
        grid-template-columns: 1fr;
    }
    .infobox {
        float: none;
        width: 100%;
        margin: 1em 0;
    }
    .portal-box {
        margin: 10px 0;
    }
    .quick-links a {
        display: block;
        margin: 5px 0;
    }
}


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


Line 458: Line 24:
#newMenu ul li {
#newMenu ul li {
     position: relative;
     position: relative;
    margin: 0;
}
}


#newMenu ul li a {
#newMenu ul li a {
     display: block;
     display: block;
     color: #d4af37 !important;
    padding: 12px 18px;
     color: #d4af37;
     text-decoration: none;
     text-decoration: none;
    padding: 12px 18px;
     font-weight: bold;
     font-weight: bold;
     font-size: 0.9em;
     font-size: 0.9em;
     transition: all 0.3s;
     transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
}
}


#newMenu ul li a:hover {
#newMenu ul li a:hover {
     background-color: rgba(212,175,55,0.1);
     background: rgba(212, 175, 55, 0.2);
    border-bottom-color: #d4af37;
     color: #fff;
     color: #fff !important;
}
}


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


#newMenu ul li:hover ul {
#newMenu ul li:hover > ul {
     display: block;
     display: block;
}
}
Line 497: Line 61:
     padding: 10px 15px;
     padding: 10px 15px;
     font-size: 0.85em;
     font-size: 0.85em;
     border-bottom: 1px solid #333;
    font-weight: normal;
     border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
}


Line 504: Line 69:
}
}


/* Add padding to body when sticky menu is present */
/* Body padding to account for fixed menu */
body.has-sticky-menu {
body {
     padding-top: 50px;
     padding-top: 50px;
}
}


.language-table {
/* ===== FANCY TABLE STYLES ===== */
     opacity: 0.75;
.wikitable {
     border: 2px solid #C6E4F2;
     border-collapse: collapse;
     margin: 0 3% 0 1%;
     border: 2px solid #4a7c59;
     font-size: 85%;
     border-radius: 8px;
     padding: 0;
     overflow: hidden;
     border-radius: 5px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
     border-spacing: 0;
     background: #fff;
    background-color: #F1FAFF;
     margin: 1em 0;
}
}


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


.language-table a {
.wikitable td {
     color: #0645ad;
     padding: 10px 15px;
     text-decoration: none;
    border: 1px solid #ddd;
     background: #fff;
}
 
.wikitable tr:nth-child(even) td {
    background: #f8fdf8;
}
}


.language-table a:hover {
.wikitable tr:hover td {
     text-decoration: underline;
     background: #e8f5e8;
}
}


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


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


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


/* ===== GAME-SPECIFIC COLORS ===== */
.navbox-list {
.color-gold { color: #d4af37; }
     padding: 8px 12px;
.color-green { color: #4a7c59; }
.color-dark { color: #1c2426; }
.color-red { color: #c0392b; }
.color-blue { color: #3498db; }
 
.bg-gold { background-color: #d4af37; }
.bg-green { background-color: #4a7c59; }
.bg-dark { background-color: #1c2426; }
.bg-red { background-color: #c0392b; }
.bg-blue { background-color: #3498db; }
 
/* ===== COLLAPSIBLE NAVBOX ===== */
.navbox-collapsible {
     border: 1px solid #4a7c59;
    margin: 1em 0;
    border-radius: 5px;
    overflow: hidden;
}
}


.navbox-collapsible .navbox-title {
.navbox-list a {
     cursor: pointer;
     padding: 2px 6px;
    user-select: none;
}
}


.navbox-collapsible .navbox-title:after {
/* ===== INFOBOX STYLES ===== */
     content: ' [hide]';
.infobox {
     font-weight: normal;
    float: right;
     font-size: 0.9em;
    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;
}
}


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


.navbox-collapsible.collapsed .navbox-content {
.infobox-image {
     display: none;
    text-align: center;
    padding: 10px;
     background: #f8fdf8;
}
}


/* ===== HIDE SIDEBAR NAVIGATION ===== */
.infobox th {
#p-navigation,
    background: #e8f5e8;
#p-tb,
    padding: 8px 10px;
.citizen-drawer__navigation,
    text-align: right;
.mw-portlet-navigation {
    width: 40%;
     display: none !important;
     font-weight: bold;
}
}


/* ===== HIDE FOOTER ELEMENTS ===== */
.infobox td {
#footer-wordmark,
     padding: 8px 10px;
.citizen-footer__brand .mw-logo-wordmark,
#footer-tagline,
#footer-places,
.citizen-footer__places,
.citizen-footer__bottom {
     display: none !important;
}
}


/* ===== MOBILE RESPONSIVE FIXES ===== */
/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
@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 */
     /* Fix tables on mobile */
     .wikitable {
     .wikitable {
Line 624: Line 226:
     .wikitable th,
     .wikitable th,
     .wikitable td {
     .wikitable td {
         padding: 6px 8px !important;
         padding: 8px 10px !important;
         font-size: 0.85em;
         font-size: 0.9em;
         white-space: nowrap;
         white-space: nowrap;
     }
     }
Line 635: Line 237:
     }
     }


     /* Fix hardcoded image sizes */
     /* Keep small icons their size */
     img[width],
     img[width="30"] {
     img[height] {
        width: 30px !important;
         max-width: 100% !important;
        height: 30px !important;
         height: auto !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 */
     /* Banner images scale down */
     img[width="400"],
     img[width="400"],
     img[width="350"],
     img[width="350"],
     img[width="300"] {
     img[width="300"],
    img[width="250"] {
         width: 100% !important;
         width: 100% !important;
         max-width: 400px !important;
         max-width: 100% !important;
         height: auto !important;
         height: auto !important;
    }
    /* Rank icons - keep small */
    img[width="30"] {
        width: 24px !important;
        height: 24px !important;
     }
     }


Line 672: Line 285:
     /* Navbox mobile */
     /* Navbox mobile */
     .navbox {
     .navbox {
         font-size: 0.85em;
         font-size: 0.9em;
     }
     }


Line 679: Line 292:
         border-right: none;
         border-right: none;
         border-bottom: 1px solid #4a7c59;
         border-bottom: 1px solid #4a7c59;
        text-align: center;
     }
     }


Line 684: Line 298:
         display: block;
         display: block;
         text-align: center;
         text-align: center;
    }
    /* Portal boxes */
    .portal-box {
        margin: 10px 0 !important;
    }
    /* Quick links */
    .quick-links a {
        display: block;
        margin: 5px 0;
        padding: 12px 15px;
    }
    /* Welcome banner */
    .welcome-banner {
        padding: 15px;
    }
    .welcome-banner h1 {
        font-size: 1.4em;
    }
    /* Fix styled divs */
    div[style*="border:"],
    div[style*="border-radius:"] {
        padding: 10px !important;
        margin: 10px 0 !important;
    }
    /* Fix text in tables */
    .wikitable td,
    .wikitable th {
        word-wrap: break-word;
    }
    /* Category headers */
    .category-header {
        font-size: 1.1em;
        padding: 10px 15px;
     }
     }


Line 730: Line 304:
         display: none;
         display: none;
     }
     }
}


     /* Sticky menu mobile */
@media (max-width: 480px) {
    #newMenu ul {
     /* Extra small screens */
        flex-direction: column;
    }
 
     #newMenu ul li a {
     #newMenu ul li a {
         padding: 10px 15px;
         padding: 8px 10px !important;
         font-size: 0.85em;
         font-size: 0.75em !important;
        text-align: center;
    }
 
    #newMenu ul li ul {
        position: static;
        width: 100%;
    }
 
    /* Stats box */
    .stats-box {
        display: block;
        margin: 10px 0;
        width: 100%;
     }
     }


     /* Button fixes */
     #newMenu {
    .wiki-button {
         max-height: 40px !important;
         display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
     }
     }


     /* Featured box */
     body {
    .featured-box {
         padding-top: 40px !important;
         padding: 15px;
     }
     }
}


@media (max-width: 480px) {
    /* Extra small screens */
     .wikitable th,
     .wikitable th,
     .wikitable td {
     .wikitable td {
         padding: 4px 6px !important;
         padding: 6px 8px !important;
         font-size: 0.8em;
         font-size: 0.85em;
    }
 
    /* Rank icons even smaller */
    img[width="30"] {
        width: 20px !important;
        height: 20px !important;
     }
     }


Line 789: Line 334:
     h3 {
     h3 {
         font-size: 1.1em;
         font-size: 1.1em;
    }
    /* Compact navbox */
    .navbox-title {
        padding: 8px 10px;
        font-size: 1em;
    }
    .navbox-list a {
        padding: 4px;
        font-size: 0.85em;
    }
    /* Welcome banner compact */
    .welcome-banner h1 {
        font-size: 1.2em;
    }
    .welcome-banner p {
        font-size: 0.9em;
     }
     }


Line 841: Line 366:
}
}


/* ===== FORCE MOBILE IMAGE FIXES ===== */
/* ===== FORCE RANK IMAGES TO FIXED SIZE ===== */
@media screen and (max-width: 768px) {
.wikitable img[src*="ranks/"],
    /* Force ALL images to be responsive */
.mw-parser-output img[src*="ranks/"],
    .mw-parser-output img,
.mw-body-content img[src*="ranks/"],
    .mw-body-content img,
#mw-content-text img[src*="ranks/"],
    #mw-content-text img,
img[src*="ranks/"],
    .citizen-body img,
img[src*="ranks/"][width="30"] {
     html img,
     width: 30px !important;
     img {
     height: 30px !important;
        max-width: 100% !important;
    max-width: 30px !important;
        width: auto !important;
    min-width: 30px !important;
        height: auto !important;
    max-height: 30px !important;
     }
     min-height: 30px !important;
}


    /* Keep small icons their size */
@media (max-width: 768px) {
    img[width="30"],
     .wikitable img[src*="ranks/"],
    img[width="32"],
     .mw-parser-output img[src*="ranks/"],
    img[width="24"],
     img[src*="ranks/"] {
    img[width="20"] {
         width: 30px !important;
        width: auto !important;
         height: 30px !important;
        max-width: none !important;
         max-width: 30px !important;
    }
         min-width: 30px !important;
 
        max-height: 30px !important;
    /* Force banner images to scale */
         min-height: 30px !important;
     img[width="400"],
    img[width="350"],
    img[width="300"],
    img[width="250"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
 
    /* Fix inline HTML images */
     .mw-parser-output img[style*="width"],
     img[style*="width"] {
         width: 100% !important;
        max-width: 100% !important;
         height: auto !important;
    }
 
    /* Responsive tables */
    table.wikitable {
        display: block !important;
         overflow-x: auto !important;
         white-space: nowrap;
    }
 
    /* Fix divs with hardcoded widths */
    div[style*="width: 100%"],
    div[style*="width:100%"] {
        width: 100% !important;
    }
 
    /* Center images on mobile */
    div[style*="text-align: center"] img {
        display: block !important;
         margin: 0 auto !important;
    }
 
    /* Infobox full width */
    .infobox,
    table.infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
     }
     }
}
}


/* Extra small devices */
/* ===== HIDE FOOTER BOTTOM SECTION ===== */
@media screen and (max-width: 480px) {
.citizen-footer__bottom,
    .mw-parser-output img[width="400"],
footer.citizen-footer .citizen-footer__bottom,
    .mw-parser-output img[width="350"],
.mw-footer .citizen-footer__bottom,
    .mw-parser-output img[width="300"] {
section.citizen-footer__bottom,
        width: 100% !important;
#footer-tagline,
        height: auto !important;
#footer-icons {
     }
    display: none !important;
 
    visibility: hidden !important;
    /* Smaller table text */
     height: 0 !important;
    .wikitable {
     overflow: hidden !important;
        font-size: 12px !important;
     }
 
    .wikitable th,
    .wikitable td {
        padding: 4px !important;
    }
}
}

Latest revision as of 12:14, 18 January 2026


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