| @@ -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], |
| @@ -879,9 +909,9 @@ | ||
| 879 | 909 | } |
| 880 | 910 | |
| 881 | 911 | .with_frm_style .frm_radio input[type=radio], |
| 882 | 912 | <?php if ( FrmAppHelper::pro_is_installed() ) : ?> |
| 883 | -.with_frm_style .frm_scale input[type=radio], | |
| 913 | +.with_frm_style .frm_scale input[type=radio], | |
| 884 | 914 | <?php endif; ?> |
| 885 | 915 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 886 | 916 | -webkit-appearance: none; |
| 887 | 917 | appearance: none; |