瀏覽代碼

Modern Business: Make sure the first block has margin-top: 0

Allan Cole 6 年之前
父節點
當前提交
0b8dea7b2a
共有 3 個文件被更改,包括 21 次插入0 次删除
  1. 7 0
      modern-business/sass/blocks/_blocks.scss
  2. 7 0
      modern-business/style-rtl.css
  3. 7 0
      modern-business/style.css

+ 7 - 0
modern-business/sass/blocks/_blocks.scss

@@ -93,6 +93,13 @@
 	}
 }
 
+/*
+ * Make sure the first block has margin-top: 0
+ */
+.entry:not(.has-post-thumbnail) .entry-content > :first-child {
+	margin-top: 0;
+}
+
 /*
  * Unset nested content selector styles
  * - Prevents layout styles from cascading too deeply

+ 7 - 0
modern-business/style-rtl.css

@@ -3482,6 +3482,13 @@ body.page .main-navigation {
   }
 }
 
+/*
+ * Make sure the first block has margin-top: 0
+ */
+.entry:not(.has-post-thumbnail) .entry-content > :first-child {
+  margin-top: 0;
+}
+
 /*
  * Unset nested content selector styles
  * - Prevents layout styles from cascading too deeply

+ 7 - 0
modern-business/style.css

@@ -3494,6 +3494,13 @@ body.page .main-navigation {
   }
 }
 
+/*
+ * Make sure the first block has margin-top: 0
+ */
+.entry:not(.has-post-thumbnail) .entry-content > :first-child {
+  margin-top: 0;
+}
+
 /*
  * Unset nested content selector styles
  * - Prevents layout styles from cascading too deeply