miao-plugin/resources/character/character.css
yoimiya-kokomi 83479c3589 1. 将#老婆命令使用新版卡片进行渲染
2. 增加卡片的命座展示
2022-03-27 21:12:00 +08:00

554 lines
8.3 KiB
CSS

@font-face {
font-family: "HWZhongSong";
src: url("../font/华文中宋.TTF");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "tttgbnumber";
src: url("../font/tttgbnumber.ttf");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "NZBZ";
src: url("../font/NZBZ.ttf");
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
font-size: 16px;
color: #fff;
transform: scale(1.40);
transform-origin: 0 0;
}
.container {
position: relative;
background-color: #1234;
width: 100%;
}
.container img.bg {
width: 100%;
margin-bottom: -1px;
display: block;
}
.info {
position: absolute;
background: rgba(0, 0, 0, .5);
bottom: 0px;
left: 0px;
right: 0px;
box-shadow: 0 -5px 10px 0 #000;
padding: 35px 10px 10px 35px;
text-shadow: 0 0 1px #000, 1px 1px 3px #000;
font-family: tttgbnumber;
}
.role_box {
padding: 5px 10px;
background-repeat: no-repeat;
position: relative;
}
.title {
font-size: 36px;
}
.char_name {
font-family: "NZBZ";
font-size: 80px;
letter-spacing: 5px;
line-height: 90px;
height: 100px;
text-shadow: 0 0 3px #000, 3px 3px 5px #000;
display: inline-block;
position: absolute;
top: -60px;
left: 20px;
white-space: nowrap;
}
.char_name:after {
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;
bottom: 0;
left: -50px;
opacity: 1;
transition: width 0.3s 0.1s, opacity 0.3s 0.1s;
}
.char_name .uid {
font-size: 24px;
position: absolute;
height: 25px;
line-height: 25px;
top: -25px;
left: 15px;
letter-spacing: 0;
}
.char_name .cons {
display: inline-block;
width: 55px;
height: 35px;
line-height: 35px;
border-radius: 10px;
font-size: 20px;
vertical-align: middle;
text-align: center;
letter-spacing: 0px;
font-family: tttgbnumber;
box-shadow: 0px 0px 3px 0px #000;
text-shadow: 0 0 3px #000;
}
.cons_0 {
background: #666;
}
.cons_1 {
background-color: #62a8ea;
}
.cons_2 {
background-color: #62a8ea;
}
.cons_3 {
background-color: #45b97c;
}
.cons_4 {
background-color: #45b97c;
}
.cons_5 {
background-color: #ff5722;
}
.cons_6 {
background-color: #ff5722;
}
.crown {
width: 35px;
height: 35px;
margin-top: -3px;
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_1 {
}
.crown.crown_2 {
width: 70px;
}
.crown.crown_3 {
width: 105px;
}
.detail {
font-size: 26px;
margin: 10px 5px 2px 5px;
}
.weapon {
text-align: center;
font-size: 20px;
width: 100px;
position: absolute;
background: rgba(0, 0, 0, 0.2);
}
.weapon_lv {
position: absolute;
bottom: 0px;
right: 0;
font-size: 18px;
border-radius: 5px;
padding: 1px 5px;
background-color: rgba(0, 0, 0, var(--bg-opacity));
--bg-opacity: 0.75;
}
.weapon_affix {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 30px;
font-size: 20px;
text-align: center;
line-height: 30px;
background: #000;
border-radius: 5px;
padding: 1px 3px;
}
.weapon_cont {
position: relative;
}
.weapon_cont img {
width: 100%;
height: 100%;
}
.weapon_name {
height: 30px;
line-height: 30px;
font-size: 15px;
}
.equiv .img_box {
width: 46px;
height: 46px;
border: 1px solid #d3bc8d;
border-radius: 5px;
overflow: hidden;
}
.equiv img {
width: 100%;
transform: scale(1.2, 1.2);
}
.detail {
margin-left: 5px;
width: 300px;
margin-top: 3px;
padding: 5px 0;
display: flex;
position: relative;
}
.talent {
margin-left: 5px;
width: 300px;
padding: 5px 5px 8px;
display: flex;
position: relative;
font-size: 20px;
}
.text_box::before {
content: "";
display: block;
position: absolute;
background-image: linear-gradient(
to right,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.5) 20%,
rgba(255, 255, 255, 0.5) 80%,
rgba(255, 255, 255, 0) 100%
);
width: 0%;
height: 1px;
top: 0;
left: -15px;
width: 300px;
opacity: 1;
transition: width 0.3s 0.1s, opacity 0.3s 0.1s;
}
.text_box::after {
content: "";
display: block;
position: absolute;
background-image: linear-gradient(
to right,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.5) 20%,
rgba(255, 255, 255, 0.5) 80%,
rgba(255, 255, 255, 0) 100%
);
width: 0%;
height: 1px;
bottom: 0;
left: -15px;
width: 300px;
opacity: 1;
transition: width 0.3s 0.1s, opacity 0.3s 0.1s;
}
.detail p,
.talent div {
margin-right: 4px;
line-height: 16px;
width: 90px;
white-space: nowrap;
}
.no_skill {
padding: 10px 0;
}
.star {
width: 16px;
vertical-align: -2px;
margin-right: 1px;
}
.equiv {
margin-top: 12px;
}
.row {
display: flex;
flex-wrap: wrap;
/*margin-bottom: 5px;*/
}
.equiv {
margin: 0 10px 8px 10px;
text-align: center;
font-size: 20px;
padding: 3px;
background: rgba(0, 0, 0, 0.6);
border-radius: 5px;
height: 52px;
width: 52px;
position: relative;
display: flex;
}
.equiv .num {
position: absolute;
bottom: 0px;
font-size: 12px;
/*background: rgba(0,0,0,.6);*/
border-radius: 5px;
padding: 1px 5px;
background-color: rgba(0, 0, 0, var(--bg-opacity));
--bg-opacity: 0.75;
border-radius: 9999px;
}
.equiv .img_box {
width: 46px;
height: 46px;
border: 1px solid #d3bc8d;
border-radius: 5px;
overflow: hidden;
}
.equiv img {
width: 100%;
transform: scale(1.2, 1.2);
}
.equiv_info {
display: inline-block;
font-size: 15px;
padding: 5px 5px 1px 7px;
border-radius: 10px;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), rgba(114, 102, 104, 0.3);
margin-left: 5px;
margin-top: 5px;
}
.equiv_info .text {
margin-bottom: 5px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
body.bottom_mode {
width: 500px;
}
.bottom_mode .cons {
position: absolute;
left: 5px;
top: -30px;
}
.bottom_mode .uid {
left: 70px;
}
.bottom_mode .info {
padding-left: 150px;
}
.bottom_mode .weapon {
left: 0;
bottom: 0;
top: 40px;
padding-top: 120px;
width: 140px;
}
.bottom_mode .weapon_affix {
display: none;
}
.bottom_mode .weapon_cont {
position: absolute;
top: 0;
width: 100%;
}
.bottom_mode .weapon_lv {
border-radius: 8px 0 0 0;
padding-left: 8px;
background: rgba(0, 0, 0, .5);
bottom: 2px;
font-size: 15px;
}
.bottom_mode .weapon_cont img {
width: 110px;
height: 110px;
}
.bottom_mode .weapon_name {
background: rgba(0, 0, 0, .5);
height: 35px;
line-height: 35px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
.equiv_info {
width: calc(100% - 20px);
}
.bottom_mode .detail {
font-family: NZBZ;
}
.bottom_mode .for_left {
display: none;
}
/******** left mode **********/
.left_mode {
width: 800px;
transform: scale(1);
}
.left_mode .info {
bottom: 0;
right: initial;
padding: 10px 10px 5px 10px;
border-radius: 0 20px 0 0;
}
.left_mode .char_name {
position: fixed;
top: 10px;
font-size: 60px;
padding-left: 20px;
left: 0;
height: 85px;
text-shadow: 0 0 3px #000, 3px 3px 5px #000;
}
.left_mode .char_name:after {
box-shadow: 0 0 2px 0 #000;
}
.left_mode .char_name:after {
bottom: 1px;
}
.left_mode .char_name .uid {
top: 90px;
}
.left_mode .weapon {
top: -170px;
width: 110px;
padding: 0 0 3px 0;
left: 0;
border-radius: 0 10px 10px 0;
background: rgba(0, 0, 0, 0.8);
}
.left_mode .weapon_cont {
padding: 3px 10px 0 0;
border-radius: 0 10px 0 0;
border-bottom: 0.5px solid rgba(0, 0, 0, 0.3);
}
.left_mode .for_bottom,
.left_mode .weapon_lv,
.left_mode .weapon_affix {
display: none;
}
.left_mode .for_left {
display: block;
}
.left_mode .weapon_name {
height: 50px;
padding: 5px 0 0;
line-height: 20px;
}
.left_mode .detail {
width: auto;
margin-top: -5px;
}
.left_mode .talent {
padding-left: 0;
margin-right: -5px;
}
.left_mode .info,
.left_mode .weapon {
background: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 5px 1px #000;
}
.left_mode .equiv_info {
padding: 0;
background: none;
}