perf: 优化标签、归档页布局
This commit is contained in:
parent
b4057e3820
commit
a34a216f90
@ -95,10 +95,4 @@ const { archives } = useArchives()
|
||||
transition: border-bottom var(--t-color);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.archives-wrapper {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -56,9 +56,9 @@ const hasMeta = computed(() => readingTime.value.time || tags.value.length || cr
|
||||
<span v-if="index !== categoryList.length - 1" class="dot">›</span>
|
||||
</template>
|
||||
</div>
|
||||
<h2 v-if="page.isBlogPost" class="page-title" :class="{ padding: !hasMeta }">
|
||||
<h1 v-if="page.isBlogPost" class="page-title" :class="{ padding: !hasMeta }">
|
||||
{{ page.title }}
|
||||
</h2>
|
||||
</h1>
|
||||
<div v-if="hasMeta" class="page-meta-wrapper">
|
||||
<p v-if="readingTime.time" class="reading-time">
|
||||
<IconBooks class="icon" />
|
||||
|
||||
@ -149,10 +149,4 @@ const { tags: tagsLink } = useBlogExtract()
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.tags-wrapper {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
.plume-content h5,
|
||||
.plume-content h6 {
|
||||
position: relative;
|
||||
margin: 16px 0;
|
||||
font-weight: 600;
|
||||
color: var(--vp-c-text-1);
|
||||
overflow-wrap: break-word;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user