chore: better a11y for comment page.

This commit is contained in:
Yufan Sheng 2024-06-18 20:49:03 +08:00
parent d70c4ae9eb
commit 7fec4ba787
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
2 changed files with 7 additions and 7 deletions

View File

@ -1508,12 +1508,11 @@ textarea.form-control {
color: rgba(255, 255, 255, 0.5) !important;
}
#recent_posts,
#tag_cloud,
#recent-comments {
a:hover {
color: var(--color-primary);
}
#recent_posts a:hover,
#tag_cloud a:hover,
#recent-comments a:hover {
color: var(--color-primary);
text-shadow: var(--color-muted) 0.05em 0 0.05em;
}
a.list-title:hover {
@ -3682,6 +3681,7 @@ a:hover .overlay {
.comment-reply-link {
cursor: pointer;
background-color: transparent;
}
.comment-reply-link:hover {

View File

@ -44,7 +44,7 @@ const { comment, config, depth, pending } = Astro.props;
</div>
<div class="comment-footer text-xs text-muted">
<time class="me-2">{formatLocalDate(comment.date)}</time>
<span class="text-secondary comment-reply-link" data-rid={comment.id}>回复</span>
<button class="text-secondary comment-reply-link" data-rid={comment.id}>回复</button>
</div>
</div>
</article>