Skip to content

Commit ed099ac

Browse files
jyotibansal461actuallyakash
authored andcommitted
remove position responsiveness
1 parent ca074da commit ed099ac

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

assets/css/howto.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
.mt-how-to-step.mt-has-img.mt-step-img-bottom {
1818
flex-direction: column;
1919
}
20+
2021
.mt-how-to-step.mt-has-img.mt-step-img-top {
2122
flex-direction: column-reverse;
2223
}
24+
2325
.mt-how-to-step.mt-has-img.mt-step-img-left {
2426
flex-direction: row-reverse;
2527
}
28+
2629
.mt-how-to-step.mt-has-img.mt-step-img-right {
2730
flex-direction: row;
28-
}
31+
}
2932

3033
.mt-how-to-supply {
3134
margin-bottom: 10px;

widgets/howto.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ protected function register_controls() {
20922092
]
20932093
);
20942094

2095-
$this->add_responsive_control(
2095+
$this->add_control(
20962096
'step_image_alignment',
20972097
[
20982098
'label' => __( 'Position', 'mighty' ),
@@ -2116,7 +2116,6 @@ protected function register_controls() {
21162116
],
21172117
],
21182118
'default' => 'row',
2119-
'toggle' => true,
21202119
]
21212120
);
21222121

@@ -2140,13 +2139,12 @@ protected function register_controls() {
21402139
],
21412140
],
21422141
'condition' => [
2143-
'step_image_alignment' => [ 'column-reverse', 'column' ]
2142+
'step_image_alignment' => [ 'column-reverse', 'column' ],
21442143
],
2145-
'default' => 'center',
2146-
'toggle' => true,
21472144
'selectors' => [
21482145
'{{WRAPPER}} .mt-how-to-step-image' => 'align-self: {{VALUES}}'
2149-
]
2146+
],
2147+
21502148
]
21512149
);
21522150

@@ -2169,14 +2167,14 @@ protected function register_controls() {
21692167
'icon' => 'eicon-v-align-bottom',
21702168
],
21712169
],
2172-
'condition' => [
2173-
'step_image_alignment' => [ 'row-reverse', 'row' ]
2174-
],
21752170
'default' => 'center',
21762171
'toggle' => true,
2172+
'condition' => [
2173+
'step_image_alignment' => [ 'row-reverse', 'row' ],
2174+
],
21772175
'selectors' => [
21782176
'{{WRAPPER}} .mt-has-img' => 'align-items: {{VALUES}}'
2179-
]
2177+
],
21802178
]
21812179
);
21822180

@@ -2460,6 +2458,7 @@ protected function render()
24602458
}
24612459

24622460
$step_img_position = '';
2461+
24632462
if ( 'column-reverse' === $settings['step_image_alignment'] ) {
24642463
$step_img_position = 'mt-step-img-top';
24652464
} elseif ( 'column' === $settings['step_image_alignment'] ) {
@@ -2469,7 +2468,7 @@ protected function render()
24692468
} elseif ( 'row-reverse' === $settings['step_image_alignment'] ) {
24702469
$step_img_position = 'mt-step-img-left';
24712470
}
2472-
2471+
24732472
$this->add_render_attribute( 'mt-how-to-title', 'class', 'mt-how-to-title' );
24742473
$this->add_render_attribute( 'mt-how-to-supply-title', 'class', 'mt-how-to-supply-title' );
24752474
$this->add_render_attribute( 'mt-how-to-tools-title', 'class', 'mt-how-to-tools-title' );

0 commit comments

Comments
 (0)