mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
fix: scale category subtitle margin with the hero heading
The subtitle's fixed top margin did not grow with the fluid h1, so heading descenders crowded the subtitle on category and sponsorship heroes. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -493,7 +493,8 @@ kbd {
|
||||
}
|
||||
|
||||
.category-subtitle {
|
||||
margin-top: 1.1rem;
|
||||
/* Cormorant descenders hang ~0.28em below the h1's 0.9 line box, so the gap scales with the h1. */
|
||||
margin-top: max(1.1rem, var(--display-lg) * 0.3);
|
||||
color: var(--hero-muted);
|
||||
font-size: var(--text-xl);
|
||||
text-wrap: pretty;
|
||||
|
||||
Reference in New Issue
Block a user