updated theme Twenty Nineteen version 2.4

This commit is contained in:
KawaiiPunk 2022-11-24 13:41:02 +00:00 committed by Gitium
parent d80868cf0e
commit 555673545b
20 changed files with 1012 additions and 461 deletions

View File

@ -266,8 +266,8 @@ function twentynineteen_scripts() {
wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' ); wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );
if ( has_nav_menu( 'menu-1' ) ) { if ( has_nav_menu( 'menu-1' ) ) {
wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20181214', true ); wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20200129', true );
wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20181231', true ); wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20221101', true );
} }
wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' ); wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' );

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +1,20 @@
{ {
"name": "twentynineteen", "name": "twentynineteen",
"version": "2.3.0", "version": "2.4.0",
"description": "Default WP Theme", "description": "Default WP Theme",
"bugs": { "bugs": {
"url": "https://core.trac.wordpress.org/" "url": "https://core.trac.wordpress.org/"
}, },
"homepage": "https://wordpress.org/themes/twentynineteen/", "homepage": "https://wordpress.org/themes/twentynineteen/",
"devDependencies": { "devDependencies": {
"@wordpress/browserslist-config": "^4.1.2", "@wordpress/browserslist-config": "^5.1.0",
"autoprefixer": "^9.8.8", "autoprefixer": "^10.4.12",
"chokidar-cli": "^3.0.0", "chokidar-cli": "^3.0.0",
"node-sass": "^6.0.1", "node-sass": "^7.0.3",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.2", "postcss-cli": "^7.1.2",
"postcss-focus-within": "^4.0.0", "postcss-focus-within": "^4.0.0",
"rtlcss": "^3.5.0" "rtlcss": "^4.0.0"
}, },
"rtlcssConfig": { "rtlcssConfig": {
"options": { "options": {

View File

@ -2,8 +2,8 @@
Contributors: wordpressdotorg Contributors: wordpressdotorg
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Requires at least: 4.9.6 Requires at least: 4.9.6
Tested up to: 6.0 Tested up to: 6.1
Stable tag: 2.3 Stable tag: 2.4
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog == == Changelog ==
= 2.4 =
* Released: November 1, 2022
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.4
= 2.3 = = 2.3 =
* Released: May 24, 2022 * Released: May 24, 2022

View File

@ -350,12 +350,12 @@
//! Pullquote //! Pullquote
.wp-block-pullquote { .wp-block-pullquote {
color: $color__text-main;
border-color: transparent; border-color: transparent;
border-width: 2px; border-width: 2px;
padding: $size__spacing-unit; padding: $size__spacing-unit;
blockquote { blockquote {
color: $color__text-main;
border: none; border: none;
margin-top: calc(4 * #{ $size__spacing-unit}); margin-top: calc(4 * #{ $size__spacing-unit});
margin-bottom: calc(4.33 * #{ $size__spacing-unit}); margin-bottom: calc(4.33 * #{ $size__spacing-unit});

View File

@ -40,6 +40,7 @@ a:focus {
outline: thin; outline: thin;
outline-style: dotted; outline-style: dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
h1, h1,

View File

@ -17,5 +17,6 @@ a {
&:focus { &:focus {
outline: thin dotted; outline: thin dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
} }

View File

@ -323,6 +323,7 @@
a { a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
&:hover { &:hover {
text-decoration: none; text-decoration: none;

View File

@ -212,6 +212,7 @@
a { a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
&.button, &.button,
&:hover { &:hover {

View File

@ -81,6 +81,7 @@
a { a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.wp-calendar-table { .wp-calendar-table {

View File

@ -58,5 +58,6 @@ a {
&:focus { &:focus {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
} }

View File

@ -659,6 +659,8 @@ body .wp-block.aligncenter {
/** === Base Typography === */ /** === Base Typography === */
body { body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 22px; font-size: 22px;
font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif; font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif;
line-height: 1.8; line-height: 1.8;
@ -1059,7 +1061,7 @@ figcaption,
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 0.71111em; font-size: 0.71111em;
line-height: 1.6; line-height: 1.6;
color: #767676; color: inherit;
} }
/** === Pullquote === */ /** === Pullquote === */

View File

@ -94,6 +94,8 @@ body {
/** === Base Typography === */ /** === Base Typography === */
body { body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: $font__size_base; font-size: $font__size_base;
@include font-family( $font__body ); @include font-family( $font__body );
line-height: $font__line-height-body; line-height: $font__line-height-body;
@ -443,7 +445,7 @@ figcaption,
@include font-family( $font__heading ); @include font-family( $font__heading );
font-size: $font__size-xs; font-size: $font__size-xs;
line-height: 1.6; line-height: 1.6;
color: $color__text-light; color: inherit;
} }
} }

View File

@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.0 Tested up to: 6.1
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.3 Version: 2.4
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen
@ -2471,6 +2471,7 @@ a:hover {
a:focus { a:focus {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
/* Elements */ /* Elements */
@ -2512,6 +2513,7 @@ a:focus {
outline: thin; outline: thin;
outline-style: dotted; outline-style: dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
h1, h1,
@ -2760,6 +2762,7 @@ a:active {
a:focus { a:focus {
outline: thin dotted; outline: thin dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
/*-------------------------------------------------------------- /*--------------------------------------------------------------
@ -4423,6 +4426,7 @@ body.page .main-navigation {
.entry .entry-content a { .entry .entry-content a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.entry .entry-content a.button, .entry .entry-content a:hover { .entry .entry-content a.button, .entry .entry-content a:hover {
@ -4900,6 +4904,7 @@ body.page .main-navigation {
.comment .comment-content a { .comment .comment-content a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.comment .comment-content a:hover { .comment .comment-content a:hover {
@ -5225,6 +5230,7 @@ body.page .main-navigation {
.widget_calendar .calendar_wrap a { .widget_calendar .calendar_wrap a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.widget_calendar .calendar_wrap .wp-calendar-table { .widget_calendar .calendar_wrap .wp-calendar-table {
@ -5662,13 +5668,13 @@ body.page .main-navigation {
} }
.entry .entry-content .wp-block-pullquote { .entry .entry-content .wp-block-pullquote {
color: #111;
border-color: transparent; border-color: transparent;
border-width: 2px; border-width: 2px;
padding: 1rem; padding: 1rem;
} }
.entry .entry-content .wp-block-pullquote blockquote { .entry .entry-content .wp-block-pullquote blockquote {
color: #111;
border: none; border: none;
margin-top: calc(4 * 1rem); margin-top: calc(4 * 1rem);
margin-bottom: calc(4.33 * 1rem); margin-bottom: calc(4.33 * 1rem);

View File

@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.0 Tested up to: 6.1
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.3 Version: 2.4
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen
@ -2471,6 +2471,7 @@ a:hover {
a:focus { a:focus {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
/* Elements */ /* Elements */
@ -2512,6 +2513,7 @@ a:focus {
outline: thin; outline: thin;
outline-style: dotted; outline-style: dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
h1, h1,
@ -2760,6 +2762,7 @@ a:active {
a:focus { a:focus {
outline: thin dotted; outline: thin dotted;
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
/*-------------------------------------------------------------- /*--------------------------------------------------------------
@ -4429,6 +4432,7 @@ body.page .main-navigation {
.entry .entry-content a { .entry .entry-content a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.entry .entry-content a.button, .entry .entry-content a:hover { .entry .entry-content a.button, .entry .entry-content a:hover {
@ -4906,6 +4910,7 @@ body.page .main-navigation {
.comment .comment-content a { .comment .comment-content a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.comment .comment-content a:hover { .comment .comment-content a:hover {
@ -5231,6 +5236,7 @@ body.page .main-navigation {
.widget_calendar .calendar_wrap a { .widget_calendar .calendar_wrap a {
text-decoration: underline; text-decoration: underline;
text-decoration-thickness: 2px;
} }
.widget_calendar .calendar_wrap .wp-calendar-table { .widget_calendar .calendar_wrap .wp-calendar-table {
@ -5674,13 +5680,13 @@ body.page .main-navigation {
} }
.entry .entry-content .wp-block-pullquote { .entry .entry-content .wp-block-pullquote {
color: #111;
border-color: transparent; border-color: transparent;
border-width: 2px; border-width: 2px;
padding: 1rem; padding: 1rem;
} }
.entry .entry-content .wp-block-pullquote blockquote { .entry .entry-content .wp-block-pullquote blockquote {
color: #111;
border: none; border: none;
margin-top: calc(4 * 1rem); margin-top: calc(4 * 1rem);
margin-bottom: calc(4.33 * 1rem); margin-bottom: calc(4.33 * 1rem);

File diff suppressed because one or more lines are too long

View File

@ -4,10 +4,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 6.0 Tested up to: 6.1
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.3 Version: 2.4
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen

View File

@ -7,7 +7,8 @@
* @since Twenty Nineteen 1.0 * @since Twenty Nineteen 1.0
*/ */
if ( is_active_sidebar( 'sidebar-1' ) ) : ?> if ( is_active_sidebar( 'sidebar-1' ) ) :
?>
<aside class="widget-area" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>"> <aside class="widget-area" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>">
<?php <?php
@ -21,4 +22,5 @@ if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
?> ?>
</aside><!-- .widget-area --> </aside><!-- .widget-area -->
<?php endif; ?> <?php
endif;

View File

@ -11,7 +11,9 @@ $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentyni
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php if ( ! is_page() ) : ?> <?php
if ( ! is_page() ) :
?>
<div class="entry-meta"> <div class="entry-meta">
<?php twentynineteen_posted_by(); ?> <?php twentynineteen_posted_by(); ?>
<?php twentynineteen_posted_on(); ?> <?php twentynineteen_posted_on(); ?>
@ -43,4 +45,5 @@ $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentyni
); );
?> ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php
endif;

View File

@ -7,7 +7,8 @@
* @since Twenty Nineteen 1.0 * @since Twenty Nineteen 1.0
*/ */
if ( (bool) get_the_author_meta( 'description' ) ) : ?> if ( (bool) get_the_author_meta( 'description' ) ) :
?>
<div class="author-bio"> <div class="author-bio">
<h2 class="author-title"> <h2 class="author-title">
<span class="author-heading"> <span class="author-heading">
@ -27,4 +28,5 @@ if ( (bool) get_the_author_meta( 'description' ) ) : ?>
</a> </a>
</p><!-- .author-description --> </p><!-- .author-description -->
</div><!-- .author-bio --> </div><!-- .author-bio -->
<?php endif; ?> <?php
endif;