浏览代码

Hever: Fix negative margin issue in footer menu

Allan Cole 6 年之前
父节点
当前提交
f3b7066040
共有 3 个文件被更改,包括 20 次插入9 次删除
  1. 6 3
      hever/sass/_extra-child-theme.scss
  2. 8 3
      hever/style-rtl.css
  3. 6 3
      hever/style.css

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

@@ -196,9 +196,12 @@ a {
 /**
 /**
  * Footer Menu
  * Footer Menu
  */
  */
-.footer-navigation .footer-menu {
-	margin-left: -#{0.5 * map-deep-get($config-global, "spacing", "horizontal")};
-	margin-right: -#{0.5 * map-deep-get($config-global, "spacing", "horizontal")};
+.footer-navigation .footer-menu > li:first-of-type {
+	margin-left: 0;
+}
+
+.footer-navigation .footer-menu > li:last-of-type {
+	margin-right: 0;
 }
 }
 
 
 /**
 /**

+ 8 - 3
hever/style-rtl.css

@@ -3395,6 +3395,8 @@ p:not(.site-title) a:hover {
 }
 }
 
 
 #masthead {
 #masthead {
+	padding-right: 0;
+	padding-left: 0;
 	padding-bottom: 0;
 	padding-bottom: 0;
 }
 }
 
 
@@ -3541,9 +3543,12 @@ p:not(.site-title) a:hover {
 /**
 /**
  * Footer Menu
  * Footer Menu
  */
  */
-.footer-navigation .footer-menu {
-	margin-right: -8px;
-	margin-left: -8px;
+.footer-navigation .footer-menu > li:first-of-type {
+	margin-right: 0;
+}
+
+.footer-navigation .footer-menu > li:last-of-type {
+	margin-left: 0;
 }
 }
 
 
 /**
 /**

+ 6 - 3
hever/style.css

@@ -3559,9 +3559,12 @@ p:not(.site-title) a:hover {
 /**
 /**
  * Footer Menu
  * Footer Menu
  */
  */
-.footer-navigation .footer-menu {
-	margin-left: -8px;
-	margin-right: -8px;
+.footer-navigation .footer-menu > li:first-of-type {
+	margin-left: 0;
+}
+
+.footer-navigation .footer-menu > li:last-of-type {
+	margin-right: 0;
 }
 }
 
 
 /**
 /**