| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | |
| 19 | 19 | .frm_forms.<?php echo esc_html( $style_class ); ?>{ |
| 20 | 20 | max-width:<?php echo esc_html( $form_width . $important ); ?>; |
| 21 | 21 | direction:<?php echo esc_html( $direction . $important ); ?>; |
| 22 | - <?php if ( 'rtl' === $direction ) { ?> | |
| 22 | + <?php if ( 'rtl' == $direction ) { ?> | |
| 23 | 23 | unicode-bidi:embed; |
| 24 | 24 | <?php } ?> |
| 25 | 25 | <?php if ( $center_form ) { ?> |
| 26 | 26 | margin:0 auto; |
| @@ -82,16 +82,15 @@ | ||
| 82 | 82 | .<?php echo esc_html( $style_class ); ?> p.description, |
| 83 | 83 | .<?php echo esc_html( $style_class ); ?> div.description, |
| 84 | 84 | .<?php echo esc_html( $style_class ); ?> div.frm_description, |
| 85 | 85 | .<?php echo esc_html( $style_class ); ?> .frm-show-form > div.frm_description, |
| 86 | -.<?php echo esc_html( $style_class ); ?> .frm_error, | |
| 87 | -.<?php echo esc_html( $style_class ); ?> .frm_pro_max_limit_desc{ | |
| 86 | +.<?php echo esc_html( $style_class ); ?> .frm_error{ | |
| 88 | 87 | <?php if ( ! empty( $description_margin ) ) { ?> |
| 89 | 88 | margin:<?php echo esc_html( $description_margin . $important ); ?>; |
| 90 | 89 | <?php } ?> |
| 91 | 90 | padding:0; |
| 92 | 91 | <?php if ( ! empty( $font ) ) { ?> |
| 93 | - font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 92 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 94 | 93 | <?php } ?> |
| 95 | 94 | <?php if ( ! empty( $description_font_size ) ) { ?> |
| 96 | 95 | font-size:<?php echo esc_html( $description_font_size . $important ); ?>; |
| 97 | 96 | <?php } ?> |
| @@ -128,9 +127,13 @@ | ||
| 128 | 127 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=search], |
| 129 | 128 | .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select, |
| 130 | 129 | <?php } ?> |
| 131 | 130 | .<?php echo esc_html( $style_class ); ?> .frm_left_container select{ |
| 132 | - height:fit-content<?php echo esc_html( $important ); ?>; | |
| 131 | + <?php if ( $frm_settings->old_css ) { ?> | |
| 132 | + height:auto<?php echo esc_html( $important ); ?>; | |
| 133 | + <?php } else { ?> | |
| 134 | + height:fit-content<?php echo esc_html( $important ); ?>; | |
| 135 | + <?php } ?> | |
| 133 | 136 | } |
| 134 | 137 | <?php } ?> |
| 135 | 138 | |
| 136 | 139 | .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_left_container{ |
| @@ -164,9 +167,9 @@ | ||
| 164 | 167 | <?php if ( ! empty( $check_weight ) ) { ?> |
| 165 | 168 | font-weight:<?php echo esc_html( $check_weight . $important ); ?>; |
| 166 | 169 | <?php } ?> |
| 167 | 170 | <?php if ( ! empty( $font ) ) { ?> |
| 168 | - font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 171 | + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>; | |
| 169 | 172 | <?php } ?> |
| 170 | 173 | <?php if ( ! empty( $check_font_size ) ) { ?> |
| 171 | 174 | font-size:<?php echo esc_html( $check_font_size . $important ); ?>; |
| 172 | 175 | <?php } ?> |
| @@ -186,9 +189,8 @@ | ||
| 186 | 189 | } |
| 187 | 190 | .<?php echo esc_html( $style_class ); ?> input::-moz-placeholder, |
| 188 | 191 | .<?php echo esc_html( $style_class ); ?> textarea::-moz-placeholder{ |
| 189 | 192 | color: <?php echo esc_html( $text_color_disabled . $important ); ?>; |
| 190 | - opacity: 1; | |
| 191 | 193 | } |
| 192 | 194 | .<?php echo esc_html( $style_class ); ?> input:-ms-input-placeholder, |
| 193 | 195 | <?php echo esc_html( $style_class ); ?> textarea:-ms-input-placeholder{ |
| 194 | 196 | color: <?php echo esc_html( $text_color_disabled . $important ); ?>; |
| @@ -223,12 +225,10 @@ | ||
| 223 | 225 | .<?php echo esc_html( $style_class ); ?> .chosen-container-single.chosen-container-active .chosen-single, |
| 224 | 226 | .<?php echo esc_html( $style_class ); ?> .chosen-container-active .chosen-choices{ |
| 225 | 227 | background-color:<?php echo esc_html( $bg_color_active . $important ); ?>; |
| 226 | 228 | border-color:<?php echo esc_html( $border_color_active . $important ); ?>; |
| 227 | - color: var(--text-color); | |
| 228 | 229 | <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?> |
| 229 | 230 | box-shadow:none; |
| 230 | - outline: none; | |
| 231 | 231 | <?php } else { ?> |
| 232 | 232 | box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6); |
| 233 | 233 | <?php } ?> |
| 234 | 234 | } |
| @@ -241,9 +241,9 @@ | ||
| 241 | 241 | .frm_form_submit_style, |
| 242 | 242 | .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn { |
| 243 | 243 | width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); ?>; |
| 244 | 244 | <?php if ( ! empty( $font ) ) { ?> |
| 245 | - font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 245 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 246 | 246 | <?php } ?> |
| 247 | 247 | font-size:<?php echo esc_html( $submit_font_size . $important ); ?>; |
| 248 | 248 | height:<?php echo esc_html( $submit_height . $important ); ?>; |
| 249 | 249 | line-height:normal<?php echo esc_html( $important ); ?>; |
| @@ -314,9 +314,8 @@ | ||
| 314 | 314 | .<?php echo esc_html( $style_class ); ?> .frm_submit button:active{ |
| 315 | 315 | background: <?php echo esc_html( $submit_active_bg_color . $important ); ?>; |
| 316 | 316 | border-color: <?php echo esc_html( $submit_active_border_color . $important ); ?>; |
| 317 | 317 | color: <?php echo esc_html( $submit_active_color . $important ); ?>; |
| 318 | - outline: none; | |
| 319 | 318 | } |
| 320 | 319 | |
| 321 | 320 | .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page, |
| 322 | 321 | .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:hover, |
| @@ -349,9 +348,9 @@ | ||
| 349 | 348 | .<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before, |
| 350 | 349 | .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before { |
| 351 | 350 | content:"before"; |
| 352 | 351 | <?php if ( ! empty( $font ) ) { ?> |
| 353 | - font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 352 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 354 | 353 | <?php } ?> |
| 355 | 354 | font-size:<?php echo esc_html( $font_size . $important ); ?>; |
| 356 | 355 | color:<?php echo esc_html( $label_color . $important ); ?>; |
| 357 | 356 | font-weight:<?php echo esc_html( $weight . $important ); ?>; |
| @@ -370,9 +369,9 @@ | ||
| 370 | 369 | } |
| 371 | 370 | |
| 372 | 371 | .<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{ |
| 373 | 372 | <?php if ( ! empty( $font ) ) { ?> |
| 374 | - font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 373 | + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>; | |
| 375 | 374 | <?php } ?> |
| 376 | 375 | font-size:<?php echo esc_html( $font_size . $important ); ?>; |
| 377 | 376 | color:<?php echo esc_html( $label_color . $important ); ?>; |
| 378 | 377 | font-weight:<?php echo esc_html( $weight . $important ); ?>; |
| @@ -386,9 +385,9 @@ | ||
| 386 | 385 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number], |
| 387 | 386 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email], |
| 388 | 387 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea, |
| 389 | 388 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe, |
| 390 | -.<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year), | |
| 389 | +.<?php echo esc_html( $style_class ); ?> .frm_blank_field select, | |
| 391 | 390 | .frm_form_fields_error_style, |
| 392 | 391 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe, |
| 393 | 392 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe, |
| 394 | 393 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-card-element.StripeElement, |
| @@ -405,16 +404,14 @@ | ||
| 405 | 404 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{ |
| 406 | 405 | border-color:<?php echo esc_html( $border_color_error ); ?> !important; |
| 407 | 406 | } |
| 408 | 407 | |
| 409 | -.<?php echo esc_html( $style_class ); ?> .frm_error, | |
| 410 | -.<?php echo esc_html( $style_class ); ?> .frm_limit_error{ | |
| 408 | +.<?php echo esc_html( $style_class ); ?> .frm_error{ | |
| 411 | 409 | font-weight:<?php echo esc_html( $weight . $important ); ?>; |
| 412 | 410 | } |
| 413 | 411 | |
| 414 | 412 | .<?php echo esc_html( $style_class ); ?> .frm_blank_field label, |
| 415 | -.<?php echo esc_html( $style_class ); ?> .frm_error, | |
| 416 | -.<?php echo esc_html( $style_class ); ?> .frm_limit_error{ | |
| 413 | +.<?php echo esc_html( $style_class ); ?> .frm_error{ | |
| 417 | 414 | color:<?php echo esc_html( $border_color_error . $important ); ?>; |
| 418 | 415 | } |
| 419 | 416 | |
| 420 | 417 | .<?php echo esc_html( $style_class ); ?> .frm_error_style{ |