Template:Sandbox/Aurelain/HeroClassInfobox/styles.css

From Heroes of Might and Magic: Olden Era Official Wiki
.hc-box {
    float: right;
    clear: right;
    width: 302px;
    margin: 0 1em 1em 1em;
}

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

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

.hc-box table {
    border-collapse: collapse;
    border: 1px solid #BCB096;
    width: 100%;
}

.hc-box td {
    border: 1px solid #BCB096;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
}

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

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

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

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

.hc-box .band td {
    padding: 1px;
}

.hc-box .title {
    padding: 0;
    line-height: 1.1;
    font-size: 150%;
}

.hc-box .title .field > div:first-child {
    padding-left: 16px;
    text-align: left;
}

.hc-box .type {
    margin-top: 4px;
    font-size: 60%;
}

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

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

.hc-box .attributes {
    border: none;
    margin: 4px auto 8px;
    width: 280px;
}

.hc-box .attribute {
    display: inline-block;
    border-right: solid 1px #bcb096;
    padding: 0 12px;
    margin-bottom: -4px;
    color: #fff;
    text-align: center;
}

.hc-box .odds25 i {
    color: #fff;
    font-style: normal;
}

.hc-box .attribute:last-child {
    border-right: none;
}

.hc-box .attributes img {
    margin-right: -4px;
}

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

.hc-box.faction-human .band td {
    color: #fff;
}

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

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

.hc-box.faction-demon .band {
    background-color: #400f08;
}

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

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

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