How Is the Global Block Gap Set? AKA `–wp–style–block-gap`
-
This variable:
--wp--style--block-gap
controls a lot. But I cannot figure out how it is set.
These fikes in the Twenty Twenty Two theme folder include the variable in some form or another, even comments:
theme.json
template/archive.html
template/home.html
template/index.html
template/search.html
inc/patterns/query-default.phpAnd I found other files in the general WordPress folders (I use Dreamweaver to search lots of files all at once).
But there is nothing I can see where
--wp--style--block-gap
is set to some value. For example, it helps make the 24px top margin that I see when I inspect H1 and paragraph blocks.--wp--style--block-gap
is calculated or set.. but how?
- The topic ‘How Is the Global Block Gap Set? AKA `–wp–style–block-gap`’ is closed to new replies.