Browse Source

IP2: Fix group block children and alignwide children

Kjell Reigstad 5 years ago
parent
commit
3346f473fb
1 changed files with 14 additions and 0 deletions
  1. 14 0
      independent-publisher-2/css/blocks.css

+ 14 - 0
independent-publisher-2/css/blocks.css

@@ -36,6 +36,13 @@ Description: Used to style Gutenberg Blocks.
 		max-width: 1000%;
 		max-width: 1000%;
 		width: auto;
 		width: auto;
 	}
 	}
+
+	/* Child blocks should not get wider than their parent */
+	body:not(.has-sidebar) [class^="wp-block-"] .alignwide {
+		margin-right: inherit;
+		margin-left: inherit;
+		max-width: 100%;
+	}
 }
 }
 
 
 body:not(.has-sidebar) .alignfull {
 body:not(.has-sidebar) .alignfull {
@@ -321,6 +328,13 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 	background: #767676;
 	background: #767676;
 }
 }
 
 
+/* Group */
+
+.wp-block-group.alignfull .wp-block-group__inner-container {
+	max-width: 740px;
+	margin: 0 auto;
+}
+
 /* Separator */
 /* Separator */
 
 
 .wp-block-separator {
 .wp-block-separator {