PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / modules / checkout / includes / checkout-dynamic-css.php

checkout-dynamic-css.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/checkout/includes/checkout-dynamic-css.php

134 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Dynamic checkout css
4 *
5 * @package CartFlows
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 $output .= "
13 .wcf-embed-checkout-form .wcf-checkout-header-image img{
14 width: {$header_logo_width}px;
15 }
16 .wcf-embed-checkout-form .woocommerce #payment input[type=checkbox]:focus,
17 .wcf-embed-checkout-form .woocommerce .woocommerce-shipping-fields [type='checkbox']:focus,
18 .wcf-embed-checkout-form .woocommerce #payment input[type=radio]:checked:focus,
19 .wcf-embed-checkout-form .woocommerce #payment input[type=radio]:not(:checked):focus{
20 box-shadow: 0 0 2px rgba( " . $r . ',' . $g . ',' . $b . ", .8);
21 }
22
23 .wcf-embed-checkout-form .woocommerce-checkout #payment div.payment_box{
24 background-color: {$hl_bg_color};
25 font-family: {$input_font_family};
26 font-weight: {$input_font_weight};
27 }
28
29 .wcf-embed-checkout-form #add_payment_method #payment div.payment_box::before,
30 .wcf-embed-checkout-form .woocommerce-cart #payment div.payment_box::before,
31 .wcf-embed-checkout-form .woocommerce-checkout #payment div.payment_box::before
32 {
33 border-bottom-color: {$hl_bg_color};
34 border-right-color: transparent;
35 border-left-color: transparent;
36 border-top-color: transparent;
37 position: absolute;
38 }
39
40 .wcf-embed-checkout-form .woocommerce #payment [type='radio']:checked + label,
41 .wcf-embed-checkout-form .woocommerce #payment [type='radio']:not(:checked) + label{
42 font-family: {$input_font_family};
43 font-weight: {$input_font_weight};
44 }
45
46 .wcf-embed-checkout-form #order_review .wcf-custom-coupon-field input[type='text'],
47 .wcf-embed-checkout-form .woocommerce form .form-row input.input-text,
48 .wcf-embed-checkout-form .woocommerce form .form-row textarea,
49 .wcf-embed-checkout-form .select2-container--default .select2-selection--single,
50 .wcf-embed-checkout-form .woocommerce form .form-row select.select {
51 border-color: {$field_border_color};
52 padding-top: {$field_tb_padding}px;
53 padding-bottom: {$field_tb_padding}px;
54 padding-left: {$field_lr_padding}px;
55 padding-right: {$field_lr_padding}px;
56 min-height: {$field_input_size};
57 font-family: {$input_font_family};
58 font-weight: {$input_font_weight};
59 }
60
61 .wcf-embed-checkout-form .woocommerce .col2-set .col-1,
62 .wcf-embed-checkout-form .woocommerce .col2-set .col-2,
63 .wcf-embed-checkout-form .woocommerce-checkout .shop_table,
64 .wcf-embed-checkout-form .woocommerce-checkout #order_review_heading,
65 .wcf-embed-checkout-form .woocommerce-checkout #payment,
66 .wcf-embed-checkout-form .woocommerce form.checkout_coupon
67 {
68 background-color: {$section_bg_color};
69 border-color: {$box_border_color};
70 font-family: {$input_font_family};
71 font-weight: {$input_font_weight};
72 }
73
74
75 .wcf-embed-checkout-form .woocommerce form p.form-row label {
76 font-family: {$input_font_family};
77 font-weight: {$input_font_weight};
78 }
79 .wcf-embed-checkout-form .woocommerce form #payment button,
80 .wcf-embed-checkout-form .woocommerce form.woocommerce-form-login .form-row button {
81 padding-top: {$submit_tb_padding}px;
82 padding-bottom: {$submit_tb_padding}px;
83 padding-left: {$submit_lr_padding}px;
84 padding-right: {$submit_lr_padding}px;
85 border-color: {$submit_border_color};
86 min-height: {$submit_button_height};
87 font-family: {$button_font_family};
88 font-weight: {$button_font_weight};
89 }
90
91 .wcf-embed-checkout-form .woocommerce #order_review .wcf-custom-coupon-field .wcf-submit-coupon.button{
92 border-color: {$submit_border_color};
93 min-height: {$submit_button_height};
94 font-family: {$button_font_family};
95 font-weight: {$button_font_weight};
96 }
97 .wcf-embed-checkout-form .woocommerce-checkout form.woocommerce-form-login .button,
98 .wcf-embed-checkout-form .woocommerce-checkout form.checkout_coupon .button{
99 border: 1px {$submit_border_color} solid;
100 min-height: {$submit_button_height};
101 font-family: {$button_font_family};
102 font-weight: {$button_font_weight};
103 }
104 .wcf-embed-checkout-form .woocommerce-checkout form.login .button:hover,
105 .wcf-embed-checkout-form .woocommerce-checkout form.checkout_coupon .button:hover,
106 .wcf-embed-checkout-form .woocommerce #payment #place_order:hover,
107 .wcf-embed-checkout-form .woocommerce #order_review button.wcf-btn-small:hover,
108 .wcf-embed-checkout-form .woocommerce #order_review .wcf-custom-coupon-field .wcf-submit-coupon.button:hover{
109 border-color: {$submit_border_hover_color};
110 }
111 .wcf-embed-checkout-form.wcf-embed-checkout-form-modern-checkout .wcf-customer-info-main-wrapper h3,
112 .wcf-embed-checkout-form .woocommerce h3,
113 .wcf-embed-checkout-form .woocommerce h3 span,
114 .wcf-embed-checkout-form .woocommerce-checkout #order_review_heading{
115 font-family: {$heading_font_family};
116 font-weight: {$heading_font_weight};
117 }
118 .wcf-embed-checkout-form{
119 font-family: {$base_font_family};
120 }";
121
122 if ( 'modern-checkout' === $checkout_layout ) {
123 $output .= "
124 .wcf-embed-checkout-form.wcf-embed-checkout-form-modern-checkout .woocommerce-checkout table.shop_table {
125 background-color: {$hl_bg_color} !important;
126 }
127 .wcf-embed-checkout-form.wcf-embed-checkout-form-modern-checkout .woocommerce-checkout #payment div.payment_box{
128 background-color: {$hl_bg_color} !important;
129 }
130 ";
131 }
132
133 $output .= 'img.emoji, img.wp-smiley {}';
134