mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Twenty Twenty-Two: Sync updates from GitHub.
This commit syncs minor changes for the default theme from its active development repository to core. This is a follow up to [52081], [52107], [52164], [52222], and [52283]. It reduces the size of a video asset, renames the templates and template parts directories, and adds CSS for button hover states. To view the full set of changes, visit https://github.com/WordPress/twentytwentytwo/compare/1a121e0224c75ffa1c34fff4860386e9cdb9e3bd...da994d1fe50c016cd11ecf33da7de33f652184e4. Props kjellr, mburridge, sabernhardt, hellofromtonya, scruffian. See #54318. git-svn-id: https://develop.svn.wordpress.org/trunk@52335 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Binary file not shown.
@@ -1,9 +0,0 @@
|
||||
<!-- wp:template-part {"slug":"header-large-dark","tagName":"header"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
|
||||
<main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} /-->
|
||||
@@ -126,10 +126,10 @@ if ( ! function_exists( 'twentytwentytwo_preload_webfonts' ) ) :
|
||||
/**
|
||||
* Preloads the main web font to improve performance.
|
||||
*
|
||||
* Only the main web font (font-style: normal) is preloaded here since that font is always relevant (e.g. it used
|
||||
* on every heading). The other font is only needed if there is any applicable content in italic style, and
|
||||
* therefore preloading it would in most cases regress performance when that font would otherwise not be loaded at
|
||||
* all.
|
||||
* Only the main web font (font-style: normal) is preloaded here since that font is always relevant (it is used
|
||||
* on every heading, for example). The other font is only needed if there is any applicable content in italic style,
|
||||
* and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded
|
||||
* at all.
|
||||
*
|
||||
* @since Twenty Twenty-Two 1.0
|
||||
*
|
||||
|
||||
@@ -65,6 +65,14 @@ a:active {
|
||||
padding: calc(.667em + 2px) calc(1.333em + 2px);
|
||||
}
|
||||
|
||||
.wp-block-file a.wp-block-file__button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
/*
|
||||
* Button hover styles.
|
||||
* Necessary until the following issue is resolved in Gutenberg:
|
||||
* https://github.com/WordPress/gutenberg/issues/27075
|
||||
*/
|
||||
|
||||
.wp-block-search__button:hover,
|
||||
.wp-block-file .wp-block-file__button:hover,
|
||||
.wp-block-button__link:hover {
|
||||
opacity: 0.90;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user