chore: better a11y for comment page.

This commit is contained in:
Yufan Sheng 2024-06-18 20:49:03 +08:00
parent e0446c2669
commit 174b14e80c
Signed by: syhily
GPG Key ID: DEB186763C308C31
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; color: rgba(255, 255, 255, 0.5) !important;
} }
#recent_posts, #recent_posts a:hover,
#tag_cloud, #tag_cloud a:hover,
#recent-comments { #recent-comments a:hover {
a:hover {
color: var(--color-primary); color: var(--color-primary);
} text-shadow: var(--color-muted) 0.05em 0 0.05em;
} }
a.list-title:hover { a.list-title:hover {
@ -3682,6 +3681,7 @@ a:hover .overlay {
.comment-reply-link { .comment-reply-link {
cursor: pointer; cursor: pointer;
background-color: transparent;
} }
.comment-reply-link:hover { .comment-reply-link:hover {

View File

@ -44,7 +44,7 @@ const { comment, config, depth, pending } = Astro.props;
</div> </div>
<div class="comment-footer text-xs text-muted"> <div class="comment-footer text-xs text-muted">
<time class="me-2">{formatLocalDate(comment.date)}</time> <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>
</div> </div>
</article> </article>