mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-09 22:53:49 +08:00
feat(website): move descriptions into expand row on category pages
Removes inline .category-row-desc from the name cell and renders entry.description inside .expand-content instead, matching the index page pattern. Drops the now-unused CSS rules for .category-row-desc and the overridden .category-table .expand-content padding. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -511,41 +511,6 @@ kbd {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.category-table .col-name {
|
||||
width: min(42rem, 48vw);
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.category-table .col-name > a {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.category-row-desc {
|
||||
display: block;
|
||||
max-width: 68ch;
|
||||
margin-top: 0.32rem;
|
||||
color: var(--ink-soft);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 500;
|
||||
line-height: 1.55;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
.category-row-desc a {
|
||||
color: var(--accent-deep);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--accent-underline);
|
||||
text-underline-offset: 0.18em;
|
||||
}
|
||||
|
||||
.category-row-desc a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.category-table .expand-content {
|
||||
padding-block: 0.25rem 0.15rem;
|
||||
}
|
||||
|
||||
.sponsor-band {
|
||||
padding-block: clamp(2.5rem, 5.5vw, 4rem);
|
||||
background:
|
||||
|
||||
Reference in New Issue
Block a user