Change class name to role

This commit is contained in:
ZM.J 2024-07-03 19:39:21 +08:00
parent 395de670db
commit 0c1ce64101
3 changed files with 62 additions and 62 deletions

View File

@ -32,28 +32,28 @@ body,
padding-right: 10px; padding-right: 10px;
font-size: 25px; font-size: 25px;
} }
.abyss-stat-cont { .role-stat-cont {
display: flex; display: flex;
padding: 5px; padding: 5px;
} }
.abyss-stat { .role-stat {
display: flex; display: flex;
} }
.abyss-stat .cont { .role-stat .cont {
margin: 5px 10px 5px 5px; margin: 5px 10px 5px 5px;
width: 175px; width: 175px;
height: 90px; height: 90px;
} }
.abyss-stat .cont.best-record { .role-stat .cont.best-record {
width: 120px; width: 120px;
} }
.abyss-stat .cont.star-display { .role-stat .cont.star-display {
width: 230px; width: 230px;
} }
.abyss-stat strong { .role-stat strong {
text-shadow: 0 0 3px #000; text-shadow: 0 0 3px #000;
} }
.abyss-stat .stat-title { .role-stat .stat-title {
position: absolute; position: absolute;
top: 0; top: 0;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
@ -61,17 +61,17 @@ body,
width: 100%; width: 100%;
text-shadow: 0 0 1px #000; text-shadow: 0 0 1px #000;
} }
.abyss-stat .stat-title span { .role-stat .stat-title span {
display: block; display: block;
font-weight: normal; font-weight: normal;
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
font-size: 24px; font-size: 24px;
} }
.abyss-stat .stat-title strong { .role-stat .stat-title strong {
display: block; display: block;
font-size: 30px; font-size: 30px;
} }
.abyss-stat .stat-msg { .role-stat .stat-msg {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.55); background: rgba(0, 0, 0, 0.55);
@ -84,12 +84,12 @@ body,
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
} }
.abyss-stat .stat-msg .stat-star-container { .role-stat .stat-msg .stat-star-container {
flex: 0 0 11%; flex: 0 0 11%;
/* 23% 是为了在有间隙的情况下,四个元素一行 */ /* 23% 是为了在有间隙的情况下,四个元素一行 */
margin-bottom: 10px; margin-bottom: 10px;
} }
.abyss-stat .stat-msg .stat-star-container .stat-star { .role-stat .stat-msg .stat-star-container .stat-star {
width: 25px; width: 25px;
height: 25px; height: 25px;
background-size: cover; background-size: cover;
@ -101,60 +101,60 @@ body,
background-size: 100% auto; background-size: 100% auto;
background-position: 0 10%; background-position: 0 10%;
} }
.abyss-data { .role-data {
display: flex; display: flex;
padding: 0 6px; padding: 0 6px;
} }
.abyss-data .abyss-item { .role-data .role-item {
color: #fff; color: #fff;
margin: 5px; margin: 5px;
} }
.abyss-data .abyss-item .info { .role-data .role-item .info {
text-align: center; text-align: center;
text-shadow: 0 0 1px #000, 1px 1px 3px #000; text-shadow: 0 0 1px #000, 1px 1px 3px #000;
} }
.abyss-data .abyss-item .info strong { .role-data .role-item .info strong {
display: block; display: block;
font-weight: normal; font-weight: normal;
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
} }
.abyss-data .abyss-item .info span { .role-data .role-item .info span {
font-size: 24px; font-size: 24px;
display: block; display: block;
} }
.abyss-data .abyss-item .info span:after { .role-data .role-item .info span:after {
content: "次"; content: "次";
font-size: 15px; font-size: 15px;
margin-left: 2px; margin-left: 2px;
} }
.abyss-title { .role-title {
margin: -3px 0 8px; margin: -3px 0 8px;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
} }
.abyss-title strong { .role-title strong {
color: #d3bc8e; color: #d3bc8e;
font-size: 18px; font-size: 18px;
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
font-weight: normal; font-weight: normal;
margin-right: 10px; margin-right: 10px;
} }
.abyss-title .abyss-star { .role-title .role-star {
width: 25px; width: 25px;
height: 25px; height: 25px;
background-size: cover; background-size: cover;
} }
.abyss-floor-team { .role-floor-team {
display: flex; display: flex;
} }
.abyss-floor-team .line { .role-floor-team .line {
width: 1px; width: 1px;
background: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.5);
height: 80px; height: 80px;
vertical-align: middle; vertical-align: middle;
margin: 15px 8px 0; margin: 15px 8px 0;
} }
.abyss-team { .role-team {
display: flex; display: flex;
margin-right: -5px; margin-right: -5px;
margin-left: -5px; margin-left: -5px;
@ -218,66 +218,66 @@ body,
margin-top: 4%; margin-top: 4%;
/* 两个子元素之间的间距4% */ /* 两个子元素之间的间距4% */
} }
.abyss-detail { .role-detail {
display: flex; display: flex;
width: calc(100% + 40px); width: calc(100% + 40px);
margin: 10px -15px -10px; margin: 10px -15px -10px;
} }
.abyss-level { .role-level {
padding: 5px 10px 7px; padding: 5px 10px 7px;
width: 33%; width: 33%;
box-shadow: 0 0 1px 0 #fff; box-shadow: 0 0 1px 0 #fff;
} }
.abyss-level:nth-child(even) { .role-level:nth-child(even) {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
} }
.abyss-level .info { .role-level .info {
margin-bottom: 5px; margin-bottom: 5px;
display: flex; display: flex;
padding-left: 8px; padding-left: 8px;
} }
.abyss-level .title { .role-level .title {
font-size: 16px; font-size: 16px;
white-space: nowrap; white-space: nowrap;
font-weight: bold; font-weight: bold;
} }
.abyss-level .star { .role-level .star {
height: 18px; height: 18px;
display: inline-block; display: inline-block;
background: url(./imgs/star.png); background: url(./imgs/star.png);
background-size: 18px 18px; background-size: 18px 18px;
margin-left: 5px; margin-left: 5px;
} }
.abyss-level .star.star1 { .role-level .star.star1 {
width: 18px; width: 18px;
margin-right: 36px; margin-right: 36px;
} }
.abyss-level .star.star2 { .role-level .star.star2 {
width: 36px; width: 36px;
margin-right: 18px; margin-right: 18px;
} }
.abyss-level .star.star3 { .role-level .star.star3 {
width: 54px; width: 54px;
margin-right: 0; margin-right: 0;
} }
.abyss-level .time { .role-level .time {
text-align: right; text-align: right;
width: 60%; width: 60%;
color: #aaa; color: #aaa;
font-size: 14px; font-size: 14px;
} }
.abyss-level .avatars { .role-level .avatars {
display: flex; display: flex;
width: 100%; width: 100%;
} }
.abyss-level .avatars .avatar-list { .role-level .avatars .avatar-list {
display: flex; display: flex;
position: relative; position: relative;
} }
.abyss-level .avatars .avatar-list.up { .role-level .avatars .avatar-list.up {
padding-right: 15px; padding-right: 15px;
} }
.abyss-level .avatars .avatar-list.up:after { .role-level .avatars .avatar-list.up:after {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
@ -288,20 +288,20 @@ body,
top: 50%; top: 50%;
margin-top: -8px; margin-top: -8px;
} }
.abyss-level .avatars .avatar-icon { .role-level .avatars .avatar-icon {
width: 33px; width: 33px;
height: 33px; height: 33px;
border-radius: 50%; border-radius: 50%;
margin-right: 2px; margin-right: 2px;
} }
.abyss-level .avatars .avatar-icon .img { .role-level .avatars .avatar-icon .img {
background-size: auto 100%; background-size: auto 100%;
background-position: center; background-position: center;
width: 29px; width: 29px;
height: 29px; height: 29px;
margin: 2px; margin: 2px;
} }
.abyss-notice .cont-body { .role-notice .cont-body {
font-size: 16px; font-size: 16px;
} }
.avatar-banner.avatar-枫原万叶, .avatar-banner.avatar-枫原万叶,

View File

@ -14,9 +14,9 @@
</div> </div>
<div class="info_box"> <div class="info_box">
<div class="abyss-stat-cont"> <div class="role-stat-cont">
<div class="abyss-stat"> <div class="role-stat">
<div class="cont best-record"> <div class="cont best-record">
<div class="stat-title"> <div class="stat-title">
<span>最佳纪录</span> <span>最佳纪录</span>
@ -72,17 +72,17 @@
{{each role?.rounds round round_index}} {{each role?.rounds round round_index}}
<div class="cont"> <div class="cont">
<div class="cont-body"> <div class="cont-body">
<div class="abyss-title"> <div class="role-title">
{{if round.is_get_medal}} {{if round.is_get_medal}}
<div class="abyss-star" style="background-image:url({{_res_path}}/stat/imgs/role/star/star.png)"></div> <div class="role-star" style="background-image:url({{_res_path}}/stat/imgs/role/star/star.png)"></div>
{{else}} {{else}}
<div class="abyss-star" style="background-image:url({{_res_path}}/stat/imgs/role/star/nostar.png)"></div> <div class="role-star" style="background-image:url({{_res_path}}/stat/imgs/role/star/nostar.png)"></div>
{{/if}} {{/if}}
<strong>第 {{round_index}} 幕</strong> <strong>第 {{round_index}} 幕</strong>
<span>{{round?.finish_time}}</span> <span>{{round?.finish_time}}</span>
</div> </div>
<div class="abyss-floor-team"> <div class="role-floor-team">
<div class="abyss-team"> <div class="role-team">
{{set current_avatars=round?.avatars||[] }} {{set current_avatars=round?.avatars||[] }}
{{each current_avatars avatar idx}} {{each current_avatars avatar idx}}
<% include(_tpl_path+'/avatar-card.html', [avatars[avatar.avatar_id],{_res_path, cardType:cardTypes[current_avatars.length][idx]}]) %> <% include(_tpl_path+'/avatar-card.html', [avatars[avatar.avatar_id],{_res_path, cardType:cardTypes[current_avatars.length][idx]}]) %>
@ -116,9 +116,9 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="abyss-detail"> <!-- <div class="role-detail">
{{each floor?.levels level idx}} {{each floor?.levels level idx}}
<div class="abyss-level"> <div class="role-level">
<div class="info"> <div class="info">
<div class="title"> <div class="title">
第{{idx}}间 第{{idx}}间
@ -146,7 +146,7 @@
</div> </div>
{{/each}} {{/each}}
<div class="cont abyss-notice"> <div class="cont role-notice">
<div class="cont-body"> <div class="cont-body">
<ul class="cont-msg"> <ul class="cont-msg">
<li><strong>#上传幻想</strong>不会上传你的角色列表及当期幻想真境剧诗挑战数据,喵~</li> <li><strong>#上传幻想</strong>不会上传你的角色列表及当期幻想真境剧诗挑战数据,喵~</li>

View File

@ -34,12 +34,12 @@ body, .container {
} }
} }
.abyss-stat-cont { .role-stat-cont {
display: flex; display: flex;
padding: 5px; padding: 5px;
} }
.abyss-stat { .role-stat {
display: flex; display: flex;
.cont { .cont {
@ -117,11 +117,11 @@ body, .container {
background-position: 0 10%; background-position: 0 10%;
} }
.abyss-data { .role-data {
display: flex; display: flex;
padding: 0 6px; padding: 0 6px;
.abyss-item { .role-item {
color: #fff; color: #fff;
margin: 5px; margin: 5px;
@ -149,7 +149,7 @@ body, .container {
} }
} }
.abyss-title { .role-title {
margin: -3px 0 8px; margin: -3px 0 8px;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
@ -162,14 +162,14 @@ body, .container {
margin-right: 10px; margin-right: 10px;
} }
.abyss-star { .role-star {
width: 25px; width: 25px;
height: 25px; height: 25px;
background-size: cover; background-size: cover;
} }
} }
.abyss-floor-team { .role-floor-team {
display: flex; display: flex;
.line { .line {
@ -181,7 +181,7 @@ body, .container {
} }
} }
.abyss-team { .role-team {
display: flex; display: flex;
margin-right: -5px; margin-right: -5px;
margin-left: -5px; margin-left: -5px;
@ -254,14 +254,14 @@ body, .container {
} }
} }
.abyss-detail { .role-detail {
display: flex; display: flex;
width: calc(100% + 40px); width: calc(100% + 40px);
margin: 10px -15px -10px; margin: 10px -15px -10px;
} }
.abyss-level { .role-level {
padding: 5px 10px 7px; padding: 5px 10px 7px;
width: 33%; width: 33%;
box-shadow: 0 0 1px 0 #fff; box-shadow: 0 0 1px 0 #fff;
@ -357,7 +357,7 @@ body, .container {
} }
} }
.abyss-notice { .role-notice {
.cont-body { .cont-body {
font-size: 16px; font-size: 16px;
} }