| @@ -68,11 +68,13 @@ | ||
| 68 | 68 | padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>; |
| 69 | 69 | <?php } ?> |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | -form input.frm_verify{ | |
| 73 | - position:absolute; | |
| 74 | - left:-3000px; | |
| 72 | +form .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> { | |
| 73 | + overflow: hidden; | |
| 74 | + width: 0; | |
| 75 | + height: 0; | |
| 76 | + position: absolute; | |
| 75 | 77 | } |
| 76 | 78 | |
| 77 | 79 | .with_frm_style fieldset{ |
| 78 | 80 | min-width:0; |
| @@ -235,11 +237,8 @@ | ||
| 235 | 237 | color:<?php echo esc_html( $defaults['text_color'] ); ?>; |
| 236 | 238 | color:var(--text-color)<?php echo esc_html( $important ); ?>; |
| 237 | 239 | background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; |
| 238 | 240 | background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; |
| 239 | -<?php if ( ! empty( $important ) ) { ?> | |
| 240 | - background-image:none !important; | |
| 241 | -<?php } ?> | |
| 242 | 241 | border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; |
| 243 | 242 | border-color:var(--border-color)<?php echo esc_html( $important ); ?>; |
| 244 | 243 | border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>; |
| 245 | 244 | border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; |
| @@ -264,8 +263,39 @@ | ||
| 264 | 263 | font-weight:var(--field-weight); |
| 265 | 264 | box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; |
| 266 | 265 | } |
| 267 | 266 | |
| 267 | +<?php if ( ! empty( $important ) ) { ?> | |
| 268 | +.with_frm_style input[type=text], | |
| 269 | +.with_frm_style input[type=password], | |
| 270 | +.with_frm_style input[type=email], | |
| 271 | +.with_frm_style input[type=number], | |
| 272 | +.with_frm_style input[type=url], | |
| 273 | +.with_frm_style input[type=tel], | |
| 274 | +.with_frm_style input[type=phone], | |
| 275 | +.with_frm_style input[type=search], | |
| 276 | +.with_frm_style textarea, | |
| 277 | +.frm_form_fields_style, | |
| 278 | +.with_frm_style .frm_scroll_box .frm_opt_container, | |
| 279 | +.frm_form_fields_active_style, | |
| 280 | +.frm_form_fields_error_style, | |
| 281 | +.with_frm_style .frm-card-element.StripeElement, | |
| 282 | +.with_frm_style .chosen-container-multi .chosen-choices, | |
| 283 | +.with_frm_style .chosen-container-single .chosen-single{ | |
| 284 | + background-image:none !important; | |
| 285 | +} | |
| 286 | +<?php } ?> | |
| 287 | + | |
| 288 | +.with_frm_style select option { | |
| 289 | + color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 290 | + color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 291 | +} | |
| 292 | + | |
| 293 | +.with_frm_style select option.frm-select-placeholder { | |
| 294 | + color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 295 | + color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 296 | +} | |
| 297 | + | |
| 268 | 298 | .with_frm_style input[type=radio], |
| 269 | 299 | .with_frm_style input[type=checkbox]{ |
| 270 | 300 | border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>; |
| 271 | 301 | border-color:var(--border-color)<?php echo esc_html( $important ); ?>; |
| @@ -287,10 +317,10 @@ | ||
| 287 | 317 | .with_frm_style input[type=file], |
| 288 | 318 | .with_frm_style input[type=search], |
| 289 | 319 | .with_frm_style select, |
| 290 | 320 | .with_frm_style .frm-card-element.StripeElement{ |
| 291 | - height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 292 | - height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 321 | + min-height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 322 | + min-height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 293 | 323 | line-height:1.3<?php echo esc_html( $important ); ?>; |
| 294 | 324 | } |
| 295 | 325 | |
| 296 | 326 | .with_frm_style select[multiple=multiple]{ |
| @@ -340,9 +370,9 @@ | ||
| 340 | 370 | .with_frm_style select{ |
| 341 | 371 | width:<?php echo esc_html( $defaults['auto_width'] ); ?>; |
| 342 | 372 | width:var(--auto-width)<?php echo esc_html( $important ); ?>; |
| 343 | 373 | max-width:100%; |
| 344 | - background-position-y: center; | |
| 374 | + background-position-y: calc(50% + 3px); | |
| 345 | 375 | } |
| 346 | 376 | |
| 347 | 377 | .with_frm_style input[disabled], |
| 348 | 378 | .with_frm_style select[disabled], |
| @@ -657,8 +687,12 @@ | ||
| 657 | 687 | .with_frm_style.frm_center_submit .frm_submit{ |
| 658 | 688 | text-align:center; |
| 659 | 689 | } |
| 660 | 690 | |
| 691 | +.with_frm_style.frm_center_submit .frm_flex.frm_submit { | |
| 692 | + justify-content: center; | |
| 693 | +} | |
| 694 | + | |
| 661 | 695 | .with_frm_style .frm_inline_success .frm_submit{ |
| 662 | 696 | display: flex; |
| 663 | 697 | flex-direction: row; |
| 664 | 698 | align-items: center; |
| @@ -743,8 +777,17 @@ | ||
| 743 | 777 | -o-animation: spin 2s linear infinite; |
| 744 | 778 | animation: spin 2s linear infinite; |
| 745 | 779 | } |
| 746 | 780 | |
| 781 | +.with_frm_style .frm_submit.frm_flex { | |
| 782 | + align-items: center; | |
| 783 | + gap: 2%; | |
| 784 | +} | |
| 785 | + | |
| 786 | +.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page { | |
| 787 | + order: -1; | |
| 788 | +} | |
| 789 | + | |
| 747 | 790 | <?php |
| 748 | 791 | foreach ( $styles as $style ) { |
| 749 | 792 | include( dirname( __FILE__ ) . '/_single_theme.css.php' ); |
| 750 | 793 | unset( $style ); |
| @@ -865,9 +908,13 @@ | ||
| 865 | 908 | margin:5px; |
| 866 | 909 | vertical-align:middle; |
| 867 | 910 | } |
| 868 | 911 | |
| 869 | -.with_frm_style .frm_radio input[type=radio]{ | |
| 912 | +.with_frm_style .frm_radio input[type=radio] | |
| 913 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 914 | +, .with_frm_style .frm_scale input[type=radio] | |
| 915 | +<?php endif; ?> | |
| 916 | +{ | |
| 870 | 917 | border-radius:50%; |
| 871 | 918 | } |
| 872 | 919 | |
| 873 | 920 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| @@ -874,8 +921,11 @@ | ||
| 874 | 921 | border-radius:0; |
| 875 | 922 | } |
| 876 | 923 | |
| 877 | 924 | .with_frm_style .frm_radio input[type=radio], |
| 925 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 926 | +.with_frm_style .frm_scale input[type=radio], | |
| 927 | +<?php endif; ?> | |
| 878 | 928 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 879 | 929 | -webkit-appearance: none; |
| 880 | 930 | appearance: none; |
| 881 | 931 | background-color: var(--bg-color); |
| @@ -893,8 +943,11 @@ | ||
| 893 | 943 | padding: 0; |
| 894 | 944 | } |
| 895 | 945 | |
| 896 | 946 | .with_frm_style .frm_radio input[type=radio]:before, |
| 947 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 948 | +.with_frm_style .frm_scale input[type=radio]:before, | |
| 949 | +<?php endif; ?> | |
| 897 | 950 | .with_frm_style .frm_checkbox input[type=checkbox]:before { |
| 898 | 951 | content: ''; |
| 899 | 952 | width: 12px; |
| 900 | 953 | height: 12px; |