| @@ -1,92 +1,159 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - die( 'You are not allowed to call this page directly.' ); | |
| 4 | -} | |
| 5 | 2 | |
| 6 | 3 | $settings = FrmStylesHelper::get_settings_for_output( $style ); |
| 7 | -extract( $settings ); // phpcs:ignore WordPress.PHP.DontExtract | |
| 4 | +extract( $settings ); | |
| 8 | 5 | |
| 9 | -$is_loaded_via_ajax = $is_loaded_via_ajax ?? false; | |
| 10 | -FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax ); | |
| 6 | +$important = empty( $important_style ) ? '' : ' !important'; | |
| 7 | +$label_margin = (int) $width + 10; | |
| 11 | 8 | |
| 12 | -$important = ! empty( $important_style ) ? ' !important' : ''; | |
| 13 | -$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings ); | |
| 14 | -$use_chosen_js = $use_chosen_js ?? FrmStylesHelper::use_chosen_js(); | |
| 15 | -$pro_is_installed = $pro_is_installed ?? FrmAppHelper::pro_is_installed(); | |
| 9 | +$minus_icons = FrmStylesHelper::minus_icons(); | |
| 10 | +$arrow_icons = FrmStylesHelper::arrow_icons(); | |
| 11 | + | |
| 16 | 12 | ?> |
| 17 | -.<?php echo esc_html( $style_class ); ?>{ | |
| 18 | -<?php FrmStylesHelper::output_vars( $settings, $defaults ); ?> | |
| 13 | + | |
| 14 | +.frm_forms.<?php echo esc_html( $style_class ) ?>{ | |
| 15 | + max-width:<?php echo esc_html( $form_width . $important ) ?>; | |
| 16 | + direction:<?php echo esc_html( $direction . $important ) ?>; | |
| 17 | + <?php if ( 'rtl' == $direction ) { ?> | |
| 18 | + unicode-bidi:embed; | |
| 19 | + <?php } ?> | |
| 20 | + <?php if ( $center_form ) { ?> | |
| 21 | + margin:0 auto; | |
| 22 | + <?php } ?> | |
| 19 | 23 | } |
| 20 | 24 | |
| 21 | -.frm_forms.<?php echo esc_html( $style_class ); ?>{ | |
| 22 | - max-width:var(--form-width)<?php echo esc_html( $important ); ?>; | |
| 23 | - direction:var(--direction)<?php echo esc_html( $important ); ?>; | |
| 24 | - <?php if ( 'rtl' === $direction ) { ?> | |
| 25 | - unicode-bidi:embed; | |
| 26 | - <?php } ?> | |
| 27 | - <?php if ( $center_form ) { ?> | |
| 28 | - margin:0 auto; | |
| 29 | - <?php } ?> | |
| 25 | +.<?php echo esc_html( $style_class ) ?>, | |
| 26 | +.<?php echo esc_html( $style_class ) ?> form, | |
| 27 | +.<?php echo esc_html( $style_class ) ?> .frm-show-form div.frm_description p { | |
| 28 | + text-align:<?php echo esc_html( $form_align . $important ) ?>; | |
| 30 | 29 | } |
| 31 | 30 | |
| 32 | 31 | <?php if ( $center_form ) { ?> |
| 33 | -.frm_inline_form.<?php echo esc_html( $style_class ); ?> form{ | |
| 32 | +.frm_inline_form.<?php echo esc_html( $style_class ) ?> form{ | |
| 34 | 33 | text-align:center; |
| 35 | 34 | } |
| 36 | 35 | <?php } ?> |
| 37 | 36 | |
| 38 | -<?php if ( ! empty( $field_margin ) ) { ?> | |
| 39 | -.<?php echo esc_html( $style_class ); ?> .form-field{ | |
| 40 | - margin-bottom:var(--field-margin)<?php echo esc_html( $important ); ?>; | |
| 37 | +.<?php echo esc_html( $style_class ) ?> .frm_form_fields > fieldset{ | |
| 38 | + border-width:<?php echo esc_html( $fieldset . $important ) ?>; | |
| 39 | + border-style:solid; | |
| 40 | + border-color:<?php echo esc_html( $fieldset_color . $important ) ?>; | |
| 41 | + margin:0; | |
| 42 | + padding:<?php echo esc_html( $fieldset_padding . $important ) ?>; | |
| 43 | + background-color:<?php echo esc_html( $fieldset_bg_color ); ?>; | |
| 44 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 41 | 45 | } |
| 42 | -<?php } ?> | |
| 43 | 46 | |
| 44 | -<?php if ( $pro_is_installed ) { ?> | |
| 45 | -.<?php echo esc_html( $style_class ); ?> .form-field.frm_section_heading{ | |
| 46 | - margin-bottom:0<?php echo esc_html( $important ); ?>; | |
| 47 | +.<?php echo esc_html( $style_class ) ?> legend + h3, | |
| 48 | +.<?php echo esc_html( $style_class ) ?> h3.frm_form_title{ | |
| 49 | + font-size:<?php echo esc_html( $title_size . $important ) ?>; | |
| 50 | + color:<?php echo esc_html( $title_color . $important ) ?>; | |
| 51 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 52 | + margin-top:<?php echo esc_html( $title_margin_top . $important ) ?>; | |
| 53 | + margin-bottom:<?php echo esc_html( $title_margin_bottom . $important ) ?>; | |
| 47 | 54 | } |
| 48 | -<?php } ?> | |
| 49 | 55 | |
| 50 | -.<?php echo esc_html( $style_class ); ?> p.description, | |
| 51 | -.<?php echo esc_html( $style_class ); ?> div.description, | |
| 52 | -.<?php echo esc_html( $style_class ); ?> div.frm_description, | |
| 53 | -.<?php echo esc_html( $style_class ); ?> .frm-show-form > div.frm_description, | |
| 54 | -.<?php echo esc_html( $style_class ); ?> .frm_error, | |
| 55 | -.<?php echo esc_html( $style_class ); ?> .frm_pro_max_limit_desc{ | |
| 56 | - <?php if ( ! empty( $description_margin ) ) { ?> | |
| 57 | - margin:<?php echo esc_html( $description_margin . $important ); ?>; | |
| 58 | - <?php } else { ?> | |
| 59 | - margin-top: 6px; | |
| 60 | - <?php } ?> | |
| 61 | - padding:0; | |
| 62 | - <?php if ( ! empty( $font ) ) { ?> | |
| 63 | - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>; | |
| 64 | - <?php } ?> | |
| 65 | - <?php if ( ! empty( $description_font_size ) ) { ?> | |
| 66 | - font-size:<?php echo esc_html( $description_font_size . $important ); ?>; | |
| 67 | - <?php } ?> | |
| 68 | - <?php if ( ! empty( $description_color ) ) { ?> | |
| 69 | - color:<?php echo esc_html( $description_color . $important ); ?>; | |
| 70 | - <?php } ?> | |
| 71 | - <?php if ( ! empty( $description_weight ) ) { ?> | |
| 72 | - font-weight:<?php echo esc_html( $description_weight . $important ); ?>; | |
| 73 | - <?php } ?> | |
| 74 | - <?php if ( ! empty( $description_align ) ) { ?> | |
| 75 | - text-align:<?php echo esc_html( $description_align . $important ); ?>; | |
| 76 | - <?php } ?> | |
| 77 | - <?php if ( ! empty( $description_style ) ) { ?> | |
| 78 | - font-style:<?php echo esc_html( $description_style . $important ); ?>; | |
| 79 | - <?php } ?> | |
| 80 | - max-width:100%; | |
| 56 | +.<?php echo esc_html( $style_class ) ?> .frm_primary_label{ | |
| 57 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 58 | + font-size:<?php echo esc_html( $font_size . $important ) ?>; | |
| 59 | + color:<?php echo esc_html( $label_color . $important ) ?>; | |
| 60 | + font-weight:<?php echo esc_html( $weight . $important ) ?>; | |
| 61 | + text-align:<?php echo esc_html( $align . $important ) ?>; | |
| 62 | + margin:0; | |
| 63 | + padding:<?php echo esc_html( $label_padding . $important ) ?>; | |
| 64 | + width:auto; | |
| 65 | + display:block; | |
| 81 | 66 | } |
| 82 | 67 | |
| 68 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_html_container, | |
| 69 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field .frm_show_it{ | |
| 70 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 71 | + color:<?php echo esc_html( $form_desc_color . $important ) ?>; | |
| 72 | +} | |
| 73 | + | |
| 74 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_html_container{ | |
| 75 | + font-size:<?php echo esc_html( $form_desc_size . $important ) ?>; | |
| 76 | +} | |
| 77 | + | |
| 78 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field .frm_show_it{ | |
| 79 | + font-size:<?php echo esc_html( $field_font_size . $important ) ?>; | |
| 80 | + font-weight:<?php echo esc_html( $field_weight ) ?>; | |
| 81 | +} | |
| 82 | + | |
| 83 | +.<?php echo esc_html( $style_class ) ?> .frm_icon_font{ | |
| 84 | + color:<?php echo esc_html( $label_color . $important ) ?>; | |
| 85 | +} | |
| 86 | + | |
| 87 | +.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_minus_icon:before{ | |
| 88 | + content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['-'] : $minus_icons[1]['-'] ) ?>"; | |
| 89 | +} | |
| 90 | + | |
| 91 | +.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_plus_icon:before{ | |
| 92 | + content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['+'] : $minus_icons[1]['+'] ) ?>"; | |
| 93 | +} | |
| 94 | + | |
| 95 | +.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_minus_icon:before, | |
| 96 | +.<?php echo esc_html( $style_class ) ?> .frm_icon_font.frm_plus_icon:before{ | |
| 97 | + color:<?php echo esc_html( $submit_text_color . $important ) ?>; | |
| 98 | + vertical-align:middle; | |
| 99 | +} | |
| 100 | + | |
| 101 | +.<?php echo esc_html( $style_class ) ?> .frm_trigger.active .frm_icon_font.frm_arrow_icon:before{ | |
| 102 | + content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['-'] : $arrow_icons[1]['-'] ) ?>"; | |
| 103 | + color:<?php echo esc_html( $section_color . $important ) ?>; | |
| 104 | +} | |
| 105 | + | |
| 106 | +.<?php echo esc_html( $style_class ) ?> .frm_trigger .frm_icon_font.frm_arrow_icon:before{ | |
| 107 | + content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['+'] : $arrow_icons[1]['+'] ) ?>"; | |
| 108 | + color:<?php echo esc_html( $section_color . $important ) ?>; | |
| 109 | +} | |
| 110 | + | |
| 111 | +.<?php echo esc_html( $style_class ) ?> .form-field{ | |
| 112 | + margin-bottom:<?php echo esc_html( $field_margin . $important ) ?>; | |
| 113 | +} | |
| 114 | +.<?php echo esc_html( $style_class ) ?> .frm_grid, | |
| 115 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_first, | |
| 116 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_odd { | |
| 117 | + margin-bottom:0<?php echo esc_html( $important ) ?>; | |
| 118 | +} | |
| 119 | +.<?php echo esc_html( $style_class ) ?> .form-field.frm_section_heading{ | |
| 120 | + margin-bottom:0<?php echo esc_html( $important ) ?>; | |
| 121 | +} | |
| 122 | + | |
| 123 | +.<?php echo esc_html( $style_class ) ?> p.description, | |
| 124 | +.<?php echo esc_html( $style_class ) ?> div.description, | |
| 125 | +.<?php echo esc_html( $style_class ) ?> div.frm_description, | |
| 126 | +.<?php echo esc_html( $style_class ) ?> .frm-show-form > div.frm_description, | |
| 127 | +.<?php echo esc_html( $style_class ) ?> .frm_error{ | |
| 128 | + margin:<?php echo esc_html( $description_margin . $important ) ?>; | |
| 129 | + padding:0; | |
| 130 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 131 | + font-size:<?php echo esc_html( $description_font_size . $important ) ?>; | |
| 132 | + color:<?php echo esc_html( $description_color . $important ) ?>; | |
| 133 | + font-weight:<?php echo esc_html( $description_weight . $important ) ?>; | |
| 134 | + text-align:<?php echo esc_html( $description_align . $important ) ?>; | |
| 135 | + font-style:<?php echo esc_html( $description_style . $important ) ?>; | |
| 136 | + max-width:100%; | |
| 137 | +} | |
| 138 | + | |
| 139 | +/* Form description */ | |
| 140 | +.<?php echo esc_html( $style_class ) ?> .frm-show-form div.frm_description p{ | |
| 141 | + font-size:<?php echo esc_html( $form_desc_size . $important ) ?>; | |
| 142 | + color:<?php echo esc_html( $form_desc_color . $important ) ?>; | |
| 143 | + margin-top:<?php echo esc_html( $form_desc_margin_top . $important ) ?>; | |
| 144 | + margin-bottom:<?php echo esc_html( $form_desc_margin_bottom . $important ) ?>; | |
| 145 | + | |
| 146 | +} | |
| 147 | + | |
| 83 | 148 | /* Left and right labels */ |
| 84 | 149 | <?php |
| 85 | 150 | |
| 151 | +$frm_settings = FrmAppHelper::get_settings(); | |
| 152 | + | |
| 86 | 153 | if ( '' === $field_height || 'auto' === $field_height ) { |
| 87 | 154 | foreach ( array( 'left', 'right', 'inline' ) as $alignit ) { |
| 88 | - ?> | |
| 155 | + ?> | |
| 89 | 156 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=text], |
| 90 | 157 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=password], |
| 91 | 158 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=email], |
| 92 | 159 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=number], |
| @@ -96,347 +163,555 @@ | ||
| 96 | 163 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=search], |
| 97 | 164 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select, |
| 98 | 165 | <?php } ?> |
| 99 | 166 | .<?php echo esc_html( $style_class ); ?> .frm_left_container select{ |
| 100 | - height:fit-content<?php echo esc_html( $important ); ?>; | |
| 167 | + <?php if ( $frm_settings->old_css ) { ?> | |
| 168 | + height:auto<?php echo esc_html( $important ) ?>; | |
| 169 | + <?php } else { ?> | |
| 170 | + height:fit-content<?php echo esc_html( $important ) ?>; | |
| 171 | + <?php } ?> | |
| 101 | 172 | } |
| 102 | 173 | <?php } ?> |
| 103 | 174 | |
| 104 | 175 | .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_left_container{ |
| 105 | - grid-template-columns: <?php echo esc_html( $width ); ?> auto; | |
| 176 | + grid-template-columns: <?php echo esc_html( $width ) ?> auto; | |
| 106 | 177 | } |
| 107 | 178 | |
| 108 | 179 | .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_right_container{ |
| 109 | - grid-template-columns: auto <?php echo esc_html( $width ); ?>; | |
| 180 | + grid-template-columns: auto <?php echo esc_html( $width ) ?>; | |
| 110 | 181 | } |
| 111 | 182 | |
| 112 | 183 | .frm_form_field.frm_right_container{ |
| 113 | - grid-template-columns: auto 25%; | |
| 184 | + grid-template-columns: auto 25%; | |
| 114 | 185 | } |
| 115 | 186 | |
| 116 | -.<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_data_container, | |
| 117 | -.<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_opt_container{ | |
| 118 | - display:inline<?php echo esc_html( $important ); ?>; | |
| 187 | +.<?php echo esc_html( $style_class ) ?> .frm_inline_container.frm_dynamic_select_container .frm_data_container, | |
| 188 | +.<?php echo esc_html( $style_class ) ?> .frm_inline_container.frm_dynamic_select_container .frm_opt_container{ | |
| 189 | + display:inline<?php echo esc_html( $important ) ?>; | |
| 119 | 190 | } |
| 120 | 191 | |
| 121 | -.<?php echo esc_html( $style_class ); ?> .frm_pos_right{ | |
| 122 | - display:inline<?php echo esc_html( $important ); ?>; | |
| 123 | - width:var(--width)<?php echo esc_html( $important ); ?>; | |
| 192 | +.<?php echo esc_html( $style_class ) ?> .frm_pos_right{ | |
| 193 | + display:inline<?php echo esc_html( $important ) ?>; | |
| 194 | + width:<?php echo esc_html( $width . $important ); ?>; | |
| 124 | 195 | } |
| 125 | 196 | |
| 126 | -.<?php echo esc_html( $style_class ); ?> .frm_none_container .frm_primary_label, | |
| 127 | -.<?php echo esc_html( $style_class ); ?> .frm_pos_none{ | |
| 128 | - display:none<?php echo esc_html( $important ); ?>; | |
| 197 | +.<?php echo esc_html( $style_class ) ?> .frm_none_container .frm_primary_label, | |
| 198 | +.<?php echo esc_html( $style_class ) ?> .frm_pos_none{ | |
| 199 | + display:none<?php echo esc_html( $important ) ?>; | |
| 129 | 200 | } |
| 130 | 201 | |
| 131 | -<?php if ( $pro_is_installed ) : ?> | |
| 132 | -.<?php echo esc_html( $style_class ); ?> .frm_scale label{ | |
| 133 | - <?php if ( ! empty( $check_weight ) ) { ?> | |
| 134 | - font-weight:<?php echo esc_html( $check_weight . $important ); ?>; | |
| 135 | - <?php } ?> | |
| 136 | - <?php if ( ! empty( $font ) ) { ?> | |
| 137 | - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>; | |
| 138 | - <?php } ?> | |
| 139 | - <?php if ( ! empty( $check_font_size ) ) { ?> | |
| 140 | - font-size:<?php echo esc_html( $check_font_size . $important ); ?>; | |
| 141 | - <?php } ?> | |
| 142 | - <?php if ( ! empty( $check_label_color ) ) { ?> | |
| 143 | - color:<?php echo esc_html( $check_label_color . $important ); ?>; | |
| 144 | - <?php } ?> | |
| 202 | +.<?php echo esc_html( $style_class ) ?> .frm_scale label{ | |
| 203 | + font-weight:<?php echo esc_html( $check_weight . $important ) ?>; | |
| 204 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 205 | + font-size:<?php echo esc_html( $check_font_size . $important ) ?>; | |
| 206 | + color:<?php echo esc_html( $check_label_color . $important ) ?>; | |
| 145 | 207 | } |
| 146 | -<?php endif; ?> | |
| 147 | 208 | |
| 148 | -.<?php echo esc_html( $style_class ); ?> input::placeholder, | |
| 149 | -.<?php echo esc_html( $style_class ); ?> textarea::placeholder{ | |
| 150 | - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 209 | +.<?php echo esc_html( $style_class ) ?> .frm_required{ | |
| 210 | + color:<?php echo esc_html( $required_color . $important ); ?>; | |
| 211 | + font-weight:<?php echo esc_html( $required_weight . $important ); ?>; | |
| 151 | 212 | } |
| 152 | 213 | |
| 153 | -.<?php echo esc_html( $style_class ); ?> .frm_default, | |
| 154 | -.<?php echo esc_html( $style_class ); ?> input.frm_default, | |
| 155 | -.<?php echo esc_html( $style_class ); ?> textarea.frm_default, | |
| 156 | -.<?php echo esc_html( $style_class ); ?> select.frm_default, | |
| 157 | -<?php if ( $use_chosen_js ) { ?> | |
| 158 | -.<?php echo esc_html( $style_class ); ?> .chosen-container-multi .chosen-choices li.search-field .default, | |
| 159 | -.<?php echo esc_html( $style_class ); ?> .chosen-container-single .chosen-default, | |
| 160 | -<?php } ?> | |
| 161 | -.<?php echo esc_html( $style_class ); ?> .placeholder { | |
| 162 | - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 214 | +.<?php echo esc_html( $style_class ) ?> input[type=text], | |
| 215 | +.<?php echo esc_html( $style_class ) ?> input[type=password], | |
| 216 | +.<?php echo esc_html( $style_class ) ?> input[type=email], | |
| 217 | +.<?php echo esc_html( $style_class ) ?> input[type=number], | |
| 218 | +.<?php echo esc_html( $style_class ) ?> input[type=url], | |
| 219 | +.<?php echo esc_html( $style_class ) ?> input[type=tel], | |
| 220 | +.<?php echo esc_html( $style_class ) ?> input[type=search], | |
| 221 | +.<?php echo esc_html( $style_class ) ?> select, | |
| 222 | +.<?php echo esc_html( $style_class ) ?> textarea, | |
| 223 | +.<?php echo esc_html( $style_class ) ?> .chosen-container{ | |
| 224 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 225 | + font-size:<?php echo esc_html( $field_font_size ) ?>; | |
| 226 | + margin-bottom:0<?php echo esc_html( $important ) ?>; | |
| 163 | 227 | } |
| 164 | 228 | |
| 165 | -.<?php echo esc_html( $style_class ); ?> .form-field input:not([type=file]):not([type=range]):not([readonly]):focus, | |
| 166 | -.<?php echo esc_html( $style_class ); ?> select:focus, | |
| 167 | -.<?php echo esc_html( $style_class ); ?> .form-field textarea:focus, | |
| 168 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=text], | |
| 169 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=password], | |
| 170 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=email], | |
| 171 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=number], | |
| 172 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=url], | |
| 173 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=tel], | |
| 174 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=search], | |
| 229 | +.<?php echo esc_html( $style_class ) ?> textarea{ | |
| 230 | + vertical-align:top; | |
| 231 | +} | |
| 232 | + | |
| 233 | +.<?php echo esc_html( $style_class ) ?> input[type=text], | |
| 234 | +.<?php echo esc_html( $style_class ) ?> input[type=password], | |
| 235 | +.<?php echo esc_html( $style_class ) ?> input[type=email], | |
| 236 | +.<?php echo esc_html( $style_class ) ?> input[type=number], | |
| 237 | +.<?php echo esc_html( $style_class ) ?> input[type=url], | |
| 238 | +.<?php echo esc_html( $style_class ) ?> input[type=tel], | |
| 239 | +.<?php echo esc_html( $style_class ) ?> input[type=phone], | |
| 240 | +.<?php echo esc_html( $style_class ) ?> input[type=search], | |
| 241 | +.<?php echo esc_html( $style_class ) ?> select, | |
| 242 | +.<?php echo esc_html( $style_class ) ?> textarea, | |
| 243 | +.frm_form_fields_style, | |
| 244 | +.<?php echo esc_html( $style_class ) ?> .frm_scroll_box .frm_opt_container, | |
| 175 | 245 | .frm_form_fields_active_style, |
| 176 | -<?php if ( $use_chosen_js ) { ?> | |
| 177 | -.<?php echo esc_html( $style_class ); ?> .chosen-container-single.chosen-container-active .chosen-single, | |
| 178 | -.<?php echo esc_html( $style_class ); ?> .chosen-container-active .chosen-choices, | |
| 179 | -<?php } ?> | |
| 180 | -.<?php echo esc_html( $style_class ); ?> .frm_focus_field .frm-card-element.StripeElement { | |
| 181 | - background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 182 | - border-color:var(--border-color-active)<?php echo esc_html( $important ); ?>; | |
| 183 | - color:var(--text-color); | |
| 184 | - <?php if ( ! empty( $remove_box_shadow_active ) ) { ?> | |
| 185 | - box-shadow:none; | |
| 186 | - outline: none; | |
| 187 | - <?php } else { ?> | |
| 188 | - box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6); | |
| 189 | - <?php } ?> | |
| 246 | +.frm_form_fields_error_style, | |
| 247 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-multi .chosen-choices, | |
| 248 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-single{ | |
| 249 | + color:<?php echo esc_html( $text_color . $important ) ?>; | |
| 250 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 251 | +<?php | |
| 252 | +if ( ! empty( $important ) ) { | |
| 253 | + echo esc_html( 'background-image:none' . $important . ';' ); | |
| 190 | 254 | } |
| 255 | +?> | |
| 256 | + border-color: <?php echo esc_html( $border_color . $important ) ?>; | |
| 257 | + border-width:<?php echo esc_html( $field_border_width . $important ) ?>; | |
| 258 | + border-style:<?php echo esc_html( $field_border_style . $important ) ?>; | |
| 259 | + -moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 260 | + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 261 | + border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 262 | + width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ) ?>; | |
| 263 | + max-width:100%; | |
| 264 | + font-size:<?php echo esc_html( $field_font_size . $important ) ?>; | |
| 265 | + padding:<?php echo esc_html( $field_pad . $important ) ?>; | |
| 266 | + -webkit-box-sizing:border-box; | |
| 267 | + -moz-box-sizing:border-box; | |
| 268 | + box-sizing:border-box; | |
| 269 | + outline:none<?php echo esc_html( $important ) ?>; | |
| 270 | + font-weight:<?php echo esc_html( $field_weight ) ?>; | |
| 271 | + box-shadow:<?php echo esc_html( ( isset( $remove_box_shadow ) && $remove_box_shadow ) ? 'none' : '0 1px 1px rgba(0, 0, 0, 0.075) inset' ) . esc_html( $important ) ?>; | |
| 272 | +} | |
| 191 | 273 | |
| 192 | -.<?php echo esc_html( $style_class ); ?> input:-webkit-autofill { | |
| 193 | - <?php if ( ! empty( $remove_box_shadow_active ) ) { ?> | |
| 194 | - -webkit-box-shadow: none<?php echo esc_html( $important ); ?>; | |
| 195 | - <?php } else { ?> | |
| 196 | - -webkit-box-shadow: 0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6); | |
| 197 | - <?php } ?> | |
| 274 | +.<?php echo esc_html( $style_class ) ?> input[type=text], | |
| 275 | +.<?php echo esc_html( $style_class ) ?> input[type=password], | |
| 276 | +.<?php echo esc_html( $style_class ) ?> input[type=email], | |
| 277 | +.<?php echo esc_html( $style_class ) ?> input[type=number], | |
| 278 | +.<?php echo esc_html( $style_class ) ?> input[type=url], | |
| 279 | +.<?php echo esc_html( $style_class ) ?> input[type=tel], | |
| 280 | +.<?php echo esc_html( $style_class ) ?> input[type=file], | |
| 281 | +.<?php echo esc_html( $style_class ) ?> input[type=search], | |
| 282 | +.<?php echo esc_html( $style_class ) ?> select{ | |
| 283 | + height:<?php echo esc_html( ( $field_height == '' ? 'auto' : $field_height ) . $important ) ?>; | |
| 284 | + line-height:1.3<?php echo esc_html( $important ) ?>; | |
| 198 | 285 | } |
| 199 | 286 | |
| 287 | +.<?php echo esc_html( $style_class ) ?> select[multiple="multiple"]{ | |
| 288 | + height:auto <?php echo esc_html( $important ) ?>; | |
| 289 | +} | |
| 290 | + | |
| 291 | +.<?php echo esc_html( $style_class ) ?> input[type=file]{ | |
| 292 | + color: <?php echo esc_html( $text_color . $important ) ?>; | |
| 293 | + padding:0px; | |
| 294 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 295 | + font-size:<?php echo esc_html( $field_font_size . $important ) ?>; | |
| 296 | +} | |
| 297 | + | |
| 298 | +.<?php echo esc_html( $style_class ) ?> input[type=file].frm_transparent{ | |
| 299 | + color:transparent<?php echo esc_html( $important ) ?>; | |
| 300 | +} | |
| 301 | + | |
| 302 | +.<?php echo esc_html( $style_class ) ?> select{ | |
| 303 | + width:<?php echo esc_html( ( $auto_width ? 'auto' : $field_width ) . $important ) ?>; | |
| 304 | + max-width:100%; | |
| 305 | +} | |
| 306 | + | |
| 307 | +.<?php echo esc_html( $style_class ) ?> .wp-editor-wrap{ | |
| 308 | + width:<?php echo esc_html( $field_width . $important ) ?>; | |
| 309 | + max-width:100%; | |
| 310 | +} | |
| 311 | + | |
| 312 | +.<?php echo esc_html( $style_class ) ?> .wp-editor-container textarea{ | |
| 313 | + border:none<?php echo esc_html( $important ) ?>; | |
| 314 | +} | |
| 315 | + | |
| 316 | +.<?php echo esc_html( $style_class ) ?> .mceIframeContainer{ | |
| 317 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 318 | +} | |
| 319 | + | |
| 320 | +.<?php echo esc_html( $style_class ) ?> .auto_width input, | |
| 321 | +.<?php echo esc_html( $style_class ) ?> input.auto_width, | |
| 322 | +.<?php echo esc_html( $style_class ) ?> select.auto_width, | |
| 323 | +.<?php echo esc_html( $style_class ) ?> textarea.auto_width{ | |
| 324 | + width:auto<?php echo esc_html( $important ) ?>; | |
| 325 | +} | |
| 326 | + | |
| 327 | +.<?php echo esc_html( $style_class ) ?> input[disabled], | |
| 328 | +.<?php echo esc_html( $style_class ) ?> select[disabled], | |
| 329 | +.<?php echo esc_html( $style_class ) ?> textarea[disabled], | |
| 330 | +.<?php echo esc_html( $style_class ) ?> input[readonly], | |
| 331 | +.<?php echo esc_html( $style_class ) ?> select[readonly], | |
| 332 | +.<?php echo esc_html( $style_class ) ?> textarea[readonly]{ | |
| 333 | + background-color:<?php echo esc_html( $bg_color_disabled . $important ); ?>; | |
| 334 | + color:<?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 335 | + border-color:<?php echo esc_html( $border_color_disabled . $important ) ?>; | |
| 336 | +} | |
| 337 | + | |
| 338 | +/* These do not work if they are combined */ | |
| 339 | +.<?php echo esc_html( $style_class ) ?> input::placeholder, | |
| 340 | +.<?php echo esc_html( $style_class ) ?> textarea::placeholder{ | |
| 341 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 342 | +} | |
| 343 | +.<?php echo esc_html( $style_class ) ?> input::-webkit-input-placeholder, | |
| 344 | +.<?php echo esc_html( $style_class ) ?> textarea::-webkit-input-placeholder{ | |
| 345 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 346 | +} | |
| 347 | +.<?php echo esc_html( $style_class ) ?> input::-moz-placeholder, | |
| 348 | +.<?php echo esc_html( $style_class ) ?> textarea::-moz-placeholder{ | |
| 349 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 350 | +} | |
| 351 | +.<?php echo esc_html( $style_class ) ?> input:-ms-input-placeholder, | |
| 352 | +<?php echo esc_html( $style_class ) ?> textarea:-ms-input-placeholder{ | |
| 353 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 354 | +} | |
| 355 | +.<?php echo esc_html( $style_class ) ?> input:-moz-placeholder, | |
| 356 | +.<?php echo esc_html( $style_class ) ?> textarea:-moz-placeholder{ | |
| 357 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 358 | +} | |
| 359 | + | |
| 360 | +.<?php echo esc_html( $style_class ) ?> .frm_default, | |
| 361 | +.<?php echo esc_html( $style_class ) ?> input.frm_default, | |
| 362 | +.<?php echo esc_html( $style_class ) ?> textarea.frm_default, | |
| 363 | +.<?php echo esc_html( $style_class ) ?> select.frm_default, | |
| 364 | +.<?php echo esc_html( $style_class ) ?> .placeholder, | |
| 365 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-multi .chosen-choices li.search-field .default, | |
| 366 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-single .chosen-default{ | |
| 367 | + color: <?php echo esc_html( $text_color_disabled . $important ) ?>; | |
| 368 | +} | |
| 369 | + | |
| 370 | +.<?php echo esc_html( $style_class ) ?> .form-field input:not([type=file]):focus, | |
| 371 | +.<?php echo esc_html( $style_class ) ?> select:focus, | |
| 372 | +.<?php echo esc_html( $style_class ) ?> textarea:focus, | |
| 373 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=text], | |
| 374 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=password], | |
| 375 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=email], | |
| 376 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=number], | |
| 377 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=url], | |
| 378 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=tel], | |
| 379 | +.<?php echo esc_html( $style_class ) ?> .frm_focus_field input[type=search], | |
| 380 | +.frm_form_fields_active_style, | |
| 381 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-single.chosen-container-active .chosen-single, | |
| 382 | +.<?php echo esc_html( $style_class ) ?> .chosen-container-active .chosen-choices{ | |
| 383 | + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>; | |
| 384 | + border-color:<?php echo esc_html( $border_color_active . $important ); ?>; | |
| 385 | + <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?> | |
| 386 | + box-shadow:none; | |
| 387 | + <?php } else { ?> | |
| 388 | + box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ) ?>, 0.6); | |
| 389 | + <?php } ?> | |
| 390 | +} | |
| 391 | + | |
| 200 | 392 | <?php if ( ! $submit_style ) { ?> |
| 201 | - <?php if ( $pro_is_installed ) { ?> | |
| 202 | -.<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message, | |
| 203 | -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn, | |
| 204 | - <?php } ?> | |
| 205 | -.<?php echo esc_html( $style_class ); ?> input[type=submit], | |
| 206 | -.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button], | |
| 207 | -.<?php echo esc_html( $style_class ); ?> .frm_submit button, | |
| 208 | -.frm_form_submit_style { | |
| 209 | - width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); // phpcs:ignore Universal.Operators.StrictComparisons ?>; | |
| 210 | - <?php if ( ! empty( $font ) ) { ?> | |
| 211 | - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>; | |
| 212 | - <?php } ?> | |
| 213 | - font-size:<?php echo esc_html( $submit_font_size . $important ); ?>; | |
| 214 | - height:<?php echo esc_html( $submit_height . $important ); ?>; | |
| 215 | - line-height:normal<?php echo esc_html( $important ); ?>; | |
| 216 | - text-align:center; | |
| 217 | - background: | |
| 393 | +.<?php echo esc_html( $style_class ) ?> .frm_compact .frm_dropzone.dz-clickable .dz-message, | |
| 394 | +.<?php echo esc_html( $style_class ) ?> input[type=submit], | |
| 395 | +.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button], | |
| 396 | +.<?php echo esc_html( $style_class ) ?> .frm_submit button, | |
| 397 | +.frm_form_submit_style{ | |
| 398 | + width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ) ?>; | |
| 399 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 400 | + font-size:<?php echo esc_html( $submit_font_size . $important ); ?>; | |
| 401 | + height:<?php echo esc_html( $submit_height . $important ) ?>; | |
| 402 | + line-height:normal<?php echo esc_html( $important ) ?>; | |
| 403 | + text-align:center; | |
| 404 | + background: | |
| 218 | 405 | <?php |
| 219 | 406 | echo esc_html( $submit_bg_color ); |
| 220 | - | |
| 221 | - if ( $submit_bg_img ) { | |
| 407 | + if ( ! empty( $submit_bg_img ) ) { | |
| 222 | 408 | echo esc_html( ' url(' . $submit_bg_img . ')' ); |
| 223 | 409 | } |
| 224 | 410 | echo esc_html( $important ); |
| 225 | 411 | ?> |
| 226 | 412 | ; |
| 227 | - <?php if ( '' !== $submit_border_width ) : ?> | |
| 228 | - border-width:<?php echo esc_html( $submit_border_width ); ?>; | |
| 229 | - <?php endif; ?> | |
| 230 | - border-color: <?php echo esc_html( $submit_border_color . $important ); ?>; | |
| 231 | - border-style:solid; | |
| 232 | - color:<?php echo esc_html( $submit_text_color . $important ); ?>; | |
| 233 | - cursor:pointer; | |
| 234 | - font-weight:<?php echo esc_html( $submit_weight . $important ); ?>; | |
| 235 | - border-radius:<?php echo esc_html( $submit_border_radius . $important ); ?>; | |
| 236 | - text-shadow:none; | |
| 237 | - padding:<?php echo esc_html( $submit_padding . $important ); ?>; | |
| 238 | - box-sizing:border-box; | |
| 413 | + border-width:<?php echo esc_html( $submit_border_width ) ?>; | |
| 414 | + border-color: <?php echo esc_html( $submit_border_color . $important ) ?>; | |
| 415 | + border-style:solid; | |
| 416 | + color:<?php echo esc_html( $submit_text_color . $important ) ?>; | |
| 417 | + cursor:pointer; | |
| 418 | + font-weight:<?php echo esc_html( $submit_weight . $important ) ?>; | |
| 419 | + -moz-border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>; | |
| 420 | + -webkit-border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>; | |
| 421 | + border-radius:<?php echo esc_html( $submit_border_radius . $important ) ?>; | |
| 422 | + text-shadow:none; | |
| 423 | + padding:<?php echo esc_html( $submit_padding . $important ) ?>; | |
| 424 | + -moz-box-sizing:border-box; | |
| 425 | + box-sizing:border-box; | |
| 426 | + -ms-box-sizing:border-box; | |
| 239 | 427 | <?php if ( ! empty( $submit_shadow_color ) ) { ?> |
| 428 | + -moz-box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>; | |
| 429 | + -webkit-box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>; | |
| 240 | 430 | box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>; |
| 241 | 431 | <?php } ?> |
| 242 | - margin:<?php echo esc_html( $submit_margin ); ?>; | |
| 243 | - <?php | |
| 244 | - // For reverse compatibility... But allow "10px 10px". | |
| 245 | - if ( ! str_contains( trim( $submit_margin ), ' ' ) ) { | |
| 246 | - ?> | |
| 247 | - margin-left:0; | |
| 248 | - margin-right:0; | |
| 249 | - <?php } ?> | |
| 250 | - vertical-align:middle; | |
| 432 | + margin:<?php echo esc_html( $submit_margin ) ?>; | |
| 433 | + margin-left:0; | |
| 434 | + margin-right:0; | |
| 435 | + vertical-align:middle; | |
| 251 | 436 | } |
| 252 | 437 | |
| 253 | - <?php if ( $pro_is_installed ) { ?> | |
| 254 | -.<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{ | |
| 438 | +.<?php echo esc_html( $style_class ) ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{ | |
| 255 | 439 | margin:0; |
| 256 | 440 | } |
| 257 | - <?php } ?> | |
| 258 | 441 | |
| 259 | - <?php if ( ! $submit_bg_img ) { ?> | |
| 260 | - <?php if ( $pro_is_installed ) { ?> | |
| 261 | -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:hover, | |
| 262 | - <?php } ?> | |
| 442 | +<?php if ( empty( $submit_bg_img ) ) { ?> | |
| 263 | 443 | .<?php echo esc_html( $style_class ); ?> input[type=submit]:hover, |
| 264 | 444 | .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover, |
| 265 | 445 | .<?php echo esc_html( $style_class ); ?> .frm_submit button:hover{ |
| 266 | - background:var(--submit-hover-bg-color)<?php echo esc_html( $important ); ?>; | |
| 267 | - border-color:var(--submit-hover-border-color)<?php echo esc_html( $important ); ?>; | |
| 268 | - color:var(--submit-hover-color)<?php echo esc_html( $important ); ?>; | |
| 446 | + background: <?php echo esc_html( $submit_hover_bg_color . $important ) ?>; | |
| 447 | + border-color: <?php echo esc_html( $submit_hover_border_color . $important ) ?>; | |
| 448 | + color: <?php echo esc_html( $submit_hover_color . $important ) ?>; | |
| 269 | 449 | } |
| 270 | 450 | |
| 271 | -.<?php echo esc_html( $style_class ); ?>.frm_center_submit .frm_submit .frm_ajax_loading{ | |
| 272 | - margin-bottom:<?php echo esc_html( FrmStylesHelper::get_bottom_value( $submit_margin ) ); ?>; | |
| 451 | +.<?php echo esc_html( $style_class ) ?>.frm_center_submit .frm_submit .frm_ajax_loading{ | |
| 452 | + margin-bottom:<?php echo esc_html( $submit_margin ) ?>; | |
| 273 | 453 | } |
| 274 | 454 | |
| 275 | - <?php if ( $pro_is_installed ) { ?> | |
| 276 | -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:focus, | |
| 277 | - <?php } ?> | |
| 278 | -.<?php echo esc_html( $style_class ); ?> input[type=submit]:focus, | |
| 279 | -.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:focus, | |
| 280 | -.<?php echo esc_html( $style_class ); ?> .frm_submit button:focus, | |
| 281 | -.<?php echo esc_html( $style_class ); ?> input[type=submit]:active, | |
| 282 | -.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:active, | |
| 283 | -.<?php echo esc_html( $style_class ); ?> .frm_submit button:active{ | |
| 284 | - background:var(--submit-active-bg-color)<?php echo esc_html( $important ); ?>; | |
| 285 | - border-color:var(--submit-active-border-color)<?php echo esc_html( $important ); ?>; | |
| 286 | - color:var(--submit-active-color)<?php echo esc_html( $important ); ?>; | |
| 287 | - outline: none; | |
| 455 | +.<?php echo esc_html( $style_class ) ?> input[type=submit]:focus, | |
| 456 | +.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button]:focus, | |
| 457 | +.<?php echo esc_html( $style_class ) ?> .frm_submit button:focus, | |
| 458 | +.<?php echo esc_html( $style_class ) ?> input[type=submit]:active, | |
| 459 | +.<?php echo esc_html( $style_class ) ?> .frm_submit input[type=button]:active, | |
| 460 | +.<?php echo esc_html( $style_class ) ?> .frm_submit button:active{ | |
| 461 | + background: <?php echo esc_html( $submit_active_bg_color . $important ) ?>; | |
| 462 | + border-color: <?php echo esc_html( $submit_active_border_color . $important ) ?>; | |
| 463 | + color: <?php echo esc_html( $submit_active_color . $important ) ?>; | |
| 288 | 464 | } |
| 289 | 465 | |
| 290 | - <?php if ( $pro_is_installed ) { ?> | |
| 291 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page, | |
| 292 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:hover, | |
| 293 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:active, | |
| 294 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:focus, | |
| 295 | - <?php } ?> | |
| 296 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit, | |
| 297 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:hover, | |
| 298 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:active, | |
| 299 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:focus{ | |
| 300 | - color: transparent<?php echo esc_html( $important ); ?>; | |
| 301 | - background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 302 | - border-color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 466 | +.<?php echo esc_html( $style_class ) ?> .frm_loading_form .frm_button_submit, | |
| 467 | +.<?php echo esc_html( $style_class ) ?> .frm_loading_form .frm_button_submit:hover, | |
| 468 | +.<?php echo esc_html( $style_class ) ?> .frm_loading_form .frm_button_submit:active, | |
| 469 | +.<?php echo esc_html( $style_class ) ?> .frm_loading_form .frm_button_submit:focus{ | |
| 470 | + color: transparent <?php echo esc_html( $important ) ?>; | |
| 471 | + background: <?php echo esc_html( $submit_bg_color . $important ) ?>; | |
| 303 | 472 | } |
| 304 | 473 | |
| 305 | - <?php if ( $pro_is_installed ) { ?> | |
| 306 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:before, | |
| 307 | - <?php } ?> | |
| 308 | -.<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:before { | |
| 309 | - border-bottom-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 310 | - border-right-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 311 | - <?php if ( $submit_height !== 'auto' ) { ?> | |
| 312 | - max-height:var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 313 | - <?php } ?> | |
| 314 | - <?php if ( $submit_width !== 'auto' ) { ?> | |
| 315 | - max-width:var(--submit-width)<?php echo esc_html( $important ); ?>; | |
| 316 | - <?php } ?> | |
| 474 | +.<?php echo esc_html( $style_class ) ?> .frm_loading_form .frm_button_submit:before { | |
| 475 | + border-bottom-color: <?php echo esc_html( $submit_text_color . $important ) ?>; | |
| 476 | + border-right-color: <?php echo esc_html( $submit_text_color . $important ) ?>; | |
| 477 | + <?php if ( $submit_height !== 'auto' ) { ?> | |
| 478 | + max-height:<?php echo esc_html( $submit_height ) ?>; | |
| 479 | + <?php } ?> | |
| 480 | + <?php if ( $submit_width !== 'auto' ) { ?> | |
| 481 | + max-width:<?php echo esc_html( $submit_width ) ?>; | |
| 482 | + <?php } ?> | |
| 317 | 483 | } |
| 318 | - <?php | |
| 319 | - }//end if | |
| 320 | -}//end if | |
| 484 | +<?php | |
| 485 | + } | |
| 486 | +} | |
| 321 | 487 | ?> |
| 322 | 488 | |
| 323 | -.<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before, | |
| 324 | -.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before { | |
| 489 | +.<?php echo esc_html( $style_class ) ?>.frm_inline_top .frm_submit::before, | |
| 490 | +.<?php echo esc_html( $style_class ) ?> .frm_submit.frm_inline_submit::before { | |
| 325 | 491 | content:"before"; |
| 326 | - <?php if ( ! empty( $font ) ) { ?> | |
| 327 | - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>; | |
| 328 | - <?php } ?> | |
| 329 | - font-size:var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 330 | - color:var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 331 | - font-weight:var(--weight)<?php echo esc_html( $important ); ?>; | |
| 492 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 493 | + font-size:<?php echo esc_html( $font_size . $important ) ?>; | |
| 494 | + color:<?php echo esc_html( $label_color . $important ) ?>; | |
| 495 | + font-weight:<?php echo esc_html( $weight . $important ) ?>; | |
| 332 | 496 | margin:0; |
| 333 | - padding:var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 497 | + padding:<?php echo esc_html( $label_padding . $important ) ?>; | |
| 334 | 498 | width:auto; |
| 335 | 499 | display:block; |
| 336 | 500 | visibility:hidden; |
| 337 | 501 | } |
| 338 | 502 | |
| 339 | -.<?php echo esc_html( $style_class ); ?>.frm_inline_form .frm_submit input, | |
| 340 | -.<?php echo esc_html( $style_class ); ?>.frm_inline_form .frm_submit button, | |
| 341 | -.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit input, | |
| 342 | -.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit button { | |
| 503 | +.<?php echo esc_html( $style_class ) ?>.frm_inline_form .frm_submit input, | |
| 504 | +.<?php echo esc_html( $style_class ) ?>.frm_inline_form .frm_submit button, | |
| 505 | +.<?php echo esc_html( $style_class ) ?> .frm_submit.frm_inline_submit input, | |
| 506 | +.<?php echo esc_html( $style_class ) ?> .frm_submit.frm_inline_submit button { | |
| 343 | 507 | margin: 0 !important; |
| 344 | 508 | } |
| 345 | 509 | |
| 346 | -<?php | |
| 347 | -// Only include this CSS when the math captcha plugin is active. | |
| 348 | -if ( class_exists( 'FrmCptController' ) ) : | |
| 349 | - ?> | |
| 350 | -.<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{ | |
| 351 | - <?php if ( ! empty( $font ) ) { ?> | |
| 352 | - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>; | |
| 353 | - <?php } ?> | |
| 354 | - font-size:var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 355 | - color:var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 356 | - font-weight:var(--weight)<?php echo esc_html( $important ); ?>; | |
| 357 | - clear:both; | |
| 510 | +.<?php echo esc_html( $style_class ) ?> a.frm_save_draft{ | |
| 511 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 512 | + font-size:<?php echo esc_html( $submit_font_size ) ?>; | |
| 513 | + font-weight:<?php echo esc_html( $submit_weight ) ?>; | |
| 358 | 514 | } |
| 359 | - <?php | |
| 360 | -endif; | |
| 361 | -?> | |
| 362 | 515 | |
| 363 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=text], | |
| 364 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=password], | |
| 365 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url], | |
| 366 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel], | |
| 367 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number], | |
| 368 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email], | |
| 369 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=checkbox], | |
| 370 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=radio], | |
| 371 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea, | |
| 372 | -<?php if ( $pro_is_installed ) { ?> | |
| 373 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe, | |
| 374 | -<?php } ?> | |
| 375 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year), | |
| 516 | +.<?php echo esc_html( $style_class ) ?> #frm_field_cptch_number_container{ | |
| 517 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 518 | + font-size:<?php echo esc_html( $font_size . $important ) ?>; | |
| 519 | + color:<?php echo esc_html( $label_color . $important ) ?>; | |
| 520 | + font-weight:<?php echo esc_html( $weight . $important ) ?>; | |
| 521 | + clear:both; | |
| 522 | +} | |
| 523 | + | |
| 524 | +.<?php echo esc_html( $style_class ) ?> .frm_radio{ | |
| 525 | + display:<?php echo esc_html( $radio_align . $important ) ?>; | |
| 526 | +} | |
| 527 | + | |
| 528 | +.<?php echo esc_html( $style_class ) ?> .frm_checkbox{ | |
| 529 | + display:<?php echo esc_html( $check_align . $important ) ?>; | |
| 530 | +} | |
| 531 | + | |
| 532 | +.<?php echo esc_html( $style_class ) ?> .vertical_radio .frm_checkbox, | |
| 533 | +.<?php echo esc_html( $style_class ) ?> .vertical_radio .frm_radio, | |
| 534 | +.vertical_radio .frm_catlevel_1{ | |
| 535 | + display:block<?php echo esc_html( $important ) ?>; | |
| 536 | +} | |
| 537 | + | |
| 538 | +.<?php echo esc_html( $style_class ) ?> .horizontal_radio .frm_checkbox, | |
| 539 | +.<?php echo esc_html( $style_class ) ?> .horizontal_radio .frm_radio, | |
| 540 | +.horizontal_radio .frm_catlevel_1{ | |
| 541 | + display:inline-block<?php echo esc_html( $important ) ?>; | |
| 542 | +} | |
| 543 | + | |
| 544 | +.<?php echo esc_html( $style_class ) ?> .frm_radio label, | |
| 545 | +.<?php echo esc_html( $style_class ) ?> .frm_checkbox label{ | |
| 546 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 547 | + font-size:<?php echo esc_html( $check_font_size . $important ) ?>; | |
| 548 | + color:<?php echo esc_html( $check_label_color . $important ) ?>; | |
| 549 | + font-weight:<?php echo esc_html( $check_weight . $important ) ?>; | |
| 550 | +} | |
| 551 | + | |
| 552 | +.<?php echo esc_html( $style_class ) ?> .frm_radio input[type=radio], | |
| 553 | +.<?php echo esc_html( $style_class ) ?> .frm_checkbox input[type=checkbox] { | |
| 554 | + font-size: <?php echo esc_html( $check_font_size . $important ) ?>; | |
| 555 | + position: static<?php echo esc_html( $important ) ?>; | |
| 556 | +} | |
| 557 | + | |
| 558 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=text], | |
| 559 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=password], | |
| 560 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=url], | |
| 561 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=tel], | |
| 562 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=number], | |
| 563 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field input[type=email], | |
| 564 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field textarea, | |
| 565 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .mce-edit-area iframe, | |
| 566 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field select, | |
| 376 | 567 | .frm_form_fields_error_style, |
| 377 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe, | |
| 378 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe, | |
| 379 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-card-element.StripeElement, | |
| 380 | -<?php if ( $use_chosen_js ) { ?> | |
| 381 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-multi .chosen-choices, | |
| 382 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-single .chosen-single, | |
| 383 | -<?php } ?> | |
| 384 | -.<?php echo esc_html( $style_class ); ?> .frm_form_field :invalid { | |
| 385 | - color:var(--text-color-error)<?php echo esc_html( $important ); ?>; | |
| 386 | - background-color:var(--bg-color-error)<?php echo esc_html( $important ); ?>; | |
| 387 | - border-color:var(--border-color-error)<?php echo esc_html( $important ); ?>; | |
| 388 | - border-width:var(--border-width-error)<?php echo esc_html( $important ); ?>; | |
| 389 | - border-style:var(--border-style-error)<?php echo esc_html( $important ); ?>; | |
| 568 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .frm-g-recaptcha iframe, | |
| 569 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .g-recaptcha iframe, | |
| 570 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .chosen-container-multi .chosen-choices, | |
| 571 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .chosen-container-single .chosen-single, | |
| 572 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field :invalid{ | |
| 573 | + color:<?php echo esc_html( $text_color_error . $important ); ?>; | |
| 574 | + background-color:<?php echo esc_html( $bg_color_error . $important ); ?>; | |
| 575 | + border-color:<?php echo esc_html( $border_color_error . $important ); ?>; | |
| 576 | + border-width:<?php echo esc_html( $border_width_error . $important ) ?>; | |
| 577 | + border-style:<?php echo esc_html( $border_style_error . $important ) ?>; | |
| 390 | 578 | } |
| 391 | 579 | |
| 392 | -<?php | |
| 393 | -// Only include this style when the signatures add-on is active | |
| 394 | -if ( class_exists( 'FrmSigField' ) ) : | |
| 395 | - ?> | |
| 396 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{ | |
| 397 | - border-color:var(--border-color-error) !important; | |
| 580 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field .sigWrapper{ | |
| 581 | + border-color:<?php echo esc_html( $border_color_error ); ?> !important; | |
| 398 | 582 | } |
| 399 | - <?php | |
| 400 | -endif; | |
| 401 | -?> | |
| 402 | 583 | |
| 403 | -.<?php echo esc_html( $style_class ); ?> .frm_error, | |
| 404 | -.<?php echo esc_html( $style_class ); ?> .frm_limit_error{ | |
| 405 | - font-weight:var(--weight)<?php echo esc_html( $important ); ?>; | |
| 406 | - color:var(--border-color-error)<?php echo esc_html( $important ); ?>; | |
| 584 | +.<?php echo esc_html( $style_class ) ?> .frm_error{ | |
| 585 | + font-weight:<?php echo esc_html( $weight . $important ) ?>; | |
| 407 | 586 | } |
| 408 | 587 | |
| 409 | -.<?php echo esc_html( $style_class ); ?> .frm_error_style{ | |
| 410 | - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>; | |
| 411 | - border:1px solid var(--error-border)<?php echo esc_html( $important ); ?>; | |
| 412 | - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; | |
| 413 | - color:var(--error-text)<?php echo esc_html( $important ); ?>; | |
| 414 | - font-size:var(--error-font-size)<?php echo esc_html( $important ); ?>; | |
| 415 | - margin:0; | |
| 416 | - margin-bottom:var(--field-margin); | |
| 588 | +.<?php echo esc_html( $style_class ) ?> .frm_blank_field label, | |
| 589 | +.<?php echo esc_html( $style_class ) ?> .frm_error{ | |
| 590 | + color:<?php echo esc_html( $border_color_error . $important ); ?>; | |
| 417 | 591 | } |
| 418 | 592 | |
| 419 | -<?php if ( $pro_is_installed ) { ?> | |
| 420 | -.<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{ | |
| 421 | - background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); | |
| 593 | +.<?php echo esc_html( $style_class ) ?> .frm_error_style{ | |
| 594 | + background-color:<?php echo esc_html( $error_bg . $important ); ?>; | |
| 595 | + border:1px solid <?php echo esc_html( $error_border . $important ); ?>; | |
| 596 | + border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 597 | + color: <?php echo esc_html( $error_text . $important ) ?>; | |
| 598 | + font-size:<?php echo esc_html( $error_font_size . $important ) ?>; | |
| 599 | + margin:0; | |
| 600 | + margin-bottom:<?php echo esc_html( $field_margin ) ?>; | |
| 422 | 601 | } |
| 423 | 602 | |
| 424 | -.<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{ | |
| 425 | - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 603 | +.<?php echo esc_html( $style_class ) ?> .frm_message, | |
| 604 | +.frm_success_style{ | |
| 605 | + border:1px solid <?php echo esc_html( $success_border_color ); ?>; | |
| 606 | + background-color:<?php echo esc_html( $success_bg_color . $important ); ?>; | |
| 607 | + color:<?php echo esc_html( $success_text_color . $important ); ?>; | |
| 608 | + border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 426 | 609 | } |
| 427 | -<?php } ?> | |
| 428 | 610 | |
| 429 | -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input, | |
| 430 | -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea, | |
| 431 | -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total input, | |
| 432 | -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total textarea{ | |
| 433 | - color: <?php echo esc_html( $text_color . $important ); ?>; | |
| 434 | - background-color:transparent<?php echo esc_html( $important ); ?>; | |
| 435 | - border:none<?php echo esc_html( $important ); ?>; | |
| 436 | - display:inline<?php echo esc_html( $important ); ?>; | |
| 437 | - width:auto<?php echo esc_html( $important ); ?>; | |
| 438 | - padding:0<?php echo esc_html( $important ); ?>; | |
| 611 | +.<?php echo esc_html( $style_class ) ?> .frm_message p{ | |
| 612 | + color:<?php echo esc_html( $success_text_color . $important ); ?>; | |
| 439 | 613 | } |
| 440 | 614 | |
| 441 | -<?php echo strip_tags( FrmStylesController::get_custom_css( $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 615 | +.<?php echo esc_html( $style_class ) ?> .frm_message{ | |
| 616 | + margin:5px 0 15px; | |
| 617 | + font-size:<?php echo esc_html( $success_font_size . $important ) ?>; | |
| 618 | +} | |
| 619 | + | |
| 620 | +.<?php echo esc_html( $style_class ) ?> .frm-grid td, | |
| 621 | +.frm-grid th{ | |
| 622 | + border-color:<?php echo esc_html( $border_color ) ?>; | |
| 623 | +} | |
| 624 | + | |
| 625 | +.form_results.<?php echo esc_html( $style_class ) ?>{ | |
| 626 | + border:<?php echo esc_html( $field_border_width ) ?> solid <?php echo esc_html( $border_color . $important ) ?>; | |
| 627 | +} | |
| 628 | + | |
| 629 | +.form_results.<?php echo esc_html( $style_class ) ?> tr td{ | |
| 630 | + color: <?php echo esc_html( $text_color . $important ) ?>; | |
| 631 | + border-top:<?php echo esc_html( $field_border_width ) ?> solid <?php echo esc_html( $border_color . $important ) ?>; | |
| 632 | +} | |
| 633 | + | |
| 634 | +.form_results.<?php echo esc_html( $style_class ) ?> tr.frm_even, | |
| 635 | +.frm-grid .frm_even{ | |
| 636 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 637 | +} | |
| 638 | + | |
| 639 | +.<?php echo esc_html( $style_class ) ?> #frm_loading .progress-striped .progress-bar{ | |
| 640 | + background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ) ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ) ?> 50%, <?php echo esc_html( $border_color ) ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); | |
| 641 | +} | |
| 642 | + | |
| 643 | +.<?php echo esc_html( $style_class ) ?> #frm_loading .progress-bar{ | |
| 644 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 645 | +} | |
| 646 | + | |
| 647 | +.<?php echo esc_html( $style_class ) ?> .frm_grid, | |
| 648 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_first, | |
| 649 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_odd{ | |
| 650 | + border-color:<?php echo esc_html( $border_color ) ?>; | |
| 651 | +} | |
| 652 | + | |
| 653 | +.<?php echo esc_html( $style_class ) ?> .frm_grid.frm_blank_field, | |
| 654 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_first.frm_blank_field, | |
| 655 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_odd.frm_blank_field{ | |
| 656 | + background-color:<?php echo esc_html( $error_bg . $important ); ?>; | |
| 657 | + border-color:<?php echo esc_html( $error_border ); ?>; | |
| 658 | +} | |
| 659 | + | |
| 660 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_first, | |
| 661 | +.<?php echo esc_html( $style_class ) ?> .frm_grid_odd{ | |
| 662 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 663 | +} | |
| 664 | + | |
| 665 | +.<?php echo esc_html( $style_class ) ?> .frm_grid{ | |
| 666 | + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>; | |
| 667 | +} | |
| 668 | + | |
| 669 | +.<?php echo esc_html( $style_class ) ?> .frm_html_container.frm_scroll_box, | |
| 670 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_html_scroll_box{ | |
| 671 | + background-color:<?php echo esc_html( $bg_color . $important ); ?>; | |
| 672 | + border-color: <?php echo esc_html( $border_color . $important ) ?>; | |
| 673 | + border-width:<?php echo esc_html( $field_border_width . $important ) ?>; | |
| 674 | + border-style:<?php echo esc_html( $field_border_style . $important ) ?>; | |
| 675 | + -moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 676 | + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 677 | + border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 678 | + width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ) ?>; | |
| 679 | + font-size:<?php echo esc_html( $field_font_size . $important ) ?>; | |
| 680 | + padding:<?php echo esc_html( $field_pad . $important ) ?>; | |
| 681 | + outline:none<?php echo esc_html( $important ) ?>; | |
| 682 | +} | |
| 683 | + | |
| 684 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_total input, | |
| 685 | +.<?php echo esc_html( $style_class ) ?> .frm_form_field.frm_total textarea{ | |
| 686 | + color: <?php echo esc_html( $text_color . $important ) ?>; | |
| 687 | + background-color:transparent<?php echo esc_html( $important ) ?>; | |
| 688 | + border:none<?php echo esc_html( $important ) ?>; | |
| 689 | + display:inline<?php echo esc_html( $important ) ?>; | |
| 690 | + width:auto<?php echo esc_html( $important ) ?>; | |
| 691 | + padding:0<?php echo esc_html( $important ) ?>; | |
| 692 | +} | |
| 693 | + | |
| 694 | +.<?php echo esc_html( $style_class ) ?> .frm_button{ | |
| 695 | + padding:<?php echo esc_html( $submit_padding . $important ) ?>; | |
| 696 | + -moz-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 697 | + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 698 | + border-radius:<?php echo esc_html( $border_radius . $important ) ?>; | |
| 699 | + font-size:<?php echo esc_html( $submit_font_size . $important ) ?>; | |
| 700 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 701 | + font-weight:<?php echo esc_html( $submit_weight . $important ) ?>; | |
| 702 | + color:<?php echo esc_html( $submit_text_color . $important ) ?>; | |
| 703 | + background: <?php echo esc_html( $submit_bg_color . $important ) ?>; | |
| 704 | + border-width:<?php echo esc_html( $submit_border_width ) ?>; | |
| 705 | + border-color: <?php echo esc_html( $submit_border_color . $important ) ?>; | |
| 706 | + height:<?php echo esc_html( $submit_height . $important ) ?>; | |
| 707 | +} | |
| 708 | + | |
| 442 | 709 | <?php do_action( 'frm_output_single_style', $settings ); ?> |
| 710 | + | |
| 711 | +@media only screen and (max-width: 600px){ | |
| 712 | + .<?php echo esc_html( $style_class ) ?> .frm_repeat_inline, | |
| 713 | + .<?php echo esc_html( $style_class ) ?> .frm_repeat_grid{ | |
| 714 | + margin: 20px 0; | |
| 715 | + } | |
| 716 | +} | |
| 717 | + | |