Make WordPress Core

Changeset 52335


Ignore:
Timestamp:
12/07/2021 04:36:48 PM (2 years ago)
Author:
jffng
Message:

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.

Location:
trunk/src/wp-content/themes/twentytwentytwo
Files:
16 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentytwo/functions.php

    r52222 r52335  
    127127     * Preloads the main web font to improve performance.
    128128     *
    129      * Only the main web font (font-style: normal) is preloaded here since that font is always relevant (e.g. it used
    130      * on every heading). The other font is only needed if there is any applicable content in italic style, and
    131      * therefore preloading it would in most cases regress performance when that font would otherwise not be loaded at
    132      * all.
     129     * Only the main web font (font-style: normal) is preloaded here since that font is always relevant (it is used
     130     * on every heading, for example). The other font is only needed if there is any applicable content in italic style,
     131     * and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded
     132     * at all.
    133133     *
    134134     * @since Twenty Twenty-Two 1.0
  • trunk/src/wp-content/themes/twentytwentytwo/style.css

    r52222 r52335  
    6666}
    6767
    68 .wp-block-file a.wp-block-file__button:hover {
    69     opacity: 1;
    70 }
     68/*
     69 * Button hover styles.
     70 * Necessary until the following issue is resolved in Gutenberg:
     71 * https://github.com/WordPress/gutenberg/issues/27075
     72 */
     73
     74.wp-block-search__button:hover,
     75.wp-block-file .wp-block-file__button:hover,
     76.wp-block-button__link:hover {
     77    opacity: 0.90;
     78}
Note: See TracChangeset for help on using the changeset viewer.