Skip to content

Commit

Permalink
Merge pull request #615 from stellarwp/bugfix/KAD-3244
Browse files Browse the repository at this point in the history
bugfix/KAD-3244
  • Loading branch information
oakesjosh authored Dec 4, 2024
2 parents e36cb0d + 7763cbc commit dede3d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/blocks/class-kadence-blocks-column-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
$css->set_selector( '.wp-block-kadence-column.kb-section-dir-horizontal.kadence-column' . $unique_id . ' > .kt-inside-inner-col > .wp-block-kadence-infobox' );
$css->add_property( 'width', 'auto' );
}
if ( ( 'horizontal' === $desktop_direction || 'horizontal-reverse' === $desktop_direction ) && ! empty( $attributes['direction'][1] ) ) {
$css->set_selector( '.wp-block-kadence-column.kb-section-dir-horizontal.kadence-column' . $unique_id . ' > .kt-inside-inner-col > .wp-block-kadence-infobox' );
$css->add_property( 'align-self', 'unset' );
}
} elseif ( 'horizontal' === $tablet_direction || 'horizontal-reverse' === $tablet_direction ) {
if ( ! empty( $attributes['flexBasis'][1] ) ) {
$css->set_selector( '.wp-block-kadence-column.kb-section-dir-horizontal.kadence-column' . $unique_id . ' > .kt-inside-inner-col > *' );
Expand Down Expand Up @@ -740,6 +744,11 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
$css->add_property( 'max-width', '100%' );
$css->set_selector( '.wp-block-kadence-column.kb-section-dir-horizontal.kadence-column' . $unique_id . ' > .kt-inside-inner-col > .wp-block-kadence-infobox' );
$css->add_property( 'width', 'auto' );
$css->add_property( 'align-self', 'unset' );
}
if ( ( 'horizontal' === $tablet_direction || 'horizontal-reverse' === $tablet_direction ) && ! empty( $attributes['direction'][2] ) ) {
$css->set_selector( '.wp-block-kadence-column.kb-section-dir-horizontal.kadence-column' . $unique_id . ' > .kt-inside-inner-col > .wp-block-kadence-infobox' );
$css->add_property( 'align-self', 'unset' );
}
} elseif ( 'horizontal' === $mobile_direction || 'horizontal-reverse' === $mobile_direction ) {

Expand Down

0 comments on commit dede3d1

Please sign in to comment.