| @@ -65,8 +65,15 @@ | ||
| 65 | 65 | padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>; |
| 66 | 66 | <?php } ?> |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | +form .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> { | |
| 70 | + overflow: hidden; | |
| 71 | + width: 0; | |
| 72 | + height: 0; | |
| 73 | + position: absolute; | |
| 74 | +} | |
| 75 | + | |
| 69 | 76 | .with_frm_style fieldset{ |
| 70 | 77 | min-width:0; |
| 71 | 78 | display: block; /* Override 2021 theme */ |
| 72 | 79 | } |
| @@ -441,13 +448,26 @@ | ||
| 441 | 448 | .with_frm_style .frm_inside_container > textarea { |
| 442 | 449 | display: block; |
| 443 | 450 | } |
| 444 | 451 | |
| 452 | +/* These do not work if they are combined */ | |
| 445 | 453 | .with_frm_style input::placeholder, |
| 446 | 454 | .with_frm_style textarea::placeholder { |
| 447 | 455 | font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; |
| 448 | 456 | } |
| 449 | 457 | |
| 458 | +.with_frm_style .frm_inside_container > input::-moz-placeholder, | |
| 459 | +.with_frm_style .frm_inside_container > textarea::-moz-placeholder { | |
| 460 | + opacity: 0 !important; | |
| 461 | + transition: opacity 0.3s ease-in; | |
| 462 | +} | |
| 463 | + | |
| 464 | +.with_frm_style .frm_inside_container > input:-ms-input-placeholder, | |
| 465 | +.with_frm_style .frm_inside_container > textarea:-ms-input-placeholder { | |
| 466 | + opacity: 0; | |
| 467 | + transition: opacity 0.3s ease-in; | |
| 468 | +} | |
| 469 | + | |
| 450 | 470 | .with_frm_style .frm_inside_container > input::placeholder, |
| 451 | 471 | .with_frm_style .frm_inside_container > textarea::placeholder { |
| 452 | 472 | opacity: 0; |
| 453 | 473 | transition: opacity 0.3s ease-in; |
| @@ -489,8 +509,21 @@ | ||
| 489 | 509 | font-size: 12px; |
| 490 | 510 | font-size: calc(0.85 * var(--field-font-size)); |
| 491 | 511 | } |
| 492 | 512 | |
| 513 | +/* These do not work if they are combined */ | |
| 514 | +.with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder, | |
| 515 | +.with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder { | |
| 516 | + opacity: 1 !important; | |
| 517 | + transition: opacity 0.3s ease-in; | |
| 518 | +} | |
| 519 | + | |
| 520 | +.with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder, | |
| 521 | +.with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder { | |
| 522 | + opacity: 1; | |
| 523 | + transition: opacity 0.3s ease-in; | |
| 524 | +} | |
| 525 | + | |
| 493 | 526 | .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder, |
| 494 | 527 | .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { |
| 495 | 528 | opacity: 1; |
| 496 | 529 | transition: opacity 0.3s ease-in; |
| @@ -542,9 +575,9 @@ | ||
| 542 | 575 | white-space:nowrap; |
| 543 | 576 | } |
| 544 | 577 | |
| 545 | 578 | .with_frm_style .frm_button{ |
| 546 | - text-decoration:none !important; | |
| 579 | + text-decoration:none !important;; | |
| 547 | 580 | border:1px solid #eee; |
| 548 | 581 | display:inline-block; |
| 549 | 582 | <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?> |
| 550 | 583 | padding: var(--submit-padding)<?php echo esc_html( $important ); ?>; |
| @@ -837,10 +870,10 @@ | ||
| 837 | 870 | { |
| 838 | 871 | border-radius:50%; |
| 839 | 872 | } |
| 840 | 873 | |
| 841 | -.with_frm_style .frm_checkbox input[type=checkbox] { | |
| 842 | - border-radius: calc(var(--border-radius) / 2) !important; | |
| 874 | +.with_frm_style .frm_checkbox input[type=checkbox]{ | |
| 875 | + border-radius: calc(var(--border-radius) / 2); | |
| 843 | 876 | } |
| 844 | 877 | |
| 845 | 878 | .with_frm_style .frm_radio input[type=radio], |
| 846 | 879 | <?php if ( $pro_is_installed ) : ?> |
| @@ -947,16 +980,12 @@ | ||
| 947 | 980 | padding:15px; |
| 948 | 981 | } |
| 949 | 982 | |
| 950 | 983 | .with_frm_style .frm_message p { |
| 984 | + margin-bottom: 5px; | |
| 951 | 985 | color: var(--success-text-color)<?php echo esc_html( $important ); ?>; |
| 952 | - margin-bottom: 0; | |
| 953 | 986 | } |
| 954 | 987 | |
| 955 | -.with_frm_style .frm_message > p:first-of-type { | |
| 956 | - margin-top: 0; | |
| 957 | -} | |
| 958 | - | |
| 959 | 988 | .with_frm_style .frm_message, |
| 960 | 989 | .frm_success_style { |
| 961 | 990 | margin: 5px 0 15px; |
| 962 | 991 | border: 1px solid var(--success-border-color); |
| @@ -1415,18 +1444,8 @@ | ||
| 1415 | 1444 | .frm_form_field.frm_left_container .frm_opt_container{ |
| 1416 | 1445 | padding-top:4px; |
| 1417 | 1446 | } |
| 1418 | 1447 | |
| 1419 | -.with_frm_style .frm_left_container > select.auto_width, | |
| 1420 | -.with_frm_style .frm_right_container > select.auto_width { | |
| 1421 | - width: max-content<?php echo esc_html( $important ); ?>; | |
| 1422 | -} | |
| 1423 | - | |
| 1424 | -.with_frm_style .frm_right_container > .frm_primary_label, | |
| 1425 | -.with_frm_style .frm_right_container > select.auto_width { | |
| 1426 | - margin-left: auto<?php echo esc_html( $important ); ?>; | |
| 1427 | -} | |
| 1428 | - | |
| 1429 | 1448 | .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label, |
| 1430 | 1449 | .with_frm_style .frm_inline_container.frm_grid .frm_primary_label, |
| 1431 | 1450 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label, |
| 1432 | 1451 | .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container, |
| @@ -1557,9 +1576,8 @@ | ||
| 1557 | 1576 | /** |
| 1558 | 1577 | * Call action so other plugins can add additional CSS. |
| 1559 | 1578 | * |
| 1560 | 1579 | * @param array $args { |
| 1561 | - * | |
| 1562 | 1580 | * @type array $defaults |
| 1563 | 1581 | * } |
| 1564 | 1582 | */ |
| 1565 | 1583 | do_action( 'frm_include_front_css', compact( 'defaults' ) ); |
| @@ -1615,15 +1633,8 @@ | ||
| 1615 | 1633 | .with_frm_style .g-recaptcha iframe, |
| 1616 | 1634 | .with_frm_style .frm-g-recaptcha iframe{ |
| 1617 | 1635 | width:100%; |
| 1618 | 1636 | } |
| 1619 | -} | |
| 1620 | - | |
| 1621 | -.frm-card-element .sq-card-wrapper .sq-card-message { | |
| 1622 | - margin-bottom: 0; | |
| 1623 | -} | |
| 1624 | -.frm-card-errors:empty { | |
| 1625 | - margin: 0; | |
| 1626 | 1637 | } |
| 1627 | 1638 | <?php |
| 1628 | 1639 | |
| 1629 | 1640 | echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |