Browse Source

Blockbase: Remove padding from the separator (#4712)

Daniel Dudzic 3 years ago
parent
commit
dace170d9a
2 changed files with 4 additions and 2 deletions
  1. 1 1
      blockbase/assets/ponyfill.css
  2. 3 1
      blockbase/sass/base/_utility.scss

+ 1 - 1
blockbase/assets/ponyfill.css

@@ -240,7 +240,7 @@ p {
 	padding: 0;
 }
 
-.has-background {
+.has-background:not(.wp-block-separator) {
 	padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
 }
 

+ 3 - 1
blockbase/sass/base/_utility.scss

@@ -15,7 +15,9 @@
 
 // Needed until we have a solution for https://github.com/WordPress/gutenberg/issues/34588.
 .has-background {
-	padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
+	&:not(.wp-block-separator){
+		padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
+	}
 
 	:last-child {
 		margin-bottom: 0;