Ver código fonte

Merge pull request #993 from Automattic/fix/issue-982

Calm Business: Fix the lack of margin on Media & Text block contents
Jeffrey Pearce 6 anos atrás
pai
commit
4527fd7fae

+ 9 - 0
calm-business/sass/blocks/_blocks.scss

@@ -942,6 +942,15 @@
 				padding-top: $size__vertical-spacing-unit;
 				padding-bottom: $size__vertical-spacing-unit;
 			}
+
+
+			> :first-child {
+				margin-top: 0.88889rem;
+			}
+
+			> :last-child {
+				margin-bottom: 0.88889rem;
+			}
 		}
 
 		// Temporary fix for IE 11 for this issue: https://github.com/WordPress/gutenberg/issues/11577

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

@@ -4512,6 +4512,14 @@ body.page .main-navigation {
   }
 }
 
+.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;
+}
+
 @media all and (-ms-high-contrast: none) {
   .entry .entry-content .wp-block-media-text:after {
     display: table;

+ 8 - 0
calm-business/style.css

@@ -4523,6 +4523,14 @@ body.page .main-navigation {
   }
 }
 
+.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;
+}
+
 @media all and (-ms-high-contrast: none) {
   .entry .entry-content .wp-block-media-text:after {
     display: table;