PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | css/_single_theme.css.php +44 -17 6.26.1 → trunk View file →
@@ -8,13 +8,12 @@
8 8
9 9 $is_loaded_via_ajax = $is_loaded_via_ajax ?? false;
10 10 FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax );
11 11
12 -$important = empty( $important_style ) ? '' : ' !important';
13 -
14 -$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings );
15 -$use_chosen_js = FrmStylesHelper::use_chosen_js();
16 -
12 +$important = ! empty( $important_style ) ? ' !important' : '';
13 +$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings );
14 +$use_chosen_js = $use_chosen_js ?? FrmStylesHelper::use_chosen_js();
15 +$pro_is_installed = $pro_is_installed ?? FrmAppHelper::pro_is_installed();
17 16 ?>
18 17 .<?php echo esc_html( $style_class ); ?>{
19 18 <?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
20 19 }
@@ -41,11 +40,13 @@
41 40 margin-bottom:var(--field-margin)<?php echo esc_html( $important ); ?>;
42 41 }
43 42 <?php } ?>
44 43
44 +<?php if ( $pro_is_installed ) { ?>
45 45 .<?php echo esc_html( $style_class ); ?> .form-field.frm_section_heading{
46 46 margin-bottom:0<?php echo esc_html( $important ); ?>;
47 47 }
48 +<?php } ?>
48 49
49 50 .<?php echo esc_html( $style_class ); ?> p.description,
50 51 .<?php echo esc_html( $style_class ); ?> div.description,
51 52 .<?php echo esc_html( $style_class ); ?> div.frm_description,
@@ -107,12 +108,8 @@
107 108 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_right_container{
108 109 grid-template-columns: auto <?php echo esc_html( $width ); ?>;
109 110 }
110 111
111 -.frm_form_field.frm_right_container{
112 - grid-template-columns: auto 25%;
113 -}
114 -
115 112 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_data_container,
116 113 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_opt_container{
117 114 display:inline<?php echo esc_html( $important ); ?>;
118 115 }
@@ -126,9 +123,9 @@
126 123 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
127 124 display:none<?php echo esc_html( $important ); ?>;
128 125 }
129 126
130 -<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
127 +<?php if ( $pro_is_installed ) : ?>
131 128 .<?php echo esc_html( $style_class ); ?> .frm_scale label{
132 129 <?php if ( ! empty( $check_weight ) ) { ?>
133 130 font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
134 131 <?php } ?>
@@ -179,9 +176,9 @@
179 176 .<?php echo esc_html( $style_class ); ?> .frm_focus_field .frm-card-element.StripeElement {
180 177 background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
181 178 border-color:var(--border-color-active)<?php echo esc_html( $important ); ?>;
182 179 color:var(--text-color);
183 - <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?>
180 + <?php if ( ! empty( $remove_box_shadow_active ) ) { ?>
184 181 box-shadow:none;
185 182 outline: none;
186 183 <?php } else { ?>
187 184 box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
@@ -187,16 +184,26 @@
187 184 box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
188 185 <?php } ?>
189 186 }
190 187
188 +.<?php echo esc_html( $style_class ); ?> input:-webkit-autofill {
189 + <?php if ( ! empty( $remove_box_shadow_active ) ) { ?>
190 + -webkit-box-shadow: none<?php echo esc_html( $important ); ?>;
191 + <?php } else { ?>
192 + -webkit-box-shadow: 0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
193 + <?php } ?>
194 +}
195 +
191 196 <?php if ( ! $submit_style ) { ?>
197 + <?php if ( $pro_is_installed ) { ?>
192 198 .<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message,
199 +.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn,
200 + <?php } ?>
193 201 .<?php echo esc_html( $style_class ); ?> input[type=submit],
194 202 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button],
195 203 .<?php echo esc_html( $style_class ); ?> .frm_submit button,
196 -.frm_form_submit_style,
197 -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn {
198 - width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); ?>;
204 +.frm_form_submit_style {
205 + width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); // phpcs:ignore Universal.Operators.StrictComparisons ?>;
199 206 <?php if ( ! empty( $font ) ) { ?>
200 207 font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
201 208 <?php } ?>
202 209 font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
@@ -206,9 +213,9 @@
206 213 background:
207 214 <?php
208 215 echo esc_html( $submit_bg_color );
209 216
210 - if ( ! empty( $submit_bg_img ) ) {
217 + if ( $submit_bg_img ) {
211 218 echo esc_html( ' url(' . $submit_bg_img . ')' );
212 219 }
213 220 echo esc_html( $important );
214 221 ?>
@@ -230,9 +237,9 @@
230 237 <?php } ?>
231 238 margin:<?php echo esc_html( $submit_margin ); ?>;
232 239 <?php
233 240 // For reverse compatibility... But allow "10px 10px".
234 - if ( strpos( trim( $submit_margin ), ' ' ) === false ) {
241 + if ( ! str_contains( trim( $submit_margin ), ' ' ) ) {
235 242 ?>
236 243 margin-left:0;
237 244 margin-right:0;
238 245 <?php } ?>
@@ -238,14 +245,18 @@
238 245 <?php } ?>
239 246 vertical-align:middle;
240 247 }
241 248
249 + <?php if ( $pro_is_installed ) { ?>
242 250 .<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{
243 251 margin:0;
244 252 }
253 + <?php } ?>
245 254
246 - <?php if ( empty( $submit_bg_img ) ) { ?>
255 + <?php if ( ! $submit_bg_img ) { ?>
256 + <?php if ( $pro_is_installed ) { ?>
247 257 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:hover,
258 + <?php } ?>
248 259 .<?php echo esc_html( $style_class ); ?> input[type=submit]:hover,
249 260 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover,
250 261 .<?php echo esc_html( $style_class ); ?> .frm_submit button:hover{
251 262 background:var(--submit-hover-bg-color)<?php echo esc_html( $important ); ?>;
@@ -256,9 +267,11 @@
256 267 .<?php echo esc_html( $style_class ); ?>.frm_center_submit .frm_submit .frm_ajax_loading{
257 268 margin-bottom:<?php echo esc_html( FrmStylesHelper::get_bottom_value( $submit_margin ) ); ?>;
258 269 }
259 270
271 + <?php if ( $pro_is_installed ) { ?>
260 272 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:focus,
273 + <?php } ?>
261 274 .<?php echo esc_html( $style_class ); ?> input[type=submit]:focus,
262 275 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:focus,
263 276 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
264 277 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
@@ -269,12 +282,14 @@
269 282 color:var(--submit-active-color)<?php echo esc_html( $important ); ?>;
270 283 outline: none;
271 284 }
272 285
286 + <?php if ( $pro_is_installed ) { ?>
273 287 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page,
274 288 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:hover,
275 289 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:active,
276 290 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:focus,
291 + <?php } ?>
277 292 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit,
278 293 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:hover,
279 294 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:active,
280 295 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:focus{
@@ -282,9 +297,11 @@
282 297 background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
283 298 border-color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
284 299 }
285 300
301 + <?php if ( $pro_is_installed ) { ?>
286 302 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:before,
303 + <?php } ?>
287 304 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:before {
288 305 border-bottom-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
289 306 border-right-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
290 307 <?php if ( $submit_height !== 'auto' ) { ?>
@@ -293,8 +310,14 @@
293 310 <?php if ( $submit_width !== 'auto' ) { ?>
294 311 max-width:var(--submit-width)<?php echo esc_html( $important ); ?>;
295 312 <?php } ?>
296 313 }
314 +.<?php echo esc_html( $style_class ); ?> input[type=submit][disabled],
315 +.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled],
316 +.<?php echo esc_html( $style_class ); ?> .frm_submit button[disabled] {
317 + opacity: 0.5;
318 + cursor: not-allowed;
319 +}
297 320 <?php
298 321 }//end if
299 322 }//end if
300 323 ?>
@@ -347,9 +370,11 @@
347 370 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email],
348 371 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=checkbox],
349 372 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=radio],
350 373 .<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea,
374 +<?php if ( $pro_is_installed ) { ?>
351 375 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe,
376 +<?php } ?>
352 377 .<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year),
353 378 .frm_form_fields_error_style,
354 379 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe,
355 380 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe,
@@ -392,8 +417,9 @@
392 417 margin:0;
393 418 margin-bottom:var(--field-margin);
394 419 }
395 420
421 +<?php if ( $pro_is_installed ) { ?>
396 422 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{
397 423 background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
398 424 }
399 425
@@ -399,8 +425,9 @@
399 425
400 426 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{
401 427 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
402 428 }
429 +<?php } ?>
403 430
404 431 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input,
405 432 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea,
406 433 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total input,