mrwweb / hybrid-starter-theme

My customizations to the _s theme to make it better for a hybrid theme that embraces the block editor.
2 stars 0 forks source link

Under consideration: add .is-root-container to any div that contains blocks #7

Closed mrwweb closed 1 year ago

mrwweb commented 1 year ago

This would make front- and back-end styles align more closely when needing to set rules that only impact top-level blocks.

mrwweb commented 1 year ago

A rule that would benefit from this:

.is-root-container > .wp-block-group.alignfull:not(.has-background),
.is-root-container > .wp-block-columns.alignfull:not(.has-background) {
    max-width: 90%;
    margin-inline: auto;
}
mrwweb commented 1 year ago

Just going for it. Done.