mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
♻️ 换了种实现方式
This commit is contained in:
@@ -107,15 +107,6 @@
|
|||||||
<div class="news-cover" @click="toPost(item)">
|
<div class="news-cover" @click="toPost(item)">
|
||||||
<img :src="item.cover" alt="cover" />
|
<img :src="item.cover" alt="cover" />
|
||||||
<div class="news-card-act">
|
<div class="news-card-act">
|
||||||
<!-- 底层过渡 -->
|
|
||||||
<div
|
|
||||||
class="nca-status-bg"
|
|
||||||
:style="{
|
|
||||||
background: item.status?.colorCss,
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
{{ item.status?.status }}
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
class="nca-status"
|
class="nca-status"
|
||||||
:style="{
|
:style="{
|
||||||
@@ -703,24 +694,31 @@ async function searchPost() {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nca-status-bg {
|
.nca-status {
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 0;
|
display: flex;
|
||||||
left: 0;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 5px 30px 5px 5px;
|
padding: 5px 30px 5px 5px;
|
||||||
clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
|
clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
|
||||||
opacity: 0.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nca-status {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-start;
|
|
||||||
padding: 5px 20px 5px 5px;
|
|
||||||
clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
|
|
||||||
color: #faf7e8;
|
color: #faf7e8;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgb(255 255 255/40%);
|
||||||
|
clip-path: polygon(
|
||||||
|
calc(100% - 25px) 0,
|
||||||
|
100% 0,
|
||||||
|
100% 100%,
|
||||||
|
calc(100% - 25px) 100%,
|
||||||
|
calc(100% - 10px) 50%
|
||||||
|
);
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nca-time {
|
.nca-time {
|
||||||
|
|||||||
Reference in New Issue
Block a user