← All changes
|
includes/elementor/modules/checkout/widgets/style-controls.php
+34
-2
1.7.4
→
2.7.0
View file →
| @@ -578,8 +578,9 @@ | ||
| 578 | 578 | 'label' => esc_html__( 'Text Color', 'sellkit' ), |
| 579 | 579 | 'type' => 'color', |
| 580 | 580 | 'selectors' => [ |
| 581 | 581 | '{{WRAPPER}} .sellkit-checkout-widget-primary-button' => 'color: {{VALUE}} !important', |
| 582 | + '{{WRAPPER}} #sellkit-checkout-widget-id .place-order .sellkit-checkout-widget-primary-button' => 'color: {{VALUE}}', | |
| 582 | 583 | ], |
| 583 | 584 | ] |
| 584 | 585 | ); |
| 585 | 586 | |
| @@ -606,8 +607,9 @@ | ||
| 606 | 607 | 'label' => esc_html__( 'Background Color', 'sellkit' ), |
| 607 | 608 | 'type' => 'color', |
| 608 | 609 | 'selectors' => [ |
| 609 | 610 | '{{WRAPPER}} .sellkit-checkout-widget-primary-button' => 'background-color: {{VALUE}} !important', |
| 611 | + '{{WRAPPER}} #sellkit-checkout-widget-id .place-order .sellkit-checkout-widget-primary-button' => 'background-color: {{VALUE}}', | |
| 610 | 612 | ], |
| 611 | 613 | ] |
| 612 | 614 | ); |
| 613 | 615 | |
| @@ -626,8 +628,10 @@ | ||
| 626 | 628 | 'label' => esc_html__( 'Text Color', 'sellkit' ), |
| 627 | 629 | 'type' => 'color', |
| 628 | 630 | 'selectors' => [ |
| 629 | 631 | '{{WRAPPER}} .sellkit-checkout-widget-primary-button:hover' => 'color: {{VALUE}} !important', |
| 632 | + '{{WRAPPER}} #sellkit-checkout-widget-id .place-order .sellkit-checkout-widget-primary-button:hover' => 'color: {{VALUE}}', | |
| 633 | + '{{WRAPPER}} .sellkit-checkout-widget-main-wrapper #sellkit-checkout-widget-id form .place-order #place_order:is(button):hover' => 'color: {{VALUE}}', | |
| 630 | 634 | ], |
| 631 | 635 | ] |
| 632 | 636 | ); |
| 633 | 637 | |
| @@ -646,8 +650,10 @@ | ||
| 646 | 650 | 'label' => esc_html__( 'Background Color', 'sellkit' ), |
| 647 | 651 | 'type' => 'color', |
| 648 | 652 | 'selectors' => [ |
| 649 | 653 | '{{WRAPPER}} .sellkit-checkout-widget-primary-button:hover' => 'background-color: {{VALUE}} !important', |
| 654 | + '{{WRAPPER}} #sellkit-checkout-widget-id .place-order .sellkit-checkout-widget-primary-button:hover' => 'background-color: {{VALUE}}', | |
| 655 | + '{{WRAPPER}} .sellkit-checkout-widget-main-wrapper #sellkit-checkout-widget-id form .place-order #place_order:is(button):hover' => 'background-color: {{VALUE}}', | |
| 650 | 656 | ], |
| 651 | 657 | ] |
| 652 | 658 | ); |
| 653 | 659 | |
| @@ -837,8 +843,31 @@ | ||
| 837 | 843 | 'selector' => '{{WRAPPER}} .woocommerce-checkout .sellkit-checkout-widget-return-button > span', |
| 838 | 844 | ] |
| 839 | 845 | ); |
| 840 | 846 | |
| 847 | + $this->add_control( | |
| 848 | + 'button_return_link_icon_size', | |
| 849 | + [ | |
| 850 | + 'label' => esc_html__( 'Icon Size', 'sellkit' ), | |
| 851 | + 'type' => Controls_Manager::SLIDER, | |
| 852 | + 'size_units' => [ 'px' ], | |
| 853 | + 'range' => [ | |
| 854 | + 'px' => [ | |
| 855 | + 'min' => 0, | |
| 856 | + 'max' => 200, | |
| 857 | + 'step' => 1, | |
| 858 | + ], | |
| 859 | + ], | |
| 860 | + 'default' => [ | |
| 861 | + 'unit' => 'px', | |
| 862 | + 'size' => 15, | |
| 863 | + ], | |
| 864 | + 'selectors' => [ | |
| 865 | + '{{WRAPPER}} .woocommerce-checkout .sellkit-checkout-widget-return-button > svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};', | |
| 866 | + ], | |
| 867 | + ] | |
| 868 | + ); | |
| 869 | + | |
| 841 | 870 | $this->start_controls_tabs( |
| 842 | 871 | 'button_return_link_style_tabs' |
| 843 | 872 | ); |
| 844 | 873 | |
| @@ -856,8 +885,9 @@ | ||
| 856 | 885 | 'type' => 'color', |
| 857 | 886 | 'selectors' => [ |
| 858 | 887 | '{{WRAPPER}} .sellkit-checkout-widget-return-button > span' => 'color: {{VALUE}}', |
| 859 | 888 | '{{WRAPPER}} .sellkit-checkout-widget-return-button > i' => 'color: {{VALUE}}', |
| 889 | + '{{WRAPPER}} .sellkit-checkout-widget-return-button > svg' => 'fill: {{VALUE}}', | |
| 860 | 890 | ], |
| 861 | 891 | ] |
| 862 | 892 | ); |
| 863 | 893 | |
| @@ -913,9 +943,10 @@ | ||
| 913 | 943 | 'selector' => '{{WRAPPER}} .sellkit-widget-checkout-fields p input::placeholder, |
| 914 | 944 | .sellkit-widget-checkout-fields p select::placeholder, |
| 915 | 945 | #sellkit-checkout-widget-id #sellkit-checkout-billing-field-wrapper .mini-title, |
| 916 | 946 | #sellkit-checkout-widget-id #sellkit-checkout-widget-shipping-fields .mini-title, |
| 917 | - #sellkit-checkout-widget-id .sellkit-custom-coupon-form .jx-coupon::placeholder', | |
| 947 | + #sellkit-checkout-widget-id .sellkit-custom-coupon-form .jx-coupon::placeholder, | |
| 948 | + .sellkit-checkout-order-fields .sellkit-checkout-order-notes label', | |
| 918 | 949 | ] |
| 919 | 950 | ); |
| 920 | 951 | |
| 921 | 952 | $this->add_control( |
| @@ -929,8 +960,9 @@ | ||
| 929 | 960 | '{{WRAPPER}} .sellkit-widget-checkout-fields p textarea::placeholder' => 'color: {{VALUE}}', |
| 930 | 961 | '{{WRAPPER}} #sellkit-checkout-widget-id #sellkit-checkout-billing-field-wrapper .mini-title' => 'color: {{VALUE}}', |
| 931 | 962 | '{{WRAPPER}} #sellkit-checkout-widget-id #sellkit-checkout-widget-shipping-fields .mini-title' => 'color: {{VALUE}}', |
| 932 | 963 | '{{WRAPPER}} #sellkit-checkout-widget-id .sellkit-custom-coupon-form .jx-coupon::placeholder' => 'color: {{VALUE}}', |
| 964 | + '{{WRAPPER}} #sellkit-checkout-widget-id .sellkit-checkout-order-notes label' => 'color: {{VALUE}}', | |
| 933 | 965 | ], |
| 934 | 966 | ] |
| 935 | 967 | ); |
| 936 | 968 | |
| @@ -1163,9 +1195,9 @@ | ||
| 1163 | 1195 | |
| 1164 | 1196 | $this->add_control( |
| 1165 | 1197 | 'product_variation_text_color', |
| 1166 | 1198 | [ |
| 1167 | - 'label' => esc_html__( 'Color', 'jupiterx-core' ), | |
| 1199 | + 'label' => esc_html__( 'Color', 'sellkit' ), | |
| 1168 | 1200 | 'type' => Controls_Manager::COLOR, |
| 1169 | 1201 | 'selectors' => [ |
| 1170 | 1202 | '{{WRAPPER}} #sellkit-checkout-variations .sellkit-checkout-variation-item' => 'color: {{VALUE}} !important', |
| 1171 | 1203 | '{{WRAPPER}} #sellkit-checkout-variations i' => 'color: {{VALUE}} !important', |