Template:UnitAbility/styles.css: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
N (talk | contribs)
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
     align-items: center;
     align-items: center;
}
}
h2 + style + .unit-ability .header {
h2 + style + .unit-ability .header {
     border-top: none;
     border-top: none;
Line 12: Line 13:
.unit-ability .icon {
.unit-ability .icon {
     flex-shrink: 0;
     flex-shrink: 0;
     padding:10px;
     padding: 10px;
     position:relative;
     position: relative;
}
}


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


Line 53: Line 54:
     padding: 4px 8px;
     padding: 4px 8px;
     display: inline-block;
     display: inline-block;
     border-right: solid 2px rgba(0,0,0,0.2)
     border-right: solid 2px rgba(0, 0, 0, 0.2);
}
}


Line 62: Line 63:


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


.unit-ability .content {
.unit-ability .content {
     color:#fff;
     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;
    }
}
}

Latest revision as of 21:14, 5 September 2026

.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;
    }
}