Skip to content

Commit

Permalink
Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
allancole committed Nov 21, 2018
1 parent 9e8f5dd commit ec99e72
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
28 changes: 14 additions & 14 deletions src/wp-content/themes/twentynineteen/functions.php
Expand Up @@ -107,33 +107,33 @@ function 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',
),
)
);
Expand Down Expand Up @@ -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() );
}
Expand Down
3 changes: 2 additions & 1 deletion src/wp-content/themes/twentynineteen/style-rtl.css
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/wp-content/themes/twentynineteen/style.css
Expand Up @@ -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;
}

Expand Down

0 comments on commit ec99e72

Please sign in to comment.