updated theme Twenty Nineteen
version 1.6
This commit is contained in:
parent
12dae937d6
commit
835c22fdf0
@ -25,9 +25,9 @@ class TwentyNineteen_SVG_Icons {
|
|||||||
* Gets the SVG code for a given icon.
|
* Gets the SVG code for a given icon.
|
||||||
*/
|
*/
|
||||||
public static function get_svg( $group, $icon, $size ) {
|
public static function get_svg( $group, $icon, $size ) {
|
||||||
if ( 'ui' == $group ) {
|
if ( 'ui' === $group ) {
|
||||||
$arr = self::$ui_icons;
|
$arr = self::$ui_icons;
|
||||||
} elseif ( 'social' == $group ) {
|
} elseif ( 'social' === $group ) {
|
||||||
$arr = self::$social_icons;
|
$arr = self::$social_icons;
|
||||||
} else {
|
} else {
|
||||||
$arr = array();
|
$arr = array();
|
||||||
|
@ -165,7 +165,7 @@ add_filter( 'wp_nav_menu', 'twentynineteen_add_ellipses_to_nav', 10, 2 );
|
|||||||
function twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth ) {
|
function twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth ) {
|
||||||
|
|
||||||
// Add [aria-haspopup] and [aria-expanded] to menu items that have children.
|
// Add [aria-haspopup] and [aria-expanded] to menu items that have children.
|
||||||
$item_has_children = in_array( 'menu-item-has-children', $item->classes );
|
$item_has_children = in_array( 'menu-item-has-children', $item->classes, true );
|
||||||
if ( $item_has_children ) {
|
if ( $item_has_children ) {
|
||||||
$atts['aria-haspopup'] = 'true';
|
$atts['aria-haspopup'] = 'true';
|
||||||
$atts['aria-expanded'] = 'false';
|
$atts['aria-expanded'] = 'false';
|
||||||
|
@ -96,7 +96,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
|
|||||||
|
|
||||||
/* translators: Used between list items, there is a space after the comma. */
|
/* translators: Used between list items, there is a space after the comma. */
|
||||||
$tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
|
$tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
|
||||||
if ( $tags_list ) {
|
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
|
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
|
||||||
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
|
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
|
||||||
|
2694
wp-content/themes/twentynineteen/package-lock.json
generated
2694
wp-content/themes/twentynineteen/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,11 +10,11 @@
|
|||||||
"@wordpress/browserslist-config": "^2.5.0",
|
"@wordpress/browserslist-config": "^2.5.0",
|
||||||
"autoprefixer": "^9.6.0",
|
"autoprefixer": "^9.6.0",
|
||||||
"chokidar-cli": "^2.0.0",
|
"chokidar-cli": "^2.0.0",
|
||||||
"node-sass": "^4.12.0",
|
"node-sass": "^4.14.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-cli": "^6.1.2",
|
"postcss-cli": "^7.0.0",
|
||||||
"postcss-focus-within": "^3.0.0",
|
"postcss-focus-within": "^3.0.0",
|
||||||
"rtlcss": "^2.4.0"
|
"rtlcss": "^2.5.0"
|
||||||
},
|
},
|
||||||
"rtlcssConfig": {
|
"rtlcssConfig": {
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -39,6 +39,11 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.6 =
|
||||||
|
* Released: June 10, 2020
|
||||||
|
|
||||||
|
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.6
|
||||||
|
|
||||||
= 1.5 =
|
= 1.5 =
|
||||||
* Released: March 31, 2020
|
* Released: March 31, 2020
|
||||||
|
|
||||||
|
@ -74,6 +74,15 @@
|
|||||||
margin: $size__spacing-unit 0;
|
margin: $size__spacing-unit 0;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
.widget {
|
.widget {
|
||||||
margin: 0 0 #{$size__spacing-unit};
|
margin: 0 0 #{$size__spacing-unit};
|
||||||
|
|
||||||
|
.widget-title {
|
||||||
|
font-size: $font__size-lg;
|
||||||
|
}
|
||||||
|
|
||||||
/* Make sure select elements fit in widgets. */
|
/* Make sure select elements fit in widgets. */
|
||||||
select {
|
select {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -598,7 +598,7 @@ body .wp-block[data-align="full"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wp-block .wp-block {
|
.wp-block .wp-block {
|
||||||
width: 100%;
|
width: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** === Base Typography === */
|
/** === Base Typography === */
|
||||||
@ -636,6 +636,15 @@ h1:before {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.8125em;
|
font-size: 2.8125em;
|
||||||
@ -655,6 +664,15 @@ h2:before {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 2.25em;
|
font-size: 2.25em;
|
||||||
@ -768,6 +786,15 @@ figcaption,
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editor-post-title__block.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-post-title__block.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.editor-post-title__block:before {
|
.editor-post-title__block:before {
|
||||||
width: 2.8125em;
|
width: 2.8125em;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@ -62,7 +62,7 @@ body {
|
|||||||
|
|
||||||
// Only the top level blocks need specific widths, therefore override for every nested block.
|
// Only the top level blocks need specific widths, therefore override for every nested block.
|
||||||
.wp-block {
|
.wp-block {
|
||||||
width: 100%;
|
width: initial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ 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 you’re 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 you’re 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.
|
||||||
Requires at least: 4.9.6
|
Requires at least: 4.9.6
|
||||||
Requires PHP: 5.2.4
|
Requires PHP: 5.2.4
|
||||||
Version: 1.5
|
Version: 1.6
|
||||||
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
|
||||||
@ -2527,6 +2527,17 @@ h2:before {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1:not(.site-title).has-text-align-center:before,
|
||||||
|
h2.has-text-align-center:before {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1:not(.site-title).has-text-align-right:before,
|
||||||
|
h2.has-text-align-right:before {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
background-color: #767676;
|
background-color: #767676;
|
||||||
border: 0;
|
border: 0;
|
||||||
@ -2786,8 +2797,7 @@ body.page .main-navigation {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 250ms ease-in-out,
|
transition: background 250ms ease-in-out, transform 150ms ease;
|
||||||
transform 150ms ease;
|
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
}
|
}
|
||||||
@ -4209,6 +4219,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry .entry-title.has-text-align-center:before {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry .entry-title.has-text-align-right:before {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.entry .entry-title a {
|
.entry .entry-title a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
@ -4493,6 +4512,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author-bio .author-title.has-text-align-center:before {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author-bio .author-title.has-text-align-right:before {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.author-bio .author-description {
|
.author-bio .author-description {
|
||||||
display: inline;
|
display: inline;
|
||||||
color: #767676;
|
color: #767676;
|
||||||
@ -4587,6 +4615,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
.comments-area .comments-title-wrap .comments-title {
|
.comments-area .comments-title-wrap .comments-title {
|
||||||
flex: 1 0 calc(3 * (100vw / 12));
|
flex: 1 0 calc(3 * (100vw / 12));
|
||||||
@ -5071,6 +5108,10 @@ body.page .main-navigation {
|
|||||||
/* Make sure select elements fit in widgets. */
|
/* Make sure select elements fit in widgets. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widget .widget-title {
|
||||||
|
font-size: 1.6875em;
|
||||||
|
}
|
||||||
|
|
||||||
.widget select {
|
.widget select {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ 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 you’re 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 you’re 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.
|
||||||
Requires at least: 4.9.6
|
Requires at least: 4.9.6
|
||||||
Requires PHP: 5.2.4
|
Requires PHP: 5.2.4
|
||||||
Version: 1.5
|
Version: 1.6
|
||||||
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
|
||||||
@ -2527,6 +2527,17 @@ h2:before {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1:not(.site-title).has-text-align-center:before,
|
||||||
|
h2.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1:not(.site-title).has-text-align-right:before,
|
||||||
|
h2.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
background-color: #767676;
|
background-color: #767676;
|
||||||
border: 0;
|
border: 0;
|
||||||
@ -2786,8 +2797,7 @@ body.page .main-navigation {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 250ms ease-in-out,
|
transition: background 250ms ease-in-out, transform 150ms ease;
|
||||||
transform 150ms ease;
|
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
}
|
}
|
||||||
@ -4215,6 +4225,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry .entry-title.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry .entry-title.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.entry .entry-title a {
|
.entry .entry-title a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
@ -4499,6 +4518,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author-bio .author-title.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author-bio .author-title.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.author-bio .author-description {
|
.author-bio .author-description {
|
||||||
display: inline;
|
display: inline;
|
||||||
color: #767676;
|
color: #767676;
|
||||||
@ -4593,6 +4621,15 @@ body.page .main-navigation {
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comments-area .comments-title-wrap .comments-title.has-text-align-center:before {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comments-area .comments-title-wrap .comments-title.has-text-align-right:before {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
.comments-area .comments-title-wrap .comments-title {
|
.comments-area .comments-title-wrap .comments-title {
|
||||||
flex: 1 0 calc(3 * (100vw / 12));
|
flex: 1 0 calc(3 * (100vw / 12));
|
||||||
@ -5077,6 +5114,10 @@ body.page .main-navigation {
|
|||||||
/* Make sure select elements fit in widgets. */
|
/* Make sure select elements fit in widgets. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widget .widget-title {
|
||||||
|
font-size: 1.6875em;
|
||||||
|
}
|
||||||
|
|
||||||
.widget select {
|
.widget select {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
1
wp-content/themes/twentynineteen/style.css.map
Normal file
1
wp-content/themes/twentynineteen/style.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@ 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 you’re 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 you’re 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.
|
||||||
Requires at least: 4.9.6
|
Requires at least: 4.9.6
|
||||||
Requires PHP: 5.2.4
|
Requires PHP: 5.2.4
|
||||||
Version: 1.5
|
Version: 1.6
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user