-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Conversation
- 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -376,7 +380,7 @@ | |||
li::before { | |||
content: ''; | |||
position: absolute; | |||
top: 1.43rem; | |||
top: 1.1rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Co-authored-by: Rich Harris <[email protected]>
ul
closer to the preceeding paragraph which gives more visual clarity of where it belongs toCombined, these changes give more visual clarity of which things belong together, which stand on its own, etc