mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
style: list categories down each column in the browse-by-category nav
The grid filled rows left to right, so reading down a column skipped through README order four categories at a time. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
039769f0f9
commit
d87b4601a3
1 changed files with 8 additions and 5 deletions
|
|
@ -379,10 +379,13 @@ kbd {
|
|||
|
||||
.hero-category-links {
|
||||
list-style: none;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
||||
columns: 13rem;
|
||||
column-gap: clamp(1.25rem, 3vw, 2.5rem);
|
||||
row-gap: 0.28rem;
|
||||
}
|
||||
|
||||
.hero-category-links li {
|
||||
break-inside: avoid;
|
||||
padding-bottom: 0.28rem;
|
||||
}
|
||||
|
||||
.hero-category-link {
|
||||
|
|
@ -1755,7 +1758,7 @@ th[data-sort].sort-asc::after {
|
|||
}
|
||||
|
||||
.hero-category-links {
|
||||
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
||||
columns: 10rem;
|
||||
}
|
||||
|
||||
.results-note {
|
||||
|
|
@ -1829,7 +1832,7 @@ th[data-sort].sort-asc::after {
|
|||
}
|
||||
|
||||
.hero-category-links {
|
||||
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
||||
columns: 8rem;
|
||||
column-gap: 0.75rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue