Browse Source

Simplify rules

Kjell Reigstad 5 years ago
parent
commit
badf589175
3 changed files with 15 additions and 21 deletions
  1. 5 7
      apostrophe-2/css/blocks.css
  2. 5 7
      independent-publisher-2/css/blocks.css
  3. 5 7
      libre-2/css/blocks.css

+ 5 - 7
apostrophe-2/css/blocks.css

@@ -51,6 +51,11 @@ p.has-drop-cap:not(:focus)::first-letter {
 	display: flex;
 }
 
+.wp-block-cover.alignfull .wp-block-cover__inner-container {
+	max-width: 730px;
+	margin: 0 auto;
+}
+
 /* Full Width */
 
 body {
@@ -115,13 +120,6 @@ body {
 		position: relative;
 	}
 
-	/* Child blocks should not get wider than their parent */
-	.apostrophe-2-no-sidebar [class^="wp-block-"] .alignwide {
-		max-width: 100%;
-		margin-left: auto;
-		margin-right: auto;
-	}
-
 	.apostrophe-2-no-sidebar .wp-block-embed.is-type-video.alignwide:before {
 		content: "";
 		display: block;

+ 5 - 7
independent-publisher-2/css/blocks.css

@@ -36,13 +36,6 @@ 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 {
@@ -182,6 +175,11 @@ p.has-drop-cap:not(:focus)::first-letter {
 	margin-bottom: inherit;
 }
 
+.wp-block-cover.alignfull .wp-block-cover__inner-container {
+	max-width: 740px;
+	margin: 0 auto;
+}
+
 /* File */
 
 .wp-block-file .wp-block-file__button {

+ 5 - 7
libre-2/css/blocks.css

@@ -36,13 +36,6 @@ Description: Used to style Gutenberg Blocks.
 		width: auto;
 	}
 
-	/* Child blocks should not get wider than their parent */
-	.singular.no-sidebar  [class^="wp-block-"] .alignwide {
-		margin-right: inherit;
-		margin-left: inherit;
-		max-width: 100%;
-	}
-
 	.singular.no-sidebar .wp-block-embed.is-type-video.alignwide iframe {
 		width: 100% !important;
 		height: 100% !important;
@@ -223,6 +216,11 @@ p.has-drop-cap:not(:focus)::first-letter {
 	font-size: 1.5em;
 }
 
+.wp-block-cover.alignfull .wp-block-cover__inner-container {
+	max-width: 740px;
+	margin: 0 auto;
+}
+
 /* File */
 
 .wp-block-file a:not(.wp-block-file__button),