| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | if ( ! isset( $saving ) ) { |
| 7 | 7 | header( 'Content-type: text/css' ); |
| 8 | 8 | |
| 9 | 9 | if ( ! empty( $css ) ) { |
| 10 | - echo strip_tags( FrmStylesHelper::maybe_scope_custom_css_in_cached_output( $css ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 10 | + echo strip_tags( $css, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 11 | 11 | FrmStylesController::maybe_hide_sample_form_error_message(); |
| 12 | 12 | die(); |
| 13 | 13 | } |
| 14 | 14 | } |
| @@ -18,19 +18,13 @@ | ||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | $styles = $frm_style->get_all(); |
| 21 | 21 | $default_style = $frm_style->get_default_style( $styles ); |
| 22 | +$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 23 | +$important = empty( $defaults['important_style'] ) ? '' : ' !important'; | |
| 22 | 24 | $pro_is_installed = FrmAppHelper::pro_is_installed(); |
| 25 | +$use_chosen_js = FrmStylesHelper::use_chosen_js(); | |
| 23 | 26 | |
| 24 | -if ( ! $pro_is_installed && $default_style ) { | |
| 25 | - // Per-form styles are a Pro feature, so only the default style is ever used without Pro. | |
| 26 | - $styles = array( $default_style->ID => $default_style ); | |
| 27 | -} | |
| 28 | - | |
| 29 | -$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 30 | -$important = ! empty( $defaults['important_style'] ) ? ' !important' : ''; | |
| 31 | -$use_chosen_js = FrmStylesHelper::use_chosen_js(); | |
| 32 | - | |
| 33 | 27 | ?> |
| 34 | 28 | .with_frm_style{ |
| 35 | 29 | <?php FrmStylesHelper::output_vars( $defaults ); ?> |
| 36 | 30 | } |
| @@ -71,8 +65,15 @@ | ||
| 71 | 65 | padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>; |
| 72 | 66 | <?php } ?> |
| 73 | 67 | } |
| 74 | 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 | + | |
| 75 | 76 | .with_frm_style fieldset{ |
| 76 | 77 | min-width:0; |
| 77 | 78 | display: block; /* Override 2021 theme */ |
| 78 | 79 | } |
| @@ -148,14 +149,13 @@ | ||
| 148 | 149 | color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; |
| 149 | 150 | <?php } ?> |
| 150 | 151 | } |
| 151 | 152 | |
| 153 | +<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> | |
| 152 | 154 | .with_frm_style .frm_form_field.frm_html_container{ |
| 153 | -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> | |
| 154 | 155 | font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; |
| 156 | +} | |
| 155 | 157 | <?php } ?> |
| 156 | - overflow-wrap: break-word<?php echo esc_html( $important ); ?>; | |
| 157 | -} | |
| 158 | 158 | |
| 159 | 159 | .with_frm_style .frm_form_field .frm_show_it{ |
| 160 | 160 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 161 | 161 | font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; |
| @@ -198,14 +198,8 @@ | ||
| 198 | 198 | vertical-align:top; |
| 199 | 199 | height:auto; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | -<?php if ( $use_chosen_js ) { ?> | |
| 203 | -.with_frm_style .chosen-container-multi .chosen-choices, | |
| 204 | -.with_frm_style .chosen-container-single .chosen-single, | |
| 205 | -<?php } elseif ( $pro_is_installed ) { ?> | |
| 206 | -.with_frm_style .frm_slimselect.ss-main, | |
| 207 | -<?php } ?> | |
| 208 | 202 | .with_frm_style input[type=text], |
| 209 | 203 | .with_frm_style input[type=password], |
| 210 | 204 | .with_frm_style input[type=email], |
| 211 | 205 | .with_frm_style input[type=number], |
| @@ -218,9 +212,14 @@ | ||
| 218 | 212 | .frm_form_fields_style, |
| 219 | 213 | .with_frm_style .frm_scroll_box .frm_opt_container, |
| 220 | 214 | .frm_form_fields_active_style, |
| 221 | 215 | .frm_form_fields_error_style, |
| 222 | -.with_frm_style .frm-card-element.StripeElement { | |
| 216 | +.with_frm_style .frm-card-element.StripeElement, | |
| 217 | +<?php if ( $use_chosen_js ) { ?> | |
| 218 | +.with_frm_style .chosen-container-multi .chosen-choices, | |
| 219 | +.with_frm_style .chosen-container-single .chosen-single, | |
| 220 | +<?php } ?> | |
| 221 | +.with_frm_style .frm_slimselect.ss-main { | |
| 223 | 222 | color: var(--text-color)<?php echo esc_html( $important ); ?>; |
| 224 | 223 | background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; |
| 225 | 224 | border-color: var(--border-color)<?php echo esc_html( $important ); ?>; |
| 226 | 225 | border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; |
| @@ -234,14 +233,9 @@ | ||
| 234 | 233 | outline: none<?php echo esc_html( $important ); ?>; |
| 235 | 234 | font-weight: var(--field-weight); |
| 236 | 235 | } |
| 237 | 236 | |
| 238 | -.with_frm_style input:-webkit-autofill:focus { | |
| 239 | - /* Prevent the user agent autofill background color from taking effect on focus. */ | |
| 240 | - transition: background-color 5000s ease-in-out 0s<?php echo esc_html( $important ); ?>; | |
| 241 | -} | |
| 242 | - | |
| 243 | -<?php if ( $important ) : ?> | |
| 237 | +<?php if ( ! empty( $important ) ) : ?> | |
| 244 | 238 | <?php if ( $use_chosen_js ) { ?> |
| 245 | 239 | .with_frm_style .chosen-container-multi .chosen-choices, |
| 246 | 240 | .with_frm_style .chosen-container-single .chosen-single, |
| 247 | 241 | <?php } ?> |
| @@ -332,9 +326,8 @@ | ||
| 332 | 326 | .with_frm_style input[type=file].frm_transparent{ |
| 333 | 327 | color:transparent<?php echo esc_html( $important ); ?>; |
| 334 | 328 | } |
| 335 | 329 | |
| 336 | -<?php if ( $pro_is_installed ) { ?> | |
| 337 | 330 | .with_frm_style .wp-editor-wrap{ |
| 338 | 331 | width: var(--field-width)<?php echo esc_html( $important ); ?>; |
| 339 | 332 | max-width:100%; |
| 340 | 333 | } |
| @@ -346,9 +339,8 @@ | ||
| 346 | 339 | |
| 347 | 340 | .with_frm_style .mceIframeContainer{ |
| 348 | 341 | background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; |
| 349 | 342 | } |
| 350 | -<?php } ?> | |
| 351 | 343 | |
| 352 | 344 | .with_frm_style select{ |
| 353 | 345 | width: var(--auto-width)<?php echo esc_html( $important ); ?>; |
| 354 | 346 | max-width:100%; |
| @@ -428,13 +420,11 @@ | ||
| 428 | 420 | .frm_none_container .frm_primary_label{ |
| 429 | 421 | display:none; |
| 430 | 422 | } |
| 431 | 423 | |
| 432 | -<?php if ( $pro_is_installed ) { ?> | |
| 433 | 424 | .with_frm_style .frm_section_heading.frm_hide_section{ |
| 434 | 425 | margin-top:0 !important; |
| 435 | 426 | } |
| 436 | -<?php } ?> | |
| 437 | 427 | |
| 438 | 428 | .with_frm_style .frm_hidden_container .frm_primary_label, |
| 439 | 429 | .with_frm_style .frm_pos_hidden, |
| 440 | 430 | .frm_hidden_container .frm_primary_label{ |
| @@ -458,13 +448,26 @@ | ||
| 458 | 448 | .with_frm_style .frm_inside_container > textarea { |
| 459 | 449 | display: block; |
| 460 | 450 | } |
| 461 | 451 | |
| 452 | +/* These do not work if they are combined */ | |
| 462 | 453 | .with_frm_style input::placeholder, |
| 463 | 454 | .with_frm_style textarea::placeholder { |
| 464 | 455 | font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; |
| 465 | 456 | } |
| 466 | 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 | + | |
| 467 | 470 | .with_frm_style .frm_inside_container > input::placeholder, |
| 468 | 471 | .with_frm_style .frm_inside_container > textarea::placeholder { |
| 469 | 472 | opacity: 0; |
| 470 | 473 | transition: opacity 0.3s ease-in; |
| @@ -506,8 +509,21 @@ | ||
| 506 | 509 | font-size: 12px; |
| 507 | 510 | font-size: calc(0.85 * var(--field-font-size)); |
| 508 | 511 | } |
| 509 | 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 | + | |
| 510 | 526 | .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder, |
| 511 | 527 | .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { |
| 512 | 528 | opacity: 1; |
| 513 | 529 | transition: opacity 0.3s ease-in; |
| @@ -518,9 +534,9 @@ | ||
| 518 | 534 | .with_frm_style .frm_pro_max_limit_desc{ |
| 519 | 535 | clear:both; |
| 520 | 536 | } |
| 521 | 537 | |
| 522 | -.with_frm_style input[type=number][readonly] { | |
| 538 | +.with_frm_style input[type=number][readonly]{ | |
| 523 | 539 | -moz-appearance: textfield; |
| 524 | 540 | } |
| 525 | 541 | |
| 526 | 542 | .with_frm_style select[multiple="multiple"]{ |
| @@ -527,9 +543,8 @@ | ||
| 527 | 543 | height:auto; |
| 528 | 544 | line-height:normal; |
| 529 | 545 | } |
| 530 | 546 | |
| 531 | -<?php if ( $pro_is_installed ) { ?> | |
| 532 | 547 | .with_frm_style .frm_catlevel_2, |
| 533 | 548 | .with_frm_style .frm_catlevel_3, |
| 534 | 549 | .with_frm_style .frm_catlevel_4, |
| 535 | 550 | .with_frm_style .frm_catlevel_5{ |
| @@ -534,11 +549,9 @@ | ||
| 534 | 549 | .with_frm_style .frm_catlevel_4, |
| 535 | 550 | .with_frm_style .frm_catlevel_5{ |
| 536 | 551 | margin-left:18px; |
| 537 | 552 | } |
| 538 | -<?php } ?> | |
| 539 | 553 | |
| 540 | -<?php if ( $pro_is_installed ) { ?> | |
| 541 | 554 | .with_frm_style .wp-editor-container{ |
| 542 | 555 | border:1px solid #e5e5e5; |
| 543 | 556 | } |
| 544 | 557 | |
| @@ -548,9 +561,8 @@ | ||
| 548 | 561 | |
| 549 | 562 | .with_frm_style .wp-editor-container textarea{ |
| 550 | 563 | border:none; |
| 551 | 564 | } |
| 552 | -<?php } ?> | |
| 553 | 565 | |
| 554 | 566 | .with_frm_style .auto_width #loginform input, |
| 555 | 567 | .with_frm_style .auto_width input, |
| 556 | 568 | .with_frm_style input.auto_width, |
| @@ -558,16 +570,14 @@ | ||
| 558 | 570 | .with_frm_style textarea.auto_width{ |
| 559 | 571 | width:auto<?php echo esc_html( $important ); ?>; |
| 560 | 572 | } |
| 561 | 573 | |
| 562 | -<?php if ( $pro_is_installed ) { ?> | |
| 563 | 574 | .with_frm_style .frm_repeat_buttons{ |
| 564 | 575 | white-space:nowrap; |
| 565 | 576 | } |
| 566 | -<?php } ?> | |
| 567 | 577 | |
| 568 | 578 | .with_frm_style .frm_button{ |
| 569 | - text-decoration:none !important; | |
| 579 | + text-decoration:none !important;; | |
| 570 | 580 | border:1px solid #eee; |
| 571 | 581 | display:inline-block; |
| 572 | 582 | <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?> |
| 573 | 583 | padding: var(--submit-padding)<?php echo esc_html( $important ); ?>; |
| @@ -574,8 +584,9 @@ | ||
| 574 | 584 | <?php } else { ?> |
| 575 | 585 | padding:5px; |
| 576 | 586 | <?php } ?> |
| 577 | 587 | <?php if ( ! empty( $defaults['border_radius'] ) ) { ?> |
| 588 | + border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 578 | 589 | border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; |
| 579 | 590 | <?php } ?> |
| 580 | 591 | <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?> |
| 581 | 592 | font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>; |
| @@ -660,11 +671,9 @@ | ||
| 660 | 671 | .with_frm_style.frm_center_submit .frm_submit button{ |
| 661 | 672 | margin-bottom:8px !important; |
| 662 | 673 | } |
| 663 | 674 | |
| 664 | -<?php if ( $pro_is_installed ) { ?> | |
| 665 | 675 | .with_frm_style .frm-edit-page-btn, |
| 666 | -<?php } ?> | |
| 667 | 676 | .with_frm_style .frm_submit input[type=submit], |
| 668 | 677 | .with_frm_style .frm_submit input[type=button], |
| 669 | 678 | .with_frm_style .frm_submit button{ |
| 670 | 679 | -webkit-appearance: none; |
| @@ -681,11 +690,9 @@ | ||
| 681 | 690 | /* keep this for reverse compatibility for old HTML */ |
| 682 | 691 | visibility:visible !important; |
| 683 | 692 | } |
| 684 | 693 | |
| 685 | -<?php if ( $pro_is_installed ) { ?> | |
| 686 | 694 | .with_frm_style .frm_loading_prev .frm_prev_page, |
| 687 | -<?php } ?> | |
| 688 | 695 | .with_frm_style .frm_loading_form .frm_button_submit { |
| 689 | 696 | position: relative; |
| 690 | 697 | color: transparent !important; |
| 691 | 698 | text-shadow: none !important; |
| @@ -690,13 +697,11 @@ | ||
| 690 | 697 | color: transparent !important; |
| 691 | 698 | text-shadow: none !important; |
| 692 | 699 | } |
| 693 | 700 | |
| 694 | -<?php if ( $pro_is_installed ) { ?> | |
| 695 | 701 | .with_frm_style .frm_loading_prev .frm_prev_page:hover, |
| 696 | 702 | .with_frm_style .frm_loading_prev .frm_prev_page:active, |
| 697 | 703 | .with_frm_style .frm_loading_prev .frm_prev_page:focus, |
| 698 | -<?php } ?> | |
| 699 | 704 | .with_frm_style .frm_loading_form .frm_button_submit:hover, |
| 700 | 705 | .with_frm_style .frm_loading_form .frm_button_submit:active, |
| 701 | 706 | .with_frm_style .frm_loading_form .frm_button_submit:focus { |
| 702 | 707 | cursor: not-allowed; |
| @@ -704,11 +709,9 @@ | ||
| 704 | 709 | outline: none !important; |
| 705 | 710 | box-shadow: none; |
| 706 | 711 | } |
| 707 | 712 | |
| 708 | -<?php if ( $pro_is_installed ) { ?> | |
| 709 | 713 | .with_frm_style .frm_loading_prev .frm_prev_page::before, |
| 710 | -<?php } ?> | |
| 711 | 714 | .with_frm_style .frm_loading_form .frm_button_submit:before { |
| 712 | 715 | content: ''; |
| 713 | 716 | display: inline-block; |
| 714 | 717 | position: absolute; |
| @@ -732,13 +735,11 @@ | ||
| 732 | 735 | align-items: center; |
| 733 | 736 | gap: 2%; |
| 734 | 737 | } |
| 735 | 738 | |
| 736 | -<?php if ( $pro_is_installed ) { ?> | |
| 737 | 739 | .with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page { |
| 738 | 740 | order: -1; |
| 739 | 741 | } |
| 740 | -<?php } ?> | |
| 741 | 742 | |
| 742 | 743 | <?php |
| 743 | 744 | foreach ( $styles as $style ) { |
| 744 | 745 | include __DIR__ . '/_single_theme.css.php'; |
| @@ -745,9 +746,9 @@ | ||
| 745 | 746 | unset( $style ); |
| 746 | 747 | } |
| 747 | 748 | |
| 748 | 749 | // Set it again since it may have been overridden. |
| 749 | -$important = ! empty( $defaults['important_style'] ) ? ' !important' : ''; | |
| 750 | +$important = empty( $defaults['important_style'] ) ? '' : ' !important'; | |
| 750 | 751 | ?> |
| 751 | 752 | |
| 752 | 753 | .frm_ajax_loading{ |
| 753 | 754 | visibility:hidden; |
| @@ -761,18 +762,16 @@ | ||
| 761 | 762 | a.frm_save_draft{ |
| 762 | 763 | cursor:pointer; |
| 763 | 764 | } |
| 764 | 765 | |
| 765 | -<?php if ( $pro_is_installed ) { ?> | |
| 766 | 766 | .with_frm_style a.frm_save_draft, |
| 767 | 767 | .with_frm_style a.frm_start_over{ |
| 768 | - <?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 768 | +<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 769 | 769 | font-family: var(--font); |
| 770 | 770 | <?php } ?> |
| 771 | 771 | font-size: var(--submit-font-size); |
| 772 | 772 | font-weight: var(--submit-weight); |
| 773 | 773 | } |
| 774 | -<?php } ?> | |
| 775 | 774 | |
| 776 | 775 | .horizontal_radio .frm_radio{ |
| 777 | 776 | margin:0 5px 0 0; |
| 778 | 777 | } |
| @@ -981,16 +980,12 @@ | ||
| 981 | 980 | padding:15px; |
| 982 | 981 | } |
| 983 | 982 | |
| 984 | 983 | .with_frm_style .frm_message p { |
| 984 | + margin-bottom: 5px; | |
| 985 | 985 | color: var(--success-text-color)<?php echo esc_html( $important ); ?>; |
| 986 | - margin-bottom: 0; | |
| 987 | 986 | } |
| 988 | 987 | |
| 989 | -.with_frm_style .frm_message > p:first-of-type { | |
| 990 | - margin-top: 0; | |
| 991 | -} | |
| 992 | - | |
| 993 | 988 | .with_frm_style .frm_message, |
| 994 | 989 | .frm_success_style { |
| 995 | 990 | margin: 5px 0 15px; |
| 996 | 991 | border: 1px solid var(--success-border-color); |
| @@ -1076,9 +1071,8 @@ | ||
| 1076 | 1071 | .frm-alt-table tr:nth-child(even) { |
| 1077 | 1072 | background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; |
| 1078 | 1073 | } |
| 1079 | 1074 | |
| 1080 | -<?php if ( $pro_is_installed ) { ?> | |
| 1081 | 1075 | table.form_results.with_frm_style{ |
| 1082 | 1076 | border-style: solid; |
| 1083 | 1077 | border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; |
| 1084 | 1078 | border-color: var(--border-color)<?php echo esc_html( $important ); ?>; |
| @@ -1086,18 +1080,17 @@ | ||
| 1086 | 1080 | |
| 1087 | 1081 | table.form_results.with_frm_style tr td{ |
| 1088 | 1082 | text-align:left; |
| 1089 | 1083 | padding:7px 9px; |
| 1090 | - <?php if ( ! empty( $defaults['text_color'] ) ) { ?> | |
| 1084 | +<?php if ( ! empty( $defaults['text_color'] ) ) { ?> | |
| 1091 | 1085 | color: var(--text-color)<?php echo esc_html( $important ); ?>; |
| 1092 | 1086 | <?php } ?> |
| 1093 | - <?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1087 | +<?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1094 | 1088 | border-top-style: solid; |
| 1095 | 1089 | border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; |
| 1096 | 1090 | border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>; |
| 1097 | 1091 | <?php } ?> |
| 1098 | 1092 | } |
| 1099 | -<?php } ?> | |
| 1100 | 1093 | |
| 1101 | 1094 | table.form_results.with_frm_style tr.frm_even, |
| 1102 | 1095 | .frm-grid .frm_even{ |
| 1103 | 1096 | background-color:#fff; |
| @@ -1116,23 +1109,18 @@ | ||
| 1116 | 1109 | background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; |
| 1117 | 1110 | padding: 40px; |
| 1118 | 1111 | } |
| 1119 | 1112 | |
| 1120 | - <?php if ( $pro_is_installed ) { ?> | |
| 1121 | 1113 | .with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3, |
| 1122 | 1114 | .frm_color_block.frm_section_heading h3 { |
| 1123 | 1115 | border-width: 0 !important; |
| 1124 | 1116 | } |
| 1125 | - <?php } ?> | |
| 1126 | 1117 | <?php } ?> |
| 1127 | 1118 | |
| 1128 | -<?php if ( $pro_is_installed ) { ?> | |
| 1129 | 1119 | .frm_collapse .ui-icon{ |
| 1130 | 1120 | display:inline-block; |
| 1131 | 1121 | } |
| 1132 | -<?php } ?> | |
| 1133 | 1122 | |
| 1134 | -<?php if ( $pro_is_installed ) { ?> | |
| 1135 | 1123 | .frm_toggle_container{ |
| 1136 | 1124 | /* Prevent the slide and bounce */ |
| 1137 | 1125 | border:1px solid transparent; |
| 1138 | 1126 | } |
| @@ -1149,11 +1137,9 @@ | ||
| 1149 | 1137 | |
| 1150 | 1138 | .frm_toggle_container .frm_month_listing{ |
| 1151 | 1139 | margin-left:40px; |
| 1152 | 1140 | } |
| 1153 | -<?php } ?> | |
| 1154 | 1141 | |
| 1155 | -<?php if ( $pro_is_installed ) { ?> | |
| 1156 | 1142 | #frm_loading{ |
| 1157 | 1143 | display:none; |
| 1158 | 1144 | position:fixed; |
| 1159 | 1145 | top:0; |
| @@ -1196,11 +1182,11 @@ | ||
| 1196 | 1182 | #frm_loading .progress.active .progress-bar{ |
| 1197 | 1183 | animation:2s linear 0s normal none infinite progress-bar-stripes; |
| 1198 | 1184 | } |
| 1199 | 1185 | |
| 1200 | - <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> | |
| 1186 | +<?php if ( ! empty( $defaults['bg_color'] ) ) { ?> | |
| 1201 | 1187 | #frm_loading .progress-striped .progress-bar { |
| 1202 | - <?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1188 | + <?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1203 | 1189 | background-image: linear-gradient(45deg, var(--border-color) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, var(--border-color) 50%, var(--border-color) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); |
| 1204 | 1190 | <?php } ?> |
| 1205 | 1191 | background-size:40px 40px; |
| 1206 | 1192 | } |
| @@ -1215,11 +1201,8 @@ | ||
| 1215 | 1201 | text-align: center; |
| 1216 | 1202 | transition: width 0.6s ease 0s; |
| 1217 | 1203 | width: 100%; |
| 1218 | 1204 | } |
| 1219 | - <?php | |
| 1220 | -}//end if | |
| 1221 | -?> | |
| 1222 | 1205 | |
| 1223 | 1206 | .frm_image_from_url{ |
| 1224 | 1207 | height:50px; |
| 1225 | 1208 | } |
| @@ -1228,9 +1211,8 @@ | ||
| 1228 | 1211 | background:url(../images/ajax_loader.gif) no-repeat center center; |
| 1229 | 1212 | padding:6px 12px; |
| 1230 | 1213 | } |
| 1231 | 1214 | |
| 1232 | -<?php if ( $pro_is_installed ) { ?> | |
| 1233 | 1215 | select.frm_loading_lookup{ |
| 1234 | 1216 | background-image: url(../images/ajax_loader.gif) !important; |
| 1235 | 1217 | background-position: 10px; |
| 1236 | 1218 | background-repeat: no-repeat; |
| @@ -1235,25 +1217,20 @@ | ||
| 1235 | 1217 | background-position: 10px; |
| 1236 | 1218 | background-repeat: no-repeat; |
| 1237 | 1219 | color: transparent !important; |
| 1238 | 1220 | } |
| 1239 | -<?php } ?> | |
| 1240 | 1221 | |
| 1241 | 1222 | <?php readfile( __DIR__ . '/frm_grids.css' ); ?> |
| 1242 | 1223 | |
| 1243 | -<?php if ( $pro_is_installed ) { ?> | |
| 1244 | 1224 | .frm_conf_field.frm_left_container .frm_primary_label{ |
| 1245 | 1225 | display:none; |
| 1246 | 1226 | } |
| 1247 | -<?php } ?> | |
| 1248 | 1227 | |
| 1249 | -<?php if ( $pro_is_installed ) { ?> | |
| 1250 | 1228 | .wp-editor-wrap *, |
| 1251 | 1229 | .wp-editor-wrap *:after, |
| 1252 | 1230 | .wp-editor-wrap *:before{ |
| 1253 | 1231 | box-sizing:content-box; |
| 1254 | 1232 | } |
| 1255 | -<?php } ?> | |
| 1256 | 1233 | |
| 1257 | 1234 | .with_frm_style .frm_grid, |
| 1258 | 1235 | .with_frm_style .frm_grid_first, |
| 1259 | 1236 | .with_frm_style .frm_grid_odd{ |
| @@ -1364,8 +1341,105 @@ | ||
| 1364 | 1341 | .frm_grid_odd .frm_checkbox{ |
| 1365 | 1342 | display:inline; |
| 1366 | 1343 | } |
| 1367 | 1344 | |
| 1345 | +.frm_grid_2 .frm_radio, | |
| 1346 | +.frm_grid_2 .frm_checkbox, | |
| 1347 | +.frm_grid_2 .frm_primary_label{ | |
| 1348 | + width:48% !important; | |
| 1349 | +} | |
| 1350 | + | |
| 1351 | +.frm_grid_2 .frm_radio, | |
| 1352 | +.frm_grid_2 .frm_checkbox{ | |
| 1353 | + margin-right:4%; | |
| 1354 | +} | |
| 1355 | + | |
| 1356 | +.frm_grid_3 .frm_radio, | |
| 1357 | +.frm_grid_3 .frm_checkbox, | |
| 1358 | +.frm_grid_3 .frm_primary_label{ | |
| 1359 | + width:30% !important; | |
| 1360 | +} | |
| 1361 | + | |
| 1362 | +.frm_grid_3 .frm_radio, | |
| 1363 | +.frm_grid_3 .frm_checkbox{ | |
| 1364 | + margin-right:3%; | |
| 1365 | +} | |
| 1366 | + | |
| 1367 | +.frm_grid_4 .frm_radio, | |
| 1368 | +.frm_grid_4 .frm_checkbox{ | |
| 1369 | + width:20% !important; | |
| 1370 | +} | |
| 1371 | + | |
| 1372 | +.frm_grid_4 .frm_primary_label{ | |
| 1373 | + width:28% !important; | |
| 1374 | +} | |
| 1375 | + | |
| 1376 | +.frm_grid_4 .frm_radio, | |
| 1377 | +.frm_grid_4 .frm_checkbox{ | |
| 1378 | + margin-right:4%; | |
| 1379 | +} | |
| 1380 | + | |
| 1381 | +.frm_grid_5 .frm_primary_label, | |
| 1382 | +.frm_grid_7 .frm_primary_label{ | |
| 1383 | + width:24% !important; | |
| 1384 | +} | |
| 1385 | + | |
| 1386 | +.frm_grid_5 .frm_radio, | |
| 1387 | +.frm_grid_5 .frm_checkbox{ | |
| 1388 | + width:17% !important; | |
| 1389 | + margin-right:2%; | |
| 1390 | +} | |
| 1391 | + | |
| 1392 | +.frm_grid_6 .frm_primary_label{ | |
| 1393 | + width:25% !important; | |
| 1394 | +} | |
| 1395 | + | |
| 1396 | +.frm_grid_6 .frm_radio, | |
| 1397 | +.frm_grid_6 .frm_checkbox{ | |
| 1398 | + width:14% !important; | |
| 1399 | + margin-right:1%; | |
| 1400 | +} | |
| 1401 | + | |
| 1402 | +.frm_grid_7 .frm_primary_label{ | |
| 1403 | + width:22% !important; | |
| 1404 | +} | |
| 1405 | + | |
| 1406 | +.frm_grid_7 .frm_radio, | |
| 1407 | +.frm_grid_7 .frm_checkbox{ | |
| 1408 | + width:12% !important; | |
| 1409 | + margin-right:1%; | |
| 1410 | +} | |
| 1411 | + | |
| 1412 | +.frm_grid_8 .frm_primary_label{ | |
| 1413 | + width:23% !important; | |
| 1414 | +} | |
| 1415 | + | |
| 1416 | +.frm_grid_8 .frm_radio, | |
| 1417 | +.frm_grid_8 .frm_checkbox{ | |
| 1418 | + width:10% !important; | |
| 1419 | + margin-right:1%; | |
| 1420 | +} | |
| 1421 | + | |
| 1422 | +.frm_grid_9 .frm_primary_label{ | |
| 1423 | + width:20% !important; | |
| 1424 | +} | |
| 1425 | + | |
| 1426 | +.frm_grid_9 .frm_radio, | |
| 1427 | +.frm_grid_9 .frm_checkbox{ | |
| 1428 | + width:9% !important; | |
| 1429 | + margin-right:1%; | |
| 1430 | +} | |
| 1431 | + | |
| 1432 | +.frm_grid_10 .frm_primary_label{ | |
| 1433 | + width:19% !important; | |
| 1434 | +} | |
| 1435 | + | |
| 1436 | +.frm_grid_10 .frm_radio, | |
| 1437 | +.frm_grid_10 .frm_checkbox{ | |
| 1438 | + width:8% !important; | |
| 1439 | + margin-right:1%; | |
| 1440 | +} | |
| 1441 | + | |
| 1368 | 1442 | .frm_form_field.frm_inline_container .frm_opt_container, |
| 1369 | 1443 | .frm_form_field.frm_right_container .frm_opt_container, |
| 1370 | 1444 | .frm_form_field.frm_left_container .frm_opt_container{ |
| 1371 | 1445 | padding-top:4px; |
| @@ -1512,9 +1586,8 @@ | ||
| 1512 | 1586 | /** |
| 1513 | 1587 | * Call action so other plugins can add additional CSS. |
| 1514 | 1588 | * |
| 1515 | 1589 | * @param array $args { |
| 1516 | - * | |
| 1517 | 1590 | * @type array $defaults |
| 1518 | 1591 | * } |
| 1519 | 1592 | */ |
| 1520 | 1593 | do_action( 'frm_include_front_css', compact( 'defaults' ) ); |
| @@ -1521,9 +1594,8 @@ | ||
| 1521 | 1594 | ?> |
| 1522 | 1595 | |
| 1523 | 1596 | /* Responsive */ |
| 1524 | 1597 | |
| 1525 | -<?php if ( $pro_is_installed ) { ?> | |
| 1526 | 1598 | @media only screen and (max-width: 900px) { |
| 1527 | 1599 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label, |
| 1528 | 1600 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label, |
| 1529 | 1601 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{ |
| @@ -1529,9 +1601,8 @@ | ||
| 1529 | 1601 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{ |
| 1530 | 1602 | display: block !important; |
| 1531 | 1603 | } |
| 1532 | 1604 | } |
| 1533 | -<?php } ?> | |
| 1534 | 1605 | |
| 1535 | 1606 | @media only screen and (max-width: 600px) { |
| 1536 | 1607 | .frm_form_field.frm_four_col .frm_opt_container{ |
| 1537 | 1608 | grid-template-columns: repeat(2, 1fr); |
| @@ -1536,14 +1607,12 @@ | ||
| 1536 | 1607 | .frm_form_field.frm_four_col .frm_opt_container{ |
| 1537 | 1608 | grid-template-columns: repeat(2, 1fr); |
| 1538 | 1609 | } |
| 1539 | 1610 | |
| 1540 | - <?php if ( $pro_is_installed ) { ?> | |
| 1541 | 1611 | .with_frm_style .frm_repeat_inline, |
| 1542 | 1612 | .with_frm_style .frm_repeat_grid{ |
| 1543 | 1613 | margin: 20px 0; |
| 1544 | 1614 | } |
| 1545 | - <?php } ?> | |
| 1546 | 1615 | } |
| 1547 | 1616 | |
| 1548 | 1617 | @media only screen and (max-width: 500px) { |
| 1549 | 1618 | .frm_form_field.frm_two_col .frm_radio, |
| @@ -1575,18 +1644,7 @@ | ||
| 1575 | 1644 | .with_frm_style .frm-g-recaptcha iframe{ |
| 1576 | 1645 | width:100%; |
| 1577 | 1646 | } |
| 1578 | 1647 | } |
| 1579 | - | |
| 1580 | -.frm-card-element .sq-card-wrapper .sq-card-message { | |
| 1581 | - margin-bottom: 0; | |
| 1582 | -} | |
| 1583 | -.frm-card-errors:empty { | |
| 1584 | - margin: 0; | |
| 1585 | -} | |
| 1586 | 1648 | <?php |
| 1587 | 1649 | |
| 1588 | -$frm_custom_css = strip_tags( FrmStylesController::get_custom_css() ); | |
| 1589 | - | |
| 1590 | -if ( $frm_custom_css ) { | |
| 1591 | - echo FrmStylesHelper::maybe_scope_css_for_admin( $frm_custom_css ) . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 1592 | -} | |
| 1650 | +echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |