mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-26 05:39:45 +08:00
💄 调整帖子详情页面样式
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<span class="tag-label" :title="`点击跳转#${props.tag}`">
|
||||
<span class="tag-label" :title="`点击跳转#${props.tag}#`">
|
||||
{{ props.tag }}
|
||||
</span>
|
||||
</template>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div class="tbc-box" data-html2canvas-ignore>
|
||||
<div class="tbc-box" :class="isCollected ? 'active' : ''" data-html2canvas-ignore>
|
||||
<div class="tbc-btn" @click="switchCollect()" :title="isCollected ? '取消收藏' : '收藏'">
|
||||
<v-icon :color="isCollected ? 'yellow' : 'inherit'">
|
||||
<v-icon size="20">
|
||||
{{ isCollected ? "mdi-star" : "mdi-star-outline" }}
|
||||
</v-icon>
|
||||
</div>
|
||||
<div class="tbc-edit" title="编辑收藏" v-if="isCollected" @click="showEdit = !showEdit">
|
||||
<v-icon size="small">mdi-pencil</v-icon>
|
||||
<v-icon size="8">mdi-pencil</v-icon>
|
||||
</div>
|
||||
</div>
|
||||
<VpOverlayCollect v-model="showEdit" :post="props.data" @submit="refresh()" />
|
||||
@@ -80,38 +80,77 @@ async function switchCollect(): Promise<void> {
|
||||
showSnackbar.success("取消收藏成功");
|
||||
}
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
<style lang="scss" scoped>
|
||||
@use "@styles/github.styles.scss" as github-styles;
|
||||
|
||||
.tbc-box {
|
||||
@include github-styles.github-card;
|
||||
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
right: 20px;
|
||||
border: 2px solid var(--common-shadow-8);
|
||||
top: 64px;
|
||||
right: 16px;
|
||||
display: flex;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
|
||||
:hover {
|
||||
opacity: 0.8;
|
||||
&.active {
|
||||
background: var(--tgc-btn-1);
|
||||
box-shadow: 1px 3px 6px var(--common-shadow-2);
|
||||
color: var(--btn-text);
|
||||
}
|
||||
|
||||
&:hover:not(.active) {
|
||||
background: var(--common-shadow-1);
|
||||
}
|
||||
}
|
||||
|
||||
.dark .tbc-box {
|
||||
border: 1px solid var(--common-shadow-1);
|
||||
box-shadow: 1px 3px 6px var(--common-shadow-t-2);
|
||||
|
||||
&:not(.active) {
|
||||
@include github-styles.github-card("dark");
|
||||
|
||||
&:hover {
|
||||
background: var(--common-shadow-6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tbc-btn {
|
||||
display: flex;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.tbc-edit {
|
||||
position: absolute;
|
||||
right: -10px;
|
||||
bottom: -10px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tbc-edit {
|
||||
@include github-styles.github-card;
|
||||
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
right: -4px;
|
||||
bottom: -4px;
|
||||
display: flex;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: unset;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dark .tbc-edit {
|
||||
@include github-styles.github-card("dark");
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -13,12 +13,15 @@
|
||||
<v-btn
|
||||
:loading="loading"
|
||||
class="tpr-btn"
|
||||
size="38px"
|
||||
variant="outlined"
|
||||
@click="showReply()"
|
||||
icon="mdi-message-text-outline"
|
||||
v-bind="props"
|
||||
/>
|
||||
size="36"
|
||||
>
|
||||
<template #default>
|
||||
<v-icon size="20">mdi-message-text-outline</v-icon>
|
||||
</template>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="tpr-main-reply">
|
||||
<div class="tpr-main-filter">
|
||||
@@ -169,21 +172,33 @@ async function handleDebug(): Promise<void> {
|
||||
<style lang="scss" scoped>
|
||||
.tpr-main-box {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
bottom: 16px;
|
||||
left: 16px;
|
||||
display: flex;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: var(--tgc-btn-1);
|
||||
box-shadow: 1px 3px 6px var(--common-shadow-2);
|
||||
color: var(--btn-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dark .tpr-main-box {
|
||||
border: 1px solid var(--common-shadow-1);
|
||||
box-shadow: 1px 3px 6px var(--common-shadow-t-2);
|
||||
}
|
||||
|
||||
.tpr-btn {
|
||||
display: flex;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 2px solid var(--common-shadow-8);
|
||||
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: unset;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.tpr-main-reply {
|
||||
|
||||
Reference in New Issue
Block a user