Browse Source

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

Ben Dwyer 3 years ago
parent
commit
0b1a635c75
1 changed files with 2 additions and 2 deletions
  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 );
 	}