MediaWiki:Character-Banner.css
From Elwiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
.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: -7px;
}
.char-banner::after {
content: "";
transform: skew(50deg);
display: block;
position: absolute;
background: inherit;
width: 100px;
height: 61px;
right: -50px;
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: 350px;
padding: 1rem 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: flex;
gap: 0.7rem 0.4rem;
flex-wrap: wrap;
width: 320px;
margin-left: 0.45rem;
margin-bottom: 0;
margin-top: 0;
justify-content: space-between;
pointer-events: none;
padding: 7px;
border: 1px solid #a8baba4d!important;
}
.character-banner-select img {
height: 35px;
width: 35px;
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 .image.active {
outline: 2px solid #7cb5ff;
}
.skin-minerva .char-banner::after {
width: 50px;
right: -25px;
transform: skew(13deg);
}
.skin-minerva .char-banner {
margin-left: 1.5rem;
}
.character-banner-wrap:not(.skin-minerva .character-banner-wrap) {
margin-top: 0.5rem;
padding-top: 0;
margin-bottom: 1.9rem;
padding-bottom: 0.5rem;
}
.character-banner-wrap {
border: 1px solid;
}
.dark-mode .character-banner-wrap {
background: #2e2e2e;
}