diff --git a/assets/css/main.css b/assets/css/main.css index f296005..c1e443e 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -164,6 +164,25 @@ body { opacity: 0.9; } +/* 标签 */ +.tag-pill { + display: inline-flex; + align-items: center; + padding: 0.125rem 0.625rem; + border-radius: 9999px; + font-size: 0.75rem; + font-weight: 500; + background-color: var(--color-bg-hover); + color: var(--color-text-secondary); + transition: background-color 0.15s ease, color 0.15s ease; + text-decoration: none; +} + +.tag-pill:hover { + background-color: var(--color-primary); + color: white; +} + /* 滚动条 */ ::-webkit-scrollbar { width: 6px; diff --git a/components/blog/PostCard.vue b/components/blog/PostCard.vue index 3e8f041..0fba8c2 100644 --- a/components/blog/PostCard.vue +++ b/components/blog/PostCard.vue @@ -86,6 +86,16 @@ function renderDesc(): string { v-html="renderDesc()" /> +