Browse Source

Maywood: Add `auto-loading-homepage` tag to main stylesheet, version bump

Allan Cole 5 years ago
parent
commit
7d2c59bea5
5 changed files with 61 additions and 17 deletions
  1. 1 1
      maywood/package.json
  2. 2 2
      maywood/sass/style-child-theme.scss
  3. 24 0
      maywood/style-editor.css
  4. 17 7
      maywood/style-rtl.css
  5. 17 7
      maywood/style.css

+ 1 - 1
maywood/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "maywood",
   "name": "maywood",
-  "version": "1.1.2",
+  "version": "1.1.3",
   "description": "Maywood",
   "description": "Maywood",
   "bugs": {
   "bugs": {
     "url": "https://github.com/Automattic/themes/issues"
     "url": "https://github.com/Automattic/themes/issues"

+ 2 - 2
maywood/sass/style-child-theme.scss

@@ -5,12 +5,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Author URI: https://automattic.com/
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Requires at least: WordPress 4.9.6
 Requires at least: WordPress 4.9.6
-Version: 1.1.2
+Version: 1.1.3
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: LICENSE
 License URI: LICENSE
 Template: varia
 Template: varia
 Text Domain: maywood
 Text Domain: maywood
-Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
+Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage
 
 
 This theme, like WordPress, is licensed under the GPL.
 This theme, like WordPress, is licensed under the GPL.
 Use it to make something cool, have fun, and share what you've learned with others.
 Use it to make something cool, have fun, and share what you've learned with others.

+ 24 - 0
maywood/style-editor.css

@@ -440,6 +440,15 @@ object {
 	line-height: 1.125;
 	line-height: 1.125;
 }
 }
 
 
+/* Center image block by default in the editor */
+.wp-block-image > div {
+	text-align: center;
+}
+
+[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized {
+	margin: 0 auto;
+}
+
 .wp-block-gallery figcaption {
 .wp-block-gallery figcaption {
 	margin-bottom: 0;
 	margin-bottom: 0;
 }
 }
@@ -459,6 +468,10 @@ object {
 	width: 100%;
 	width: 100%;
 }
 }
 
 
+.wp-block-latest-comments {
+	margin-left: 0;
+}
+
 .wp-block-latest-posts {
 .wp-block-latest-posts {
 	padding-left: 0;
 	padding-left: 0;
 }
 }
@@ -508,6 +521,11 @@ object {
 	padding-left: 32px;
 	padding-left: 32px;
 }
 }
 
 
+.block-library-list li > ul,
+.block-library-list li > ol {
+	margin: 0;
+}
+
 .wp-block-media-text .block-editor-inner-blocks {
 .wp-block-media-text .block-editor-inner-blocks {
 	padding-right: 16px;
 	padding-right: 16px;
 	padding-left: 16px;
 	padding-left: 16px;
@@ -1119,10 +1137,15 @@ b, strong {
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
 	max-width: none;
 	max-width: none;
+	padding-left: 0;
 	position: relative;
 	position: relative;
 	/* Sub-menus Flyout */
 	/* Sub-menus Flyout */
 }
 }
 
 
+.main-navigation > div > ul ul {
+	padding-left: 0;
+}
+
 .main-navigation > div > ul li {
 .main-navigation > div > ul li {
 	display: block;
 	display: block;
 	position: relative;
 	position: relative;
@@ -1278,6 +1301,7 @@ b, strong {
 	display: flex;
 	display: flex;
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
+	padding-left: 0;
 }
 }
 
 
 .social-navigation > div > ul > li:first-of-type > a {
 .social-navigation > div > ul > li:first-of-type > a {

+ 17 - 7
maywood/style-rtl.css

@@ -6,12 +6,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Author URI: https://automattic.com/
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Requires at least: WordPress 4.9.6
 Requires at least: WordPress 4.9.6
-Version: 1.1.2
+Version: 1.1.3
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: LICENSE
 License URI: LICENSE
 Template: varia
 Template: varia
 Text Domain: maywood
 Text Domain: maywood
-Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
+Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage
 
 
 This theme, like WordPress, is licensed under the GPL.
 This theme, like WordPress, is licensed under the GPL.
 Use it to make something cool, have fun, and share what you've learned with others.
 Use it to make something cool, have fun, and share what you've learned with others.
@@ -1464,6 +1464,10 @@ h6, .h6 {
 	line-height: 1.125;
 	line-height: 1.125;
 }
 }
 
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 .wp-block-image figcaption {
 	color: #686868;
 	color: #686868;
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
@@ -1490,7 +1494,7 @@ img {
 }
 }
 
 
 .wp-block-latest-comments {
 .wp-block-latest-comments {
-	margin-right: 0;
+	padding-right: 0;
 }
 }
 
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
 .wp-block-latest-comments .wp-block-latest-comments__comment {
@@ -1525,7 +1529,7 @@ img {
 }
 }
 
 
 .wp-block-latest-posts {
 .wp-block-latest-posts {
-	margin-right: 0;
+	padding-right: 0;
 }
 }
 
 
 .wp-block-latest-posts > li {
 .wp-block-latest-posts > li {
@@ -2412,10 +2416,15 @@ table th,
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
 	max-width: none;
 	max-width: none;
+	padding-right: 0;
 	position: relative;
 	position: relative;
 	/* Sub-menus Flyout */
 	/* Sub-menus Flyout */
 }
 }
 
 
+.main-navigation > div > ul ul {
+	padding-right: 0;
+}
+
 .main-navigation > div > ul li {
 .main-navigation > div > ul li {
 	display: block;
 	display: block;
 	position: relative;
 	position: relative;
@@ -2571,6 +2580,7 @@ table th,
 	display: flex;
 	display: flex;
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
+	padding-right: 0;
 }
 }
 
 
 .social-navigation > div > ul > li:first-of-type > a {
 .social-navigation > div > ul > li:first-of-type > a {
@@ -2922,7 +2932,7 @@ table th,
  */
  */
 .comment-list {
 .comment-list {
 	border-bottom: 1px solid #CCCCCC;
 	border-bottom: 1px solid #CCCCCC;
-	margin-right: 0;
+	padding-right: 0;
 	list-style: none;
 	list-style: none;
 }
 }
 
 
@@ -2934,7 +2944,7 @@ table th,
 
 
 .children {
 .children {
 	list-style: none;
 	list-style: none;
-	margin-right: 16px;
+	padding-right: 16px;
 }
 }
 
 
 .children > li {
 .children > li {
@@ -2945,7 +2955,7 @@ table th,
 
 
 @media only screen and (min-width: 560px) {
 @media only screen and (min-width: 560px) {
 	.children {
 	.children {
-		margin-right: calc(2 * 16px);
+		padding-right: 32px;
 	}
 	}
 }
 }
 
 

+ 17 - 7
maywood/style.css

@@ -6,12 +6,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Author URI: https://automattic.com/
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Description: Maywood is a refined theme designed for restaurants and food-related businesses seeking a modern look.
 Requires at least: WordPress 4.9.6
 Requires at least: WordPress 4.9.6
-Version: 1.1.2
+Version: 1.1.3
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: LICENSE
 License URI: LICENSE
 Template: varia
 Template: varia
 Text Domain: maywood
 Text Domain: maywood
-Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
+Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage
 
 
 This theme, like WordPress, is licensed under the GPL.
 This theme, like WordPress, is licensed under the GPL.
 Use it to make something cool, have fun, and share what you've learned with others.
 Use it to make something cool, have fun, and share what you've learned with others.
@@ -1464,6 +1464,10 @@ h6, .h6 {
 	line-height: 1.125;
 	line-height: 1.125;
 }
 }
 
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 .wp-block-image figcaption {
 	color: #686868;
 	color: #686868;
 	font-size: 0.69444rem;
 	font-size: 0.69444rem;
@@ -1490,7 +1494,7 @@ img {
 }
 }
 
 
 .wp-block-latest-comments {
 .wp-block-latest-comments {
-	margin-left: 0;
+	padding-left: 0;
 }
 }
 
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
 .wp-block-latest-comments .wp-block-latest-comments__comment {
@@ -1525,7 +1529,7 @@ img {
 }
 }
 
 
 .wp-block-latest-posts {
 .wp-block-latest-posts {
-	margin-left: 0;
+	padding-left: 0;
 }
 }
 
 
 .wp-block-latest-posts > li {
 .wp-block-latest-posts > li {
@@ -2429,10 +2433,15 @@ table th,
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
 	max-width: none;
 	max-width: none;
+	padding-left: 0;
 	position: relative;
 	position: relative;
 	/* Sub-menus Flyout */
 	/* Sub-menus Flyout */
 }
 }
 
 
+.main-navigation > div > ul ul {
+	padding-left: 0;
+}
+
 .main-navigation > div > ul li {
 .main-navigation > div > ul li {
 	display: block;
 	display: block;
 	position: relative;
 	position: relative;
@@ -2588,6 +2597,7 @@ table th,
 	display: flex;
 	display: flex;
 	list-style: none;
 	list-style: none;
 	margin: 0;
 	margin: 0;
+	padding-left: 0;
 }
 }
 
 
 .social-navigation > div > ul > li:first-of-type > a {
 .social-navigation > div > ul > li:first-of-type > a {
@@ -2939,7 +2949,7 @@ table th,
  */
  */
 .comment-list {
 .comment-list {
 	border-bottom: 1px solid #CCCCCC;
 	border-bottom: 1px solid #CCCCCC;
-	margin-left: 0;
+	padding-left: 0;
 	list-style: none;
 	list-style: none;
 }
 }
 
 
@@ -2951,7 +2961,7 @@ table th,
 
 
 .children {
 .children {
 	list-style: none;
 	list-style: none;
-	margin-left: 16px;
+	padding-left: 16px;
 }
 }
 
 
 .children > li {
 .children > li {
@@ -2962,7 +2972,7 @@ table th,
 
 
 @media only screen and (min-width: 560px) {
 @media only screen and (min-width: 560px) {
 	.children {
 	.children {
-		margin-left: calc(2 * 16px);
+		padding-left: 32px;
 	}
 	}
 }
 }