ietf-tools / www

A customized CMS for the IETF website
BSD 3-Clause "New" or "Revised" License
26 stars 43 forks source link

padding-top on .pt-lg-5 leaves too much whitespace #241

Closed JayDaley closed 1 year ago

JayDaley commented 2 years ago

.pt-lg-5 has a 3rem padding-top. When the first item in the body text is text then that's the total whitespace there, but when it is an h2 heading, which is common, that has a 2rem margin-top and so there is a 5rem whitespace, which is far too large. Better to reduce the padding-top of .pt-lg-5 to 1rem so that the maximum whitespace is only ever 3rem.

katie-day commented 1 year ago

Hi @JayDaley, could you please provide links to pages where we could see examples of this issue.

katie-day commented 1 year ago

Example of an h2 combined with .pt-lg-5 making the space too large: https://www.ietf.org/how/lists/ Screen Shot 2022-11-02 at 11 31 18 AM

Example of when paragraph text is first in the body: https://www.ietf.org/how/ids/

Screen Shot 2022-11-02 at 11 36 06 AM