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

chore: spacing tweaks #698

Merged
merged 7 commits into from
Oct 29, 2024
Merged

chore: spacing tweaks #698

merged 7 commits into from
Oct 29, 2024

Conversation

dummdidumm
Copy link
Member

  • make paragraph breaks less spacey
  • move ul closer to the preceeding paragraph which gives more visual clarity of where it belongs to
  • give code blocks a bit more space at the top/bottom on larger screens
  • give blockquotes more space at the top/bottom on larger screens

Combined, these changes give more visual clarity of which things belong together, which stand on its own, etc

- make paragraph breaks less spacey
- move `ul` closer to the preceeding paragraph which gives more visual clarity of where it belongs to
- give code blocks a bit more space at the top/bottom on larger screens
- give blockquotes more space at the top/bottom on larger screens

Combined, these changes give more visual clarity of which things belong together, which stand on its own, etc
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 9:05pm

@@ -376,7 +380,7 @@
li::before {
content: '';
position: absolute;
top: 1.43rem;
top: 1.1rem;
Copy link
Member

Choose a reason for hiding this comment

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

this looks bad on my screen. we will need to find some approach that works across different configurations

image

Copy link
Member Author

Choose a reason for hiding this comment

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

pushed something, let me know if that works for you

Copy link
Member Author

Choose a reason for hiding this comment

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

saw you pushed something, how does that differ to the line-height dependent solution for you? can't we tweak the calc a bit?
FWIW I'm fine with your solution, it's already much better than what we currently have

Copy link
Member

Choose a reason for hiding this comment

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

It didn't work across the board for me, and I figured if everything is the same units we don't need a calc. Obviously em and lh are fungible, but the way I'm thinking of it is this: lh for spacing in typography, em for things that are tied to the size of the type itself (like icons), rem for layout. We're not being totally disciplined but I think that's a sensible way to think about things

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.

2 participants