Browse Source

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

Thomas Guillot 5 years ago
parent
commit
5c625c9938
3 changed files with 6 additions and 6 deletions
  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 {
 	.hentry .entry-content {
 		& > *:first-child {
 		& > *:first-child {
 			&.alignfull {
 			&.alignfull {
-				margin-top: 0;
+				margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
 
 
 				@include media(mobile) {
 				@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 {
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: 0;
+	margin-top: -16px;
 }
 }
 
 
 @media only screen and (min-width: 560px) {
 @media only screen and (min-width: 560px) {
 	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
 	.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 {
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: 0;
+	margin-top: -16px;
 }
 }
 
 
 @media only screen and (min-width: 560px) {
 @media only screen and (min-width: 560px) {
 	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
 	.home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-		margin-top: 0;
+		margin-top: -64px;
 	}
 	}
 }
 }