◆42Lab是非盈利性、非官方的云图计划维基百科。 ◆诚邀指挥官们加入编辑部共同建设wiki。点这里加入42Lab ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易! ◆有任何意见、建议、纠错,欢迎在任意评论区评论 ◆编辑讨论QQ群741423564 微博@GFwiki少前百科 欢迎您 |
模板:MainCard/styles.css
来自42LAB
.charCard {
border-radius: 10px 10px 5px 5px;
display: inline-block;
margin: 0 -64px -126px 0;
overflow: hidden;
position: relative;
transform: scale(0.5);
transform-origin: top left;
transition: all 0.15s ease-in-out;
width: 128px;
}
.charCard:hover {
box-shadow: 0 0 10px black;
}
@media screen and (min-width: 420px) {
.charCard.charCard.charCard {
margin: 0 5px 0 0;
transform: none;
}
}
.charCard img {
bottom: 0;
height: auto;
left: 0;
position: absolute;
}
.charCard .cardBase {
position: relative;
}
.charCard .cardFaction {
left: 16%;
top: -5%;
width: 145px;
opacity: 0.3;
filter: invert(.6);
}
.charCard .cardChar {
width: 100%;
}
.charCard .cardCharNopic {
filter: contrast(0);
width: 100%;
}
.charCard .cardClass {
bottom: auto;
height: 15px;
left: 2px;
top: 11px;
width: auto;
z-index: 1;
}
.charCard .cardID{
font-family: Mohave;
font-size: 15px;
position: absolute;
right: 2px;
top: 6px;
}
.charCard .cardName {
bottom: 5px;
font-size: 1rem;
left: 2px;
position: absolute;
}
.charCard.rarity1::after,
.charCard.rarity2::after,
.charCard.rarity3::after {
content: '';
height: 148px;
position: absolute;
right: 2px;
top: 28px;
transform: perspective(190px) rotateY(-45deg);
width: 8px;
}
.charCard.rarity1::after {
background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent) #2c99ff;
box-shadow: 5px 0 10px #2896ff;
}
.charCard.rarity2::after {
background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent) #b268f3;
box-shadow: 5px 0 10px #af64ff;
}
.charCard.rarity3::after {
background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent) #ff8b08;
box-shadow: 5px 0 10px #ff8c14;
}