Make entire homepage post card clickable

This commit is contained in:
2026-10-29 15:13:14 +08:00
parent 8b738b9e7c
commit 9ee5969f98
2 changed files with 37 additions and 19 deletions
+28
View File
@@ -185,3 +185,31 @@ figcaption.post-caption {
padding-left: 2rem;
}
.footer-roadmap { padding: 1rem 0; }
/* ===== Homepage post list: entire card is clickable ===== */
#post-list .home-post-item {
display: block;
color: inherit;
text-decoration: none;
border-radius: 0.5rem;
padding: 0.75rem 1rem;
margin: 0 -1rem 0.5rem;
transition: background-color 0.15s ease;
}
#post-list .home-post-item h3 {
margin-top: 0;
}
#post-list .home-post-item:hover {
background-color: rgba(0, 0, 0, 0.04);
}
html.dark #post-list .home-post-item:hover {
background-color: rgba(255, 255, 255, 0.06);
}
#post-list .home-post-item:focus-visible {
outline: 2px solid var(--hx-color-primary-500, currentColor);
outline-offset: 2px;
}