فهرست منبع

Morden: Fix footer side margin on mobile

Danny Dudzic 5 سال پیش
والد
کامیت
b55aaaf9b2
3فایلهای تغییر یافته به همراه21 افزوده شده و 7 حذف شده
  1. 5 1
      morden/sass/_extra-child-theme.scss
  2. 8 3
      morden/style-rtl.css
  3. 8 3
      morden/style.css

+ 5 - 1
morden/sass/_extra-child-theme.scss

@@ -63,10 +63,14 @@ body {
 		}
 		}
 	}
 	}
 }
 }
-
 #colophon {
 #colophon {
 	padding-left: 0;
 	padding-left: 0;
 	padding-right: 0;
 	padding-right: 0;
+
+	@include media(mobile-only) {
+		padding-left: map-deep-get($config-global, "spacing", "horizontal");
+		padding-right: map-deep-get($config-global, "spacing", "horizontal");
+	}
 }
 }
 
 
 /**
 /**

+ 8 - 3
morden/style-rtl.css

@@ -684,9 +684,7 @@ a {
 .site-header:after,
 .site-header:after,
 .site-content:after,
 .site-content:after,
 .site-footer:after {
 .site-footer:after {
-	content: "";
-	display: table;
-	table-layout: fixed;
+	clear: both;
 }
 }
 
 
 /**
 /**
@@ -3670,6 +3668,13 @@ p:not(.site-title) a:hover {
 	padding-left: 0;
 	padding-left: 0;
 }
 }
 
 
+@media only screen and (max-width: 559px) {
+	#colophon {
+		padding-right: 16px;
+		padding-left: 16px;
+	}
+}
+
 /**
 /**
  * Mobile-Menu
  * Mobile-Menu
  */
  */

+ 8 - 3
morden/style.css

@@ -684,9 +684,7 @@ a {
 .site-header:after,
 .site-header:after,
 .site-content:after,
 .site-content:after,
 .site-footer:after {
 .site-footer:after {
-	content: "";
-	display: table;
-	table-layout: fixed;
+	clear: both;
 }
 }
 
 
 /**
 /**
@@ -3699,6 +3697,13 @@ p:not(.site-title) a:hover {
 	padding-right: 0;
 	padding-right: 0;
 }
 }
 
 
+@media only screen and (max-width: 559px) {
+	#colophon {
+		padding-left: 16px;
+		padding-right: 16px;
+	}
+}
+
 /**
 /**
  * Mobile-Menu
  * Mobile-Menu
  */
  */