浏览代码

Blockbase: Remove padding from the separator (#4712)

Daniel Dudzic 3 年之前
父节点
当前提交
dace170d9a
共有 2 个文件被更改,包括 4 次插入2 次删除
  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;
 	padding: 0;
 }
 }
 
 
-.has-background {
+.has-background:not(.wp-block-separator) {
 	padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
 	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.
 // Needed until we have a solution for https://github.com/WordPress/gutenberg/issues/34588.
 .has-background {
 .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 {
 	:last-child {
 		margin-bottom: 0;
 		margin-bottom: 0;