浏览代码

Shawburn: Update margin-top maths when homepage title is hidden

Thomas Guillot 5 年之前
父节点
当前提交
f8331c6cfd
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 2 2
      shawburn/sass/_extra-child-theme.scss
  2. 2 2
      shawburn/style-rtl.css
  3. 2 2
      shawburn/style.css

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

@@ -12,10 +12,10 @@ body {
 	.hentry .entry-content {
 	.hentry .entry-content {
 		& > *:first-child {
 		& > *:first-child {
 			&.alignfull {
 			&.alignfull {
-				margin-top: -#{0.666 * map-deep-get($config-global, "spacing", "vertical") + 2 * map-deep-get($config-global, "spacing", "unit")};
+				margin-top: -#{2 * map-deep-get($config-global, "spacing", "unit")};
 
 
 				@include media(mobile) {
 				@include media(mobile) {
-					margin-top: -#{2.5 * map-deep-get($config-global, "spacing", "vertical")};
+					margin-top: -#{3 * map-deep-get($config-global, "spacing", "unit")};
 				}
 				}
 			}
 			}
 		}
 		}

+ 2 - 2
shawburn/style-rtl.css

@@ -3415,12 +3415,12 @@ body {
 }
 }
 
 
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: -53.312px;
+	margin-top: -32px;
 }
 }
 
 
 @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: -80px;
+		margin-top: -48px;
 	}
 	}
 }
 }
 
 

+ 2 - 2
shawburn/style.css

@@ -3444,12 +3444,12 @@ body {
 }
 }
 
 
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
 .home.hide-homepage-title .hentry .entry-content > *:first-child.alignfull {
-	margin-top: -53.312px;
+	margin-top: -32px;
 }
 }
 
 
 @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: -80px;
+		margin-top: -48px;
 	}
 	}
 }
 }