瀏覽代碼

Hever: Make sure alignfull first-child doesn't conflict with hidden homepage title

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

+ 6 - 2
hever/sass/_extra-child-theme.scss

@@ -265,10 +265,14 @@ article .entry-header .entry-title,
   }
 }
 
-.singular .hentry .entry-content {
+.singular:not(.home.hide-homepage-title) .hentry .entry-content {
 	& > *:first-child {
 		&.alignfull {
-			margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
+			margin-top: -#{0.666 * map-deep-get($config-global, "spacing", "vertical")};
+
+			@include media(mobile) {
+				margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
+			}
 		}
 	}
 }

+ 8 - 2
hever/style-rtl.css

@@ -1140,7 +1140,7 @@ input.has-focus[type="submit"],
 	color: #1279BE;
 	background: transparent;
 	border: 2px solid currentcolor;
-	padding: 16px-2px 24px;
+	padding: 14px 24px;
 }
 
 .wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus, .wp-block-button.is-style-outline .wp-block-button__link.has-focus {
@@ -3446,7 +3446,13 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 }
 
 .singular .hentry .entry-content > *:first-child.alignfull {
-	margin-top: -64px;
+	margin-top: -21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.singular .hentry .entry-content > *:first-child.alignfull {
+		margin-top: -64px;
+	}
 }
 
 /**

+ 8 - 2
hever/style.css

@@ -3450,8 +3450,14 @@ article .entry-header .entry-title a:active, article .entry-header .entry-title
 	color: #1279BE;
 }
 
-.singular .hentry .entry-content > *:first-child.alignfull {
-	margin-top: -64px;
+.singular:not(.home.hide-homepage-title) .hentry .entry-content > *:first-child.alignfull {
+	margin-top: -21.312px;
+}
+
+@media only screen and (min-width: 560px) {
+	.singular:not(.home.hide-homepage-title) .hentry .entry-content > *:first-child.alignfull {
+		margin-top: -64px;
+	}
 }
 
 /**