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

#newMenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1c2426 0%, #2a3638 100%);
    border-bottom: 2px solid #d4af37;
    padding: 0;
    box-shadow: 0 2px 10px 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;
    margin: 0;
}

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

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

#newMenu ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1c2426;
    min-width: 200px;
    border: 1px solid #d4af37;
    border-top: none;
    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;
    border-bottom: 1px solid #333;
}

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

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

.language-table {
    opacity: 0.75;
    border: 2px solid #C6E4F2;
    margin: 0 3% 0 1%;
    font-size: 85%;
    padding: 0;
    border-radius: 5px;
    border-spacing: 0;
    background-color: #F1FAFF;
}

.language-table td {
    padding: 5px 10px;
    border: none;
}

.language-table a {
    color: #0645ad;
    text-decoration: none;
}

.language-table a:hover {
    text-decoration: underline;
}

.ebox {
    border: 2px solid #C6E4F2;
    background-color: #F1FAFF;
    border-radius: 5px;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
}

.ebox-header {
    background-color: #C6E4F2;
    padding: 8px 12px;
    font-weight: bold;
    color: #333;
}

.ebox-content {
    padding: 12px;
}

/* ===== GAME-SPECIFIC COLORS ===== */
.color-gold { color: #d4af37; }
.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 {
    cursor: pointer;
    user-select: none;
}

.navbox-collapsible .navbox-title:after {
    content: ' [hide]';
    font-weight: normal;
    font-size: 0.9em;
}

.navbox-collapsible.collapsed .navbox-title:after {
    content: ' [show]';
}

.navbox-collapsible.collapsed .navbox-content {
    display: none;
}

/* ===== HIDE SIDEBAR NAVIGATION ===== */
#p-navigation,
#p-tb,
.citizen-drawer__navigation,
.mw-portlet-navigation {
    display: none !important;
}

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