adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.6k stars 2.59k forks source link

fix(css): post header margin on mobile #1553

Open David-Guillot opened 2 months ago

David-Guillot commented 2 months ago

What does this PR change? What problem does it solve?

On mobile, the spacing between the page header and the post title feels too big. I guessed this is caused by the use of hard-coded 24px on margin-top instead of the --gap variable, whose value is 24px by default but get down to 14px on smaller screens and mobile.

See the difference on the theme Install page: Before After
Capture d’écran du 2024-07-11 14-30-58 Capture d’écran du 2024-07-11 14-31-15

Was the change discussed in an issue or in the Discussions before?

Clearly not :grimacing:

PR Checklist