ckan / ckan.org

Source code for the ckan.org website
Other
3 stars 6 forks source link

Excessive spacing in Wagtail header formatting #199

Open popovayoana opened 6 months ago

popovayoana commented 6 months ago

Description

There is an issue with the formatting of headers (H1, H2, H3 etc) in Wagtail. There appears to be inconsistent and excessive spacing in two key areas:

  1. Between Headers - the spacing between different headers (H1, H2, H3 etc) is larger than expected, disrupting the flow and readability of the content
  2. Between Text and Headers - there is excessive space between the end of a text block and the subsequent header, leading to a disjointed visual presentation

Expected Behavior

The spacing between headers and between text and headers should be uniform and adhere to standard web content formatting practices. This ensures a cohesive, visually appealing layout that enhances readability.

How it looks like now

image image

popovayoana commented 6 months ago

@alexmorev @Alex-Pavlyuk hey guys! first, happy new year! ; )) may your debug sessions be short, your coffee/tea strong, and your connections with others meaningful! second, can you look into that? : )) thanks!

Alex-Pavlyuk commented 5 months ago

@popovayoana we will start to work on it soon

Alex-Pavlyuk commented 5 months ago

@popovayoana it is changed now pls check

popovayoana commented 5 months ago

@Alex-Pavlyuk great job so far! just a couple of quick things to tweak:

  1. headings size: H3, H4, and H5 look almost the same size right now... H3's a bit different in color and padding, but could we make them more distinct in size?
  2. padding: let's match the padding with the heading sizes - it'll look neater that way...

size image

padding image

alexmorev commented 5 months ago

@popovayoana It's done. Please check. Waiting for your feedback.

popovayoana commented 5 months ago

@alexmorev nothing has changed for me so far... 😕 should I wait a bit? I'm testing with this article: https://ckan.org/admin/pages/376/view_draft/

alexmorev commented 5 months ago

@popovayoana Fixed. Please re-check. image

popovayoana commented 4 months ago

@alexmorev the header font size is perfect! we just need to tweak the line height for h2, h4 and h5. not super sure but I'm leaning towards maintaining a consistent 4px difference between font size and line height. why 4px? - it's already looking good on h1 and h3, unless I'm mistaken

here’s a tentative suggestion (but please, apply your expertise to adjust as you see fit - h4 and h5 should be slightly decreased and h2 very tiny-tiny increased):

image

alexmorev commented 4 months ago

@popovayoana Changed. Please check and give your feedback.

popovayoana commented 1 week ago

@alexmorev @Alex-Pavlyuk everything looks good overall, but I've noticed an issue with the font size of hyperlinks in the titles. when inserting a link into the titles, the links appear with a smaller font size compared to the rest of the text.

here is an image for reference: image

you can see the problem in the preview link: https://ckan.org/admin/pages/380/edit/preview/?mode=

Additionally, there is one more minor thing: the font size of H6 in the admin panel is too small: image

popovayoana commented 1 week ago

@alexmorev and one more thing... can we adjust the kerning (letter spacing) for all H1 to H6 headings to improve readability? the current kerning in the H1 to H6 headings is too tight, making the text appear cramped and less readable. I am not sure how to give you proper instructions because I don't know the exact current letter spacing, but it looks too tight and needs to be loosened up... wdyt?

image