Template:Sandbox/Aurelain/HeroesNavbox/styles.css: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
text-align: center; | text-align: center; | ||
border: solid 1px #BCB096; | border: solid 1px #BCB096; | ||
display:flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
} | |||
.heroes-navbox .faction + .faction { | |||
border-top:0; | |||
} | } | ||
| Line 11: | Line 15: | ||
padding: 4px; | padding: 4px; | ||
border-bottom: solid 1px #BCB096; | border-bottom: solid 1px #BCB096; | ||
background: currentColor; | |||
} | } | ||
| Line 18: | Line 23: | ||
.heroes-navbox .container { | .heroes-navbox .container { | ||
display:flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap:8px; | gap: 8px; | ||
padding: 8px; | padding: 8px; | ||
} | } | ||
.heroes-navbox .group { | .heroes-navbox .group { | ||
position: relative; | |||
border: solid 1px #BCB096; | border: solid 1px #BCB096; | ||
border-radius: 8px; | border-radius: 8px; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 8px; | gap: 4px; | ||
padding-top: 40px; | |||
} | |||
.heroes-navbox .label { | |||
position: absolute; | |||
padding: 0 8px 0 4px; | |||
left: 50%; | |||
top: 0; | |||
text-align: center; | |||
border: solid 1px #BCB096; | |||
border-top: none; | |||
border-bottom-left-radius: 8px; | |||
border-bottom-right-radius: 8px; | |||
background: currentColor; | |||
transform: translateX(-50%); | |||
} | |||
.heroes-navbox .label img { | |||
width: 24px !important; | |||
} | |||
.heroes-navbox .label a { | |||
color: #fff !important; | |||
} | } | ||
| Line 49: | Line 74: | ||
.heroes-navbox .general-links { | .heroes-navbox .general-links { | ||
margin | margin: 6px 0 0 4px; | ||
} | } | ||
| Line 64: | Line 89: | ||
/* COLORS */ | /* COLORS */ | ||
/* == human == */ | /* == human == */ | ||
.heroes-navbox .human | .heroes-navbox .human { | ||
color: #8b7e47; | |||
} | } | ||
.heroes-navbox .human .group { | .heroes-navbox .human .group { | ||
background: rgba(139, 126, 71, 0.1); | background: rgba(139, 126, 71, 0.1); | ||
| Line 72: | Line 98: | ||
/* == undead == */ | /* == undead == */ | ||
.heroes-navbox .undead | .heroes-navbox .undead { | ||
color: #122c29; | |||
} | } | ||
.heroes-navbox .undead .group { | .heroes-navbox .undead .group { | ||
background: rgba(18, 44, 41, 0.2); | background: rgba(18, 44, 41, 0.2); | ||
| Line 80: | Line 107: | ||
/* == nature == */ | /* == nature == */ | ||
.heroes-navbox .nature | .heroes-navbox .nature { | ||
color: #3d0c21; | |||
} | } | ||
.heroes-navbox .nature .group { | .heroes-navbox .nature .group { | ||
background: rgba(61, 12, 33, 0.1); | background: rgba(61, 12, 33, 0.1); | ||
| Line 88: | Line 116: | ||
/* == demon == */ | /* == demon == */ | ||
.heroes-navbox .demon | .heroes-navbox .demon { | ||
color: #400f08; | |||
} | } | ||
.heroes-navbox .demon .group { | .heroes-navbox .demon .group { | ||
background: rgba(64, 15, 8, 0.1); | background: rgba(64, 15, 8, 0.1); | ||
| Line 96: | Line 125: | ||
/* == unfrozen == */ | /* == unfrozen == */ | ||
.heroes-navbox .unfrozen | .heroes-navbox .unfrozen { | ||
color: #1f3756; | |||
} | } | ||
.heroes-navbox .unfrozen .group { | .heroes-navbox .unfrozen .group { | ||
background: rgba(31, 55, 86, 0.1); | background: rgba(31, 55, 86, 0.1); | ||
| Line 104: | Line 134: | ||
/* == dungeon == */ | /* == dungeon == */ | ||
.heroes-navbox .dungeon | .heroes-navbox .dungeon { | ||
color: #2d143c; | |||
} | } | ||
.heroes-navbox .dungeon .group { | .heroes-navbox .dungeon .group { | ||
background: rgba(45, 20, 60, 0.1); | background: rgba(45, 20, 60, 0.1); | ||
} | } | ||
Latest revision as of 09:25, 2 September 2026
.heroes-navbox .faction {
text-align: center;
border: solid 1px #BCB096;
display: flex;
flex-direction: column;
align-items: center;
}
.heroes-navbox .faction + .faction {
border-top:0;
}
.heroes-navbox .header {
width: 100%;
padding: 4px;
border-bottom: solid 1px #BCB096;
background: currentColor;
}
.heroes-navbox .header a {
color: #fff !important;
}
.heroes-navbox .container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 8px;
}
.heroes-navbox .group {
position: relative;
border: solid 1px #BCB096;
border-radius: 8px;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 4px;
padding-top: 40px;
}
.heroes-navbox .label {
position: absolute;
padding: 0 8px 0 4px;
left: 50%;
top: 0;
text-align: center;
border: solid 1px #BCB096;
border-top: none;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
background: currentColor;
transform: translateX(-50%);
}
.heroes-navbox .label img {
width: 24px !important;
}
.heroes-navbox .label a {
color: #fff !important;
}
.heroes-navbox .links {
margin-top: 8px;
display: flex;
gap: 10px;
}
.heroes-navbox .faction-links {
flex-grow: 1;
}
.heroes-navbox .general-links {
margin: 6px 0 0 4px;
}
.heroes-navbox .faction-links > *,
.heroes-navbox .general-links > * {
white-space: nowrap;
margin-right: 16px;
}
.heroes-navbox .general-links > *:last-child {
margin: 0;
}
/* COLORS */
/* == human == */
.heroes-navbox .human {
color: #8b7e47;
}
.heroes-navbox .human .group {
background: rgba(139, 126, 71, 0.1);
}
/* == undead == */
.heroes-navbox .undead {
color: #122c29;
}
.heroes-navbox .undead .group {
background: rgba(18, 44, 41, 0.2);
}
/* == nature == */
.heroes-navbox .nature {
color: #3d0c21;
}
.heroes-navbox .nature .group {
background: rgba(61, 12, 33, 0.1);
}
/* == demon == */
.heroes-navbox .demon {
color: #400f08;
}
.heroes-navbox .demon .group {
background: rgba(64, 15, 8, 0.1);
}
/* == unfrozen == */
.heroes-navbox .unfrozen {
color: #1f3756;
}
.heroes-navbox .unfrozen .group {
background: rgba(31, 55, 86, 0.1);
}
/* == dungeon == */
.heroes-navbox .dungeon {
color: #2d143c;
}
.heroes-navbox .dungeon .group {
background: rgba(45, 20, 60, 0.1);
}


