This commit is contained in:
1 parent
7b8358005f
commit
433e0b9f2a
1 file changed
+27
-3
@@ -82,7 +82,8 @@
|
|||||||
<a
|
<a
|
||||||
href="{resolve('/admin/posts')}?tagId={tag.id}"
|
href="{resolve('/admin/posts')}?tagId={tag.id}"
|
||||||
class="badge badge-link"
|
class="badge badge-link"
|
||||||
title={`查看关联的 ${tag.post_count} 篇${$page.data.aliases?.post || '文章'}`}
|
aria-label={`查看关联的 ${tag.post_count} 篇${$page.data.aliases?.post || '文章'}`}
|
||||||
|
data-sveltekit-preload-data="off"
|
||||||
>
|
>
|
||||||
{tag.post_count}
|
{tag.post_count}
|
||||||
</a>
|
</a>
|
||||||
@@ -215,17 +216,40 @@
|
|||||||
color: var(--text-muted, rgba(0, 0, 0, 0.6));
|
color: var(--text-muted, rgba(0, 0, 0, 0.6));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge-link,
|
||||||
|
.badge-empty {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 24px;
|
||||||
|
height: 20px;
|
||||||
|
line-height: 1;
|
||||||
|
vertical-align: middle;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
.badge-link {
|
.badge-link {
|
||||||
color: var(--accent-color, #419b38);
|
color: var(--accent-color, #419b38);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
transition: all 0.2s ease;
|
opacity: 1 !important;
|
||||||
|
transition:
|
||||||
|
background-color 0.15s ease,
|
||||||
|
color 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-link:hover {
|
.badge-link:hover,
|
||||||
|
.badge-link:focus-visible {
|
||||||
background-color: var(--accent-color, #419b38);
|
background-color: var(--accent-color, #419b38);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
opacity: 1 !important;
|
||||||
|
text-decoration: none;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-link:focus-visible {
|
||||||
|
box-shadow: 0 0 0 2px rgba(65, 155, 56, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-empty {
|
.badge-empty {
|
||||||
|
|||||||
Reference in new issue
Block a user