소스 검색

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

Allan Cole 6 년 전
부모
커밋
2284868a0f
3개의 변경된 파일22개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 0
      calm-business/sass/blocks/_blocks.scss
  2. 8 2
      calm-business/style-rtl.css
  3. 7 0
      calm-business/style.css

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

@@ -92,6 +92,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

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

@@ -986,7 +986,6 @@ form p {
 .contact-form input[type="datetime-local"],
 .contact-form input[type="color"] {
   margin-bottom: 13.6px;
-  min-width: 300px;
   min-height: 56px;
 }
 
@@ -3601,6 +3600,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
@@ -4485,7 +4491,7 @@ body.page .main-navigation {
 
 @media only screen and (min-width: 768px) {
   .entry .entry-content .wp-block-media-text.alignfull .wp-block-media-text__content {
-    padding: 0 8%;
+    padding: 32px 8%;
   }
 }
 

+ 7 - 0
calm-business/style.css

@@ -3612,6 +3612,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