Ver código fonte

Merge pull request #1486 from Automattic/update/sync-barnsbury-wpcom

Barnsbury: Add auto-loading-homepage tag to stylesheet, minor version bump
Daniel Dudzic 5 anos atrás
pai
commit
e03e6b1240

+ 1 - 1
barnsbury/package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "barnsbury",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
barnsbury/package.json

@@ -1,6 +1,6 @@
 {
   "name": "barnsbury",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "Barnsbury",
   "bugs": {
     "url": "https://github.com/Automattic/themes/issues"

+ 9 - 2
barnsbury/sass/_extra-child-theme.scss

@@ -273,15 +273,22 @@ a {
 
 .widget_archive,
 .widget_categories,
+.widget_links,
 .widget_meta,
 .widget_nav_menu,
 .widget_pages,
 .widget_recent_comments,
 .widget_recent_entries,
-.widget_rss {
+.widget_rss,
+.widget_rss_links,
+.widget_top-posts,
+.widget_authors,
+.widget_jp_blogs_i_follow,
+.widget_top-click,
+.widget_upcoming_events_widget {
 
 	ul {
-		margin-left: 0;
+		padding-left: 0;
 		margin-right: 0;
 		list-style: none;
 

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

@@ -5,12 +5,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Barnsbury is an earthy and friendly theme design with farming and agriculture businesses in mind.
 Requires at least: WordPress 4.9.6
-Version: 1.0.0
+Version: 1.0.1
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia
 Text Domain: barnsbury
-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.
 Use it to make something cool, have fun, and share what you've learned with others.

+ 25 - 1
barnsbury/style-editor.css

@@ -439,6 +439,15 @@ object {
 	line-height: 1.15;
 }
 
+/* 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 {
 	margin-bottom: 0;
 }
@@ -458,6 +467,10 @@ object {
 	width: 100%;
 }
 
+.wp-block-latest-comments {
+	margin-left: 0;
+}
+
 .wp-block-latest-posts {
 	padding-left: 0;
 }
@@ -501,6 +514,17 @@ object {
 	margin: 0;
 }
 
+.block-library-list ul,
+.block-library-list ol {
+	margin: 32px 0;
+	padding-left: 32px;
+}
+
+.block-library-list li > ul,
+.block-library-list li > ol {
+	margin: 0;
+}
+
 .wp-block-media-text .block-editor-inner-blocks {
 	padding-right: 16px;
 	padding-left: 16px;
@@ -615,7 +639,7 @@ p.has-background:not(.has-background-background-color) a {
 
 .wp-block-quote.is-large, .wp-block-quote.is-style-large {
 	border: none;
-	padding: 0 16px;
+	padding: 0;
 }
 
 .wp-block-quote.is-large p, .wp-block-quote.is-style-large p {

+ 56 - 18
barnsbury/style-rtl.css

@@ -6,12 +6,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Barnsbury is an earthy and friendly theme design with farming and agriculture businesses in mind.
 Requires at least: WordPress 4.9.6
-Version: 1.0.0
+Version: 1.0.1
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia
 Text Domain: barnsbury
-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.
 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.15;
 }
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 	color: #844d4d;
 	font-size: 0.71818rem;
@@ -1487,11 +1491,10 @@ img {
 	height: auto;
 	max-width: 100%;
 	vertical-align: middle;
-	width: auto;
 }
 
 .wp-block-latest-comments {
-	margin-right: 0;
+	padding-right: 0;
 }
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
@@ -1526,7 +1529,7 @@ img {
 }
 
 .wp-block-latest-posts {
-	margin-right: 0;
+	padding-right: 0;
 }
 
 .wp-block-latest-posts > li {
@@ -1629,9 +1632,8 @@ img {
 ul,
 ol {
 	font-family: "Rubik", Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;
-	list-style-position: inside;
-	margin: 0 16px 0 0;
-	padding: 0;
+	margin: 0;
+	padding-right: 32px;
 }
 
 ul {
@@ -1648,7 +1650,8 @@ dt {
 }
 
 dd {
-	margin: 0 16px 0 0;
+	margin: 0;
+	padding-right: 32px;
 }
 
 .wp-block-media-text {
@@ -1847,7 +1850,7 @@ p.has-background {
 .wp-block-quote {
 	border-right-color: #20603C;
 	margin: 32px 0;
-	padding: 0 16px;
+	padding-right: 16px;
 	/**
 	 * Block Options
 	 */
@@ -1910,6 +1913,7 @@ p.has-background {
 	/* Resetting margins to match _block-container.scss */
 	margin-top: 32px;
 	margin-bottom: 32px;
+	padding: 0;
 }
 
 .wp-block-quote.is-style-large p, .wp-block-quote.is-large p {
@@ -2412,10 +2416,15 @@ table th,
 	list-style: none;
 	margin: 0;
 	max-width: none;
+	padding-right: 0;
 	position: relative;
 	/* Sub-menus Flyout */
 }
 
+.main-navigation > div > ul ul {
+	padding-right: 0;
+}
+
 .main-navigation > div > ul li {
 	display: block;
 	position: relative;
@@ -2571,6 +2580,7 @@ table th,
 	display: flex;
 	list-style: none;
 	margin: 0;
+	padding-right: 0;
 }
 
 .social-navigation > div > ul > li:first-of-type > a {
@@ -2922,7 +2932,7 @@ table th,
  */
 .comment-list {
 	border-bottom: 1px solid #3C2323;
-	margin-right: 0;
+	padding-right: 0;
 	list-style: none;
 }
 
@@ -2934,7 +2944,7 @@ table th,
 
 .children {
 	list-style: none;
-	margin-right: 16px;
+	padding-right: 16px;
 }
 
 .children > li {
@@ -2945,7 +2955,7 @@ table th,
 
 @media only screen and (min-width: 560px) {
 	.children {
-		margin-right: calc(2 * 16px);
+		padding-right: 32px;
 	}
 }
 
@@ -3797,48 +3807,76 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
 
 .widget_archive ul,
 .widget_categories ul,
+.widget_links ul,
 .widget_meta ul,
 .widget_nav_menu ul,
 .widget_pages ul,
 .widget_recent_comments ul,
 .widget_recent_entries ul,
-.widget_rss ul {
-	margin-right: 0;
+.widget_rss ul,
+.widget_rss_links ul,
+.widget_top-posts ul,
+.widget_authors ul,
+.widget_jp_blogs_i_follow ul,
+.widget_top-click ul,
+.widget_upcoming_events_widget ul {
+	padding-right: 0;
 	margin-left: 0;
 	list-style: none;
 }
 
 .widget_archive ul li,
 .widget_categories ul li,
+.widget_links ul li,
 .widget_meta ul li,
 .widget_nav_menu ul li,
 .widget_pages ul li,
 .widget_recent_comments ul li,
 .widget_recent_entries ul li,
-.widget_rss ul li {
+.widget_rss ul li,
+.widget_rss_links ul li,
+.widget_top-posts ul li,
+.widget_authors ul li,
+.widget_jp_blogs_i_follow ul li,
+.widget_top-click ul li,
+.widget_upcoming_events_widget ul li {
 	color: #844d4d;
 	font-weight: 600;
 }
 
 .widget_archive ul ul,
 .widget_categories ul ul,
+.widget_links ul ul,
 .widget_meta ul ul,
 .widget_nav_menu ul ul,
 .widget_pages ul ul,
 .widget_recent_comments ul ul,
 .widget_recent_entries ul ul,
-.widget_rss ul ul {
+.widget_rss ul ul,
+.widget_rss_links ul ul,
+.widget_top-posts ul ul,
+.widget_authors ul ul,
+.widget_jp_blogs_i_follow ul ul,
+.widget_top-click ul ul,
+.widget_upcoming_events_widget ul ul {
 	counter-reset: submenu;
 }
 
 .widget_archive ul ul > li > a::before,
 .widget_categories ul ul > li > a::before,
+.widget_links ul ul > li > a::before,
 .widget_meta ul ul > li > a::before,
 .widget_nav_menu ul ul > li > a::before,
 .widget_pages ul ul > li > a::before,
 .widget_recent_comments ul ul > li > a::before,
 .widget_recent_entries ul ul > li > a::before,
-.widget_rss ul ul > li > a::before {
+.widget_rss ul ul > li > a::before,
+.widget_rss_links ul ul > li > a::before,
+.widget_top-posts ul ul > li > a::before,
+.widget_authors ul ul > li > a::before,
+.widget_jp_blogs_i_follow ul ul > li > a::before,
+.widget_top-click ul ul > li > a::before,
+.widget_upcoming_events_widget ul ul > li > a::before {
 	font-weight: normal;
 	content: "– " counters(submenu, "– ", none);
 	counter-increment: submenu;

+ 56 - 18
barnsbury/style.css

@@ -6,12 +6,12 @@ Author: Automattic
 Author URI: https://automattic.com/
 Description: Barnsbury is an earthy and friendly theme design with farming and agriculture businesses in mind.
 Requires at least: WordPress 4.9.6
-Version: 1.0.0
+Version: 1.0.1
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: varia
 Text Domain: barnsbury
-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.
 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.15;
 }
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 	color: #844d4d;
 	font-size: 0.71818rem;
@@ -1487,11 +1491,10 @@ img {
 	height: auto;
 	max-width: 100%;
 	vertical-align: middle;
-	width: auto;
 }
 
 .wp-block-latest-comments {
-	margin-left: 0;
+	padding-left: 0;
 }
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
@@ -1526,7 +1529,7 @@ img {
 }
 
 .wp-block-latest-posts {
-	margin-left: 0;
+	padding-left: 0;
 }
 
 .wp-block-latest-posts > li {
@@ -1629,9 +1632,8 @@ img {
 ul,
 ol {
 	font-family: "Rubik", Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;
-	list-style-position: inside;
-	margin: 0 0 0 16px;
-	padding: 0;
+	margin: 0;
+	padding-left: 32px;
 }
 
 ul {
@@ -1648,7 +1650,8 @@ dt {
 }
 
 dd {
-	margin: 0 0 0 16px;
+	margin: 0;
+	padding-left: 32px;
 }
 
 .wp-block-media-text {
@@ -1847,7 +1850,7 @@ p.has-background {
 .wp-block-quote {
 	border-left-color: #20603C;
 	margin: 32px 0;
-	padding: 0 16px;
+	padding-left: 16px;
 	/**
 	 * Block Options
 	 */
@@ -1910,6 +1913,7 @@ p.has-background {
 	/* Resetting margins to match _block-container.scss */
 	margin-top: 32px;
 	margin-bottom: 32px;
+	padding: 0;
 }
 
 .wp-block-quote.is-style-large p, .wp-block-quote.is-large p {
@@ -2429,10 +2433,15 @@ table th,
 	list-style: none;
 	margin: 0;
 	max-width: none;
+	padding-left: 0;
 	position: relative;
 	/* Sub-menus Flyout */
 }
 
+.main-navigation > div > ul ul {
+	padding-left: 0;
+}
+
 .main-navigation > div > ul li {
 	display: block;
 	position: relative;
@@ -2588,6 +2597,7 @@ table th,
 	display: flex;
 	list-style: none;
 	margin: 0;
+	padding-left: 0;
 }
 
 .social-navigation > div > ul > li:first-of-type > a {
@@ -2939,7 +2949,7 @@ table th,
  */
 .comment-list {
 	border-bottom: 1px solid #3C2323;
-	margin-left: 0;
+	padding-left: 0;
 	list-style: none;
 }
 
@@ -2951,7 +2961,7 @@ table th,
 
 .children {
 	list-style: none;
-	margin-left: 16px;
+	padding-left: 16px;
 }
 
 .children > li {
@@ -2962,7 +2972,7 @@ table th,
 
 @media only screen and (min-width: 560px) {
 	.children {
-		margin-left: calc(2 * 16px);
+		padding-left: 32px;
 	}
 }
 
@@ -3826,48 +3836,76 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
 
 .widget_archive ul,
 .widget_categories ul,
+.widget_links ul,
 .widget_meta ul,
 .widget_nav_menu ul,
 .widget_pages ul,
 .widget_recent_comments ul,
 .widget_recent_entries ul,
-.widget_rss ul {
-	margin-left: 0;
+.widget_rss ul,
+.widget_rss_links ul,
+.widget_top-posts ul,
+.widget_authors ul,
+.widget_jp_blogs_i_follow ul,
+.widget_top-click ul,
+.widget_upcoming_events_widget ul {
+	padding-left: 0;
 	margin-right: 0;
 	list-style: none;
 }
 
 .widget_archive ul li,
 .widget_categories ul li,
+.widget_links ul li,
 .widget_meta ul li,
 .widget_nav_menu ul li,
 .widget_pages ul li,
 .widget_recent_comments ul li,
 .widget_recent_entries ul li,
-.widget_rss ul li {
+.widget_rss ul li,
+.widget_rss_links ul li,
+.widget_top-posts ul li,
+.widget_authors ul li,
+.widget_jp_blogs_i_follow ul li,
+.widget_top-click ul li,
+.widget_upcoming_events_widget ul li {
 	color: #844d4d;
 	font-weight: 600;
 }
 
 .widget_archive ul ul,
 .widget_categories ul ul,
+.widget_links ul ul,
 .widget_meta ul ul,
 .widget_nav_menu ul ul,
 .widget_pages ul ul,
 .widget_recent_comments ul ul,
 .widget_recent_entries ul ul,
-.widget_rss ul ul {
+.widget_rss ul ul,
+.widget_rss_links ul ul,
+.widget_top-posts ul ul,
+.widget_authors ul ul,
+.widget_jp_blogs_i_follow ul ul,
+.widget_top-click ul ul,
+.widget_upcoming_events_widget ul ul {
 	counter-reset: submenu;
 }
 
 .widget_archive ul ul > li > a::before,
 .widget_categories ul ul > li > a::before,
+.widget_links ul ul > li > a::before,
 .widget_meta ul ul > li > a::before,
 .widget_nav_menu ul ul > li > a::before,
 .widget_pages ul ul > li > a::before,
 .widget_recent_comments ul ul > li > a::before,
 .widget_recent_entries ul ul > li > a::before,
-.widget_rss ul ul > li > a::before {
+.widget_rss ul ul > li > a::before,
+.widget_rss_links ul ul > li > a::before,
+.widget_top-posts ul ul > li > a::before,
+.widget_authors ul ul > li > a::before,
+.widget_jp_blogs_i_follow ul ul > li > a::before,
+.widget_top-click ul ul > li > a::before,
+.widget_upcoming_events_widget ul ul > li > a::before {
 	font-weight: normal;
 	content: "– " counters(submenu, "– ", none);
 	counter-increment: submenu;