Skip to content

Commit

Permalink
💄 微调样式
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Nov 21, 2023
1 parent 92a1775 commit d6ae376
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions src/pages/common/Achievements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@
class="card-achi"
:title="allSeriesData.find((item) => item.id === achievement.series)?.name ?? ''"
>
<div v-if="achievement.progress !== 0" class="achi-progress">
{{ achievement.progress }}
</div>
<div class="achi-version">v{{ achievement.version }}</div>
<div class="achi-pre">
<div class="achi-pre-icon">
<v-icon
Expand All @@ -81,9 +79,11 @@
</v-icon>
</div>
<div class="achi-pre-info">
<span
>{{ achievement.name }}
<span>v{{ achievement.version }}</span>
<span>
<span>{{ achievement.name }}</span>
<span v-if="achievement.progress !== 0">
{{ achievement.progress }}
</span>
</span>
<span>{{ achievement.description }}</span>
</div>
Expand Down Expand Up @@ -577,6 +577,7 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
border-top: 1px solid var(--common-shadow-1);
border-left: 1px solid var(--common-shadow-1);
background: var(--box-bg-2);
border-bottom-right-radius: 10px;
border-top-left-radius: 20px;
color: var(--tgc-yellow-1);
font-family: var(--font-title);
Expand All @@ -601,6 +602,7 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
flex-flow: column wrap;
align-items: flex-start;
justify-content: center;
color: var(--box-text-1);
text-align: left;
}

Expand Down Expand Up @@ -641,7 +643,7 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
}

/* 成就进度 */
.achi-progress {
.achi-version {
position: absolute;
top: 0;
left: 0;
Expand All @@ -650,7 +652,8 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
border-bottom: 1px solid var(--common-shadow-1);
background: var(--box-bg-2);
border-bottom-right-radius: 20px;
color: var(--box-text-3);
border-top-left-radius: 10px;
color: var(--tgc-pink-1);
font-family: var(--font-title);
font-size: 10px;
text-align: center;
Expand Down Expand Up @@ -687,10 +690,23 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
}

.achi-pre-info :nth-child(1) {
display: flex;
align-items: flex-end;
column-gap: 5px;
font-family: var(--font-title);
font-size: 14px;
}

.achi-pre-info :nth-child(1) :nth-child(2) {
color: var(--tgc-blue-2);
font-size: 12px;
}

.achi-pre-info :nth-child(2) {
font-size: 12px;
opacity: 0.8;
}

.achi-append-icon span {
position: absolute;
bottom: 0;
Expand All @@ -701,20 +717,12 @@ async function setAchiDB(achievement: TGApp.Sqlite.Achievement.SingleTable): Pro
align-items: center;
justify-content: center;
background: rgb(0 0 0 / 50%);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
color: var(--tgc-white-1);
font-size: 8px;
}

.achi-pre-info :nth-child(1) span {
color: var(--tgc-pink-1);
font-size: 12px;
}

.achi-pre-info :nth-child(2) {
font-size: 12px;
opacity: 0.8;
}

.achi-append {
display: flex;
align-items: center;
Expand Down

0 comments on commit d6ae376

Please sign in to comment.