mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: 强袭战
This commit is contained in:
parent
fb7f746407
commit
3a88596399
14 changed files with 1066 additions and 5 deletions
BIN
resources/deadly/images/BgFrame01.png
Normal file
BIN
resources/deadly/images/BgFrame01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 996 KiB |
BIN
resources/deadly/images/PetSelectBG.png
Normal file
BIN
resources/deadly/images/PetSelectBG.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
resources/deadly/images/block-bg-m.png
Normal file
BIN
resources/deadly/images/block-bg-m.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
resources/deadly/images/content-bg-pc.png
Normal file
BIN
resources/deadly/images/content-bg-pc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
BIN
resources/deadly/images/star-icon-light.png
Normal file
BIN
resources/deadly/images/star-icon-light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
298
resources/deadly/index.css
Normal file
298
resources/deadly/index.css
Normal file
|
|
@ -0,0 +1,298 @@
|
|||
.card {
|
||||
margin: 0 1em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
.card .star {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
background-image: url("./images/star-icon-light.png");
|
||||
border-radius: 50%;
|
||||
background-size: contain;
|
||||
}
|
||||
.card .overview {
|
||||
margin: 0.5em;
|
||||
margin-bottom: 1.5em;
|
||||
background-image: url("./images/block-bg-m.png");
|
||||
background-size: 100% 100%;
|
||||
padding: 2.2em 2.2em 1.8em 2.2em;
|
||||
}
|
||||
.card .overview .u-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.2em;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
.card .overview .u-info .avatar {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card .overview .u-info .avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.card .overview .content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.card .overview .content .left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1em;
|
||||
}
|
||||
.card .overview .content .left .value {
|
||||
font-size: 1.7em;
|
||||
background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.4) 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.card .overview .content .left .percent {
|
||||
background-color: #ec83de;
|
||||
color: black;
|
||||
padding: 0 1em 0 0.6em;
|
||||
border-radius: 1em;
|
||||
}
|
||||
.card .overview .content .right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3em;
|
||||
}
|
||||
.card .overview .content .right .star {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
}
|
||||
.card .tips {
|
||||
font-size: 0.8em;
|
||||
margin: 1em;
|
||||
color: #979797;
|
||||
}
|
||||
.card .tips p {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.card .item-card {
|
||||
border-image-source: url("./images/BgFrame01.png");
|
||||
border-image-slice: 200 100 70 280 fill;
|
||||
border-image-width: 2em 1em 0.7em 2.8em;
|
||||
border-image-outset: 0em 0em 0em 0em;
|
||||
border-image-repeat: stretch stretch;
|
||||
padding: 1.5em 1.7em;
|
||||
margin-bottom: 1em;
|
||||
display: flex;
|
||||
gap: 1.2em;
|
||||
position: relative;
|
||||
}
|
||||
.card .item-card .pop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 2.5em;
|
||||
height: 2.5em;
|
||||
background-image: url("./images/PetSelectBG.png");
|
||||
background-size: 100% 100%;
|
||||
padding: 0.3em;
|
||||
z-index: 2;
|
||||
}
|
||||
.card .item-card .pop img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.card .item-card .cover {
|
||||
position: relative;
|
||||
height: 11em;
|
||||
border-radius: 0.6em;
|
||||
overflow: hidden;
|
||||
border: 0.1em solid #343434;
|
||||
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.3), 0.2em 0.2em 0 rgb(0, 0, 0);
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
.card .item-card .cover::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
border-radius: 0.6em;
|
||||
z-index: 2;
|
||||
inset: 0;
|
||||
border: 0.15em solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.card .item-card .cover .bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.card .item-card .cover .bg img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.card .item-card .cover .icon {
|
||||
position: absolute;
|
||||
bottom: 0.2em;
|
||||
right: 0.2em;
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
z-index: 3;
|
||||
}
|
||||
.card .item-card .cover .icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
.card .item-card .cover img {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
.card .item-card .content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2em;
|
||||
flex: 1;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
.card .item-card .content .name {
|
||||
background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.4) 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.card .item-card .content .value {
|
||||
display: flex;
|
||||
font-size: 1.6em;
|
||||
gap: 0.2em;
|
||||
align-items: center;
|
||||
}
|
||||
.card .item-card .content .value .val {
|
||||
background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.4) 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.card .item-card .content .value .stars {
|
||||
display: flex;
|
||||
margin-left: 0.2em;
|
||||
align-items: center;
|
||||
}
|
||||
.card .item-card .content .value .stars .star {
|
||||
width: 0.9em;
|
||||
height: 0.9em;
|
||||
margin-left: -0.25em;
|
||||
}
|
||||
.card .item-card .content .time {
|
||||
margin-top: 0.3em;
|
||||
margin-bottom: 0.6em;
|
||||
font-size: 0.8em;
|
||||
color: #979797;
|
||||
}
|
||||
.card .item-card .content .list {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 0.7fr;
|
||||
align-items: flex-end;
|
||||
gap: 1em;
|
||||
margin-top: auto;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
.card .item-card .content .list .item {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 0 0 0.12em black, 0 0 0 0.24em #333534;
|
||||
}
|
||||
.card .item-card .content .list .item > * {
|
||||
position: inherit;
|
||||
z-index: 1;
|
||||
}
|
||||
.card .item-card .content .list .item.bangboo {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.card .item-card .content .list .item .count {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
padding: 0.1em 0.3em;
|
||||
font-size: 0.8em;
|
||||
border-bottom-left-radius: 0.3em;
|
||||
border-top-right-radius: 0.5em;
|
||||
}
|
||||
.card .item-card .content .list .item .rank_disp {
|
||||
position: absolute;
|
||||
top: 0em;
|
||||
left: 0em;
|
||||
background-color: rgb(0, 0, 0);
|
||||
z-index: 2;
|
||||
padding: 0.1em;
|
||||
border-bottom-right-radius: 0.25em;
|
||||
border-top-left-radius: 0.25em;
|
||||
}
|
||||
.card .item-card .content .list .item .rank_disp .rank {
|
||||
width: 1em;
|
||||
color: white;
|
||||
position: relative;
|
||||
}
|
||||
.card .item-card .content .list .item .rank_disp .rank::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -0.1em;
|
||||
right: -0.4em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
background: radial-gradient(circle at 100% 0, transparent 0.3em, rgb(0, 0, 0) 0.3em);
|
||||
rotate: 90deg;
|
||||
}
|
||||
.card .item-card .content .list .item .rank_disp .rank::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: -0.4em;
|
||||
left: -0.1em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
background: radial-gradient(circle at 100% 0, transparent 0.3em, rgb(0, 0, 0) 0.3em);
|
||||
rotate: 90deg;
|
||||
}
|
||||
.card .item-card .content .list .item .image {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 0.5em;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card .item-card .content .list .item .image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
display: block;
|
||||
}
|
||||
.card .item-card .content .list .item.bangboo .image {
|
||||
position: relative;
|
||||
}
|
||||
.card .item-card .content .list .item.bangboo .image img {
|
||||
width: 210%;
|
||||
height: 200%;
|
||||
position: absolute;
|
||||
object-position: center;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-40%, -35%);
|
||||
}
|
||||
.card .item-card .content .list .item .c-info {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background: rgb(0, 0, 0);
|
||||
color: white;
|
||||
display: flex;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
95
resources/deadly/index.html
Normal file
95
resources/deadly/index.html
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
{{extend defaultLayout}}
|
||||
|
||||
{{block 'css'}}
|
||||
<link rel="stylesheet" href="{{@sys.currentPath}}/index.css">
|
||||
{{/block}}
|
||||
|
||||
{{block 'main'}}
|
||||
<div class="card">
|
||||
<div class="overview">
|
||||
<div class="u-info">
|
||||
<div class="avatar">
|
||||
<img src="{{deadly.avatar_icon}}" alt="avatar">
|
||||
</div>
|
||||
<div class="nick">{{deadly.nick_name}}</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="left">
|
||||
<div class="value">{{deadly.total_score}}</div>
|
||||
<div class="percent">{{deadly.rank_percent/100}}%</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="star">
|
||||
</div>
|
||||
<div class="value">x{{deadly.total_star}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tips">
|
||||
<p>统计周期 {{deadly.start_time.year}}.{{deadly.start_time.month}}.{{deadly.start_time.day}} -
|
||||
{{deadly.end_time.year}}.{{deadly.end_time.month}}.{{deadly.end_time.day}}
|
||||
</p>
|
||||
<p>*总得分&排名和挑战详情并非同时刷新,挑战详情存在2小时左右延迟</p>
|
||||
</div>
|
||||
{{each deadly.list item i}}
|
||||
<div class="item-card">
|
||||
<div class="pop"><img src="{{item.buffer[0].icon}}" alt=""></div>
|
||||
<div class="cover">
|
||||
<div class="bg">
|
||||
<img src="{{item.boss[0].bg_icon}}" alt="">
|
||||
</div>
|
||||
<div class="icon">
|
||||
<img src="{{item.boss[0].race_icon}}" alt="">
|
||||
</div>
|
||||
<img src="{{item.boss[0].icon}}" alt="">
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="name">{{item.boss[0].name}}</div>
|
||||
<div class="value">
|
||||
<div class="val">{{item.score}}</div>
|
||||
<div class="stars">
|
||||
<% for(let i=0 ; i < item.total_star ; i++) { %>
|
||||
<div class="star"></div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="time">通关时刻:{{item.challenge_time.year}}.{{item.challenge_time.month}}.{{item.challenge_time.day}}
|
||||
{{item.challenge_time.hour}}:{{item.challenge_time.minute}}:{{item.challenge_time.second}}
|
||||
</div>
|
||||
<div class="list">
|
||||
<% for(let i=0 ; i < 3 ; i++) { %>
|
||||
{{if item.avatar_list?.[i]}}
|
||||
<div class="item char">
|
||||
{{if item.avatar_list[i].rank}}
|
||||
<div class="count">{{item.avatar_list[i].rank}}</div>
|
||||
{{/if}}
|
||||
<div class="rank_disp">
|
||||
<div class="rank rank-icon {{item.avatar_list[i].rarity}}"></div>
|
||||
</div>
|
||||
<div class="image">
|
||||
<img src="{{item.avatar_list[i].role_square_url}}" alt="">
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="item char"></div>
|
||||
{{/if}}
|
||||
<% } %>
|
||||
{{if item.buddy}}
|
||||
<div class="item bangboo">
|
||||
<div class="rank_disp">
|
||||
<div class="rank rank-icon {{item.buddy.rarity}}"></div>
|
||||
</div>
|
||||
<div class="image">
|
||||
<img src="{{item.buddy.bangboo_rectangle_url}}" alt="">
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="item bangboo"></div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
{{/block}}
|
||||
318
resources/deadly/index.scss
Normal file
318
resources/deadly/index.scss
Normal file
|
|
@ -0,0 +1,318 @@
|
|||
.card {
|
||||
margin: 0 1em;
|
||||
padding-top: 1em;
|
||||
.star {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
background-image: url('./images/star-icon-light.png');
|
||||
border-radius: 50%;
|
||||
background-size: contain;
|
||||
}
|
||||
.overview {
|
||||
margin: 0.5em;
|
||||
margin-bottom: 1.5em;
|
||||
background-image: url('./images/block-bg-m.png');
|
||||
background-size: 100% 100%;
|
||||
padding: 2.2em 2.2em 1.8em 2.2em;
|
||||
.u-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.2em;
|
||||
margin-bottom: 0.3em;
|
||||
.avatar {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1em;
|
||||
.value {
|
||||
font-size: 1.7em;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 1) 0%,
|
||||
rgba(255, 255, 255, 0.4) 100%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.percent {
|
||||
background-color: #ec83de;
|
||||
color: black;
|
||||
padding: 0 1em 0 0.6em;
|
||||
border-radius: 1em;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3em;
|
||||
.star {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.tips {
|
||||
font-size: 0.8em;
|
||||
margin: 1em;
|
||||
color: #979797;
|
||||
p {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
.item-card {
|
||||
border-image-source: url('./images/BgFrame01.png');
|
||||
border-image-slice: 200 100 70 280 fill;
|
||||
border-image-width: 2em 1em 0.7em 2.8em;
|
||||
border-image-outset: 0em 0em 0em 0em;
|
||||
border-image-repeat: stretch stretch;
|
||||
padding: 1.5em 1.7em;
|
||||
margin-bottom: 1em;
|
||||
display: flex;
|
||||
gap: 1.2em;
|
||||
position: relative;
|
||||
.pop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 2.5em;
|
||||
height: 2.5em;
|
||||
background-image: url('./images/PetSelectBG.png');
|
||||
background-size: 100% 100%;
|
||||
padding: 0.3em;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
z-index: 2;
|
||||
}
|
||||
.cover {
|
||||
position: relative;
|
||||
height: 11em;
|
||||
border-radius: 0.6em;
|
||||
overflow: hidden;
|
||||
border: 0.1em solid #343434;
|
||||
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.3), 0.2em 0.2em 0 rgb(0, 0, 0);
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
border-radius: 0.6em;
|
||||
z-index: 2;
|
||||
inset: 0;
|
||||
border: 0.15em solid rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
position: absolute;
|
||||
bottom: 0.2em;
|
||||
right: 0.2em;
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
z-index: 3;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
img {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2em;
|
||||
flex: 1;
|
||||
margin-right: 0.3em;
|
||||
.name {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 1) 0%,
|
||||
rgba(255, 255, 255, 0.4) 100%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.value {
|
||||
display: flex;
|
||||
font-size: 1.6em;
|
||||
gap: 0.2em;
|
||||
align-items: center;
|
||||
.val {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 1) 0%,
|
||||
rgba(255, 255, 255, 0.4) 100%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.stars {
|
||||
display: flex;
|
||||
margin-left: 0.2em;
|
||||
align-items: center;
|
||||
.star {
|
||||
width: 0.9em;
|
||||
height: 0.9em;
|
||||
margin-left: -0.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
.time {
|
||||
margin-top: 0.3em;
|
||||
margin-bottom: 0.6em;
|
||||
font-size: 0.8em;
|
||||
color: #979797;
|
||||
}
|
||||
.list {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 0.7fr;
|
||||
align-items: flex-end;
|
||||
gap: 1em;
|
||||
margin-top: auto;
|
||||
margin-bottom: 0.2em;
|
||||
.item {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 0 0 0.12em black, 0 0 0 0.24em #333534;
|
||||
> * {
|
||||
position: inherit;
|
||||
z-index: 1;
|
||||
}
|
||||
&.bangboo {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.count {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
padding: 0.1em 0.3em;
|
||||
font-size: 0.8em;
|
||||
border-bottom-left-radius: 0.3em;
|
||||
border-top-right-radius: 0.5em;
|
||||
}
|
||||
.rank_disp {
|
||||
position: absolute;
|
||||
top: 0em;
|
||||
left: 0em;
|
||||
background-color: rgb(0, 0, 0);
|
||||
z-index: 2;
|
||||
padding: 0.1em;
|
||||
border-bottom-right-radius: 0.25em;
|
||||
border-top-left-radius: 0.25em;
|
||||
.rank {
|
||||
width: 1em;
|
||||
color: white;
|
||||
position: relative;
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -0.1em;
|
||||
right: -0.4em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
background: radial-gradient(
|
||||
circle at 100% 0,
|
||||
transparent 0.3em,
|
||||
rgb(0, 0, 0) 0.3em
|
||||
);
|
||||
rotate: 90deg;
|
||||
}
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -0.4em;
|
||||
left: -0.1em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
background: radial-gradient(
|
||||
circle at 100% 0,
|
||||
transparent 0.3em,
|
||||
rgb(0, 0, 0) 0.3em
|
||||
);
|
||||
rotate: 90deg;
|
||||
}
|
||||
}
|
||||
}
|
||||
.image {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 0.5em;
|
||||
overflow: hidden;
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&.bangboo {
|
||||
.image {
|
||||
position: relative;
|
||||
img {
|
||||
width: 210%;
|
||||
height: 200%;
|
||||
position: absolute;
|
||||
object-position: center;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-40%, -35%);
|
||||
}
|
||||
}
|
||||
}
|
||||
.c-info {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background: rgb(0, 0, 0);
|
||||
color: white;
|
||||
display: flex;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue