Skip to content

Instantly share code, notes, and snippets.

@MattMcAdams
Created September 2, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattMcAdams/d6193f8da98056e9e466ef432ad0e11b to your computer and use it in GitHub Desktop.
Save MattMcAdams/d6193f8da98056e9e466ef432ad0e11b to your computer and use it in GitHub Desktop.
Consistant margins inside a container
flow > * + * {
margin-top: var(--flow-space, 1em);
}
@MattMcAdams
Copy link
Author

This could be used for more complex projects / websites where trying to setup site-wide vertical rhythm across multiple components is difficult. Originally found here: https://twitter.com/hankchizljaw/status/1290581356376993794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment