Created
September 2, 2020 19:20
-
-
Save MattMcAdams/d6193f8da98056e9e466ef432ad0e11b to your computer and use it in GitHub Desktop.
Consistant margins inside a container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flow > * + * { | |
margin-top: var(--flow-space, 1em); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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