| @@ -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 ); ?>; |
| @@ -340,9 +338,8 @@ | ||
| 340 | 338 | .with_frm_style select{ |
| 341 | 339 | width:<?php echo esc_html( $defaults['auto_width'] ); ?>; |
| 342 | 340 | width:var(--auto-width)<?php echo esc_html( $important ); ?>; |
| 343 | 341 | max-width:100%; |
| 344 | - background-position-y: center; | |
| 345 | 342 | } |
| 346 | 343 | |
| 347 | 344 | .with_frm_style input[disabled], |
| 348 | 345 | .with_frm_style select[disabled], |
| @@ -444,10 +441,10 @@ | ||
| 444 | 441 | |
| 445 | 442 | /* Floating labels */ |
| 446 | 443 | .with_frm_style .frm_inside_container { |
| 447 | 444 | position: relative; |
| 448 | - padding-top: 16px; | |
| 449 | - padding-top: calc(0.5 * var(--field-height)); | |
| 445 | + padding-top: 27px; | |
| 446 | + padding-top: calc(0.85 * var(--field-height)); | |
| 450 | 447 | } |
| 451 | 448 | |
| 452 | 449 | .with_frm_style .frm_inside_container > input, |
| 453 | 450 | .with_frm_style .frm_inside_container > select, |
| @@ -477,10 +474,10 @@ | ||
| 477 | 474 | .with_frm_style .frm_inside_container > label { |
| 478 | 475 | transition: all 0.3s ease-in; |
| 479 | 476 | |
| 480 | 477 | position: absolute; |
| 481 | - top: 17px; | |
| 482 | - top: calc(1px + .5 * var(--field-height)); | |
| 478 | + top: 28px; | |
| 479 | + top: calc(1px + 0.85 * var(--field-height)); | |
| 483 | 480 | left: 3px; |
| 484 | 481 | width: 100%; |
| 485 | 482 | |
| 486 | 483 | line-height: 1.3; |
| @@ -506,9 +503,8 @@ | ||
| 506 | 503 | |
| 507 | 504 | .with_frm_style .frm_inside_container.frm_label_float_top > label { |
| 508 | 505 | top: 0; |
| 509 | 506 | left: 0; |
| 510 | - padding: 0; | |
| 511 | 507 | font-size: 12px; |
| 512 | 508 | font-size: calc(0.85 * var(--field-font-size)); |
| 513 | 509 | } |
| 514 | 510 | |
| @@ -529,12 +525,10 @@ | ||
| 529 | 525 | .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { |
| 530 | 526 | opacity: 1; |
| 531 | 527 | transition: opacity 0.3s ease-in; |
| 532 | 528 | } |
| 533 | -/* End floating label */ | |
| 534 | 529 | |
| 535 | -.with_frm_style .frm_description, | |
| 536 | -.with_frm_style .frm_pro_max_limit_desc{ | |
| 530 | +.with_frm_style .frm_description{ | |
| 537 | 531 | clear:both; |
| 538 | 532 | } |
| 539 | 533 | |
| 540 | 534 | .with_frm_style input[type=number][readonly]{ |
| @@ -865,13 +859,9 @@ | ||
| 865 | 859 | margin:5px; |
| 866 | 860 | vertical-align:middle; |
| 867 | 861 | } |
| 868 | 862 | |
| 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 | -{ | |
| 863 | +.with_frm_style .frm_radio input[type=radio]{ | |
| 874 | 864 | border-radius:50%; |
| 875 | 865 | } |
| 876 | 866 | |
| 877 | 867 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| @@ -878,11 +868,8 @@ | ||
| 878 | 868 | border-radius:0; |
| 879 | 869 | } |
| 880 | 870 | |
| 881 | 871 | .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 | 872 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 886 | 873 | -webkit-appearance: none; |
| 887 | 874 | appearance: none; |
| 888 | 875 | background-color: var(--bg-color); |
| @@ -900,11 +887,8 @@ | ||
| 900 | 887 | padding: 0; |
| 901 | 888 | } |
| 902 | 889 | |
| 903 | 890 | .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 | 891 | .with_frm_style .frm_checkbox input[type=checkbox]:before { |
| 908 | 892 | content: ''; |
| 909 | 893 | width: 12px; |
| 910 | 894 | height: 12px; |
| @@ -1237,12 +1221,9 @@ | ||
| 1237 | 1221 | } |
| 1238 | 1222 | |
| 1239 | 1223 | .frm_grid .frm_error, |
| 1240 | 1224 | .frm_grid_first .frm_error, |
| 1241 | -.frm_grid_odd .frm_error, | |
| 1242 | -.frm_grid .frm_limit_error, | |
| 1243 | -.frm_grid_first .frm_limit_error, | |
| 1244 | -.frm_grid_odd .frm_limit_error{ | |
| 1225 | +.frm_grid_odd .frm_error{ | |
| 1245 | 1226 | display:none; |
| 1246 | 1227 | } |
| 1247 | 1228 | |
| 1248 | 1229 | .frm_grid:after, |
| @@ -1581,21 +1562,12 @@ | ||
| 1581 | 1562 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last { |
| 1582 | 1563 | margin-bottom: 0 !important; |
| 1583 | 1564 | } |
| 1584 | 1565 | |
| 1585 | -<?php | |
| 1586 | -FrmStylesHelper::maybe_include_font_icon_css(); | |
| 1566 | +/* Fonts */ | |
| 1567 | +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?> | |
| 1568 | +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?> | |
| 1587 | 1569 | |
| 1588 | -/** | |
| 1589 | - * Call action so other plugins can add additional CSS. | |
| 1590 | - * | |
| 1591 | - * @param array $args { | |
| 1592 | - * @type array $defaults | |
| 1593 | - * } | |
| 1594 | - */ | |
| 1595 | -do_action( 'frm_include_front_css', compact( 'defaults' ) ); | |
| 1596 | -?> | |
| 1597 | - | |
| 1598 | 1570 | /* Responsive */ |
| 1599 | 1571 | |
| 1600 | 1572 | @media only screen and (max-width: 900px) { |
| 1601 | 1573 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label, |
| @@ -1649,5 +1621,5 @@ | ||
| 1649 | 1621 | } |
| 1650 | 1622 | } |
| 1651 | 1623 | <?php |
| 1652 | 1624 | |
| 1653 | -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 1625 | +echo strip_tags( $defaults['custom_css'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |