Browse Source

Allow full-width group blocks that have a background color to remove the top margin.

Kjell Reigstad 4 years ago
parent
commit
7f0e08afcb

+ 2 - 1
seedlet/assets/css/style-editor.css

@@ -1669,7 +1669,8 @@ pre.wp-block-verse {
 
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-image.alignfull:first-child,
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-cover.alignfull:first-child,
-.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child {
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child,
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-group.has-background.alignfull:first-child {
 	margin-top: calc(-1 * var(--global--spacing-vertical));
 }
 

+ 2 - 1
seedlet/assets/sass/components/entry/_content.scss

@@ -65,7 +65,8 @@
 		// Move some full-width blocks up to the top of the screen.
 		> .wp-block-image.alignfull:first-child,
 		> .wp-block-cover.alignfull:first-child,
-		> .wp-block-media-text.alignfull:first-child {
+		> .wp-block-media-text.alignfull:first-child,
+		> .wp-block-group.has-background.alignfull:first-child {
 			margin-top: calc(-1 * var(--global--spacing-vertical));
 		}
 	}

+ 2 - 1
seedlet/style-rtl.css

@@ -3198,7 +3198,8 @@ nav a {
 
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-image.alignfull:first-child,
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-cover.alignfull:first-child,
-.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child {
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child,
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-group.has-background.alignfull:first-child {
 	margin-top: calc(-1 * var(--global--spacing-vertical));
 }
 

+ 2 - 1
seedlet/style.css

@@ -3219,7 +3219,8 @@ nav a {
 
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-image.alignfull:first-child,
 .home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-cover.alignfull:first-child,
-.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child {
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-media-text.alignfull:first-child,
+.home.page.hide-homepage-header.hide-homepage-title .entry-content > .wp-block-group.has-background.alignfull:first-child {
 	margin-top: calc(-1 * var(--global--spacing-vertical));
 }