ソースを参照

Varia: only inherit top/bottom margin with cover images.

Michael Cain 5 年 前
コミット
59714a2c72

+ 2 - 0
varia/sass/blocks/cover/_editor.scss

@@ -4,6 +4,8 @@
 	background-color: #{map-deep-get($config-cover, "color", "background")};
 	color: #{map-deep-get($config-cover, "color", "foreground")};
 	min-height: #{map-deep-get($config-cover, "height")};
+	margin-top: inherit;
+	margin-bottom: inherit;
 
 	.wp-block-cover__inner-container,
 	.wp-block-cover-image-text,

+ 2 - 1
varia/sass/blocks/cover/_style.scss

@@ -3,7 +3,8 @@
 
 	background-color: #{map-deep-get($config-cover, "color", "background")};
 	min-height: #{map-deep-get($config-cover, "height")};
-	margin: inherit;
+	margin-top: inherit;
+	margin-bottom: inherit;
 
 	.wp-block-cover__inner-container,
 	.wp-block-cover-image-text,