From 38bb767c5c0c04ed03844e7d422b0ea6921baa76 Mon Sep 17 00:00:00 2001 From: Jen Baumann Date: Fri, 3 Apr 2020 11:47:37 -0400 Subject: [PATCH] Update/wp 5.4 (#339) * Reset social links block margin * Update editor class for links * Show theme primary and secondary inline text color in editor See https://github.com/WordPress/gutenberg/issues/21293 * Remove unused `light` heading class * Update OCTS content * Add link to button * Update version, .pot * Reset border radius and match other theme content Resetting the border radius allows the buttons to take on the default border radius for the theme on theme switch. * Update changelog * Add requirement to changelog --- CHANGELOG.md | 20 +++++++++++++--- config/import/content/block-examples.php | 18 ++++++++------ config/import/content/home-black-white.php | 16 ++++++++----- config/import/content/home-color.php | 16 ++++++++----- languages/genesis-sample.pot | 8 +++---- lib/gutenberg/front-end.css | 17 ++++--------- lib/gutenberg/inline-styles.php | 28 +++++++++++++++++++++- lib/gutenberg/style-editor.css | 9 ------- package.json | 2 +- phpcs.xml.dist | 2 +- style.css | 5 ++-- 11 files changed, 88 insertions(+), 53 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbc9b8ba..d625bbef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Genesis Sample Theme Changelog +## [3.3.0] - 2020-04-07 +Requires WordPress 5.4 or higher. + +### Added +* CSS to adjust left padding for WordPress 5.4 Social Icons. +* Editor styles to ensure theme colors work for inline text colors. +* Editor styles for WordPress 5.4 compatibility, including link color, buttons, headings, and lists. + +### Changed +* Updated one-click theme setup content to include WordPress 5.4 button markup. + +### Removed +* Unused `light` heading class. + ## [3.2.0] - 2019-11-13 ### Added @@ -17,7 +31,7 @@ * CSS for tables for better consistency between editor and front end and to allow for new WordPress 5.3 settings. * Allow footer widgets to be displayed on the landing page template. * Set imported landing page meta to hide footer widgets. Requires Genesis 3.2 or higher. -* Update homepage content import to use Atomic Blocks Adanced Columns block. +* Update homepage content import to use Atomic Blocks Advanced Columns block. * Update the phpcs config to exclude a PHP short array rule intended only for WordPress core. ### Fixed @@ -87,7 +101,7 @@ Requires Genesis 2.10.0+. * Changed: improve editor button block styling. * Changed: clarify wording of Customizer color labels. * Changed: remove matchHeight script and use CSS flex instead to match heights of WooCommerce product lists. -* Fixed: WooCommmerce shop pages now use the selected page layout instead of the default site layout on sites using object caching. +* Fixed: WooCommerce shop pages now use the selected page layout instead of the default site layout on sites using object caching. * Fixed: update the `npm run zip` script to prevent an issue with zip decompression for apps such as Path Finder. (npm scripts are available in the version of Genesis Sample on GitHub: https://github.com/studiopress/genesis-sample/). ## [2.9.1] - 2019-03-19 @@ -179,7 +193,7 @@ Requires Genesis 2.8.0+. * Update to normalize.css 4.1.1. ## [2.2.3] - 2016-05-18 -* Add accessibile mobile menu. +* Add accessible mobile menu. * Add accessibility support for the 404 Page. * Add the custom header option to upload your own logo. * Add customizer option for primary color. diff --git a/config/import/content/block-examples.php b/config/import/content/block-examples.php index 8953cf00..19cefdd3 100644 --- a/config/import/content/block-examples.php +++ b/config/import/content/block-examples.php @@ -80,13 +80,17 @@

Buttons

- -
Button
- - - -
Outlined Button
- + +
+ +
+ + + +
+ +
+
diff --git a/config/import/content/home-black-white.php b/config/import/content/home-black-white.php index bfd7d73a..6510ab57 100644 --- a/config/import/content/home-black-white.php +++ b/config/import/content/home-black-white.php @@ -26,9 +26,11 @@

All the resources, training, and support you need to run your dream online business!

- -
Learn More
- + +
+ +
+ @@ -81,9 +83,11 @@ -
+
+ +
diff --git a/config/import/content/home-color.php b/config/import/content/home-color.php index 52a00a29..ae8a1a6a 100644 --- a/config/import/content/home-color.php +++ b/config/import/content/home-color.php @@ -26,9 +26,11 @@

All the resources, training, and support you need to run your dream online business!

- -
Learn More
- + +
+ +
+ @@ -81,9 +83,11 @@ -
+
+ +
diff --git a/languages/genesis-sample.pot b/languages/genesis-sample.pot index d329efc1..62ad97d4 100644 --- a/languages/genesis-sample.pot +++ b/languages/genesis-sample.pot @@ -1,14 +1,14 @@ -# msgid "" msgstr "" -"Project-Id-Version: Genesis Sample 3.2.0\n" +"Project-Id-Version: Genesis Sample 3.3.0\n" "Report-Msgid-Bugs-To: StudioPress \n" -"POT-Creation-Date: 2019-11-12 16:53:34+00:00\n" +"POT-Creation-Date: 2020-04-01 20:59:05+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: en\n" diff --git a/lib/gutenberg/front-end.css b/lib/gutenberg/front-end.css index 5c04df01..90653369 100644 --- a/lib/gutenberg/front-end.css +++ b/lib/gutenberg/front-end.css @@ -18,18 +18,6 @@ padding-right: 30px; } -/* Headings ----------------------------------------------------------------------------- */ - -h1.light, -h2.light, -h3.light, -h4.light, -h5.light, -h6.light { - color: #f5f5f5; -} - /* Background Color ---------------------------------------------------------------------------- */ @@ -80,12 +68,14 @@ h6.light { } .wp-block-button.alignleft, +.wp-block-buttons.alignleft, .wp-block-cover.alignleft, .wp-block-image .alignleft { margin-right: 2em; } .wp-block-button.alignright, +.wp-block-buttons.alignright, .wp-block-cover.alignright, .wp-block-image .alignright { margin-left: 2em; @@ -357,7 +347,8 @@ hr.wp-block-separator { } .site-container .blocks-gallery-grid, -.site-container .wp-block-gallery { +.site-container .wp-block-gallery, +.site-container .wp-block-social-links { padding-left: 0; } diff --git a/lib/gutenberg/inline-styles.php b/lib/gutenberg/inline-styles.php index 95ce6371..db6bd3b4 100644 --- a/lib/gutenberg/inline-styles.php +++ b/lib/gutenberg/inline-styles.php @@ -65,7 +65,7 @@ function genesis_sample_custom_gutenberg_admin_css() { $css = << - + diff --git a/style.css b/style.css index ac5e1308..4666bca4 100755 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: This is the sample theme created for the Genesis Framework. Author: StudioPress Author URI: https://www.studiopress.com/ -Version: 3.2.0 +Version: 3.3.0 Tags: accessibility-ready, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, left-sidebar, one-column, right-sidebar, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks @@ -15,9 +15,10 @@ License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: genesis-sample +Requires at least: 5.4 +Requires PHP: 5.6 */ - /* Table of Contents - HTML5 Reset - Baseline Normalize