mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 20:15:08 +00:00
Updating Twenty Nineteen, the new default theme for 2019.
This update changes the following: - Add proper frontend styles for center aligned archive and category blocks. More info here: https://github.com/WordPress/twentynineteen/pull/684 - Fix image_filter theme option conditional function. More info here: https://github.com/WordPress/twentynineteen/pull/680 - Remove duplicate rule-line when a separator block is followed by H1/H2 in the editor. Props richtabor. More info here: https://github.com/WordPress/twentynineteen/pull/686 Props richtabor, kjellr. See #45424. Built from https://develop.svn.wordpress.org/branches/5.0@44193 git-svn-id: http://core.svn.wordpress.org/branches/5.0@44023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d34d91d952
commit
e8fd5abb26
@ -106,7 +106,7 @@ function twentynineteen_can_show_post_thumbnail() {
|
|||||||
* Returns true if image filters are enabled on the theme options.
|
* Returns true if image filters are enabled on the theme options.
|
||||||
*/
|
*/
|
||||||
function twentynineteen_image_filters_enabled() {
|
function twentynineteen_image_filters_enabled() {
|
||||||
return 'inactive' !== get_theme_mod( 'image_filter', 1 );
|
return 0 !== get_theme_mod( 'image_filter', 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -198,9 +198,9 @@
|
|||||||
&.is-style-outline .wp-block-button__link,
|
&.is-style-outline .wp-block-button__link,
|
||||||
&.is-style-outline .wp-block-button__link:focus,
|
&.is-style-outline .wp-block-button__link:focus,
|
||||||
&.is-style-outline .wp-block-button__link:active {
|
&.is-style-outline .wp-block-button__link:active {
|
||||||
@include button-all-transition;
|
@include button-all-transition;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
|
||||||
&:not(.has-background) {
|
&:not(.has-background) {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@ -244,6 +244,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-block-archives,
|
||||||
|
.wp-block-categories {
|
||||||
|
|
||||||
|
&.aligncenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//! Latest categories
|
//! Latest categories
|
||||||
.wp-block-categories {
|
.wp-block-categories {
|
||||||
|
|
||||||
@ -788,7 +796,7 @@
|
|||||||
.has-secondary-background-color,
|
.has-secondary-background-color,
|
||||||
.has-dark-gray-background-color,
|
.has-dark-gray-background-color,
|
||||||
.has-light-gray-background-color {
|
.has-light-gray-background-color {
|
||||||
|
|
||||||
// Use white text against these backgrounds by default.
|
// Use white text against these backgrounds by default.
|
||||||
color: $color__background-body;
|
color: $color__background-body;
|
||||||
|
|
||||||
|
@ -614,6 +614,13 @@ figcaption,
|
|||||||
padding-left: calc(2 * 1rem);
|
padding-left: calc(2 * 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove duplicate rule-line when a separator
|
||||||
|
* is followed by an H1, or H2 */
|
||||||
|
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
|
||||||
|
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/** === Latest Posts, Archives, Categories === */
|
/** === Latest Posts, Archives, Categories === */
|
||||||
ul.wp-block-archives,
|
ul.wp-block-archives,
|
||||||
.wp-block-categories,
|
.wp-block-categories,
|
||||||
|
@ -600,6 +600,13 @@ figcaption,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove duplicate rule-line when a separator
|
||||||
|
* is followed by an H1, or H2 */
|
||||||
|
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
|
||||||
|
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/** === Latest Posts, Archives, Categories === */
|
/** === Latest Posts, Archives, Categories === */
|
||||||
|
|
||||||
ul.wp-block-archives,
|
ul.wp-block-archives,
|
||||||
|
@ -3690,6 +3690,11 @@ body.page .main-navigation {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry .entry-content .wp-block-archives.aligncenter,
|
||||||
|
.entry .entry-content .wp-block-categories.aligncenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.entry .entry-content .wp-block-categories ul {
|
.entry .entry-content .wp-block-categories ul {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
}
|
}
|
||||||
|
@ -3702,6 +3702,11 @@ body.page .main-navigation {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry .entry-content .wp-block-archives.aligncenter,
|
||||||
|
.entry .entry-content .wp-block-categories.aligncenter {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.entry .entry-content .wp-block-categories ul {
|
.entry .entry-content .wp-block-categories ul {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0.2-alpha-44192';
|
$wp_version = '5.0.2-alpha-44193';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user