MediaWiki:Character-Banner.css: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
Line 119: Line 119:
}
}


.character-banner-select img.active {
.character-banner-select .active img {
     outline: 2px solid #7cb5ff;
     outline: 2px solid #7cb5ff;
     display: flex;
     display: flex;

Latest revision as of 20:51, 25 January 2024

.char-banner {
    width: 300px;
    height: 61px;
    transform: skew(-13deg);
    display: flex;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-top: 1.1rem;
}

.char-banner-image {
    transform: skew(13deg);
    margin-left: -9px;
}

.char-banner::after {
    content: "";
    transform: skew(50deg);
    display: block;
    position: absolute;
    background: inherit;
    width: 100px;
    height: 61px;
    right: -46px;
    z-index: 1;
    cursor: pointer;
}

html .char-banner-title {
    transform: skew(13deg);
    font-size: 1.8rem;
    font-family: "Heading";
    white-space: nowrap;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

.char-banner-tree {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem 0.25rem;
    width: 336px;
    padding: 0.85rem 0 1rem 0;
    margin-left: 0;
    user-select: none;
}

.char-banner-tree-image {
    display: flex;
    place-content: center;
    place-items: center;
    position: relative;
}

.char-banner-tree-image::before {
    content: "";
    height: 14px;
    width: 14px;
    background-position: center;
    display: block;
    background-repeat: no-repeat;
    transform: rotate(90deg);
    padding: 0.25rem;
    position: absolute;
    bottom: -50%;
    z-index: 2;
}

.char-banner-tree-image:nth-last-child(4)::before,
.char-banner-tree-image:nth-last-child(3)::before,
.char-banner-tree-image:nth-last-child(2)::before,
.char-banner-tree-image:nth-last-child(1)::before {
    display: none;
}

.image-cropped {
    width: 108px;
    height: 61px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.image-wrap {
    position: absolute;
}

.character-banner-select {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 0.7rem 0.4rem;
    flex-wrap: wrap;
    width: 320px;
    margin-left: 0;
    margin-bottom: 0;
    margin-top: 0;
    justify-content: space-around;
    pointer-events: none;
    padding: 8px;
}

.character-banner-select img {
    height: 40px;
    width: 40px;
    image-rendering: -webkit-optimize-contrast;
    user-select: none;
}

.char-banner-tree:not([data-base="Elsword"]) {
    display: none;
}

.loading-done {
    pointer-events: all;
}

.character-banner-select .active img {
    outline: 2px solid #7cb5ff;
    display: flex;
}

.skin-minerva .char-banner::after {
    width: 50px;
    right: -30px;
    transform: skew(13deg);
}

.skin-minerva .char-banner {
    margin-left: 8px;
    margin-top: 0;
}

.character-banner-wrap:not(.skin-minerva .character-banner-wrap) {
    margin-top: 0.5rem;
    padding-top: 0;
    margin-bottom: 1.9rem;
    padding-bottom: 0rem;
    display: inline-block;
    margin-left: 0.75rem;
}

.character-banner-wrap {
    border: 1px solid;
}

.dark-mode .character-banner-wrap:not(.skin-minerva div) {
    background: #2e2e2e!important;
}

.skin-minerva .character-banner-select {
    margin: 0;
}

.skin-minerva .character-banner-wrap {
    margin-bottom: 1rem;
}

.char-banner:not(.dark-mode div, .skin-minerva div) {
    box-shadow: 2px 2px 0 1px #c7d1da
}

.dark-mode .char-banner:not(.skin-minerva div) {
    box-shadow: 2px 2px 0 1px #5e666e;
}

.char-banner:not(.dark-mode div, .skin-minerva div)::after {
    box-shadow: 0 2px 0 1px #c7d1da;
    background: #d3dbe0;
}

.dark-mode .char-banner:not(.skin-minerva div)::after {
    box-shadow: 0 2px 0 1px #5e666e;
    background: #5e666e;
}

.char-banner-title:not(.dark-mode div, .skin-minerva div) {
    color: #304667;
}