Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 338ca4a

Browse files
committed
fix(theme): optimize post category styles
1 parent 86b7f2e commit 338ca4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

theme/src/client/components/Posts/VPPostsCategories.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { categories } = usePostsCategory()
77
</script>
88

99
<template>
10-
<div class="vp-categories">
10+
<div class="vp-post-categories">
1111
<slot name="posts-categories-before" />
1212

1313
<h2 class="categories-title">
@@ -26,7 +26,7 @@ const { categories } = usePostsCategory()
2626
</template>
2727

2828
<style scoped>
29-
.vp-categories {
29+
.vp-post-categories {
3030
flex: 1 2;
3131
padding: 16px;
3232
margin: 0 -16px 32px;
@@ -35,15 +35,15 @@ const { categories } = usePostsCategory()
3535
}
3636
3737
@media (min-width: 768px) {
38-
.vp-categories {
38+
.vp-post-categories {
3939
padding: 20px 24px;
4040
margin: 0 0 32px;
4141
background-color: var(--vp-c-bg);
4242
border-radius: 8px;
4343
box-shadow: var(--vp-shadow-1);
4444
}
4545
46-
.vp-categories:hover {
46+
.vp-post-categories:hover {
4747
box-shadow: var(--vp-shadow-2);
4848
}
4949
}
@@ -74,12 +74,12 @@ const { categories } = usePostsCategory()
7474
}
7575
7676
@media (min-width: 1200px) {
77-
.vp-categories {
77+
.vp-post-categories {
7878
margin-left: 0;
7979
}
8080
}
8181
82-
.vp-categories .content {
82+
.vp-post-categories .content {
8383
padding: 20px 0 0;
8484
}
8585
</style>

0 commit comments

Comments
 (0)