Changeset 58444 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 06/20/2024 08:01:10 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-theme-json.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r58422 r58444 2901 2901 // Alignfull children of the container with left and right padding have negative margins so they can still be full width. 2902 2902 $css .= '.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }'; 2903 // Nested children of the container with left and right padding that are not wide or full aligned do not get padding .2904 $css .= '.has-global-padding :where( .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) { padding-right: 0; padding-left: 0; }';2905 // Nested children of the container with left and right padding that are not wide or full aligned do not get negative margin applied.2906 $css .= '.has-global-padding :where( .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) > .alignfull { margin-left: 0; margin-right: 0; }';2903 // Nested children of the container with left and right padding that are not wide or full aligned do not get padding, unless they are direct children of an alignfull flow container. 2904 $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) { padding-right: 0; padding-left: 0; }'; 2905 // Alignfull direct children of the containers that are targeted by the rule above do not need negative margins. 2906 $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) > .alignfull { margin-left: 0; margin-right: 0; }'; 2907 2907 } 2908 2908
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)