瀏覽代碼

Merge pull request #991 from Automattic/fix/issue-986

Sophisticated Business: Fix lack of margin on Media & Text block cont…
Jeffrey Pearce 6 年之前
父節點
當前提交
196a7a4488

+ 10 - 0
sophisticated-business/sass/blocks/_blocks.scss

@@ -815,6 +815,16 @@
 	.wp-block-media-text {
 		background: $color__background-screen;
 
+		.wp-block-media-text__content {
+			> :first-child {
+				margin-top: 0.88889rem;
+			}
+
+			> :last-child {
+				margin-bottom: 0.88889rem;
+			}
+		}
+
 		& + .wp-block-media-text {
 			margin-top: -$size__vertical-spacing-unit;
 		}

+ 8 - 0
sophisticated-business/style-rtl.css

@@ -4173,6 +4173,14 @@ body.page .main-navigation {
   background: #1c1c1c;
 }
 
+.entry .entry-content .wp-block-media-text .wp-block-media-text__content > :first-child {
+  margin-top: 0.88889rem;
+}
+
+.entry .entry-content .wp-block-media-text .wp-block-media-text__content > :last-child {
+  margin-bottom: 0.88889rem;
+}
+
 .entry .entry-content .wp-block-media-text + .wp-block-media-text {
   margin-top: -32px;
 }

+ 8 - 0
sophisticated-business/style.css

@@ -4185,6 +4185,14 @@ body.page .main-navigation {
   background: #1c1c1c;
 }
 
+.entry .entry-content .wp-block-media-text .wp-block-media-text__content > :first-child {
+  margin-top: 0.88889rem;
+}
+
+.entry .entry-content .wp-block-media-text .wp-block-media-text__content > :last-child {
+  margin-bottom: 0.88889rem;
+}
+
 .entry .entry-content .wp-block-media-text + .wp-block-media-text {
   margin-top: -32px;
 }