| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
$settings = FrmStylesHelper::get_settings_for_output( $style ); |
| 7 |
extract( $settings ); // phpcs:ignore WordPress.PHP.DontExtract |
| 8 |
|
| 9 |
$is_loaded_via_ajax = $is_loaded_via_ajax ?? false; |
| 10 |
FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax ); |
| 11 |
|
| 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(); |
| 16 |
?> |
| 17 |
.<?php echo esc_html( $style_class ); ?>{ |
| 18 |
<?php FrmStylesHelper::output_vars( $settings, $defaults ); ?> |
| 19 |
} |
| 20 |
|
| 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 } ?> |
| 30 |
} |
| 31 |
|
| 32 |
<?php if ( $center_form ) { ?> |
| 33 |
.frm_inline_form.<?php echo esc_html( $style_class ); ?> form{ |
| 34 |
text-align:center; |
| 35 |
} |
| 36 |
<?php } ?> |
| 37 |
|
| 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 ); ?>; |
| 41 |
} |
| 42 |
<?php } ?> |
| 43 |
|
| 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 |
} |
| 48 |
<?php } ?> |
| 49 |
|
| 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%; |
| 81 |
} |
| 82 |
|
| 83 |
/* Left and right labels */ |
| 84 |
<?php |
| 85 |
|
| 86 |
if ( '' === $field_height || 'auto' === $field_height ) { |
| 87 |
foreach ( array( 'left', 'right', 'inline' ) as $alignit ) { |
| 88 |
?> |
| 89 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=text], |
| 90 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=password], |
| 91 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=email], |
| 92 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=number], |
| 93 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=url], |
| 94 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=tel], |
| 95 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=file], |
| 96 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=search], |
| 97 |
.<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select, |
| 98 |
<?php } ?> |
| 99 |
.<?php echo esc_html( $style_class ); ?> .frm_left_container select{ |
| 100 |
height:fit-content<?php echo esc_html( $important ); ?>; |
| 101 |
} |
| 102 |
<?php } ?> |
| 103 |
|
| 104 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_left_container{ |
| 105 |
grid-template-columns: <?php echo esc_html( $width ); ?> auto; |
| 106 |
} |
| 107 |
|
| 108 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_right_container{ |
| 109 |
grid-template-columns: auto <?php echo esc_html( $width ); ?>; |
| 110 |
} |
| 111 |
|
| 112 |
.frm_form_field.frm_right_container{ |
| 113 |
grid-template-columns: auto 25%; |
| 114 |
} |
| 115 |
|
| 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 ); ?>; |
| 119 |
} |
| 120 |
|
| 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 ); ?>; |
| 124 |
} |
| 125 |
|
| 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 ); ?>; |
| 129 |
} |
| 130 |
|
| 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 } ?> |
| 145 |
} |
| 146 |
<?php endif; ?> |
| 147 |
|
| 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 ); ?>; |
| 151 |
} |
| 152 |
|
| 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 ); ?>; |
| 163 |
} |
| 164 |
|
| 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], |
| 175 |
.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 } ?> |
| 190 |
} |
| 191 |
|
| 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 } ?> |
| 198 |
} |
| 199 |
|
| 200 |
<?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: |
| 218 |
<?php |
| 219 |
echo esc_html( $submit_bg_color ); |
| 220 |
|
| 221 |
if ( $submit_bg_img ) { |
| 222 |
echo esc_html( ' url(' . $submit_bg_img . ')' ); |
| 223 |
} |
| 224 |
echo esc_html( $important ); |
| 225 |
?> |
| 226 |
; |
| 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; |
| 239 |
<?php if ( ! empty( $submit_shadow_color ) ) { ?> |
| 240 |
box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>; |
| 241 |
<?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; |
| 251 |
} |
| 252 |
|
| 253 |
<?php if ( $pro_is_installed ) { ?> |
| 254 |
.<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{ |
| 255 |
margin:0; |
| 256 |
} |
| 257 |
<?php } ?> |
| 258 |
|
| 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 } ?> |
| 263 |
.<?php echo esc_html( $style_class ); ?> input[type=submit]:hover, |
| 264 |
.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover, |
| 265 |
.<?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 ); ?>; |
| 269 |
} |
| 270 |
|
| 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 ) ); ?>; |
| 273 |
} |
| 274 |
|
| 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; |
| 288 |
} |
| 289 |
|
| 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 ); ?>; |
| 303 |
} |
| 304 |
|
| 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 } ?> |
| 317 |
} |
| 318 |
.<?php echo esc_html( $style_class ); ?> input[type=submit][disabled], |
| 319 |
.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled], |
| 320 |
.<?php echo esc_html( $style_class ); ?> .frm_submit button[disabled] { |
| 321 |
opacity: 0.5; |
| 322 |
cursor: not-allowed; |
| 323 |
} |
| 324 |
<?php |
| 325 |
}//end if |
| 326 |
}//end if |
| 327 |
?> |
| 328 |
|
| 329 |
.<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before, |
| 330 |
.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before { |
| 331 |
content:"before"; |
| 332 |
<?php if ( ! empty( $font ) ) { ?> |
| 333 |
font-family:<?php FrmAppHelper::kses_echo( $font ); ?>; |
| 334 |
<?php } ?> |
| 335 |
font-size:var(--font-size)<?php echo esc_html( $important ); ?>; |
| 336 |
color:var(--label-color)<?php echo esc_html( $important ); ?>; |
| 337 |
font-weight:var(--weight)<?php echo esc_html( $important ); ?>; |
| 338 |
margin:0; |
| 339 |
padding:var(--label-padding)<?php echo esc_html( $important ); ?>; |
| 340 |
width:auto; |
| 341 |
display:block; |
| 342 |
visibility:hidden; |
| 343 |
} |
| 344 |
|
| 345 |
.<?php echo esc_html( $style_class ); ?>.frm_inline_form .frm_submit input, |
| 346 |
.<?php echo esc_html( $style_class ); ?>.frm_inline_form .frm_submit button, |
| 347 |
.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit input, |
| 348 |
.<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit button { |
| 349 |
margin: 0 !important; |
| 350 |
} |
| 351 |
|
| 352 |
<?php |
| 353 |
// Only include this CSS when the math captcha plugin is active. |
| 354 |
if ( class_exists( 'FrmCptController' ) ) : |
| 355 |
?> |
| 356 |
.<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{ |
| 357 |
<?php if ( ! empty( $font ) ) { ?> |
| 358 |
font-family:<?php FrmAppHelper::kses_echo( $font ); ?>; |
| 359 |
<?php } ?> |
| 360 |
font-size:var(--font-size)<?php echo esc_html( $important ); ?>; |
| 361 |
color:var(--label-color)<?php echo esc_html( $important ); ?>; |
| 362 |
font-weight:var(--weight)<?php echo esc_html( $important ); ?>; |
| 363 |
clear:both; |
| 364 |
} |
| 365 |
<?php |
| 366 |
endif; |
| 367 |
?> |
| 368 |
|
| 369 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=text], |
| 370 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=password], |
| 371 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url], |
| 372 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel], |
| 373 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number], |
| 374 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email], |
| 375 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=checkbox], |
| 376 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=radio], |
| 377 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea, |
| 378 |
<?php if ( $pro_is_installed ) { ?> |
| 379 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe, |
| 380 |
<?php } ?> |
| 381 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year), |
| 382 |
.frm_form_fields_error_style, |
| 383 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe, |
| 384 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe, |
| 385 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-card-element.StripeElement, |
| 386 |
<?php if ( $use_chosen_js ) { ?> |
| 387 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-multi .chosen-choices, |
| 388 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-single .chosen-single, |
| 389 |
<?php } ?> |
| 390 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field :invalid { |
| 391 |
color:var(--text-color-error)<?php echo esc_html( $important ); ?>; |
| 392 |
background-color:var(--bg-color-error)<?php echo esc_html( $important ); ?>; |
| 393 |
border-color:var(--border-color-error)<?php echo esc_html( $important ); ?>; |
| 394 |
border-width:var(--border-width-error)<?php echo esc_html( $important ); ?>; |
| 395 |
border-style:var(--border-style-error)<?php echo esc_html( $important ); ?>; |
| 396 |
} |
| 397 |
|
| 398 |
<?php |
| 399 |
// Only include this style when the signatures add-on is active |
| 400 |
if ( class_exists( 'FrmSigField' ) ) : |
| 401 |
?> |
| 402 |
.<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{ |
| 403 |
border-color:var(--border-color-error) !important; |
| 404 |
} |
| 405 |
<?php |
| 406 |
endif; |
| 407 |
?> |
| 408 |
|
| 409 |
.<?php echo esc_html( $style_class ); ?> .frm_error, |
| 410 |
.<?php echo esc_html( $style_class ); ?> .frm_limit_error{ |
| 411 |
font-weight:var(--weight)<?php echo esc_html( $important ); ?>; |
| 412 |
color:var(--border-color-error)<?php echo esc_html( $important ); ?>; |
| 413 |
} |
| 414 |
|
| 415 |
.<?php echo esc_html( $style_class ); ?> .frm_error_style{ |
| 416 |
background-color:var(--error-bg)<?php echo esc_html( $important ); ?>; |
| 417 |
border:1px solid var(--error-border)<?php echo esc_html( $important ); ?>; |
| 418 |
border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; |
| 419 |
color:var(--error-text)<?php echo esc_html( $important ); ?>; |
| 420 |
font-size:var(--error-font-size)<?php echo esc_html( $important ); ?>; |
| 421 |
margin:0; |
| 422 |
margin-bottom:var(--field-margin); |
| 423 |
} |
| 424 |
|
| 425 |
<?php if ( $pro_is_installed ) { ?> |
| 426 |
.<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{ |
| 427 |
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)); |
| 428 |
} |
| 429 |
|
| 430 |
.<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{ |
| 431 |
background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; |
| 432 |
} |
| 433 |
<?php } ?> |
| 434 |
|
| 435 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input, |
| 436 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea, |
| 437 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total input, |
| 438 |
.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total textarea{ |
| 439 |
color: <?php echo esc_html( $text_color . $important ); ?>; |
| 440 |
background-color:transparent<?php echo esc_html( $important ); ?>; |
| 441 |
border:none<?php echo esc_html( $important ); ?>; |
| 442 |
display:inline<?php echo esc_html( $important ); ?>; |
| 443 |
width:auto<?php echo esc_html( $important ); ?>; |
| 444 |
padding:0<?php echo esc_html( $important ); ?>; |
| 445 |
} |
| 446 |
|
| 447 |
<?php echo strip_tags( FrmStylesController::get_custom_css( $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 448 |
<?php do_action( 'frm_output_single_style', $settings ); ?> |
| 449 |
|