| @@ -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 | |
| @@ -86,9 +85,9 @@ | ||
| 86 | 85 | background-color:transparent; |
| 87 | 86 | } |
| 88 | 87 | |
| 89 | 88 | .with_frm_style .frm_form_fields > fieldset{ |
| 90 | -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?> | |
| 89 | +<?php if ( ! empty( $defaults['fieldset'] ) ) { ?> | |
| 91 | 90 | border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>; |
| 92 | 91 | border-width:var(--fieldset)<?php echo esc_html( $important ); ?>; |
| 93 | 92 | <?php } ?> |
| 94 | 93 | border-style:solid; |
| @@ -328,9 +327,8 @@ | ||
| 328 | 327 | } |
| 329 | 328 | |
| 330 | 329 | .with_frm_style .wp-editor-container textarea{ |
| 331 | 330 | border:none<?php echo esc_html( $important ); ?>; |
| 332 | - box-shadow:none !important; | |
| 333 | 331 | } |
| 334 | 332 | |
| 335 | 333 | .with_frm_style .mceIframeContainer{ |
| 336 | 334 | background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; |
| @@ -444,10 +442,10 @@ | ||
| 444 | 442 | |
| 445 | 443 | /* Floating labels */ |
| 446 | 444 | .with_frm_style .frm_inside_container { |
| 447 | 445 | position: relative; |
| 448 | - padding-top: 16px; | |
| 449 | - padding-top: calc(0.5 * var(--field-height)); | |
| 446 | + padding-top: 27px; | |
| 447 | + padding-top: calc(0.85 * var(--field-height)); | |
| 450 | 448 | } |
| 451 | 449 | |
| 452 | 450 | .with_frm_style .frm_inside_container > input, |
| 453 | 451 | .with_frm_style .frm_inside_container > select, |
| @@ -477,10 +475,10 @@ | ||
| 477 | 475 | .with_frm_style .frm_inside_container > label { |
| 478 | 476 | transition: all 0.3s ease-in; |
| 479 | 477 | |
| 480 | 478 | position: absolute; |
| 481 | - top: 17px; | |
| 482 | - top: calc(1px + .5 * var(--field-height)); | |
| 479 | + top: 28px; | |
| 480 | + top: calc(1px + 0.85 * var(--field-height)); | |
| 483 | 481 | left: 3px; |
| 484 | 482 | width: 100%; |
| 485 | 483 | |
| 486 | 484 | line-height: 1.3; |
| @@ -506,9 +504,8 @@ | ||
| 506 | 504 | |
| 507 | 505 | .with_frm_style .frm_inside_container.frm_label_float_top > label { |
| 508 | 506 | top: 0; |
| 509 | 507 | left: 0; |
| 510 | - padding: 0; | |
| 511 | 508 | font-size: 12px; |
| 512 | 509 | font-size: calc(0.85 * var(--field-font-size)); |
| 513 | 510 | } |
| 514 | 511 | |
| @@ -529,9 +526,8 @@ | ||
| 529 | 526 | .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { |
| 530 | 527 | opacity: 1; |
| 531 | 528 | transition: opacity 0.3s ease-in; |
| 532 | 529 | } |
| 533 | -/* End floating label */ | |
| 534 | 530 | |
| 535 | 531 | .with_frm_style .frm_description, |
| 536 | 532 | .with_frm_style .frm_pro_max_limit_desc{ |
| 537 | 533 | clear:both; |
| @@ -865,13 +861,9 @@ | ||
| 865 | 861 | margin:5px; |
| 866 | 862 | vertical-align:middle; |
| 867 | 863 | } |
| 868 | 864 | |
| 869 | -.with_frm_style .frm_radio input[type=radio] | |
| 870 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 871 | -, .with_frm_style .frm_scale input[type=radio] | |
| 872 | -<?php endif; ?> | |
| 873 | -{ | |
| 865 | +.with_frm_style .frm_radio input[type=radio]{ | |
| 874 | 866 | border-radius:50%; |
| 875 | 867 | } |
| 876 | 868 | |
| 877 | 869 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| @@ -878,11 +870,8 @@ | ||
| 878 | 870 | border-radius:0; |
| 879 | 871 | } |
| 880 | 872 | |
| 881 | 873 | .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 | 874 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 886 | 875 | -webkit-appearance: none; |
| 887 | 876 | appearance: none; |
| 888 | 877 | background-color: var(--bg-color); |
| @@ -900,11 +889,8 @@ | ||
| 900 | 889 | padding: 0; |
| 901 | 890 | } |
| 902 | 891 | |
| 903 | 892 | .with_frm_style .frm_radio input[type=radio]:before, |
| 904 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 905 | -.with_frm_style .frm_scale input[type=radio]:before, | |
| 906 | -<?php endif; ?> | |
| 907 | 893 | .with_frm_style .frm_checkbox input[type=checkbox]:before { |
| 908 | 894 | content: ''; |
| 909 | 895 | width: 12px; |
| 910 | 896 | height: 12px; |
| @@ -1649,5 +1635,5 @@ | ||
| 1649 | 1635 | } |
| 1650 | 1636 | } |
| 1651 | 1637 | <?php |
| 1652 | 1638 | |
| 1653 | -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 1639 | +echo strip_tags( $defaults['custom_css'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |