From ec99e72451d82198f74c49dfe13a67783fd381cf Mon Sep 17 00:00:00 2001 From: allancole Date: Wed, 21 Nov 2018 19:56:23 +0000 Subject: [PATCH] Updating Twenty Nineteen, our new default theme for 2019, set for 5.0. This update changes the following: - Add PHPCS code quality fixes for functions.php - Update stylesheets with a fresh Sass re-compile Props xkon, kjellr git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43926 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentynineteen/functions.php | 28 +++++++++---------- .../themes/twentynineteen/style-rtl.css | 3 +- .../themes/twentynineteen/style.css | 1 + 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/wp-content/themes/twentynineteen/functions.php b/src/wp-content/themes/twentynineteen/functions.php index 9f0b1f0660..6f3c524674 100644 --- a/src/wp-content/themes/twentynineteen/functions.php +++ b/src/wp-content/themes/twentynineteen/functions.php @@ -107,33 +107,33 @@ if ( ! function_exists( 'twentynineteen_setup' ) ) : // Enqueue editor styles. add_editor_style( 'style-editor.css' ); - // Add custom editor font sizes + // Add custom editor font sizes. add_theme_support( 'editor-font-sizes', array( array( - 'name' => __( 'Small', 'twentynineteen' ), + 'name' => __( 'Small', 'twentynineteen' ), 'shortName' => __( 'S', 'twentynineteen' ), - 'size' => 19.5, - 'slug' => 'small', + 'size' => 19.5, + 'slug' => 'small', ), array( - 'name' => __( 'Normal', 'twentynineteen' ), + 'name' => __( 'Normal', 'twentynineteen' ), 'shortName' => __( 'M', 'twentynineteen' ), - 'size' => 22, - 'slug' => 'normal', + 'size' => 22, + 'slug' => 'normal', ), array( - 'name' => __( 'Large', 'twentynineteen' ), + 'name' => __( 'Large', 'twentynineteen' ), 'shortName' => __( 'L', 'twentynineteen' ), - 'size' => 36.5, - 'slug' => 'large', + 'size' => 36.5, + 'slug' => 'large', ), array( - 'name' => __( 'Huge', 'twentynineteen' ), + 'name' => __( 'Huge', 'twentynineteen' ), 'shortName' => __( 'XL', 'twentynineteen' ), - 'size' => 49.5, - 'slug' => 'huge', + 'size' => 49.5, + 'slug' => 'huge', ), ) ); @@ -244,7 +244,7 @@ function twentynineteen_editor_customizer_styles() { wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.0', 'all' ); if ( 'custom' === get_theme_mod( 'primary_color' ) ) { - // Include color patterns + // Include color patterns. require_once get_parent_theme_file_path( '/inc/color-patterns.php' ); wp_add_inline_style( 'twentynineteen-editor-customizer-styles', twentynineteen_custom_colors_css() ); } diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 41ef4c5d79..e206bd7133 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -3634,7 +3634,8 @@ body.page .main-navigation { } .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { - color: #111; + color: white; + border-color: #111; } .entry .entry-content .wp-block-archives, diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 1b54ddaee5..fe47943549 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -3646,6 +3646,7 @@ body.page .main-navigation { } .entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { + color: white; border-color: #111; }