Template:Sandbox/Aurelain/HeroInfobox/styles.css: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
width: 302px; /* 300 battlefield size + 2px for left and right border, also see the @media. */ | width: 302px; /* 300 battlefield size + 2px for left and right border, also see the @media. */ | ||
margin: 0 1em 1em 1em; | margin: 0 1em 1em 1em; | ||
border: 1px solid #BCB096; | |||
} | } | ||
| Line 16: | Line 17: | ||
} | } | ||
.hero-box | .hero-box > div { | ||
border: 1px solid #BCB096; | border: 1px solid #BCB096; | ||
padding: 4px; | padding: 4px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Revision as of 07:20, 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;
}
@media (max-width: 600px) {
.hero-box {
width: 100%;
margin: 0 0 1em 0;
}
.hero-box .image img {
width: 100%;
}
}
.hero-box > div {
border: 1px solid #BCB096;
padding: 4px;
text-align: center;
}
.hero-box .band {
background-color: #1f3756;
}
.hero-box .title {
padding: 8px;
font-size: 150%;
}
.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;
}
/* FACTION COLORS */
.hero-box.faction-human .band {
background-color:#1e465c;
}
.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;
}


