瀏覽代碼

Morden: Fix margin top when Title is hidden on the Homepage

Thomas Guillot 5 年之前
父節點
當前提交
5c625c9938
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      morden/sass/_extra-child-theme.scss
  2. 2 2
      morden/style-rtl.css
  3. 2 2
      morden/style.css

+ 2 - 2
morden/sass/_extra-child-theme.scss

@@ -402,10 +402,10 @@ article .entry-header .entry-title,
 	.hentry .entry-content {
 		& > *:first-child {
 			&.alignfull {
-				margin-top: 0;
+				margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
 
 				@include media(mobile) {
-					margin-top: 0;
+					margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
 				}
 			}
 		}

+ 2 - 2
morden/style-rtl.css

@@ -3799,12 +3799,12 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 }
 
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: 0;
+	margin-top: -16px;
 }
 
 @media only screen and (min-width: 560px) {
 	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-		margin-top: 0;
+		margin-top: -64px;
 	}
 }
 

+ 2 - 2
morden/style.css

@@ -3804,12 +3804,12 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 }
 
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: 0;
+	margin-top: -16px;
 }
 
 @media only screen and (min-width: 560px) {
 	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-		margin-top: 0;
+		margin-top: -64px;
 	}
 }