Bläddra i källkod

Stow: Fix horizontal scrolling issue on Mobile, fixes #1180

Allan Cole 6 år sedan
förälder
incheckning
d11003d1ae
4 ändrade filer med 68 tillägg och 23 borttagningar
  1. 6 6
      stow/package-lock.json
  2. 28 15
      stow/sass/_extra-child-theme.scss
  3. 17 1
      stow/style-rtl.css
  4. 17 1
      stow/style.css

+ 6 - 6
stow/package-lock.json

@@ -558,7 +558,7 @@
       "requires": {
         "bluebird": "3.5.3",
         "chokidar": "2.1.1",
-        "lodash": "4.17.13",
+        "lodash": "4.17.11",
         "yargs": "12.0.5"
       },
       "dependencies": {
@@ -1221,7 +1221,7 @@
           }
         },
         "lodash": {
-          "version": "4.17.13",
+          "version": "4.17.11",
           "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.13.tgz",
           "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==",
           "dev": true
@@ -2640,7 +2640,7 @@
       "dev": true,
       "requires": {
         "glob": "~7.1.1",
-        "lodash": "~4.17.13",
+        "lodash": "~4.17.10",
         "minimatch": "~3.0.2"
       }
     },
@@ -3461,7 +3461,7 @@
         "get-stdin": "^4.0.1",
         "glob": "^7.0.3",
         "in-publish": "^2.0.0",
-        "lodash": "^4.17.13",
+        "lodash": "^4.17.11",
         "meow": "^3.7.0",
         "mkdirp": "^0.5.1",
         "nan": "^2.13.2",
@@ -4086,7 +4086,7 @@
       "dev": true,
       "requires": {
         "chalk": "^2.4.1",
-        "lodash": "^4.17.13",
+        "lodash": "^4.17.11",
         "log-symbols": "^2.2.0",
         "postcss": "^7.0.7"
       },
@@ -4419,7 +4419,7 @@
       "dev": true,
       "requires": {
         "glob": "^7.0.0",
-        "lodash": "^4.17.13",
+        "lodash": "^4.0.0",
         "scss-tokenizer": "^0.2.3",
         "yargs": "^7.0.0"
       }

+ 28 - 15
stow/sass/_extra-child-theme.scss

@@ -102,7 +102,7 @@ a {
 }
 
 #page {
-	.entry-header, 
+	.entry-header,
 	.page-header,
 	.entry-footer,
 	.a8c-posts-list {
@@ -113,10 +113,15 @@ a {
 	}
 }
 /**
- * 4. Navigation Menu
+ * 4. Navigation
+ */
+
+
+/**
+ * 4.1 Main Navigation
  */
 #site-navigation {
-	
+
 	&.main-navigation {
 		ul {
 			li {
@@ -187,7 +192,7 @@ a {
 						}
 					}
 				}
-			}			
+			}
 		}
 		.main-menu {
 			background-color: #{map-deep-get($config-global, "color", "secondary", "default")};
@@ -202,10 +207,18 @@ a {
 	}
 }
 
+/**
+ * 4.2 Social Navigation
+ */
+.social-navigation > div > ul {
+	margin-left: 0;
+	margin-right: 0;
+}
+
 /**
  * 5. Archive Pagination and Post Navigation
  */
-.pagination .nav-links > *, 
+.pagination .nav-links > *,
 .post-navigation .post-title {
 	font-weight: normal;
 }
@@ -218,11 +231,11 @@ a {
  * 6.1. Column Block
  */
 .wp-block-coblocks-column {
-	h1, 
-	h2, 
-	h3, 
-	h4, 
-	h5, 
+	h1,
+	h2,
+	h3,
+	h4,
+	h5,
 	h6 {
 		margin-bottom: .857em;
 	}
@@ -237,8 +250,8 @@ a {
 /**
  * 6.2. Quote Block
  */
-.wp-block-quote, 
-.wp-block-quote[style*="text-align:center"], 
+.wp-block-quote,
+.wp-block-quote[style*="text-align:center"],
 .wp-block-quote[style*="text-align:right"] {
 	border: 1px solid #f2f2f2;
 	padding: #{map-deep-get($config-global, "spacing", "horizontal")};;
@@ -253,7 +266,7 @@ a {
 /**
  * 6.3. Hero Block and Cover Block
  */
-.wp-block-coblocks-hero__box, 
+.wp-block-coblocks-hero__box,
 .wp-block-cover__inner-container {
 	padding: #{map-deep-get($config-global, "spacing", "vertical")};
 	h1,
@@ -287,8 +300,8 @@ a {
 			border-width: #{map-deep-get($config-button, "border-width")};
 			padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
 			display: inline-block;
-			&:focus, 
-			&:hover, 
+			&:focus,
+			&:hover,
 			&:visited {
 				color: #{map-deep-get($config-button, "color", "text-hover")};
 				background-color: #{map-deep-get($config-button, "color", "background-hover")};

+ 17 - 1
stow/style-rtl.css

@@ -1861,6 +1861,11 @@ hr.is-style-dots:before {
 	}
 }
 
+.jetpack_subscription_widget input[type="text"] {
+	padding: calc( 0.33 * 16px) !important;
+	width: 100% !important;
+}
+
 table,
 .wp-block-table {
 	width: 100%;
@@ -3322,7 +3327,10 @@ a {
 }
 
 /**
- * 4. Navigation Menu
+ * 4. Navigation
+ */
+/**
+ * 4.1 Main Navigation
  */
 #site-navigation.main-navigation ul li {
 	padding-right: 16px;
@@ -3401,6 +3409,14 @@ a {
 	font-size: 1.2rem;
 }
 
+/**
+ * 4.2 Social Navigation
+ */
+.social-navigation > div > ul {
+	margin-right: 0;
+	margin-left: 0;
+}
+
 /**
  * 5. Archive Pagination and Post Navigation
  */

+ 17 - 1
stow/style.css

@@ -1861,6 +1861,11 @@ hr.is-style-dots:before {
 	}
 }
 
+.jetpack_subscription_widget input[type="text"] {
+	padding: calc( 0.33 * 16px) !important;
+	width: 100% !important;
+}
+
 table,
 .wp-block-table {
 	width: 100%;
@@ -3327,7 +3332,10 @@ a {
 }
 
 /**
- * 4. Navigation Menu
+ * 4. Navigation
+ */
+/**
+ * 4.1 Main Navigation
  */
 #site-navigation.main-navigation ul li {
 	padding-left: 16px;
@@ -3406,6 +3414,14 @@ a {
 	font-size: 1.2rem;
 }
 
+/**
+ * 4.2 Social Navigation
+ */
+.social-navigation > div > ul {
+	margin-left: 0;
+	margin-right: 0;
+}
+
 /**
  * 5. Archive Pagination and Post Navigation
  */