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

Kicker block's influence on adjacent block's margin being overridden #92

Open
douglas-johnson opened this issue Feb 4, 2022 · 0 comments
Assignees

Comments

@douglas-johnson
Copy link
Member

In #90 we added default vertical spacing within wp-block-column

This is overriding the reduced margin that we apply using .wp-block-cata-kicker + *

We can win the specificity fight pretty easily with !important

We could also refactor how our version of .stack works to use CSS custom properties similar to the Every Layout version or this Flow and Rhythm example from CUBE CSS:
https://cube.fyi/composition.html#flow-and-rhythm
https://every-layout.dev/layouts/stack/

.wp-block-cata-kicker + * {
  --space: 0.375em;
}
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

No branches or pull requests

1 participant