diff --git a/wp-content/themes/twentysixteen/css/editor-blocks.css b/wp-content/themes/twentysixteen/css/editor-blocks.css index 38e0988..aa474e5 100644 --- a/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -197,7 +197,6 @@ Description: Used to style blocks in the editor. .edit-post-visual-editor ol, .editor-block-list__block ol, .block-library-list ol { - margin: 0 0 1.75em 1.25em; padding: 0; } @@ -231,22 +230,22 @@ Description: Used to style blocks in the editor. margin-bottom: 0; } -.rtl .edit-post-visual-editor ul:not(.wp-block-gallery), -.rtl .editor-block-list__block ul:not(.wp-block-gallery), -.rtl .block-library-list ul, -.rtl .edit-post-visual-editor ol, -.rtl .editor-block-list__block ol, -.rtl .block-library-list ol { +.rtl .editor-styles-wrapper ul ul, +.rtl .editor-styles-wrapper ol ol, +.rtl .editor-styles-wrapper ul ol, +.rtl .editor-styles-wrapper ol ul { margin-left: 0; - margin-right: 1.25em; - padding: 0; + margin-right: 1.5em; } -.rtl .edit-post-visual-editor ol, -.rtl .editor-block-list__block ol, -.rtl .block-library-list ol { - margin-left: 1.5em; - margin-right: 1.5em; +.wp-block-freeform.block-library-rich-text__tinymce ul, +.wp-block-freeform.block-library-rich-text__tinymce ol { + padding-left: 1.5em; +} + +.rtl .wp-block-freeform.block-library-rich-text__tinymce ul, +.rtl .wp-block-freeform.block-library-rich-text__tinymce ol { + padding: 0; } /* Quotes */ diff --git a/wp-content/themes/twentysixteen/functions.php b/wp-content/themes/twentysixteen/functions.php index 5e75beb..e49f398 100644 --- a/wp-content/themes/twentysixteen/functions.php +++ b/wp-content/themes/twentysixteen/functions.php @@ -108,6 +108,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) : 'caption', 'script', 'style', + 'navigation-widgets', ) ); @@ -215,6 +216,9 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) : // Indicate widget sidebars can use selective refresh in the Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); + + // Add support for custom line height controls. + add_theme_support( 'custom-line-height' ); } endif; // twentysixteen_setup() add_action( 'after_setup_theme', 'twentysixteen_setup' ); @@ -376,10 +380,10 @@ function twentysixteen_scripts() { wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); // Add Genericons, used in the main stylesheet. - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' ); + wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' ); // Theme stylesheet. - wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' ); + wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' ); // Theme block stylesheet. wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' ); @@ -430,7 +434,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' ); */ function twentysixteen_block_editor_styles() { // Block styles. - wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' ); + wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' ); // Add custom fonts. wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); } @@ -505,6 +509,11 @@ function twentysixteen_hex2rgb( $color ) { */ require get_template_directory() . '/inc/template-tags.php'; +/** + * Block Patterns. + */ +require get_template_directory() . '/inc/block-patterns.php'; + /** * Customizer additions. */ diff --git a/wp-content/themes/twentysixteen/genericons/genericons.css b/wp-content/themes/twentysixteen/genericons/genericons.css index a91abdd..b7b8a11 100644 --- a/wp-content/themes/twentysixteen/genericons/genericons.css +++ b/wp-content/themes/twentysixteen/genericons/genericons.css @@ -54,7 +54,7 @@ text-transform: none; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; - speak: none; + speak: never; } diff --git a/wp-content/themes/twentysixteen/inc/block-patterns.php b/wp-content/themes/twentysixteen/inc/block-patterns.php new file mode 100644 index 0000000..7b361c5 --- /dev/null +++ b/wp-content/themes/twentysixteen/inc/block-patterns.php @@ -0,0 +1,156 @@ + __( 'Twenty Sixteen', 'twentysixteen' ) ) + ); +} + +/** + * Register Block Patterns. + */ +if ( function_exists( 'register_block_pattern' ) ) { + register_block_pattern( + 'twentysixteen/large-heading-short-description', + array( + 'title' => __( 'Large heading with short description', 'twentysixteen' ), + 'categories' => array( 'twentysixteen' ), + 'content' => ' +
+ + + +
' . esc_html__( 'Twenty Sixteen is a modern take on the horizontal masthead with an optional right sidebar. It works perfectly for WordPress websites and blogs.', 'twentysixteen' ) . '
+ + +

' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of custom color options, beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail.', 'twentysixteen' ) . '

+ + + +
+ ', + ) + ); + + register_block_pattern( + 'twentysixteen/big-title-two-columns-text', + array( + 'title' => __( 'Big Title with Two Columns Text', 'twentysixteen' ), + 'categories' => array( 'twentysixteen' ), + 'content' => ' + + + + +

' . esc_html__( 'Twenty Sixteen' ) . '

+ + + + + + + +
+
+

' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of its custom color options and beautiful default color schemes.', 'twentysixteen' ) . '

+
+ + + +
+

' . esc_html__( 'The theme features a harmonious fluid grid using a mobile-first approach. The layout is a modern take on the horizontal masthead with an optional right sidebar. ', 'twentysixteen' ) . '

+
+
+ + + + + ', + ) + ); + + register_block_pattern( + 'twentysixteen/large-blockquote', + array( + 'title' => __( 'Large Blockquote', 'twentysixteen' ), + 'categories' => array( 'twentysixteen' ), + 'content' => ' + + + + +
+ + + +

' . esc_html__( 'Twenty Sixteen will make your WordPress look beautiful everywhere.', 'twentysixteen' ) . '

+ + + +

' . esc_html__( '— Takashi Irie', 'twentysixteen' ) . '

+ + + + + + + +
+ + + + + ', + ) + ); + + register_block_pattern( + 'twentysixteen/call-to-action', + array( + 'title' => __( 'Call to Action', 'twentysixteen' ), + 'categories' => array( 'twentysixteen' ), + 'content' => ' + + + + +
+ + + +

' . esc_html__( 'My new book “Twenty Sixteen” is available for pre-order.', 'twentysixteen' ) . '

+ + + +
+
+ +
+ + + +
+ +
+
+ + + + + ', + ) + ); +} diff --git a/wp-content/themes/twentysixteen/readme.txt b/wp-content/themes/twentysixteen/readme.txt index 613aca5..66420ea 100644 --- a/wp-content/themes/twentysixteen/readme.txt +++ b/wp-content/themes/twentysixteen/readme.txt @@ -1,10 +1,10 @@ === Twenty Sixteen === Contributors: wordpressdotorg -Tested up to: 5.5 -Version: 2.2 +Tested up to: 5.6 +Version: 2.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog +Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns == Description == Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. @@ -55,6 +55,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch == Changelog == += 2.3 = +* Released: December 8, 2020 + +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.3 + = 2.2 = * Released: August 11, 2020 diff --git a/wp-content/themes/twentysixteen/style.css b/wp-content/themes/twentysixteen/style.css index acfd372..dcb879c 100644 --- a/wp-content/themes/twentysixteen/style.css +++ b/wp-content/themes/twentysixteen/style.css @@ -4,12 +4,12 @@ Theme URI: https://wordpress.org/themes/twentysixteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. -Version: 2.2 +Version: 2.3 Requires at least: 4.4 Requires PHP: 5.2.4 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog +Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns Text Domain: twentysixteen This theme, like WordPress, is licensed under the GPL. @@ -288,7 +288,7 @@ optgroup { font-variant: normal; font-weight: normal; line-height: 1; - speak: none; + speak: never; text-align: center; text-decoration: inherit; text-transform: none; @@ -1413,7 +1413,8 @@ blockquote:after, } .widget-area > :last-child, -.widget > :last-child { +.widget > :last-child, +.widget > nav > :last-child { margin-bottom: 0; }