Template:UnitAbility/styles.css

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 21:14, 5 September 2026 by N (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.unit-ability .header {
    border-top: 1px solid #45494e;
    padding-top: 4px;
    margin-top: 16px;
    display: flex;
    align-items: center;
}

h2 + style + .unit-ability .header {
    border-top: none;
}

.unit-ability .icon {
    flex-shrink: 0;
    padding: 10px;
    position: relative;
}

.unit-ability .ring {
    position: absolute;
    left: 7px;
    top: 7px;
}

.unit-ability .icon img {
    filter: none;
}

.unit-ability .brief {
    flex-grow: 1;
    color: #bcb096
}

.unit-ability .type {
    font-style: italic;
}

.unit-ability .title {
    font-weight: bold;
    font-size: larger;
}

.unit-ability.hidden {
    display: none
}

.unit-ability .ribbon {
    color: #fff;
    margin-bottom: 4px;
}

.unit-ability .ribbon > span {
    background: #156e7e;
    padding: 4px 8px;
    display: inline-block;
    border-right: solid 2px rgba(0, 0, 0, 0.2);
}

.unit-ability .ribbon > span:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.unit-ability .ribbon > span:last-child {
    border-right: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.unit-ability .content {
    color: #fff;
}

.responsive-group {
    display: flex;
    gap: 0.5em;
}

@media (max-width: 720px) {
    .responsive-group {
        flex-direction: column;
    }
     /* Make top-side hints in {{Hint|...}} behave like they're set to side=right inside this area only on small screens */
    .responsive-creature-type-stats-area .wiki-hint-top .wiki-hint-floating {
        top: 50%;
        right: auto;
        bottom: auto;
        left: calc(100% + 8px);
        transform: translateY(-50%);
    }

    .responsive-creature-type-stats-area .wiki-hint-top .wiki-hint-floating::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;

        margin-top: -5px;
        margin-left: -10px;

        border-color: transparent;
        border-right-color: #d6bc7c;
    }
}