From 283a8424a19d2a6475bd09d1f9e61f553d226c52 Mon Sep 17 00:00:00 2001 From: Milan Ricoul Date: Mon, 16 Oct 2023 14:35:49 +0200 Subject: [PATCH] feat (group): remove base theme styles --- src/scss/06-blocks/core/_columns.scss | 3 ++- src/scss/06-blocks/core/_group.scss | 30 +-------------------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/src/scss/06-blocks/core/_columns.scss b/src/scss/06-blocks/core/_columns.scss index 1e385540..4ed82eeb 100644 --- a/src/scss/06-blocks/core/_columns.scss +++ b/src/scss/06-blocks/core/_columns.scss @@ -1,5 +1,6 @@ .wp-block-columns { - @include block-vertical-spacing(); + @include block-vertical-spacing; + gap: get-gutter-width() !important; .wp-block-column { diff --git a/src/scss/06-blocks/core/_group.scss b/src/scss/06-blocks/core/_group.scss index 6bc10536..f2cefe11 100644 --- a/src/scss/06-blocks/core/_group.scss +++ b/src/scss/06-blocks/core/_group.scss @@ -1,31 +1,3 @@ .wp-block-group { - $el: &; - - display: flow-root; - - &--no-inner-margin { - #{$el}__inner-container { - > * { - margin-top: 0; - margin-bottom: 0; - } - } - } - - @include breakpoints(sm, max) { - &--full-mobile { - max-width: 100% !important; - } - } -} - -@include editor-only { - .wp-block-group { - display: flow-root; - - .wp-block-group.has-background > .block-editor-block-list__layout > [data-align="full"] { - width: 100%; - margin: 0; - } - } + @include block-vertical-spacing; }