Changeset 58685 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 07/08/2024 06:39:39 AM (20 months 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
r58466 r58685 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.