bg_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'bg_color', true ); $settings->bg_hover_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'bg_hover_color', true ); $settings->text_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'text_color' ); $settings->text_hover_color = Cartflows_BB_Helper::cartflows_bb_colorpicker( $settings, 'text_hover_color' ); // Border Size. if ( 'transparent' == $settings->style ) { $border_size = ( '' !== trim( $settings->border_size ) ) ? $settings->border_size : '2'; } else { $border_size = 1; } // Border Color. if ( ! empty( $settings->bg_color ) ) { $border_color = $settings->bg_color; } if ( ! empty( $settings->bg_hover_color ) ) { $border_hover_color = $settings->bg_hover_color; } // Old Background Gradient Setting. if ( isset( $settings->three_d ) && $settings->three_d ) { $settings->style = 'gradient'; } // Background Gradient. if ( ! empty( $settings->bg_color ) ) { $hex_bg = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_color ); $bg_grad_start = '#' . FLBuilderColor::adjust_brightness( $hex_bg, 30, 'lighten' ); } if ( ! empty( $settings->bg_hover_color ) ) { $hex_hover_bg = Cartflows_BB_Helper::cartflows_bb_parse_color_to_hex( $settings->bg_hover_color ); $bg_hover_grad_start = '#' . FLBuilderColor::adjust_brightness( $hex_hover_bg, 30, 'lighten' ); } ?> icon ) ) { ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap i { font-size: icon_size . 'px'; ?>; } .fl-node- .cartflows-bb__next-step-creative-button-wrap .cartflows-bb__next-step-creative-button .cartflows-bb__next-step-creative-button-icon-before { margin-right: icon_spacing . 'px'; ?>; } .fl-node- .cartflows-bb__next-step-creative-button-wrap .cartflows-bb__next-step-creative-button .cartflows-bb__next-step-creative-button-icon-after { margin-left: icon_spacing . 'px'; ?>; } threed_button_options || 'animate_bottom' == $settings->threed_button_options ) { ?> /* 3D Fix */ .fl-node- .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-width-auto .perspective, .fl-node- .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-width-custom .perspective { display: inline-block; max-width: 100%; } $settings, 'setting_name' => 'button_typo', 'selector' => ".fl-node-$id .cartflows-bb__next-step-creative-button-wrap a,.fl-node-$id .cartflows-bb__next-step-creative-button-wrap a:visited", ) ); } ?> style ) { ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { width ) { $padding_top_bottom = ( '' !== $settings->padding_top_bottom ) ? $settings->padding_top_bottom : '0'; $padding_left_right = ( '' !== $settings->padding_left_right ) ? $settings->padding_left_right : '0'; ?> padding-top: px; padding-bottom: px; padding-left: px; padding-right: px; border_radius ) : ?> border-radius: border_radius; ?>px; -moz-border-radius: border_radius; ?>px; -webkit-border-radius: border_radius; ?>px; width ) : ?> width: custom_width; ?>px; min-height: custom_height; ?>px; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; style ) : // Transparent. ?> border: px solid ; bg_color ) ) : ?> background: bg_color; ?>; border: px solid ; style ) : // Transparent. ?> background: none; style ) : // Gradient. ?> background: -moz-linear-gradient(top, 0%, bg_color; ?> 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,), color-stop(100%,bg_color; ?>)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, 0%,bg_color; ?> 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, 0%,bg_color; ?> 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, 0%,bg_color; ?> 100%); /* IE10+ */ background: linear-gradient(to bottom, 0%,bg_color; ?> 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='', endColorstr='bg_color; ?>',GradientType=0 ); /* IE6-9 */ } .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover { border-color: border_hover_color ); ?>; } button_padding_dimension_top; ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { button_padding_dimension_top ) ) { echo 'padding-top:' . $settings->button_padding_dimension_top . 'px;'; } if ( isset( $settings->button_padding_dimension_bottom ) ) { echo 'padding-bottom:' . $settings->button_padding_dimension_bottom . 'px;'; } if ( isset( $settings->button_padding_dimension_left ) ) { echo 'padding-left:' . $settings->button_padding_dimension_left . 'px;'; } if ( isset( $settings->button_padding_dimension_right ) ) { echo 'padding-right:' . $settings->button_padding_dimension_right . 'px;'; } ?> } $settings, 'setting_name' => 'button_border', '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", ) ); } ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited, .fl-node- .cartflows-bb__next-step-button { background: bg_color; ?>; } .fl-node- .cartflows-bb__next-step-module-content.cartflows-bb__next-step-creative-button-wrap a:hover { border_hover_color ) . ';'; ?> } .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover { background: bg_hover_color; ?>; } .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a *, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited * { color: text_color; ?>; } .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover *, .fl-node- .cartflows-bb__next-step-button:hover { color: text_hover_color; ?>; } button_typo ) ) { ?> button_typo['line_height'] ) && is_array( $settings->button_typo['line_height'] ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?> html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a, html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { line-height: custom_height; ?>px; } button_typo['line_height'] ) && is_object( $settings->button_typo['line_height'] ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?> html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a, html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { line-height: custom_height; ?>px; } button_typo ) ) { ?> button_typo->line_height ) && is_object( $settings->button_typo->line_height ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?> html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a, html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { line-height: custom_height; ?>px; } button_typo->line_height ) && is_object( $settings->button_typo->line_height ) && 'custom' == $settings->width && '' != $settings->custom_height ) { ?> html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a, html.internet-explorer .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { line-height: custom_height; ?>px; } width && '' != $settings->custom_height ) : $translate_text = intval( $settings->custom_height ) + ( intval( $padding_top_bottom ) * 2 ) + 50; ?> .fl-node- .cartflows-bb__next-step-creative-flat-btn.cartflows-bb__next-step-animate_from_top-btn:hover .cartflows-bb__next-step-button-text { -webkit-transform: translateY(px); -moz-transform: translateY(px); -ms-transform: translateY(px); -o-transform: translateY(px); transform: translateY(px); } .fl-node- .cartflows-bb__next-step-creative-flat-btn.cartflows-bb__next-step-animate_from_bottom-btn:hover .cartflows-bb__next-step-button-text { -webkit-transform: translateY(-px); -moz-transform: translateY(-px); -ms-transform: translateY(-px); -o-transform: translateY(-px); transform: translateY(-px); } text_color ) && 'default' !== $settings->style ) : ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a *, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited * { color: text_color; ?>; } bg_hover_color ) ) : ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover { style && 'gradient' != $settings->style && 'default' != $settings->style ) { ?> background: bg_hover_color; ?>; style ) { ?> border: px solid ; style ) : // Gradient. ?> background: -moz-linear-gradient(top, 0%, bg_hover_color; ?> 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,), color-stop(100%,bg_hover_color; ?>)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, 0%,bg_hover_color; ?> 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, 0%,bg_hover_color; ?> 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, 0%,bg_hover_color; ?> 100%); /* IE10+ */ background: linear-gradient(to bottom, 0%,bg_hover_color; ?> 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='', endColorstr='bg_hover_color; ?>',GradientType=0 ); /* IE6-9 */ } text_hover_color ) && 'default' !== $settings->style ) : ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:hover * { color: text_hover_color; ?>; } responsive_enabled ) : ?> @media ( max-width: medium_breakpoint . 'px'; ?> ) { style ) { ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { button_padding_dimension_top_medium ) ) { echo 'padding-top:' . $settings->button_padding_dimension_top_medium . 'px;'; } if ( isset( $settings->button_padding_dimension_bottom_medium ) ) { echo 'padding-bottom:' . $settings->button_padding_dimension_bottom_medium . 'px;'; } if ( isset( $settings->button_padding_dimension_left_medium ) ) { echo 'padding-left:' . $settings->button_padding_dimension_left_medium . 'px;'; } if ( isset( $settings->button_padding_dimension_right_medium ) ) { echo 'padding-right:' . $settings->button_padding_dimension_right_medium . 'px;'; } ?> } } @media ( max-width: responsive_breakpoint; ?>px ) { .fl-node- .cartflows-bb__next-step-creative-button-wrap.cartflows-bb__next-step-creative-button-reponsive-mob_align; ?> { text-align: mob_align; ?>; } style ) { ?> .fl-node- .cartflows-bb__next-step-creative-button-wrap a, .fl-node- .cartflows-bb__next-step-creative-button-wrap a:visited { button_padding_dimension_top_responsive ) ) { echo 'padding-top:' . $settings->button_padding_dimension_top_responsive . 'px;'; } if ( isset( $settings->button_padding_dimension_bottom_responsive ) ) { echo 'padding-bottom:' . $settings->button_padding_dimension_bottom_responsive . 'px;'; } if ( isset( $settings->button_padding_dimension_left_responsive ) ) { echo 'padding-left:' . $settings->button_padding_dimension_left_responsive . 'px;'; } if ( isset( $settings->button_padding_dimension_right_responsive ) ) { echo 'padding-right:' . $settings->button_padding_dimension_right_responsive . 'px;'; } ?> } } style ) && 'transparent' == $settings->style ) { ?> .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-none-btn:hover{ transparent_button_options ) { if ( 'border' == $settings->hover_attribute ) { ?> border-color:bg_hover_color; ?>; background:bg_hover_color; ?>; background:bg_hover_color; ?>; } .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-none-btn:hover .cartflows-bb__next-step-creative-button-icon { text_hover_color && 'FFFFFF' != $settings->text_hover_color && 'none' == $settings->transparent_button_options ) { ?> color: text_hover_color; ?> color: text_color; ?>; } .fl-node- .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 { text_hover_color && 'FFFFFF' != $settings->text_hover_color && 'none' == $settings->transparent_button_options ) { ?> color: text_hover_color; ?> color: text_color; ?>; } .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fade-btn:hover{ background: bg_hover_color; ?>; } /*transparent-fill-top*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-top-btn:hover:after{ background: bg_hover_color; ?>; height: 100%; } /*transparent-fill-bottom*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-bottom-btn:hover:after{ background: bg_hover_color; ?>; height: 100%; } /*transparent-fill-left*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-left-btn:hover:after{ background: bg_hover_color; ?>; width: 100%; } /*transparent-fill-right*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-right-btn:hover:after{ background: bg_hover_color; ?>; width: 100%; } /*transparent-fill-center*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-center-btn:hover:after{ background: bg_hover_color; ?>; height: calc( 100% + ); width: calc( 100% + ); } /* transparent-fill-diagonal */ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-diagonal-btn:hover:after{ background: bg_hover_color; ?>; height: 260%; } /*transparent-fill-horizontal*/ .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent-fill-horizontal-btn:hover:after{ background: bg_hover_color; ?>; height: calc( 100% + ); width: calc( 100% + ); } .fl-node- a.cartflows-bb__next-step-transparent-fill-diagonal-btn:hover { background: none; } .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-text, .fl-node- a.cartflows-bb__next-step-creative-transparent-btn.cartflows-bb__next-step-transparent_button_options; ?>-btn:hover i{ color: text_hover_color; ?>; position: relative; z-index: 9; } .fl-node- .cartflows-bb__next-step-transparent_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-icon { color: text_hover_color; ?>; position: relative; z-index: 9; } style ) && 'threed' == $settings->style ) { ?> .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn { bg_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' ); ?> box-shadow: 0 6px ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn:hover{ bg_hover_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' ); ?> top: 2px; box-shadow: 0 4px ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_down-btn:active{ box-shadow:none!important; -webkit-transition:all 50ms linear; -moz-transition:all 50ms linear; transition:all 50ms linear; top: 6px; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn{ bg_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' ); ?> box-shadow: 0 -6px ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn:hover{ bg_hover_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' ); ?> top: -2px; box-shadow: 0 -4px ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_up-btn:active{ box-shadow:none!important; -webkit-transition:all 50ms linear; -moz-transition:all 50ms linear; transition:all 50ms linear; top: -6px; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn{ bg_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' ); ?> box-shadow: -6px 0 ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn:hover{ bg_hover_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' ); ?> left: -2px; box-shadow: -4px 0 ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_left-btn:active { box-shadow:none!important; -webkit-transition:all 50ms linear; -moz-transition:all 50ms linear; transition:all 50ms linear; left: -6px; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn{ bg_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_shadow_color, 10, 'darken' ); ?> box-shadow: 6px 0 ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn:hover{ bg_hover_color ); $shadow_color = '#' . FLBuilderColor::adjust_brightness( $hex_hover_shadow_color, 10, 'darken' ); ?> left: 2px; box-shadow: 4px 0 ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_right-btn:active { box-shadow:none!important; -webkit-transition:all 50ms linear; -moz-transition:all 50ms linear; transition:all 50ms linear; left: 6px; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_button_options; ?>-btn:hover:after{ bg_hover_color ); $background_color = '#' . FLBuilderColor::adjust_brightness( $hex_bg_color, 10, 'darken' ); ?> background: ; } .fl-node- a.cartflows-bb__next-step-creative-threed-btn.cartflows-bb__next-step-threed_button_options; ?>-btn:hover .cartflows-bb__next-step-creative-button-text{ color: text_hover_color; ?>; } .fl-node- .cartflows-bb__next-step-creative-button-wrap { threed_button_options ) : ?> padding-bottom: 6px; threed_button_options ) : ?> padding-top: 6px; threed_button_options ) : ?> padding-left: 6px; threed_button_options ) : ?> padding-right: 6px; }