| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | header( 'Content-type: text/css' ); |
| 8 | 8 | |
| 9 | 9 | if ( ! empty( $css ) ) { |
| 10 | 10 | echo strip_tags( $css, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 11 | - FrmStylesController::maybe_hide_sample_form_error_message(); | |
| 12 | 11 | die(); |
| 13 | 12 | } |
| 14 | 13 | } |
| 15 | 14 | |
| @@ -68,13 +67,11 @@ | ||
| 68 | 67 | padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>; |
| 69 | 68 | <?php } ?> |
| 70 | 69 | } |
| 71 | 70 | |
| 72 | -form .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> { | |
| 73 | - overflow: hidden; | |
| 74 | - width: 0; | |
| 75 | - height: 0; | |
| 76 | - position: absolute; | |
| 71 | +form input.frm_verify{ | |
| 72 | + position:absolute; | |
| 73 | + left:-3000px; | |
| 77 | 74 | } |
| 78 | 75 | |
| 79 | 76 | .with_frm_style fieldset{ |
| 80 | 77 | min-width:0; |
| @@ -88,9 +85,9 @@ | ||
| 88 | 85 | background-color:transparent; |
| 89 | 86 | } |
| 90 | 87 | |
| 91 | 88 | .with_frm_style .frm_form_fields > fieldset{ |
| 92 | -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?> | |
| 89 | +<?php if ( ! empty( $defaults['fieldset'] ) ) { ?> | |
| 93 | 90 | border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>; |
| 94 | 91 | border-width:var(--fieldset)<?php echo esc_html( $important ); ?>; |
| 95 | 92 | <?php } ?> |
| 96 | 93 | border-style:solid; |
| @@ -266,18 +263,8 @@ | ||
| 266 | 263 | font-weight:var(--field-weight); |
| 267 | 264 | box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; |
| 268 | 265 | } |
| 269 | 266 | |
| 270 | -.with_frm_style select option { | |
| 271 | - color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 272 | - color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 273 | -} | |
| 274 | - | |
| 275 | -.with_frm_style select option.frm-select-placeholder { | |
| 276 | - color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 277 | - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 278 | -} | |
| 279 | - | |
| 280 | 267 | .with_frm_style input[type=radio], |
| 281 | 268 | .with_frm_style input[type=checkbox]{ |
| 282 | 269 | border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>; |
| 283 | 270 | border-color:var(--border-color)<?php echo esc_html( $important ); ?>; |
| @@ -299,10 +286,10 @@ | ||
| 299 | 286 | .with_frm_style input[type=file], |
| 300 | 287 | .with_frm_style input[type=search], |
| 301 | 288 | .with_frm_style select, |
| 302 | 289 | .with_frm_style .frm-card-element.StripeElement{ |
| 303 | - min-height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 304 | - min-height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 290 | + height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 291 | + height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 305 | 292 | line-height:1.3<?php echo esc_html( $important ); ?>; |
| 306 | 293 | } |
| 307 | 294 | |
| 308 | 295 | .with_frm_style select[multiple=multiple]{ |
| @@ -340,9 +327,8 @@ | ||
| 340 | 327 | } |
| 341 | 328 | |
| 342 | 329 | .with_frm_style .wp-editor-container textarea{ |
| 343 | 330 | border:none<?php echo esc_html( $important ); ?>; |
| 344 | - box-shadow:none !important; | |
| 345 | 331 | } |
| 346 | 332 | |
| 347 | 333 | .with_frm_style .mceIframeContainer{ |
| 348 | 334 | background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; |
| @@ -877,13 +863,9 @@ | ||
| 877 | 863 | margin:5px; |
| 878 | 864 | vertical-align:middle; |
| 879 | 865 | } |
| 880 | 866 | |
| 881 | -.with_frm_style .frm_radio input[type=radio] | |
| 882 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 883 | -, .with_frm_style .frm_scale input[type=radio] | |
| 884 | -<?php endif; ?> | |
| 885 | -{ | |
| 867 | +.with_frm_style .frm_radio input[type=radio]{ | |
| 886 | 868 | border-radius:50%; |
| 887 | 869 | } |
| 888 | 870 | |
| 889 | 871 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| @@ -890,11 +872,8 @@ | ||
| 890 | 872 | border-radius:0; |
| 891 | 873 | } |
| 892 | 874 | |
| 893 | 875 | .with_frm_style .frm_radio input[type=radio], |
| 894 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 895 | -.with_frm_style .frm_scale input[type=radio], | |
| 896 | -<?php endif; ?> | |
| 897 | 876 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 898 | 877 | -webkit-appearance: none; |
| 899 | 878 | appearance: none; |
| 900 | 879 | background-color: var(--bg-color); |
| @@ -912,11 +891,8 @@ | ||
| 912 | 891 | padding: 0; |
| 913 | 892 | } |
| 914 | 893 | |
| 915 | 894 | .with_frm_style .frm_radio input[type=radio]:before, |
| 916 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 917 | -.with_frm_style .frm_scale input[type=radio]:before, | |
| 918 | -<?php endif; ?> | |
| 919 | 895 | .with_frm_style .frm_checkbox input[type=checkbox]:before { |
| 920 | 896 | content: ''; |
| 921 | 897 | width: 12px; |
| 922 | 898 | height: 12px; |
| @@ -1661,5 +1637,5 @@ | ||
| 1661 | 1637 | } |
| 1662 | 1638 | } |
| 1663 | 1639 | <?php |
| 1664 | 1640 | |
| 1665 | -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 1641 | +echo strip_tags( $defaults['custom_css'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |