Changeset 58696 for branches/6.6/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 07/09/2024 03:31:50 PM (18 months ago)
- Location:
- branches/6.6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-theme-json.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
-
branches/6.6/src/wp-includes/class-wp-theme-json.php
r58466 r58696 2963 2963 // Alignfull children of the container with left and right padding have negative margins so they can still be full width. 2964 2964 $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); }'; 2965 // Nested children of the container with left and right padding that are not wide orfull aligned do not get padding, unless they are direct children of an alignfull flow container.2966 $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; }';2965 // Nested children of the container with left and right padding that are not full aligned do not get padding, unless they are direct children of an alignfull flow container. 2966 $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }'; 2967 2967 // Alignfull direct children of the containers that are targeted by the rule above do not need negative margins. 2968 $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; }';2968 $css .= '.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0; }'; 2969 2969 } 2970 2970
Note: See TracChangeset
for help on using the changeset viewer.