Browse Source

IP2: Fix group block children and alignwide children

Kjell Reigstad 5 năm trước cách đây
mục cha
commit
3346f473fb
1 tập tin đã thay đổi với 14 bổ sung0 xóa
  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%;
 		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 {
@@ -321,6 +328,13 @@ body:not(.has-sidebar) .wp-block-table.alignfull {
 	background: #767676;
 }
 
+/* Group */
+
+.wp-block-group.alignfull .wp-block-group__inner-container {
+	max-width: 740px;
+	margin: 0 auto;
+}
+
 /* Separator */
 
 .wp-block-separator {