From What topics can I ask about here?, questions concerning third party plugins and themes are off-topic. However, would official themes and plugins be so?
- Yes, because they are still distinct to the WordPress source, and any themes and plugins should be equal?
- No, because they are official?
Below is my draft:
I notice that in the Twenty Twenty-One theme, any paragraph that is outside the main content or contained in a container has no top and bottom margin. A developer of the Stackable plugin says:
Upon checking, the gaps between native paragraphs are caused by these CSS rules:
.editor-styles-wrapper [data-block] { margin-top: var(--global--spacing-vertical); margin-bottom: var(--global--spacing-vertical); }
I believe this CSS is coming from Twenty Twenty-One theme.
The
data-block
attribute is a unique identifier of added blocks inside the editor. Because of this, the margins are not visible in preview.I wonder if you can explain what these codes do?