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 / beaver-builder / cartflows-bb-next-step / includes / frontend.css.php

frontend.css.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/beaver-builder/cartflows-bb-next-step/includes/frontend.css.php

599 lines 26.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * BB Next Step Button Module front-end CSS php file.
4 *
5 * @package BB Next Step Button Module
6 */
7
8 //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
9
10 global $post;
11
12 $settings->bg_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'bg_color', true );
13 $settings->bg_hover_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'bg_hover_color', true );
14 $settings->text_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'text_color' );
15 $settings->text_hover_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'text_hover_color' );
16
17 // Border Size.
18 if ( 'transparent' == $settings->style ) {
19 $border_size = ( '' !== trim( $settings->border_size ) ) ? $settings->border_size : '2';
20 } else {
21 $border_size = 1;
22 }
23 // Border Color.
24 if ( ! empty( $settings->bg_color ) ) {
25 $border_color = $settings->bg_color;
26 }
27 if ( ! empty( $settings->bg_hover_color ) ) {
28 $border_hover_color = $settings->bg_hover_color;
29 }
30
31 // Old Background Gradient Setting.
32 if ( isset( $settings->three_d ) && $settings->three_d ) {
33 $settings->style = 'gradient';
34 }
35
36 // Background Gradient.
37 if ( ! empty( $settings->bg_color ) ) {
38 $hex_bg = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color );
39 $bg_grad_start = '#' . FLBuilderColor::adjust_brightness( $hex_bg, 30, 'lighten' );
40 }
41 if ( ! empty( $settings->bg_hover_color ) ) {
42 $hex_hover_bg = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
43 $bg_hover_grad_start = '#' . FLBuilderColor::adjust_brightness( $hex_hover_bg, 30, 'lighten' );
44 }
45
46 ?>
47
48 <?php if ( ! empty( $settings->icon ) ) { ?>
49
50 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap i {
51 font-size: <?php echo $settings->icon_size . 'px'; ?>;
52 }
53
54 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap .cartflows-bb__next-step-creative-button .cartflows-bb__next-step-creative-button-icon-before {
55 margin-right: <?php echo $settings->icon_spacing . 'px'; ?>;
56 }
57
58 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap .cartflows-bb__next-step-creative-button .cartflows-bb__next-step-creative-button-icon-after {
59 margin-left: <?php echo $settings->icon_spacing . 'px'; ?>;
60 }
61
62 <?php } ?>
63
64 <?php if ( 'animate_top' == $settings->threed_button_options || 'animate_bottom' == $settings->threed_button_options ) { ?>
65 /* 3D Fix */
66
67 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-width-auto .perspective,
68 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-width-custom .perspective {
69 display: inline-block;
70 max-width: 100%;
71 }
72 <?php } ?>
73
74 <?php
75 if ( class_exists( 'FLBuilderCSS' ) ) {
76 FLBuilderCSS::typography_field_rule(
77 array(
78 'settings' => $settings,
79 'setting_name' => 'button_typo',
80 'selector' => ".fl-node-$id .cartflows-bb__next-step-creative-button-wrap a,.fl-node-$id .cartflows-bb__next-step-creative-button-wrap a:visited",
81 )
82 );
83 }
84 ?>
85
86 <?php if ( 'default' !== $settings->style ) { ?>
87 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
88 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
89 <?php
90 if ( 'custom' == $settings->width ) {
91 $padding_top_bottom = ( '' !== $settings->padding_top_bottom ) ? $settings->padding_top_bottom : '0';
92 $padding_left_right = ( '' !== $settings->padding_left_right ) ? $settings->padding_left_right : '0';
93 ?>
94
95 padding-top: <?php echo $padding_top_bottom; ?>px;
96 padding-bottom: <?php echo $padding_top_bottom; ?>px;
97 padding-left: <?php echo $padding_left_right; ?>px;
98 padding-right: <?php echo $padding_left_right; ?>px;
99 <?php
100 }
101
102 if ( '' != $settings->border_radius ) :
103 ?>
104 border-radius: <?php echo $settings->border_radius; ?>px;
105 -moz-border-radius: <?php echo $settings->border_radius; ?>px;
106 -webkit-border-radius: <?php echo $settings->border_radius; ?>px;
107 <?php endif; ?>
108 <?php if ( 'custom' == $settings->width ) : ?>
109 width: <?php echo $settings->custom_width; ?>px;
110 min-height: <?php echo $settings->custom_height; ?>px;
111 display: -webkit-inline-box;
112 display: -ms-inline-flexbox;
113 display: inline-flex;
114 -webkit-box-align: center;
115 -ms-flex-align: center;
116 align-items: center;
117 -webkit-box-pack: center;
118 -ms-flex-pack: center;
119 justify-content: center;
120 <?php endif; ?>
121
122 <?php
123 if ( 'transparent' == $settings->style ) : // Transparent.
124 ?>
125 border: <?php echo $border_size; ?>px solid <?php echo $border_color; ?>;
126 <?php endif; ?>
127
128 <?php if ( ! empty( $settings->bg_color ) ) : ?>
129 background: <?php echo $settings->bg_color; ?>;
130 border: <?php echo $border_size; ?>px solid <?php echo $border_color; ?>;
131 <?php
132 if ( 'transparent' == $settings->style ) : // Transparent.
133 ?>
134 background: none;
135 <?php endif; ?>
136
137 <?php if ( 'gradient' == $settings->style ) : // Gradient. ?>
138 background: -moz-linear-gradient(top, <?php echo $bg_grad_start; ?> 0%, <?php echo $settings->bg_color; ?> 100%); /* FF3.6+ */
139 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,<?php echo $bg_grad_start; ?>), color-stop(100%,<?php echo $settings->bg_color; ?>)); /* Chrome,Safari4+ */
140 background: -webkit-linear-gradient(top, <?php echo $bg_grad_start; ?> 0%,<?php echo $settings->bg_color; ?> 100%); /* Chrome10+,Safari5.1+ */
141 background: -o-linear-gradient(top, <?php echo $bg_grad_start; ?> 0%,<?php echo $settings->bg_color; ?> 100%); /* Opera 11.10+ */
142 background: -ms-linear-gradient(top, <?php echo $bg_grad_start; ?> 0%,<?php echo $settings->bg_color; ?> 100%); /* IE10+ */
143 background: linear-gradient(to bottom, <?php echo $bg_grad_start; ?> 0%,<?php echo $settings->bg_color; ?> 100%); /* W3C */
144 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='<?php echo $bg_grad_start; ?>', endColorstr='<?php echo $settings->bg_color; ?>',GradientType=0 ); /* IE6-9 */
145 <?php endif; ?>
146 <?php endif; ?>
147 }
148 <?php
149 } else {
150 ?>
151
152 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover {
153 border-color: <?php echo FLBuilderColor::hex_or_rgb( $settings->border_hover_color ); ?>;
154 }
155
156 <?php
157 $padding_top_bottom = $settings->button_padding_dimension_top;
158 ?>
159 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
160 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
161 <?php
162 if ( isset( $settings->button_padding_dimension_top ) ) {
163 echo 'padding-top:' . $settings->button_padding_dimension_top . 'px;';
164 }
165 if ( isset( $settings->button_padding_dimension_bottom ) ) {
166 echo 'padding-bottom:' . $settings->button_padding_dimension_bottom . 'px;';
167 }
168 if ( isset( $settings->button_padding_dimension_left ) ) {
169 echo 'padding-left:' . $settings->button_padding_dimension_left . 'px;';
170 }
171 if ( isset( $settings->button_padding_dimension_right ) ) {
172 echo 'padding-right:' . $settings->button_padding_dimension_right . 'px;';
173 }
174 ?>
175 }
176 <?php
177 if ( class_exists( 'FLBuilderCSS' ) ) {
178 // Border - Settings.
179 FLBuilderCSS::border_field_rule(
180 array(
181 'settings' => $settings,
182 'setting_name' => 'button_border',
183 'selector' => ".fl-node-$id .cartflows-bb__next-step-module-content.cartflows-bb__next-step-creative-button-wrap a, .fl-node-$id a.cartflows-bb__next-step-button",
184 )
185 );
186 }
187 ?>
188 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
189 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited,
190 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-button {
191 background: <?php echo $settings->bg_color; ?>;
192 }
193 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-module-content.cartflows-bb__next-step-creative-button-wrap a:hover {
194 <?php echo 'border-color:' . FLBuilderColor::hex_or_rgb( $settings->border_hover_color ) . ';'; ?>
195 }
196 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover {
197 background: <?php echo $settings->bg_hover_color; ?>;
198 }
199 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
200 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a *,
201 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited,
202 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited * {
203 color: <?php echo $settings->text_color; ?>;
204 }
205 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover,
206 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover *,
207 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-button:hover {
208 color: <?php echo $settings->text_hover_color; ?>;
209 }
210 <?php } ?>
211
212 <?php if ( is_array( $settings->button_typo ) ) { ?>
213 <?php if ( isset( $settings->button_typo['line_height'] ) && is_array( $settings->button_typo['line_height'] ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?>
214 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
215 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
216 line-height: <?php echo $settings->custom_height; ?>px;
217 }
218 <?php } elseif ( isset( $settings->button_typo['line_height'] ) && is_object( $settings->button_typo['line_height'] ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?>
219 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
220 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
221 line-height: <?php echo $settings->custom_height; ?>px;
222 }
223 <?php } ?>
224 <?php } elseif ( is_object( $settings->button_typo ) ) { ?>
225 <?php if ( isset( $settings->button_typo->line_height ) && is_object( $settings->button_typo->line_height ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?>
226 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
227 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
228 line-height: <?php echo $settings->custom_height; ?>px;
229 }
230 <?php } elseif ( isset( $settings->button_typo->line_height ) && is_object( $settings->button_typo->line_height ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?>
231 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
232 html.internet-explorer .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
233 line-height: <?php echo $settings->custom_height; ?>px;
234 }
235 <?php } ?>
236 <?php } ?>
237
238 <?php
239 if ( 'custom' == $settings->width && '' != $settings->custom_height ) :
240 $translate_text = intval( $settings->custom_height ) + ( intval( $padding_top_bottom ) * 2 ) + 50;
241 ?>
242 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-flat-btn.cartflows-bb__next-step-animate_from_top-btn:hover .cartflows-bb__next-step-button-text {
243 -webkit-transform: translateY(<?php echo $translate_text; ?>px);
244 -moz-transform: translateY(<?php echo $translate_text; ?>px);
245 -ms-transform: translateY(<?php echo $translate_text; ?>px);
246 -o-transform: translateY(<?php echo $translate_text; ?>px);
247 transform: translateY(<?php echo $translate_text; ?>px);
248 }
249
250 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-flat-btn.cartflows-bb__next-step-animate_from_bottom-btn:hover .cartflows-bb__next-step-button-text {
251 -webkit-transform: translateY(-<?php echo $translate_text; ?>px);
252 -moz-transform: translateY(-<?php echo $translate_text; ?>px);
253 -ms-transform: translateY(-<?php echo $translate_text; ?>px);
254 -o-transform: translateY(-<?php echo $translate_text; ?>px);
255 transform: translateY(-<?php echo $translate_text; ?>px);
256 }
257 <?php endif; ?>
258
259 <?php if ( ! empty( $settings->text_color ) && 'default' !== $settings->style ) : ?>
260 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
261 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a *,
262 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited,
263 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited * {
264 color: <?php echo $settings->text_color; ?>;
265 }
266 <?php endif; ?>
267
268 <?php if ( ! empty( $settings->bg_hover_color ) ) : ?>
269 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover {
270 <?php if ( 'transparent' != $settings->style && 'gradient' != $settings->style && 'default' != $settings->style ) { ?>
271 background: <?php echo $settings->bg_hover_color; ?>;
272 <?php } ?>
273 <?php if ( 'default' !== $settings->style ) { ?>
274 border: <?php echo $border_size; ?>px solid <?php echo $border_hover_color; ?>;
275 <?php } ?>
276 <?php if ( 'gradient' == $settings->style ) : // Gradient. ?>
277 background: -moz-linear-gradient(top, <?php echo $bg_hover_grad_start; ?> 0%, <?php echo $settings->bg_hover_color; ?> 100%); /* FF3.6+ */
278 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,<?php echo $bg_hover_grad_start; ?>), color-stop(100%,<?php echo $settings->bg_hover_color; ?>)); /* Chrome,Safari4+ */
279 background: -webkit-linear-gradient(top, <?php echo $bg_hover_grad_start; ?> 0%,<?php echo $settings->bg_hover_color; ?> 100%); /* Chrome10+,Safari5.1+ */
280 background: -o-linear-gradient(top, <?php echo $bg_hover_grad_start; ?> 0%,<?php echo $settings->bg_hover_color; ?> 100%); /* Opera 11.10+ */
281 background: -ms-linear-gradient(top, <?php echo $bg_hover_grad_start; ?> 0%,<?php echo $settings->bg_hover_color; ?> 100%); /* IE10+ */
282 background: linear-gradient(to bottom, <?php echo $bg_hover_grad_start; ?> 0%,<?php echo $settings->bg_hover_color; ?> 100%); /* W3C */
283 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='<?php echo $bg_hover_grad_start; ?>', endColorstr='<?php echo $settings->bg_hover_color; ?>',GradientType=0 ); /* IE6-9 */
284 <?php endif; ?>
285 }
286 <?php endif; ?>
287
288 <?php if ( ! empty( $settings->text_hover_color ) && 'default' !== $settings->style ) : ?>
289 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover,
290 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:hover * {
291 color: <?php echo $settings->text_hover_color; ?>;
292 }
293 <?php endif; ?>
294
295 <?php
296 // Responsive button Alignment.
297 if ( $global_settings->responsive_enabled ) :
298 ?>
299 @media ( max-width: <?php echo $global_settings->medium_breakpoint . 'px'; ?> ) {
300 <?php if ( 'default' === $settings->style ) { ?>
301 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
302 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
303 <?php
304 if ( isset( $settings->button_padding_dimension_top_medium ) ) {
305 echo 'padding-top:' . $settings->button_padding_dimension_top_medium . 'px;';
306 }
307 if ( isset( $settings->button_padding_dimension_bottom_medium ) ) {
308 echo 'padding-bottom:' . $settings->button_padding_dimension_bottom_medium . 'px;';
309 }
310 if ( isset( $settings->button_padding_dimension_left_medium ) ) {
311 echo 'padding-left:' . $settings->button_padding_dimension_left_medium . 'px;';
312 }
313 if ( isset( $settings->button_padding_dimension_right_medium ) ) {
314 echo 'padding-right:' . $settings->button_padding_dimension_right_medium . 'px;';
315 }
316 ?>
317 }
318 <?php } ?>
319 }
320 @media ( max-width: <?php echo $global_settings->responsive_breakpoint; ?>px ) {
321 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-reponsive-<?php echo $settings->mob_align; ?> {
322 text-align: <?php echo $settings->mob_align; ?>;
323 }
324 <?php if ( 'default' === $settings->style ) { ?>
325 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a,
326 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a:visited {
327 <?php
328 if ( isset( $settings->button_padding_dimension_top_responsive ) ) {
329 echo 'padding-top:' . $settings->button_padding_dimension_top_responsive . 'px;';
330 }
331 if ( isset( $settings->button_padding_dimension_bottom_responsive ) ) {
332 echo 'padding-bottom:' . $settings->button_padding_dimension_bottom_responsive . 'px;';
333 }
334 if ( isset( $settings->button_padding_dimension_left_responsive ) ) {
335 echo 'padding-left:' . $settings->button_padding_dimension_left_responsive . 'px;';
336 }
337 if ( isset( $settings->button_padding_dimension_right_responsive ) ) {
338 echo 'padding-right:' . $settings->button_padding_dimension_right_responsive . 'px;';
339 }
340 ?>
341 }
342 <?php } ?>
343 }
344 <?php endif; ?>
345
346 <?php /* Transparent New Style CSS*/ ?>
347 <?php
348 if ( ! empty( $settings->style ) && 'transparent' == $settings->style ) {
349 ?>
350 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-none-btn:hover{
351 <?php
352 if ( 'none' == $settings->transparent_button_options ) {
353 if ( 'border' == $settings->hover_attribute ) {
354 ?>
355 border-color:<?php echo $settings->bg_hover_color; ?>;
356 <?php
357 } else {
358 ?>
359 background:<?php echo $settings->bg_hover_color; ?>;
360 <?php
361 }
362 } else {
363 ?>
364 background:<?php echo $settings->bg_hover_color; ?>;
365 <?php
366 }
367 ?>
368 }
369 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-none-btn:hover .cartflows-bb__next-step-creative-button-icon {
370 <?php if ( '' != $settings->text_hover_color && 'FFFFFF' != $settings->text_hover_color && 'none' == $settings->transparent_button_options ) { ?>
371 color: <?php echo $settings->text_hover_color; ?>
372 <?php } else { ?>
373 color: <?php echo $settings->text_color; ?>;
374 <?php } ?>
375 }
376 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-none-btn:hover .cartflows-bb__next-step-creative-button-text {
377 <?php if ( '' != $settings->text_hover_color && 'FFFFFF' != $settings->text_hover_color && 'none' == $settings->transparent_button_options ) { ?>
378 color: <?php echo $settings->text_hover_color; ?>
379 <?php } else { ?>
380 color: <?php echo $settings->text_color; ?>;
381 <?php } ?>
382 }
383 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fade-btn:hover{
384 background: <?php echo $settings->bg_hover_color; ?>;
385 }
386
387 /*transparent-fill-top*/
388 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-top-btn:hover:after{
389 background: <?php echo $settings->bg_hover_color; ?>;
390 height: 100%;
391 }
392
393 /*transparent-fill-bottom*/
394 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-bottom-btn:hover:after{
395 background: <?php echo $settings->bg_hover_color; ?>;
396 height: 100%;
397 }
398
399 /*transparent-fill-left*/
400 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-left-btn:hover:after{
401 background: <?php echo $settings->bg_hover_color; ?>;
402 width: 100%;
403 }
404 /*transparent-fill-right*/
405 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-right-btn:hover:after{
406 background: <?php echo $settings->bg_hover_color; ?>;
407 width: 100%;
408 }
409
410 /*transparent-fill-center*/
411 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-center-btn:hover:after{
412 background: <?php echo $settings->bg_hover_color; ?>;
413 height: calc( 100% + <?php echo $border_size . 'px'; ?> );
414 width: calc( 100% + <?php echo $border_size . 'px'; ?> );
415 }
416
417 /* transparent-fill-diagonal */
418 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-diagonal-btn:hover:after{
419 background: <?php echo $settings->bg_hover_color; ?>;
420 height: 260%;
421 }
422
423 /*transparent-fill-horizontal*/
424 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-horizontal-btn:hover:after{
425 background: <?php echo $settings->bg_hover_color; ?>;
426 height: calc( 100% + <?php echo $border_size . 'px'; ?> );
427 width: calc( 100% + <?php echo $border_size . 'px'; ?> );
428 }
429
430
431
432 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-transparent-fill-diagonal-btn:hover {
433 background: none;
434 }
435
436 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-<?php echo $settings->transparent_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-text,
437 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-<?php echo $settings->transparent_button_options; ?>-btn:hover i{
438 color: <?php echo $settings->text_hover_color; ?>;
439
440 position: relative;
441 z-index: 9;
442 }
443 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-<?php echo $settings->transparent_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-icon {
444 color: <?php echo $settings->text_hover_color; ?>;
445 position: relative;
446 z-index: 9;
447 }
448 <?php
449 }
450 ?>
451
452 <?php /* 3D New Style CSS*/ ?>
453 <?php
454 if ( ! empty( $settings->style ) && 'threed' == $settings->style ) {
455 ?>
456 <?php /* 3D Move Down*/ ?>
457 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn {
458 <?php
459 $hex_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color );
460
461 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' );
462 ?>
463 box-shadow: 0 6px <?php echo $shadow_color; ?>;
464 }
465 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn:hover{
466 <?php
467 $hex_hover_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
468
469 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' );
470 ?>
471 top: 2px;
472 box-shadow: 0 4px <?php echo $shadow_color; ?>;
473 }
474
475 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn:active{
476 box-shadow:none!important;
477 -webkit-transition:all 50ms linear;
478 -moz-transition:all 50ms linear;
479 transition:all 50ms linear;
480 top: 6px;
481 }
482
483
484 <?php /* 3D Move Up*/ ?>
485 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn{
486 <?php
487
488 $hex_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color );
489
490 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' );
491 ?>
492 box-shadow: 0 -6px <?php echo $shadow_color; ?>;
493 }
494 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn:hover{
495 <?php
496 $hex_hover_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
497
498 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' );
499 ?>
500 top: -2px;
501 box-shadow: 0 -4px <?php echo $shadow_color; ?>;
502 }
503
504 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn:active{
505 box-shadow:none!important;
506 -webkit-transition:all 50ms linear;
507 -moz-transition:all 50ms linear;
508 transition:all 50ms linear;
509 top: -6px;
510 }
511
512 <?php /* 3D Move Left*/ ?>
513 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn{
514 <?php
515 $hex_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color );
516
517 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' );
518 ?>
519 box-shadow: -6px 0 <?php echo $shadow_color; ?>;
520 }
521 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn:hover{
522 <?php
523 $hex_hover_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
524
525 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' );
526 ?>
527 left: -2px;
528 box-shadow: -4px 0 <?php echo $shadow_color; ?>;
529 }
530
531 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn:active {
532 box-shadow:none!important;
533 -webkit-transition:all 50ms linear;
534 -moz-transition:all 50ms linear;
535 transition:all 50ms linear;
536 left: -6px;
537 }
538
539
540 <?php /* 3D Move Right*/ ?>
541 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn{
542 <?php
543 $hex_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color );
544
545 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' );
546 ?>
547 box-shadow: 6px 0 <?php echo $shadow_color; ?>;
548 }
549
550 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn:hover{
551 <?php
552 $hex_hover_shadow_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
553
554 $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' );
555 ?>
556 left: 2px;
557 box-shadow: 4px 0 <?php echo $shadow_color; ?>;
558 }
559
560 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn:active {
561 box-shadow:none!important;
562 -webkit-transition:all 50ms linear;
563 -moz-transition:all 50ms linear;
564 transition:all 50ms linear;
565 left: 6px;
566 }
567
568 <?php /* Animate Background Color */ ?>
569 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-<?php echo $settings->threed_button_options; ?>-btn:hover:after{
570 <?php
571 $hex_bg_color = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color );
572 $background_color = '#' . FLBuilderColor::adjust_brightness( $hex_bg_color, 10, 'darken' );
573 ?>
574 background: <?php echo $background_color; ?>;
575 }
576
577
578 <?php /* Text Color*/ ?>
579 .fl-node-<?php echo $id; ?> a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-<?php echo $settings->threed_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-text{
580 color: <?php echo $settings->text_hover_color; ?>;
581 }
582
583 <?php /* 3D Padding for Shadow */ ?>
584 .fl-node-<?php echo $id; ?> .cartflows-bb__next-step-creative-button-wrap {
585 <?php if ( 'threed_down' == $settings->threed_button_options ) : ?>
586 padding-bottom: 6px;
587 <?php elseif ( 'threed_up' == $settings->threed_button_options ) : ?>
588 padding-top: 6px;
589 <?php elseif ( 'threed_left' == $settings->threed_button_options ) : ?>
590 padding-left: 6px;
591 <?php elseif ( 'threed_right' == $settings->threed_button_options ) : ?>
592 padding-right: 6px;
593 <?php endif; ?>
594
595 }
596 <?php
597 }
598 ?>
599