Skip to content

Commit 33e8324

Browse files
committed
Updated Demos
1 parent 07bd31b commit 33e8324

File tree

9 files changed

+75
-26
lines changed

9 files changed

+75
-26
lines changed

assets/css/accordion.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
justify-content: space-between;
2121
}
2222

23-
.mighty-accordion .mt-panel .active,
24-
.mighty-accordion .mt-panel .accordion:hover {
25-
border: 1px solid #ccc;
26-
}
27-
2823
.mighty-accordion .mt-panel .accordion-active-icon {
2924
display: none;
3025
color: #777;
@@ -58,4 +53,12 @@
5853

5954
.mighty-accordion .mt-panel .panel .accordion-content {
6055
border-color: black;
56+
}
57+
58+
.mighty-accordion .panel {
59+
border: 1px solid rgba(146, 109, 109, 0.12156862745098039);
60+
}
61+
62+
.mighty-accordion .mt-panel .accordion .mt-accordion-title {
63+
font-weight: 500;
6164
}

assets/css/buttongroup.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.mighty-buttongroup a.ma-btn {
22
display: block;
33
width: 100%;
4+
text-decoration: none;
5+
font-size: 20px;
46
}
57

68
.mighty-buttongroup, .mighty-buttongroup.mt-btng-align-justify .mt-button{

assets/css/progressbar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
.mighty-progressbar .progressbar-details .progressbar-percentage {
5757
line-height: 2;
5858
font-weight: 400;
59-
font-size: 2.1rem;
59+
font-size: 16px;
6060
}
6161

6262
.mighty-progressbar .progress-bar .progressbar {

assets/css/testimonial.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@
3333

3434
.mighty-testimonial-wrapper .mt-person-testimonial blockquote {
3535
font-size: 20px;
36+
}
37+
38+
.mighty-testimonial-wrapper .slick-dots {
39+
padding: 0;
3640
}

widgets/accordion.php

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ protected function _register_controls() {
103103
'accordion_main_icon' => __( 'fas fa-plus', 'mighty' ),
104104
'accordion_content' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'mighty' ),
105105
],
106+
[
107+
'accordion_title' => __( 'Accordion 3', 'mighty' ),
108+
'accordion_main_icon' => __( 'fas fa-plus', 'mighty' ),
109+
'accordion_content' => __( 'Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo. Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'mighty' ),
110+
],
106111
],
107112
'title_field' => '{{{ accordion_title }}}',
108113
]
@@ -118,7 +123,7 @@ protected function _register_controls() {
118123
'label_on' => __( 'On', 'mighty' ),
119124
'label_off' => __( 'Off', 'mighty' ),
120125
'return_value' => 'yes',
121-
'default' => 'no',
126+
'default' => 'yes',
122127
]
123128
);
124129

@@ -209,7 +214,7 @@ protected function _register_controls() {
209214
[
210215
'label' => __( 'Background', 'mighty' ),
211216
'type' => Controls_Manager::COLOR,
212-
'default' => '#fff',
217+
'default' => '#F6FAFB',
213218
'selectors' => [
214219
'{{WRAPPER}} .mighty-accordion .mt-panel .accordion' => 'background-color: {{VALUE}};',
215220
],
@@ -241,7 +246,7 @@ protected function _register_controls() {
241246
'type' => Scheme_Color::get_type(),
242247
'value' => Scheme_Color::COLOR_1,
243248
],
244-
'default' => '#fff',
249+
'default' => '#F6FAFB',
245250
'selectors' => [
246251
'{{WRAPPER}} .mighty-accordion .mt-panel .active' => 'background-color: {{VALUE}}',
247252
],
@@ -263,6 +268,12 @@ protected function _register_controls() {
263268
'label' => __( 'Padding', 'mighty' ),
264269
'type' => Controls_Manager::DIMENSIONS,
265270
'size_units' => [ 'px', 'em', '%' ],
271+
'default' => [
272+
'top' => '5',
273+
'right' => '5',
274+
'bottom' => '5',
275+
'left' => '5',
276+
],
266277
'selectors' => [
267278
'{{WRAPPER}} .mighty-accordion .mt-panel .accordion .mt-accordion-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
268279
],
@@ -284,6 +295,12 @@ protected function _register_controls() {
284295
'label' => __( 'Border Radius', 'mighty' ),
285296
'type' => Controls_Manager::DIMENSIONS,
286297
'size_units' => [ 'px' ],
298+
'default' => [
299+
'top' => '5',
300+
'right' => '5',
301+
'bottom' => '0',
302+
'left' => '0',
303+
],
287304
'selectors' => [
288305
'{{WRAPPER}} .mighty-accordion .accordion' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
289306
],
@@ -424,6 +441,15 @@ protected function _register_controls() {
424441
]
425442
);
426443

444+
$this->add_group_control(
445+
Group_Control_Typography::get_type(),
446+
[
447+
'name' => 'icons_typography',
448+
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
449+
'selector' => '{{WRAPPER}} .mighty-accordion .mt-panel .accordion .accordion-icons i',
450+
]
451+
);
452+
427453
$this->end_controls_tab();
428454

429455
$this->start_controls_tab(

widgets/buttongroup.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ protected function _register_controls() {
280280
'type' => Controls_Manager::DIMENSIONS,
281281
'size_units' => [ 'px' ],
282282
'default' => [
283-
'top' => '5',
284-
'right' => '30',
285-
'bottom' => '5',
286-
'left' => '30',
283+
'top' => '15',
284+
'right' => '25',
285+
'bottom' => '15',
286+
'left' => '25',
287287
],
288288
'selectors' => [
289289
'{{WRAPPER}} .mighty-buttongroup {{CURRENT_ITEM}} a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -328,13 +328,13 @@ protected function _register_controls() {
328328
'button_text' => __('Click Here', 'mighty'),
329329
'button_link' => '#',
330330
'button_size' => 'ma-btn-md',
331-
'buttongroup_bg_color' => '#f96b77',
331+
'buttongroup_bg_color' => '#5F6AE6',
332332
],
333333
[
334-
'button_text' => __('Click Here', 'mighty'),
334+
'button_text' => __('No, click here', 'mighty'),
335335
'button_link' => '#',
336336
'button_size' => 'ma-btn-md',
337-
'buttongroup_bg_color' => '#a652de',
337+
'buttongroup_bg_color' => '#2FCC71',
338338
],
339339
],
340340
'title_field' => '{{{ button_text }}}',

widgets/opening-hours.php

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ protected function _register_controls() {
331331
[
332332
'business_day' => __('Sunday', 'mighty'),
333333
'opening_business_time' => __('Closed', 'mighty'),
334-
'enable_styling' => 'false',
335-
'day_color' => '#bb0f0f',
336-
'time_color' => '#bb0f0f',
334+
'enable_styling' => 'true',
335+
'day_color' => '#FF0000',
336+
'time_color' => '#FF0000',
337337
'oh_bg_color' => '#fff',
338338
],
339339
],
@@ -448,7 +448,7 @@ protected function _register_controls() {
448448
[
449449
'label' => __( 'Style', 'mighty' ),
450450
'type' => \Elementor\Controls_Manager::SELECT,
451-
'default' => 'dashed',
451+
'default' => 'solid',
452452
'options' => [
453453
'solid' => __( 'Solid', 'mighty' ),
454454
'dotted' => __( 'Dotted', 'mighty' ),
@@ -472,7 +472,7 @@ protected function _register_controls() {
472472
'type' => Scheme_Color::get_type(),
473473
'value' => Scheme_Color::COLOR_1,
474474
],
475-
'default' => '#d3d3d3',
475+
'default' => '#E6E6E65C',
476476
'selectors' => [
477477
'{{WRAPPER}} .ma-openinghours-wrapper .ma-oh-row:not(:last-child)' => 'border-bottom-color: {{VALUE}};',
478478
],
@@ -664,7 +664,7 @@ protected function _register_controls() {
664664
'type' => \Elementor\Scheme_Color::get_type(),
665665
'value' => \Elementor\Scheme_Color::COLOR_1,
666666
],
667-
'default' => '#f7f7f7',
667+
'default' => '#FAFBFD',
668668
'selectors' => [
669669
'.ma-openinghours-wrapper .ma-oh-row.mt-striped:nth-child(even)' => 'background: {{VALUE}}',
670670
],
@@ -707,7 +707,7 @@ protected function _register_controls() {
707707
'selectors' => [
708708
'{{WRAPPER}} .ma-oh-header' => 'background-color: {{VALUES}}'
709709
],
710-
'default' => '#4965fb',
710+
'default' => '#6732B8',
711711
]
712712
);
713713

@@ -726,6 +726,12 @@ protected function _register_controls() {
726726
'label' => __( 'Padding', 'mighty' ),
727727
'type' => Controls_Manager::DIMENSIONS,
728728
'size_units' => [ 'px', '%' ],
729+
'default' => [
730+
'top' => '10',
731+
'right' => '10',
732+
'bottom' => '10',
733+
'left' => '10',
734+
],
729735
'selectors' => [
730736
'{{WRAPPER}} .ma-openinghours-wrapper .ma-oh-header' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
731737
],
@@ -738,6 +744,13 @@ protected function _register_controls() {
738744
'label' => __( 'Margin', 'mighty' ),
739745
'type' => Controls_Manager::DIMENSIONS,
740746
'size_units' => [ 'px', '%' ],
747+
'default' => [
748+
'top' => '0',
749+
'right' => '0',
750+
'bottom' => '20',
751+
'left' => '0',
752+
'isLinked' => true,
753+
],
741754
'selectors' => [
742755
'{{WRAPPER}} .ma-openinghours-wrapper .ma-oh-header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
743756
],

widgets/progressbar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected function _register_controls() {
201201
],
202202
'default' => [
203203
'unit' => 'px',
204-
'size' => 8,
204+
'size' => 10,
205205
],
206206
'selectors' => [
207207
'{{WRAPPER}} .progress-bar' => 'height: {{SIZE}}{{UNIT}}',
@@ -223,7 +223,7 @@ protected function _register_controls() {
223223
],
224224
'default' => [
225225
'unit' => 'px',
226-
'size' => 11,
226+
'size' => 5,
227227
],
228228
'selectors' => [
229229
'{{WRAPPER}} .mighty-progressbar .progress-bar:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
@@ -349,7 +349,7 @@ protected function render() {
349349
if ( $settings['mt_title_position'] === 'outside' || $settings['mt_percentage_position'] === 'outside' ) {
350350

351351
echo '<div class="progressbar-details">';
352-
352+
353353
if ( $settings['mt_title_position'] === 'outside' ) {
354354
echo '<div class="progressbar-title">'. $progressbar['mt_progressbar_title'] . '</div>';
355355
}

widgets/testimonial.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ protected function _register_controls() {
574574
[
575575
'label' => __( 'Color', 'mighty' ),
576576
'type' => Controls_Manager::COLOR,
577+
'default' => '#6A5E5E',
577578
'selectors' => [
578579
'{{WRAPPER}} .mighty-testimonial .mt-person-title' => 'color: {{VALUES}}'
579580
]

0 commit comments

Comments
 (0)