浏览代码

Shoreditch: Prevent blocks inside the layout grid block going full width (#5459)

Ben Dwyer 3 年之前
父节点
当前提交
0b1a635c75
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      shoreditch/css/blocks.css

+ 2 - 2
shoreditch/css/blocks.css

@@ -30,7 +30,7 @@ Description: Used to style Gutenberg Blocks.
 	margin-right: 0;
 }
 
-.can-align-wide .alignfull,
+.can-align-wide :not(.wp-block-jetpack-layout-grid-column) > .alignfull,
 .page-template-full-width-page .alignfull,
 .page-template-panel-page .alignfull {
 	margin-left: calc(50% - 50vw);
@@ -66,7 +66,7 @@ Description: Used to style Gutenberg Blocks.
 }
 
 @media (min-width: 900px) {
-	.can-align-wide .alignfull {
+	.can-align-wide :not(.wp-block-jetpack-layout-grid-column) > .alignfull {
 		margin-left: calc(50% - 50vw + 150px + 0.5em );
 		margin-right: calc(50% - 50vw - 150px - 0.5em );
 	}