mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-24 09:44:54 +08:00
fix(css): fix hero topbar layout on small screens
Split hero-topbar and footer selectors to apply distinct responsive styles. The topbar now uses a horizontal row layout with nowrap so the nav link does not stack vertically, while hero-topbar-actions and hero-topbar-link get auto widths to avoid stretching full-width. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1005,19 +1005,34 @@ th[data-sort].sort-asc::after {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.hero-topbar,
|
||||
.hero-topbar {
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.footer {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hero-topbar-actions,
|
||||
.hero-actions,
|
||||
.final-cta-actions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero-topbar-link,
|
||||
.hero-topbar-actions {
|
||||
width: auto;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.hero-topbar-link {
|
||||
width: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero-action {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user