Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing extra padding in nested lists #703

Conversation

joshjohanning
Copy link
Collaborator

Closes #702

Description

Removing extra padding in nested lists

From:

image

To:

image

This reflects more of how it looks like in GitHub:

  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

(Depending on how you look at this, could be bug, could be feature 🤷 )

How has this been tested

  • I have run bash ./tools/test.sh (at the root of the project) locally and passed
  • I have tested this feature in the browser

Tested with latest master branch

Test Configuration

  • Browser type & version: Chrome latest
  • Operating system: macOS latest
  • Ruby version: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
  • Bundler version: Bundler version 2.3.7
  • Jekyll version: jekyll (4.2.2)

Checklist

  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out! The space between lists does need to be optimized, I'll modify your commit and merge it later.

@cotes2020 cotes2020 force-pushed the remove-extra-whitespace-in-nested-lists branch from f8c1319 to f5ce9f6 Compare October 5, 2022 07:12
@cotes2020 cotes2020 merged commit 39da11e into cotes2020:master Oct 5, 2022
@joshjohanning
Copy link
Collaborator Author

Thank you @cotes2020 😄

@joshjohanning
Copy link
Collaborator Author

@cotes2020 I still feel like the padding is way too much. For small lists, I think it is probably fine, but for large lists, it takes up way too much room. This is how it looks now after this PR:

image

It's maybe personal preference, but I don't see why we wouldn't want to tighten this in a little bit? It seems like there is plenty of spacing between list items with using 0.0 margin.

image

Also, why different value for li than ul?

What do you think? 😄

@cotes2020
Copy link
Owner

... I don't see why we wouldn't want to tighten this in a little bit? It seems like there is plenty of spacing between list items with using 0.0 margin.

The space between list items(<li>) should be slightly larger than the line spacing within the paragraph(<p>). If the margin-{top|bottom} is set to 0, then the list items will not stand out.

Also, why different value for li than ul?

ul is the outer edge of a list, and li is the element of the list, so the line spacing of the two is also different.

@joshjohanning
Copy link
Collaborator Author

With the margins set to 0, I think that the list items stand out perfectly well 😄

image

@cotes2020
Copy link
Owner

cotes2020 commented Oct 8, 2022

Hi @joshjohanning, I reduced the space between list items by 4px, but it's still a bit larger than the line spacing of paragraphs: because that's a typographic convention.

Also, I fixed the left indent of the list block 😂

@joshjohanning
Copy link
Collaborator Author

@cotes2020 🎉 I think that looks a lot better! Thank you.

linkliu pushed a commit to linkliu/game-tech-post-old that referenced this pull request Oct 15, 2022
linkliu pushed a commit to linkliu/game-tech-post-old that referenced this pull request Oct 25, 2022
shihtiy-tw pushed a commit to shihtiy-tw/shihtiy-tw.github.io that referenced this pull request Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove extra whitespace in nested lists
2 participants