WordPress build repository browser

Changeset 56058


Ignore:
Timestamp:
09/08/2023 12:51:18 AM (3 years ago)
Author:
isabel_brison
Message:

Editor: tweak root padding styles.

Removes root padding from children of flex and grid layout blocks when root padding aware alignments are set.

Props andrewserong, ramonopoly.
Fixes #59295.

Built from ​https://develop.svn.wordpress.org/trunk@56546

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme-json.php

    r56057 r56058  
    24942494                        $css .= '.has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; }';
    24952495                        // Some of the children of alignfull blocks without content width should also get padding: text blocks and non-alignfull container blocks.
    2496                         $css .= '.has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }';
     2496                        $css .= '.has-global-padding > .alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }';
    24972497                        // The above rule also has to be negated for blocks inside nested `.has-global-padding` blocks.
    24982498                        $css .= '.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0; }';
  • trunk/wp-includes/version.php

    r56057 r56058  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '6.4-alpha-56545';
     19$wp_version = '6.4-alpha-56546';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.