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
This commit is contained in:
allancole 2018-11-21 19:56:23 +00:00
parent 9e8f5dde86
commit ec99e72451
3 changed files with 17 additions and 15 deletions

View File

@ -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() );
}

View File

@ -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,

View File

@ -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;
}