Template:Sandbox/Aurelain/HeroClassSkills/styles.css: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:
     margin: 1em;
     margin: 1em;
     width: max-content;
     width: max-content;
    display: flow-root; /* to play nice with the floating infobox */
}
}


Line 11: Line 12:
}
}


.hcs-box table {
@media (max-width: 950px) {
    width: 100%;
    .hcs-box td span:nth-child(2) a {
        display: none;
    }
}
}


.hcs-box th {
.hcs-box .about {
     text-align: center;
     text-align: right;
    padding-right: 4px !important; /* suppress the space allotted to the sortable markers */
}
}


.hcs-box td {
.hcs-box .toggle {
     text-align: right;
     display: inline-block;
    padding: 4px 8px;
    border: 1px solid #45494e;
    color: dodgerblue;
    border-radius: 4px;
    user-select: none;
}
}


.hcs-box td:first-child {
.hcs-box .toggle:hover {
     text-align: left;
     background: #2a3347;
}
}


.hcs-box .toggle:active {
    background: #101622;
}


/* FACTION COLORS */
.hcs-box table {
.hcs-box.faction-human .band {
     width: 100%;
     background-color: #8b7e47;
     margin-top: 8px;
     border-top: solid 1px #bcb096;
}
}


.hcs-box.faction-human .band td {
.hcs-box th {
     color: #fff;
    text-align: center;
     padding-right: 0.5em !important; /* suppress the space allotted to the sortable markers */
}
}


.hcs-box.faction-undead .band {
.hcs-box td {
     background-color: #122c29;
     text-align: right;
    color: #fff;
    padding: 0 4px;
}
}


.hcs-box.faction-nature .band {
.hcs-box td:first-child {
     background-color: #3d0c21;
     text-align: left;
}
}


.hcs-box.faction-demon .band {
@media (max-width: 950px) {
    background-color: #400f08;
    .hcs-box td:first-child {
        text-align: center;
    }
}
}


.hcs-box.faction-unfrozen .band {
.hcs-box tr > *:nth-child(3),
     background-color: #1f3756;
.hcs-box tr > *:nth-child(4),
.hcs-box tr > *:nth-child(5) {
     font-style: italic;
    opacity: 0.5;
}
}


.hcs-box.faction-dungeon .band {
.hcs-box .separator:first-child,
     background-color: #2d143c;
.hcs-box .separator:last-child,
.hcs-box .separator + .separator {
     display: none;
}
}


.hcs-box.faction-neutral .band {
.hcs-box .separator {
     background-color: #3e3e3e;
    height: 2px;
     background: #c8b36c !important;
}
}

Latest revision as of 06:11, 27 August 2026

.hcs-box {
    margin: 1em;
    width: max-content;
    display: flow-root; /* to play nice with the floating infobox */
}

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

@media (max-width: 950px) {
    .hcs-box td span:nth-child(2) a {
        display: none;
    }
}

.hcs-box .about {
    text-align: right;
}

.hcs-box .toggle {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #45494e;
    color: dodgerblue;
    border-radius: 4px;
    user-select: none;
}

.hcs-box .toggle:hover {
    background: #2a3347;
}

.hcs-box .toggle:active {
    background: #101622;
}

.hcs-box table {
    width: 100%;
    margin-top: 8px;
}

.hcs-box th {
    text-align: center;
    padding-right: 0.5em !important; /* suppress the space allotted to the sortable markers */
}

.hcs-box td {
    text-align: right;
    color: #fff;
    padding: 0 4px;
}

.hcs-box td:first-child {
    text-align: left;
}

@media (max-width: 950px) {
    .hcs-box td:first-child {
        text-align: center;
    }
}

.hcs-box tr > *:nth-child(3),
.hcs-box tr > *:nth-child(4),
.hcs-box tr > *:nth-child(5) {
    font-style: italic;
    opacity: 0.5;
}

.hcs-box .separator:first-child,
.hcs-box .separator:last-child,
.hcs-box .separator + .separator {
    display: none;
}

.hcs-box .separator {
    height: 2px;
    background: #c8b36c !important;
}