Skip to content

Commit eefe2d4

Browse files
committed
[FlipBox] Added demo
1 parent 1751247 commit eefe2d4

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

assets/css/flip-box.css

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

widgets/flip-box.php

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected function _register_controls() {
9898
'label' => __( 'Icon', 'mighty' ),
9999
'type' => Controls_Manager::ICONS,
100100
'default' => [
101-
'value' => 'fas fa-pizza-slice',
102-
'library' => 'solid',
101+
'value' => 'far fa-lightbulb',
102+
'library' => 'regular',
103103
],
104104
'condition' => [
105105
'front_graphic_element' => 'icon',
@@ -113,7 +113,7 @@ protected function _register_controls() {
113113
'label' => __( 'Title', 'mighty' ),
114114
'type' => Controls_Manager::TEXT,
115115
'placeholder' => __( 'Front Title', 'mighty' ),
116-
'default' => __( 'Pizza', 'mighty'),
116+
'default' => __( 'Great Idea', 'mighty'),
117117
]
118118
);
119119

@@ -123,7 +123,7 @@ protected function _register_controls() {
123123
'label' => __( 'Description', 'mighty' ),
124124
'type' => Controls_Manager::WYSIWYG,
125125
'placeholder' => __( 'Type your description here', 'mighty' ),
126-
'default' => __( 'A delicious, round piece of dough that comes in square boxes for some strange reason.', 'mighty'),
126+
'default' => __( 'Usually something stupid that pops into your head right before you get hurt.', 'mighty'),
127127
]
128128
);
129129

@@ -193,7 +193,7 @@ protected function _register_controls() {
193193
'label' => __( 'Title', 'mighty' ),
194194
'type' => Controls_Manager::TEXT,
195195
'placeholder' => __( 'Back Title', 'mighty' ),
196-
'default' => 'Pizza',
196+
'default' => 'Life Changing',
197197
]
198198
);
199199

@@ -203,7 +203,7 @@ protected function _register_controls() {
203203
'label' => __( 'Description', 'mighty' ),
204204
'type' => Controls_Manager::WYSIWYG,
205205
'placeholder' => __( 'Type your description here', 'mighty' ),
206-
'default' => __( 'A sacred food gifted to mankind by the gods. <br>Very delicious and cheesy with tomato sauce and toppings of your choice.', 'mighty'),
206+
'default' => __( 'A thought, plan, notion, anything that is conjured up in the brain and sometimes put into action and/or shared with the rest of the crowd.', 'mighty'),
207207
]
208208
);
209209

@@ -384,7 +384,12 @@ protected function _register_controls() {
384384
'label' => __( 'Padding', 'mighty' ),
385385
'type' => Controls_Manager::DIMENSIONS,
386386
'size_units' => [ 'px', '%', 'rem' ],
387-
387+
'default' => [
388+
'top' => '20',
389+
'right' => '20',
390+
'bottom' => '20',
391+
'left' => '20',
392+
],
388393
'selectors' => [
389394
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
390395
],
@@ -396,6 +401,7 @@ protected function _register_controls() {
396401
[
397402
'name' => 'front_card',
398403
'label' => __( 'Border', 'mighty' ),
404+
'default' => 'solid',
399405
'selector' => '{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front',
400406
]
401407
);
@@ -449,7 +455,7 @@ protected function _register_controls() {
449455
],
450456
'default' => [
451457
'unit' => 'px',
452-
'size' => 5,
458+
'size' => 15,
453459
],
454460
'selectors' => [
455461
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon' => 'margin-bottom: {{SIZE}}{{UNIT}};'
@@ -469,7 +475,7 @@ protected function _register_controls() {
469475
'type' => \Elementor\Scheme_Color::get_type(),
470476
'value' => \Elementor\Scheme_Color::COLOR_1,
471477
],
472-
'default' => '#e53c30',
478+
'default' => '#2E77FF',
473479
'selectors' => [
474480
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon i' => 'color: {{VALUE}}',
475481
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon svg' => 'color: {{VALUE}}',
@@ -495,7 +501,7 @@ protected function _register_controls() {
495501
],
496502
'default' => [
497503
'unit' => 'px',
498-
'size' => 70,
504+
'size' => 55,
499505
],
500506
'selectors' => [
501507
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
@@ -534,7 +540,7 @@ protected function _register_controls() {
534540
'size_units' => [ 'px' ],
535541
'default' => [
536542
'unit' => 'px',
537-
'size' => 10,
543+
'size' => 0,
538544
],
539545
'selectors' => [
540546
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon i' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -749,7 +755,7 @@ protected function _register_controls() {
749755
'type' => \Elementor\Scheme_Color::get_type(),
750756
'value' => \Elementor\Scheme_Color::COLOR_1,
751757
],
752-
'default' => "#e53c30",
758+
'default' => "#000",
753759
'selectors' => [
754760
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-title' => 'color: {{VALUE}}',
755761
],
@@ -879,6 +885,12 @@ protected function _register_controls() {
879885
'label' => __( 'Padding', 'mighty' ),
880886
'type' => Controls_Manager::DIMENSIONS,
881887
'size_units' => [ 'px', '%' ],
888+
'default' => [
889+
'top' => '20',
890+
'right' => '20',
891+
'bottom' => '20',
892+
'left' => '20',
893+
],
882894
'selectors' => [
883895
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
884896
],
@@ -943,7 +955,7 @@ protected function _register_controls() {
943955
],
944956
'default' => [
945957
'unit' => 'px',
946-
'size' => 5,
958+
'size' => 10,
947959
],
948960
'selectors' => [
949961
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-icon' => 'margin-bottom: {{SIZE}}{{UNIT}};'
@@ -1243,7 +1255,7 @@ protected function _register_controls() {
12431255
'type' => \Elementor\Scheme_Color::get_type(),
12441256
'value' => \Elementor\Scheme_Color::COLOR_1,
12451257
],
1246-
'default' => '#e53c30',
1258+
'default' => '#fff',
12471259
'selectors' => [
12481260
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-title' => 'color: {{VALUE}}',
12491261
],
@@ -1302,7 +1314,7 @@ protected function _register_controls() {
13021314
'type' => \Elementor\Scheme_Color::get_type(),
13031315
'value' => \Elementor\Scheme_Color::COLOR_1,
13041316
],
1305-
'default' => '#000',
1317+
'default' => '#fff',
13061318
'selectors' => [
13071319
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-description' => 'color: {{VALUE}}',
13081320
],
@@ -1337,7 +1349,7 @@ protected function _register_controls() {
13371349
[
13381350
'label' => __('Button Size', 'mighty'),
13391351
'type' => \Elementor\Controls_Manager::SELECT,
1340-
'default' => 'ma-btn-sm',
1352+
'default' => 'ma-btn-md',
13411353
'options' => [
13421354
'ma-btn-sm' => __('Small', 'mighty'),
13431355
'ma-btn-md' => __('Medium', 'mighty'),
@@ -1381,7 +1393,7 @@ protected function _register_controls() {
13811393
'type' => \Elementor\Scheme_Color::get_type(),
13821394
'value' => \Elementor\Scheme_Color::COLOR_1,
13831395
],
1384-
'default' => '#e53c30',
1396+
'default' => '#000',
13851397
'selectors' => [
13861398
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-button a' => 'background-color: {{VALUE}}',
13871399
],

widgets/team.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ protected function _register_controls() {
669669
$this->add_responsive_control(
670670
'team_socialicons_margin',
671671
[
672-
'label' => __( 'Spacing', 'mighty' ),
672+
'label' => __( 'Spacing Between Icons', 'mighty' ),
673673
'type' => \Elementor\Controls_Manager::SLIDER,
674674
'size_units' => [ 'px', 'em', 'rem' ],
675675
'range' => [

0 commit comments

Comments
 (0)