feat: show section intro lead on group pages

Group pages showed only tables, so visitors arriving from broad searches like "python ml library" got none of the which-one-to-pick guidance that each section's intro already gives.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-10-02 19:35:04 +08:00
parent b260662b12
commit c16dae14ef
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
4 changed files with 74 additions and 19 deletions

View file

@ -845,7 +845,7 @@ kbd {
.group-row th {
padding-top: 2.25rem;
padding-bottom: 0.85rem;
padding-left: max(var(--shell-pad), calc(50vw - (var(--shell-max) / 2) + var(--shell-pad)));
padding-inline: max(var(--shell-pad), calc(50vw - (var(--shell-max) / 2) + var(--shell-pad)));
text-align: left;
border-bottom: 1px solid var(--line-strong);
background: var(--bg-paper);
@ -878,6 +878,15 @@ kbd {
display: none;
}
.group-lead {
margin-top: 0.75rem;
font-size: var(--text-lg);
font-weight: 400;
line-height: 1.55;
color: var(--ink-soft);
text-wrap: pretty;
}
.group-count {
font-family: var(--font-body);
font-size: var(--text-sm);
@ -1074,11 +1083,13 @@ th[data-sort].sort-asc::after {
max-width: none;
}
.desc-text a {
.desc-text a,
.group-lead a {
color: var(--accent-deep);
}
.desc-text a:hover {
.desc-text a:hover,
.group-lead a:hover {
color: var(--accent);
text-decoration: underline;
text-decoration-color: var(--accent-underline);
@ -1807,7 +1818,8 @@ th[data-sort].sort-asc::after {
}
.table thead th:last-child,
.table tbody td:last-child {
.table tbody td:last-child,
.group-row th {
padding-right: 0.8rem;
}