Template:HeroInfoBox/styles.css: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
 
Line 65: Line 65:
     flex-direction: column;
     flex-direction: column;
     gap: 4px;
     gap: 4px;
}
.hero-box .army > * {
    width: 90px !important;
}
.hero-box .army a {
    color:#fff !important;
    font-size: larger;
}
}



Latest revision as of 19:22, 25 August 2026

.hero-box {
    float: right;
    clear: right;
    width: 302px; /* 300 battlefield size + 2px for left and right border, also see the @media. */
    margin: 0 1em 1em 1em;
    border: 1px solid #BCB096;
    color: #BCB096
}

@media (max-width: 600px) {
    .hero-box {
        width: 100%;
        margin: 0 0 1em 0;
    }

    .hero-box .image img {
        width: 100%;
    }
}

.hero-box > div {
    border-top: 1px solid #BCB096;
    padding: 4px;
    text-align: center;
}

.hero-box > div:first-child {
    border: none;
}

.hero-box .band {
    background-color: #1f3756;
}

.hero-box .title {
    padding: 8px;
    font-size: 150%;
}

.hero-box .image {
    padding: 0;
}

.hero-box .image img {
    filter: none;
}

.hero-box .field {
    display: flex;
    align-items: center;
}

.hero-box .field > div:first-child {
    flex-grow: 1;
    text-align: left;
}

.hero-box .field > div:last-child {
    flex-shrink: 0;
    color: #fff;
}

.hero-box .columnar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-box .army > * {
    width: 90px !important;
}

.hero-box .army a {
    color:#fff !important;
    font-size: larger;
}

/* FACTION COLORS */
.hero-box.faction-human .band {
    background-color: #8b7e47;
    color: #fff;
}

.hero-box.faction-undead .band {
    background-color: #122c29;
}

.hero-box.faction-nature .band {
    background-color: #3d0c21;
}

.hero-box.faction-demon .band {
    background-color: #540000;
}

.hero-box.faction-unfrozen .band {
    background-color: #1f3756;
}

.hero-box.faction-dungeon .band {
    background-color: #2d143c;
}

.hero-box.faction-neutral .band {
    background-color: #3e3e3e;
}