浏览代码

Mobile menu fixes. Hide homepage title style fixes.

Jeffrey Pearce 6 年之前
父节点
当前提交
0619df4e7c
共有 3 个文件被更改,包括 47 次插入0 次删除
  1. 15 0
      stratford/sass/_extra-child-theme.scss
  2. 16 0
      stratford/style-rtl.css
  3. 16 0
      stratford/style.css

+ 15 - 0
stratford/sass/_extra-child-theme.scss

@@ -100,6 +100,9 @@ a {
 			-webkit-flex: 0 1 auto;
 			-ms-flex: 0 1 auto;
 			flex: 0 1 auto;
+			@include media(mobile-only) {
+				width: 100%;
+			}
 		}
 		.main-navigation {
 			> ul {
@@ -216,6 +219,18 @@ a {
 	padding-top: 4.75em;
 }
 
+.home.page.hide-homepage-title { 
+	.site-content {
+		.site-main {
+			padding-top: 0;
+		}
+		@include media(mobile-only) {
+			padding-top: 4em;
+		}
+	}
+}
+
+
 /**
  * 4. Navigation
  */

+ 16 - 0
stratford/style-rtl.css

@@ -3464,6 +3464,12 @@ a {
 	flex: 0 1 auto;
 }
 
+@media only screen and (max-width: 559px) {
+	#masthead .site-header-wrapper .site-menu {
+		width: 100%;
+	}
+}
+
 #masthead .site-header-wrapper .main-navigation > ul > li.current-menu-item a {
 	border-color: #3e69dc;
 	border-style: solid;
@@ -3549,6 +3555,16 @@ a {
 	padding-top: 4.75em;
 }
 
+.home.page.hide-homepage-title .site-content .site-main {
+	padding-top: 0;
+}
+
+@media only screen and (max-width: 559px) {
+	.home.page.hide-homepage-title .site-content {
+		padding-top: 4em;
+	}
+}
+
 /**
  * 4. Navigation
  */

+ 16 - 0
stratford/style.css

@@ -3469,6 +3469,12 @@ a {
 	flex: 0 1 auto;
 }
 
+@media only screen and (max-width: 559px) {
+	#masthead .site-header-wrapper .site-menu {
+		width: 100%;
+	}
+}
+
 #masthead .site-header-wrapper .main-navigation > ul > li.current-menu-item a {
 	border-color: #3e69dc;
 	border-style: solid;
@@ -3554,6 +3560,16 @@ a {
 	padding-top: 4.75em;
 }
 
+.home.page.hide-homepage-title .site-content .site-main {
+	padding-top: 0;
+}
+
+@media only screen and (max-width: 559px) {
+	.home.page.hide-homepage-title .site-content {
+		padding-top: 4em;
+	}
+}
+
 /**
  * 4. Navigation
  */