miao-plugin/resources/character/character-card.css

411 lines
8.2 KiB
CSS
Raw Normal View History

.font-YS {
font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
}
.font-NZBZ {
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
}
2022-03-26 08:21:44 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
font-size: 16px;
color: #fff;
2022-04-03 22:06:03 +00:00
transform: scale(1.25);
2022-03-26 08:21:44 +00:00
transform-origin: 0 0;
}
.container {
position: relative;
background-color: #1234;
width: 100%;
padding: 0;
2022-03-26 08:21:44 +00:00
}
.container img.bg {
width: 100%;
margin-bottom: -1px;
2022-03-26 21:34:33 +00:00
display: block;
2022-03-26 08:21:44 +00:00
}
.info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.5);
}
.char-title {
2022-03-26 08:21:44 +00:00
padding: 5px 10px;
background-repeat: no-repeat;
position: absolute;
left: 0;
top: 0;
text-shadow: 0 0 3px #000, 3px 3px 5px #000;
}
.char-title .char-name {
padding-left: 10px;
display: inline-block;
white-space: nowrap;
2022-03-26 08:21:44 +00:00
position: relative;
}
.char-title .char-name > * {
vertical-align: bottom;
2022-03-26 08:21:44 +00:00
}
.char-title .char-name strong {
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
font-size: 60px;
2022-03-26 08:21:44 +00:00
letter-spacing: 5px;
font-weight: normal;
}
.char-title .char-name .cons {
font-size: 20px;
padding: 3px 8px;
border-radius: 8px;
margin: 10px 0;
text-shadow: 0 0 1px #000;
2022-03-26 08:21:44 +00:00
}
.char-title .char-name:after {
2022-03-26 08:21:44 +00:00
content: "";
display: block;
position: absolute;
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5) 20%, rgba(255, 255, 255, 0.5) 80%, rgba(255, 255, 255, 0) 100%);
right: -50px;
min-width: 360px;
height: 1px;
left: -50px;
opacity: 1;
transition: width 0.3s 0.1s, opacity 0.3s 0.1s;
box-shadow: 0 0 2px 0 #000;
bottom: 1px;
2022-03-26 08:21:44 +00:00
}
.char-title .char-lv {
font-size: 20px;
2022-03-26 21:34:33 +00:00
height: 25px;
line-height: 25px;
letter-spacing: 0;
padding-left: 10px;
}
2022-03-26 21:34:33 +00:00
.crown {
2022-04-01 23:13:09 +00:00
width: 30px;
height: 30px;
2022-03-26 21:34:33 +00:00
margin-left: 15px;
display: inline-block;
background-size: contain;
vertical-align: bottom;
background-image: url("./imgs/crown.png");
}
.crown.crown_0 {
background-image: none;
}
.crown.crown_2 {
width: 60px;
2022-03-26 21:34:33 +00:00
}
.crown.crown_3 {
width: 90px;
2022-03-26 21:34:33 +00:00
}
.detail {
font-size: 26px;
margin: 10px 5px 2px 5px;
}
/******** left mode **********/
.no-info {
2022-03-26 08:21:44 +00:00
position: absolute;
padding: 5px 10px;
bottom: 30px;
right: 10px;
font-size: 16px;
background: rgba(0, 0, 0, 0.5);
text-shadow: 1px 1px 1px #000;
2022-03-26 08:21:44 +00:00
border-radius: 5px;
}
.notice-cont {
color: #ccc;
font-size: 14px;
2022-03-26 08:21:44 +00:00
text-align: center;
2022-03-26 21:34:33 +00:00
}
.bottom_mode .no-info {
bottom: 25px;
2022-03-26 08:21:44 +00:00
}
.char-talents {
display: flex;
2022-03-26 08:21:44 +00:00
}
.char-detail {
2022-03-26 08:21:44 +00:00
display: flex;
margin: 0;
border-radius: 0;
padding: 4px;
}
.char-detail > .cont {
2022-03-26 08:21:44 +00:00
position: relative;
width: 200px;
height: 90px;
margin: 4px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont {
width: 180px;
text-shadow: 1px 1px 1px #000;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .img {
width: 80px;
height: 80px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .star {
height: 20px;
width: 100px;
2022-09-19 19:16:00 +00:00
background: url("../common/item/star-ltr.png") no-repeat;
background-size: 100px 100px;
transform: scale(0.8);
transform-origin: -5px center;
display: inline-block;
2022-09-19 19:16:00 +00:00
margin: 1px 0 -2px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .star.star-2 {
background-position: 0 -20px;
}
.weapon-cont .star.star-3 {
background-position: 0 -40px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .star.star-4 {
background-position: 0 -60px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .star.star-5 {
background-position: 0 -80px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .weapon-info {
padding: 0;
position: absolute;
top: 10px;
left: 80px;
2022-03-26 08:21:44 +00:00
}
.weapon-cont .weapon-info strong {
2022-09-19 19:16:00 +00:00
font-size: 18px;
display: block;
}
.talent-cont {
2022-03-26 08:21:44 +00:00
display: flex;
padding: 0 5px;
2022-03-26 08:21:44 +00:00
}
.talent-cont .talent-item,
.talent-cont .talent-icon {
width: 100px;
2022-09-19 19:16:00 +00:00
height: 80px;
}
.talent-cont .talent-item {
2022-03-26 08:21:44 +00:00
position: relative;
}
.talent-cont .talent-icon {
width: 60px;
height: 60px;
display: table;
position: relative;
margin: 7px -5px 13x;
border-radius: 50%;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
z-index: 90;
}
.talent-cont .talent-icon img,
.talent-cont .talent-icon .talent-icon-img {
width: 46%;
height: 46%;
2022-03-26 08:21:44 +00:00
position: absolute;
top: 50%;
left: 50%;
margin: -22% 0 0 -23%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
2022-03-26 08:21:44 +00:00
}
.talent-cont .talent-icon span {
background: #fff;
width: 34px;
height: 25px;
line-height: 25px;
font-size: 16px;
text-align: center;
border-radius: 5px;
position: absolute;
2022-09-19 19:16:00 +00:00
bottom: -25px;
left: 50%;
margin-left: -15px;
color: #000;
box-shadow: 0 0 5px 0 #000;
}
.talent-cont .talent-icon.talent-plus span {
background: #2e353e;
color: #ffdfa0;
font-weight: bold;
box-shadow: 0 0 1px 0 #d3bc8e, 1px 1px 2px 0 rgba(0, 0, 0, 0.5);
}
.talent-cont .talent-icon.talent-crown:after {
content: "";
2022-09-19 19:16:00 +00:00
display: block;
width: 20px;
height: 20px;
background: url("../character/imgs/crown.png") no-repeat;
background-size: contain;
position: absolute;
left: 50%;
top: -5px;
2022-09-19 19:16:00 +00:00
margin-left: -10px;
}
.artis-cont {
text-shadow: 1px 1px 1px #000;
}
.artis-cont .artis-sets {
height: 28px;
line-height: 28px;
text-align: center;
background: rgba(0, 0, 0, 0.3);
font-size: 14px;
2022-03-26 08:21:44 +00:00
}
.artis-cont .artis-list {
display: flex;
2022-09-19 19:16:00 +00:00
flex-wrap: wrap;
height: 65px;
2022-03-26 08:21:44 +00:00
}
.artis-cont .artis-list .item {
2022-09-19 19:16:00 +00:00
height: 65px;
padding-top: 3px;
width: 20%;
2022-09-19 19:16:00 +00:00
box-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.5);
2022-03-26 21:34:33 +00:00
}
.artis-cont .artis-list .item .item-icon {
width: 90%;
height: 35px;
margin: 4px 5%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
2022-04-03 22:06:03 +00:00
}
.artis-cont .artis-list .item .lv {
display: block;
font-size: 14px;
text-align: center;
2022-03-26 21:34:33 +00:00
}
2022-09-19 19:16:00 +00:00
.artis-cont .artis-list .item .lv:before {
content: "Lv.";
font-size: 12px;
display: inline-block;
transform: scale(0.8);
transform-origin: right 10px;
margin-left: -2px;
}
.artis-cont .artis-list .item:nth-child(odd) {
background: rgba(0, 0, 0, 0.2);
}
.artis-cont .artis-list .item:nth-child(even) {
background: rgba(134, 118, 85, 0.15);
}
.artis-cont .artis-list .item.no-item {
background: url('../common/item/artifact-icon.webp') center no-repeat;
background-size: 60% auto;
}
2022-09-23 22:57:42 +00:00
.copyright {
font-size: 12px;
2022-03-26 21:34:33 +00:00
position: absolute;
bottom: 0;
margin: 0;
right: 0;
height: 25px;
2022-09-23 22:57:42 +00:00
left: 0;
line-height: 25px;
padding: 0 10px;
2022-09-23 22:57:42 +00:00
background: rgba(0, 0, 0, 0.5);
text-align: right;
z-index: 4;
2022-03-26 21:34:33 +00:00
}
2022-09-23 22:57:42 +00:00
.copyright.data-source {
border-top: 1px solid rgba(255, 255, 255, 0.3);
left: 0;
text-align: left;
2022-09-23 22:57:42 +00:00
background: none;
z-index: 5;
}
.bottom-mode .char-title {
padding-top: 20px;
}
.bottom-mode .char-lv {
padding-top: 5px;
2022-03-26 21:34:33 +00:00
}
.bottom-mode .char-detail {
2022-03-26 21:34:33 +00:00
position: absolute;
bottom: 25px;
2022-03-26 21:34:33 +00:00
left: 0;
right: 0;
padding: 4px 0;
box-shadow: none;
2022-03-26 21:34:33 +00:00
}
.bottom-mode .char-detail > .cont {
background: none;
box-shadow: none;
backdrop-filter: none;
2022-09-19 19:16:00 +00:00
margin: 5px 0 0;
2022-03-26 21:34:33 +00:00
}
.bottom-mode .char-detail > .cont.left-line:after,
.bottom-mode .char-detail > .cont.right-line:after {
content: "";
display: block;
width: 1px;
height: 50px;
background: rgba(255, 255, 255, 0.5);
position: absolute;
top: 20px;
2022-09-19 19:16:00 +00:00
right: 5px;
2022-03-26 21:34:33 +00:00
}
.bottom-mode .char-detail > .cont.right-line:after {
2022-09-19 19:16:00 +00:00
display: none;
2022-03-26 21:34:33 +00:00
right: initial;
2022-04-03 22:06:03 +00:00
left: 0;
2022-03-26 21:34:33 +00:00
}
.bottom-mode .char-detail .notice-cont {
padding-top: 40px;
2022-03-26 21:34:33 +00:00
}
2022-09-19 19:16:00 +00:00
.bottom-mode .char-detail .artis-cont {
margin-right: 10px;
}
.bottom-mode .char-detail .artis-cont .item {
box-shadow: none;
}
.bottom-mode .char-detail .talent-cont .talent-item {
padding-top: 5px;
}
.left-mode {
width: auto;
2022-03-26 21:34:33 +00:00
}
.left-mode .container {
width: auto;
2022-03-26 21:34:33 +00:00
}
.left-mode .copyright.data-source {
border-top: 1px solid rgba(255, 255, 255, 0.3);
2022-03-26 21:34:33 +00:00
}
.left-mode .char-detail {
2022-04-03 22:06:03 +00:00
position: absolute;
bottom: 25px;
left: 0;
padding: 4px 0;
background: none;
box-shadow: none;
backdrop-filter: none;
display: block;
2022-03-26 21:34:33 +00:00
}
.left-mode .char-detail > .cont {
margin-top: 8px;
2022-09-19 19:16:00 +00:00
background-size: 100% 150%;
}
.left-mode .char-detail .notice-cont {
height: 30px;
2022-09-19 19:16:00 +00:00
line-height: 30px;
background-size: 100% 200%;
}
2022-09-19 19:16:00 +00:00
.left-mode .char-detail .talent-cont .talent-item {
padding-top: 8px;
}
.left-mode .char-detail .talent-cont .talent-item span {
bottom: -20px;
}
/*# sourceMappingURL=character-card.css.map */