miao-plugin/resources/character/card.css

573 lines
8.6 KiB
CSS
Raw Normal View History

2022-03-26 08:21:44 +00:00
@font-face {
font-family: "HWZhongSong";
2022-03-26 21:34:33 +00:00
src: url("../font/华文中宋.TTF");
2022-03-26 08:21:44 +00:00
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "tttgbnumber";
2022-03-26 21:34:33 +00:00
src: url("../font/tttgbnumber.ttf");
2022-03-26 08:21:44 +00:00
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;
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%;
}
.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;
background: rgba(0, 0, 0, .5);
bottom: 0px;
left: 0px;
right: 0px;
box-shadow: 0 -5px 10px 0 #000;
2022-04-01 23:13:09 +00:00
padding: 5px 10px 10px 150px;
2022-03-26 21:34:33 +00:00
text-shadow: 0 0 1px #000, 1px 1px 3px #000;
font-family: tttgbnumber;
2022-03-26 08:21:44 +00:00
}
.role_box {
padding: 5px 10px;
background-repeat: no-repeat;
position: relative;
}
.title {
font-size: 36px;
}
2022-03-26 21:34:33 +00:00
.char_name {
2022-03-26 08:21:44 +00:00
font-family: "NZBZ";
font-size: 60px;
2022-03-26 08:21:44 +00:00
letter-spacing: 5px;
line-height: 90px;
display: inline-block;
white-space: nowrap;
position: absolute;
top: 10px;
padding-left: 20px;
left: 0;
height: 85px;
text-shadow: 0 0 3px #000, 3px 3px 5px #000;
2022-03-26 08:21:44 +00:00
}
2022-03-26 21:34:33 +00:00
.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;
bottom: 0;
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
}
2022-03-26 21:34:33 +00:00
.char_name .uid {
font-size: 24px;
position: absolute;
height: 25px;
line-height: 25px;
top: -25px;
left: 15px;
letter-spacing: 0;
top: 90px;
2022-03-26 21:34:33 +00:00
}
.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;
margin-right: 15px;
}
.cons_0 {
background: #666;
}
2022-04-03 22:06:03 +00:00
.cons_0 {
color: #666;
}
.cons_1 {
2022-04-03 22:06:03 +00:00
background-color: #71b167;
color: #fff;
}
.cons_2 {
2022-04-03 22:06:03 +00:00
background-color: #369961;
color: #fff;
}
.cons_3 {
2022-04-03 22:06:03 +00:00
background-color: #4596b9;
color: #fff;
}
.cons_4 {
2022-04-03 22:06:03 +00:00
background-color: #4560b9;
color: #fff;
}
.cons_5 {
2022-04-03 22:06:03 +00:00
background-color: #531ba9cf;
color: #fff;
}
.cons_6 {
background-color: #ff5722;
2022-04-03 22:06:03 +00:00
color: #fff;
}
2022-04-03 22:06:03 +00:00
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_1 {
}
.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;
}
2022-03-26 08:21:44 +00:00
.weapon {
text-align: center;
font-size: 20px;
width: 100px;
position: absolute;
2022-03-26 21:34:33 +00:00
background: rgba(0, 0, 0, 0.2);
2022-03-26 08:21:44 +00:00
}
2022-03-26 21:34:33 +00:00
.weapon_lv {
2022-03-26 08:21:44 +00:00
position: absolute;
bottom: 0px;
2022-03-26 21:34:33 +00:00
right: 0;
font-size: 18px;
2022-03-26 08:21:44 +00:00
border-radius: 5px;
2022-04-01 23:13:09 +00:00
padding: 3px 5px;
2022-03-26 08:21:44 +00:00
background-color: rgba(0, 0, 0, var(--bg-opacity));
--bg-opacity: 0.75;
}
2022-03-26 21:34:33 +00:00
.weapon_affix {
2022-03-26 08:21:44 +00:00
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;
}
2022-03-26 21:34:33 +00:00
.weapon_cont {
position: relative;
}
.weapon_cont img {
2022-03-26 08:21:44 +00:00
width: 100%;
2022-03-26 21:34:33 +00:00
height: 100%;
}
.weapon_name {
height: 30px;
line-height: 30px;
font-size: 15px;
2022-03-26 08:21:44 +00:00
}
.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;
}
2022-03-26 21:34:33 +00:00
.talent {
2022-03-26 08:21:44 +00:00
margin-left: 5px;
width: 300px;
2022-03-26 21:34:33 +00:00
padding: 5px 5px 8px;
2022-03-26 08:21:44 +00:00
display: flex;
position: relative;
2022-03-26 21:34:33 +00:00
font-size: 20px;
2022-03-26 08:21:44 +00:00
}
.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,
2022-03-26 21:34:33 +00:00
.talent div {
2022-03-26 08:21:44 +00:00
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;
2022-03-26 21:34:33 +00:00
display: flex;
2022-03-26 08:21:44 +00:00
}
.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;
2022-04-03 22:06:03 +00:00
margin-top: 0px;
2022-03-26 08:21:44 +00:00
}
.equiv_info .text {
margin-bottom: 5px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
2022-04-03 22:06:03 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2022-03-26 08:21:44 +00:00
}
2022-03-26 21:34:33 +00:00
body.bottom_mode {
width: 500px;
}
2022-04-03 22:06:03 +00:00
.bottom_mode .info {
height: 158px;
}
2022-03-26 21:34:33 +00:00
.bottom_mode .weapon {
left: 0;
bottom: 0;
top: 0px;
2022-03-26 21:34:33 +00:00
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);
2022-04-01 23:13:09 +00:00
bottom: -8px;
2022-03-26 21:34:33 +00:00
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;
2022-04-03 22:06:03 +00:00
margin-top: 0px;
2022-03-26 21:34:33 +00:00
}
.bottom_mode .for_left {
display: none;
}
/******** left mode **********/
.left_mode {
width: 800px;
transform: scale(1);
}
.left_mode .info {
right: initial;
padding: 10px 10px 5px 10px;
2022-04-03 22:06:03 +00:00
border-radius: 8px;
2022-04-01 23:13:09 +00:00
left: 10px;
2022-04-03 22:06:03 +00:00
bottom: 10px;
2022-03-26 21:34:33 +00:00
}
.left_mode .weapon {
2022-04-03 22:06:03 +00:00
top: -110px;
2022-04-01 23:13:09 +00:00
width: 270px;
height: 100px;
2022-03-26 21:34:33 +00:00
padding: 0 0 3px 0;
2022-04-03 22:06:03 +00:00
left: 0;
2022-03-26 21:34:33 +00:00
background: rgba(0, 0, 0, 0.8);
2022-04-03 22:06:03 +00:00
border-radius: 8px;
2022-03-26 21:34:33 +00:00
}
.left_mode .weapon_cont {
2022-04-01 23:13:09 +00:00
width: 100px;
2022-03-26 21:34:33 +00:00
padding: 3px 10px 0 0;
border-radius: 0 10px 0 0;
2022-04-01 23:13:09 +00:00
border-right: 0.5px solid rgba(0, 0, 0, 0.3);
position: absolute;
top: 0;
2022-03-26 21:34:33 +00:00
}
.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;
2022-04-01 23:13:09 +00:00
font-size: 20px;
text-align: left;
line-height: 30px;
padding: 20px 0 0 110px;
2022-03-26 21:34:33 +00:00
}
.left_mode .detail {
width: auto;
margin-top: -5px;
}
.left_mode .talent {
padding-left: 0;
margin-right: -5px;
2022-04-01 23:13:09 +00:00
width: 250px;
2022-03-26 21:34:33 +00:00
}
.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;
2022-04-03 22:06:03 +00:00
margin-top: 5px;
}
.copyright {
position: absolute;
}
.left_mode .copyright {
bottom: 5px;
right: 9px;
text-shadow: 1px 1px 1px #000;
font-family: tttgbnumber;
line-height: 20px;
2022-03-26 21:34:33 +00:00
}
2022-04-03 22:06:03 +00:00
.bottom_mode .copyright {
bottom: 1px;
right: 7px;
text-shadow: 1px 1px 1px #000;
font-family: tttgbnumber;
line-height: 20px;
font-size: 10px;
}