فهرست منبع

solve issue when both logo and featured image are present

Maggie Cabrera 4 سال پیش
والد
کامیت
ebf3f162f2
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 3 0
      quadrat/assets/theme.css
  2. 4 1
      quadrat/sass/_post-header.scss

+ 3 - 0
quadrat/assets/theme.css

@@ -716,6 +716,9 @@ textarea:focus {
 	.single.wp-custom-logo .post-header {
 		padding-top: 150px !important;
 	}
+	.single.wp-custom-logo .wp-block-post-featured-image {
+		margin-top: -150px !important;
+	}
 	.single .site-header {
 		position: absolute;
 		top: 0;

+ 4 - 1
quadrat/sass/_post-header.scss

@@ -23,7 +23,7 @@ $admin-bar: 46px;
 		.wp-block-spacer {
 			display: none;
 		}
-		
+
 		.wp-block-post-featured-image {
 			order: -1;
 			height: 100vh;
@@ -53,6 +53,9 @@ $admin-bar: 46px;
 			.post-header {
 				padding-top: 150px !important;
 			}
+			.wp-block-post-featured-image {
+				margin-top: -150px !important;
+			}
 		}
 
 		.site-header{