PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.01.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.01.02
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/custom_theme.css.php +213 -853 6.354.01.02 View file →
@@ -1,15 +1,10 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
5 -
6 2 if ( ! isset( $saving ) ) {
7 3 header( 'Content-type: text/css' );
8 4
9 - if ( ! empty( $css ) ) {
10 - echo strip_tags( FrmStylesHelper::maybe_scope_custom_css_in_cached_output( $css ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
11 - FrmStylesController::maybe_hide_sample_form_error_message();
5 + if ( isset( $css ) && $css ) {
6 + echo strip_tags( $css, 'all' ); // WPCS: XSS ok.
12 7 die();
13 8 }
14 9 }
15 10
@@ -16,26 +11,15 @@
16 11 if ( ! isset( $frm_style ) ) {
17 12 $frm_style = new FrmStyle();
18 13 }
19 14
20 -$styles = $frm_style->get_all();
21 -$default_style = $frm_style->get_default_style( $styles );
22 -$pro_is_installed = FrmAppHelper::pro_is_installed();
15 +$styles = $frm_style->get_all();
16 +$default_style = $frm_style->get_default_style( $styles );
17 +$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
23 18
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 19 ?>
34 -.with_frm_style{
35 -<?php FrmStylesHelper::output_vars( $defaults ); ?>
36 -}
37 20
21 +.frm_form_field .grecaptcha-badge,
38 22 .frm_hidden,
39 23 .frm_add_form_row.frm_hidden,
40 24 .frm_remove_form_row.frm_hidden,
41 25 .with_frm_style .frm_button.frm_hidden{
@@ -41,41 +25,14 @@
41 25 .with_frm_style .frm_button.frm_hidden{
42 26 display:none;
43 27 }
44 28
45 -.with_frm_style,
46 -.with_frm_style form,
47 -.with_frm_style .frm-show-form div.frm_description p{
48 - text-align: var(--form-align)<?php echo esc_html( $important ); ?>;
29 +form input.frm_verify{
30 + display:none !important;
49 31 }
50 32
51 -/* Keep this. This is used for Honeypot */
52 -input:-webkit-autofill {
53 - -webkit-box-shadow: 0 0 0 30px white inset;
54 -}
55 -
56 -/* Form description */
57 -.with_frm_style .frm-show-form div.frm_description p{
58 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
59 - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
60 -<?php } ?>
61 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
62 - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
63 -<?php } ?>
64 -<?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?>
65 - margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>;
66 -<?php } ?>
67 -<?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?>
68 - margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>;
69 -<?php } ?>
70 -<?php if ( isset( $defaults['form_desc_padding'] ) ) { ?>
71 - padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>;
72 -<?php } ?>
73 -}
74 -
75 33 .with_frm_style fieldset{
76 34 min-width:0;
77 - display: block; /* Override 2021 theme */
78 35 }
79 36
80 37 .with_frm_style fieldset fieldset{
81 38 border:none;
@@ -83,28 +40,8 @@
83 40 padding:0;
84 41 background-color:transparent;
85 42 }
86 43
87 -.with_frm_style .frm_form_fields > fieldset{
88 -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?>
89 - border-width: var(--fieldset)<?php echo esc_html( $important ); ?>;
90 -<?php } ?>
91 - border-style:solid;
92 -<?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?>
93 - border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>;
94 -<?php } ?>
95 - margin:0;
96 -<?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?>
97 - padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>;
98 -<?php } ?>
99 -<?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?>
100 - background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>;
101 -<?php } ?>
102 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
103 - font-family:var(--font);
104 -<?php } ?>
105 -}
106 -
107 44 legend.frm_hidden{
108 45 display:none !important;
109 46 }
110 47
@@ -119,201 +56,9 @@
119 56 .frm_transparent{
120 57 color:transparent;
121 58 }
122 59
123 -.with_frm_style legend + h3,
124 -.with_frm_style h3.frm_form_title{
125 -<?php if ( ! empty( $defaults['title_size'] ) ) { ?>
126 - font-size: var(--title-size)<?php echo esc_html( $important ); ?>;
127 -<?php } ?>
128 -<?php if ( ! empty( $defaults['title_color'] ) ) { ?>
129 - color: var(--title-color)<?php echo esc_html( $important ); ?>;
130 -<?php } ?>
131 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
132 - font-family: var(--font);
133 -<?php } ?>
134 -<?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?>
135 - margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>;
136 -<?php } ?>
137 -<?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?>
138 - margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>;
139 -<?php } ?>
140 -}
141 -
142 -.with_frm_style .frm_form_field.frm_html_container,
143 -.with_frm_style .frm_form_field .frm_show_it{
144 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
145 - font-family: var(--font);
146 -<?php } ?>
147 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
148 - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
149 -<?php } ?>
150 -}
151 -
152 -.with_frm_style .frm_form_field.frm_html_container{
153 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
154 - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
155 -<?php } ?>
156 - overflow-wrap: break-word<?php echo esc_html( $important ); ?>;
157 -}
158 -
159 -.with_frm_style .frm_form_field .frm_show_it{
160 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
161 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
162 -<?php } ?>
163 -<?php if ( ! empty( $defaults['field_weight'] ) ) { ?>
164 - font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>;
165 -<?php } ?>
166 -}
167 -
168 -.with_frm_style .frm_required {
169 -<?php if ( ! empty( $defaults['required_color'] ) ) { ?>
170 - color: var(--required-color)<?php echo esc_html( $important ); ?>;
171 -<?php } ?>
172 -<?php if ( ! empty( $defaults['required_weight'] ) ) { ?>
173 - font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>;
174 -<?php } ?>
175 -}
176 -
177 -<?php if ( $use_chosen_js ) { ?>
178 -.with_frm_style .chosen-container,
179 -<?php } ?>
180 -.with_frm_style input[type=text],
181 -.with_frm_style input[type=password],
182 -.with_frm_style input[type=email],
183 -.with_frm_style input[type=number],
184 -.with_frm_style input[type=url],
185 -.with_frm_style input[type=tel],
186 -.with_frm_style input[type=search],
187 -.with_frm_style select,
188 -.with_frm_style textarea,
189 -.with_frm_style .frm-card-element.StripeElement {
190 - font-family:var(--font)<?php echo esc_html( $important ); ?>;
191 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
192 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
193 -<?php } ?>
194 - margin-bottom:0<?php echo esc_html( $important ); ?>;
195 -}
196 -
197 -.with_frm_style textarea{
198 - vertical-align:top;
199 - height:auto;
200 -}
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 -.with_frm_style input[type=text],
209 -.with_frm_style input[type=password],
210 -.with_frm_style input[type=email],
211 -.with_frm_style input[type=number],
212 -.with_frm_style input[type=url],
213 -.with_frm_style input[type=tel],
214 -.with_frm_style input[type=phone],
215 -.with_frm_style input[type=search],
216 -.with_frm_style select,
217 -.with_frm_style textarea,
218 -.frm_form_fields_style,
219 -.with_frm_style .frm_scroll_box .frm_opt_container,
220 -.frm_form_fields_active_style,
221 -.frm_form_fields_error_style,
222 -.with_frm_style .frm-card-element.StripeElement {
223 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
224 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
225 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
226 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
227 - border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>;
228 - border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>;
229 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
230 - max-width: 100%;
231 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
232 - padding: var(--field-pad)<?php echo esc_html( $important ); ?>;
233 - box-sizing: border-box;
234 - outline: none<?php echo esc_html( $important ); ?>;
235 - font-weight: var(--field-weight);
236 -}
237 -
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 ) : ?>
244 - <?php if ( $use_chosen_js ) { ?>
245 - .with_frm_style .chosen-container-multi .chosen-choices,
246 - .with_frm_style .chosen-container-single .chosen-single,
247 - <?php } ?>
248 -.with_frm_style input[type=text],
249 -.with_frm_style input[type=password],
250 -.with_frm_style input[type=email],
251 -.with_frm_style input[type=number],
252 -.with_frm_style input[type=url],
253 -.with_frm_style input[type=tel],
254 -.with_frm_style input[type=phone],
255 -.with_frm_style input[type=search],
256 -.with_frm_style textarea,
257 -.frm_form_fields_style,
258 -.with_frm_style .frm_scroll_box .frm_opt_container,
259 -.frm_form_fields_active_style,
260 -.frm_form_fields_error_style,
261 -.with_frm_style .frm-card-element.StripeElement {
262 - background-image:none !important;
263 -}
264 -<?php endif; ?>
265 -
266 -.with_frm_style select option {
267 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
268 -}
269 -
270 -.with_frm_style select option.frm-select-placeholder {
271 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
272 -}
273 -
274 -.with_frm_style input[type=radio],
275 -.with_frm_style input[type=checkbox]{
276 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
277 - box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>;
278 - float: none;
279 -}
280 -
281 -.with_frm_style input[type=radio]:after,
282 -.with_frm_style input[type=checkbox]:after {
283 - display: none; /* 2021 conflict */
284 -}
285 -
286 -.with_frm_style input[type=radio]:not(:checked):focus,
287 -.with_frm_style input[type=checkbox]:not(:checked):focus {
288 - border-color: var(--border-color) !important;
289 -}
290 -
291 -.with_frm_style input[type=radio]:focus,
292 -.with_frm_style input[type=checkbox]:focus {
293 - box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important;
294 -}
295 -
296 -.with_frm_style input[type=text],
297 -.with_frm_style input[type=password],
298 -.with_frm_style input[type=email],
299 -.with_frm_style input[type=number],
300 -.with_frm_style input[type=url],
301 -.with_frm_style input[type=tel],
302 -.with_frm_style input[type=file],
303 -.with_frm_style input[type=search],
304 -.with_frm_style select,
305 -.with_frm_style .frm-card-element.StripeElement{
306 - min-height: var(--field-height)<?php echo esc_html( $important ); ?>;
307 - line-height:1.3<?php echo esc_html( $important ); ?>;
308 -}
309 -
310 -.with_frm_style select[multiple=multiple]{
311 - height:auto<?php echo esc_html( $important ); ?>;
312 -}
313 -
314 -.input[type=file].frm_transparent:focus,
315 -.with_frm_style input[type=file]{
60 +.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{
316 61 background-color:transparent;
317 62 border:none;
318 63 outline:none;
319 64 box-shadow:none;
@@ -319,54 +64,11 @@
319 64 box-shadow:none;
320 65 }
321 66
322 67 .with_frm_style input[type=file]{
323 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
324 - padding: 0px;
325 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
326 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
327 -<?php } ?>
328 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
329 - display: initial;
68 + display:initial;
330 69 }
331 70
332 -.with_frm_style input[type=file].frm_transparent{
333 - color:transparent<?php echo esc_html( $important ); ?>;
334 -}
335 -
336 -<?php if ( $pro_is_installed ) { ?>
337 -.with_frm_style .wp-editor-wrap{
338 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
339 - max-width:100%;
340 -}
341 -
342 -.with_frm_style .wp-editor-container textarea{
343 - border:none<?php echo esc_html( $important ); ?>;
344 - box-shadow:none !important;
345 -}
346 -
347 -.with_frm_style .mceIframeContainer{
348 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
349 -}
350 -<?php } ?>
351 -
352 -.with_frm_style select{
353 - width: var(--auto-width)<?php echo esc_html( $important ); ?>;
354 - max-width:100%;
355 - background-position-y: calc(50% + 3px);
356 -}
357 -
358 -.with_frm_style input[disabled],
359 -.with_frm_style select[disabled],
360 -.with_frm_style textarea[disabled],
361 -.with_frm_style input[readonly],
362 -.with_frm_style select[readonly],
363 -.with_frm_style textarea[readonly] {
364 - background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
365 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
366 - border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
367 -}
368 -
369 71 .frm_preview_page:before{
370 72 content:normal !important;
371 73 }
372 74
@@ -375,29 +77,8 @@
375 77 }
376 78
377 79 .with_frm_style .frm_primary_label{
378 80 max-width:100%;
379 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
380 - font-family: var(--font);
381 -<?php } ?>
382 -<?php if ( ! empty( $defaults['font_size'] ) ) { ?>
383 - font-size: var(--font-size)<?php echo esc_html( $important ); ?>;
384 -<?php } ?>
385 -<?php if ( ! empty( $defaults['label_color'] ) ) { ?>
386 - color: var(--label-color)<?php echo esc_html( $important ); ?>;
387 -<?php } ?>
388 -<?php if ( ! empty( $defaults['weight'] ) ) { ?>
389 - font-weight: var(--weight)<?php echo esc_html( $important ); ?>;
390 -<?php } ?>
391 -<?php if ( ! empty( $defaults['align'] ) ) { ?>
392 - text-align: var(--align)<?php echo esc_html( $important ); ?>;
393 -<?php } ?>
394 -<?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
395 - padding: var(--label-padding)<?php echo esc_html( $important ); ?>;
396 -<?php } ?>
397 - margin:0;
398 - width:auto;
399 - display:block;
400 81 }
401 82
402 83 .with_frm_style .frm_top_container .frm_primary_label,
403 84 .with_frm_style .frm_hidden_container .frm_primary_label,
@@ -417,12 +98,8 @@
417 98 float:right;
418 99 margin-left:10px;
419 100 }
420 101
421 -.with_frm_style .frm_pos_center {
422 - text-align: center;
423 -}
424 -
425 102 .with_frm_style .frm_none_container .frm_primary_label,
426 103 .with_frm_style .frm_pos_none,
427 104 .frm_pos_none,
428 105 .frm_none_container .frm_primary_label{
@@ -428,13 +105,11 @@
428 105 .frm_none_container .frm_primary_label{
429 106 display:none;
430 107 }
431 108
432 -<?php if ( $pro_is_installed ) { ?>
433 109 .with_frm_style .frm_section_heading.frm_hide_section{
434 110 margin-top:0 !important;
435 111 }
436 -<?php } ?>
437 112
438 113 .with_frm_style .frm_hidden_container .frm_primary_label,
439 114 .with_frm_style .frm_pos_hidden,
440 115 .frm_hidden_container .frm_primary_label{
@@ -441,86 +116,23 @@
441 116 visibility:hidden;
442 117 white-space:nowrap;
443 118 }
444 119
120 +.with_frm_style .frm_inside_container .frm_primary_label{
121 + opacity:0;
122 + transition: opacity 0.1s linear;
123 +}
124 +
125 +.with_frm_style .frm_inside_container label.frm_visible,
445 126 .frm_visible{
446 127 opacity:1;
447 128 }
448 129
449 -/* Floating labels */
450 -.with_frm_style .frm_inside_container {
451 - position: relative;
452 - padding-top: 18px;
453 - padding-top: calc(0.5 * var(--field-height));
454 -}
455 -
456 -.with_frm_style .frm_inside_container > input,
457 -.with_frm_style .frm_inside_container > select,
458 -.with_frm_style .frm_inside_container > textarea {
459 - display: block;
460 -}
461 -
462 -.with_frm_style input::placeholder,
463 -.with_frm_style textarea::placeholder {
464 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
465 -}
466 -
467 -.with_frm_style .frm_inside_container > input::placeholder,
468 -.with_frm_style .frm_inside_container > textarea::placeholder {
469 - opacity: 0;
470 - transition: opacity 0.3s ease-in;
471 -}
472 -
473 -.with_frm_style .frm_inside_container > label {
474 - transition: all 0.3s ease-in;
475 -
476 - position: absolute;
477 - top: 19px;
478 - top: calc(1px + .5 * var(--field-height));
479 - left: 3px;
480 - width: 100%;
481 -
482 - line-height: 1.3;
483 - text-overflow: ellipsis;
484 - overflow: hidden;
485 - white-space: nowrap;
486 -
487 - padding: 8px 12px;
488 - padding: var(--field-pad);
489 -
490 - font-size: 14px;
491 - font-size: var(--field-font-size);
492 - font-weight: normal;
493 - font-weight: var(--field-weight);
494 -
495 - pointer-events: none;
496 -}
497 -
498 -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
499 - line-height: 1;
500 -}
501 -
502 -.with_frm_style .frm_inside_container.frm_label_float_top > label {
503 - top: 0;
504 - left: 0;
505 - padding: 0;
506 - font-size: 12px;
507 - font-size: calc(0.85 * var(--field-font-size));
508 -}
509 -
510 -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
511 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
512 - opacity: 1;
513 - transition: opacity 0.3s ease-in;
514 -}
515 -/* End floating label */
516 -
517 -.with_frm_style .frm_description,
518 -.with_frm_style .frm_pro_max_limit_desc{
130 +.with_frm_style .frm_description{
519 131 clear:both;
520 132 }
521 133
522 -.with_frm_style input[type=number][readonly] {
134 +.with_frm_style input[type=number][readonly]{
523 135 -moz-appearance: textfield;
524 136 }
525 137
526 138 .with_frm_style select[multiple="multiple"]{
@@ -527,9 +139,8 @@
527 139 height:auto;
528 140 line-height:normal;
529 141 }
530 142
531 -<?php if ( $pro_is_installed ) { ?>
532 143 .with_frm_style .frm_catlevel_2,
533 144 .with_frm_style .frm_catlevel_3,
534 145 .with_frm_style .frm_catlevel_4,
535 146 .with_frm_style .frm_catlevel_5{
@@ -534,11 +145,9 @@
534 145 .with_frm_style .frm_catlevel_4,
535 146 .with_frm_style .frm_catlevel_5{
536 147 margin-left:18px;
537 148 }
538 -<?php } ?>
539 149
540 -<?php if ( $pro_is_installed ) { ?>
541 150 .with_frm_style .wp-editor-container{
542 151 border:1px solid #e5e5e5;
543 152 }
544 153
@@ -548,69 +157,32 @@
548 157
549 158 .with_frm_style .wp-editor-container textarea{
550 159 border:none;
551 160 }
552 -<?php } ?>
553 161
162 +.with_frm_style textarea{
163 + height:auto;
164 +}
165 +
554 166 .with_frm_style .auto_width #loginform input,
555 167 .with_frm_style .auto_width input,
556 168 .with_frm_style input.auto_width,
557 169 .with_frm_style select.auto_width,
558 170 .with_frm_style textarea.auto_width{
559 - width:auto<?php echo esc_html( $important ); ?>;
171 + width:auto;
560 172 }
561 173
562 -<?php if ( $pro_is_installed ) { ?>
563 174 .with_frm_style .frm_repeat_buttons{
564 175 white-space:nowrap;
565 176 }
566 -<?php } ?>
567 177
568 178 .with_frm_style .frm_button{
569 - text-decoration:none !important;
179 + text-decoration:none;
570 180 border:1px solid #eee;
571 - display:inline-block;
572 -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
573 - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
574 -<?php } else { ?>
575 181 padding:5px;
576 -<?php } ?>
577 -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
578 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
579 -<?php } ?>
580 -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
581 - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
582 -<?php } ?>
583 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
584 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
585 -<?php } ?>
586 -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
587 - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
588 -<?php } ?>
589 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
590 - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
591 -<?php } ?>
592 -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
593 - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
594 -<?php } ?>
595 -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
596 - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
597 -<?php } ?>
598 -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
599 - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
600 -<?php } ?>
601 -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
602 - height: var(--submit-height)<?php echo esc_html( $important ); ?>;
603 -<?php } ?>
182 + display:inline;
604 183 }
605 184
606 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
607 -.with_frm_style .frm_button.frm_inverse{
608 - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
609 - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
610 -}
611 -<?php } ?>
612 -
613 185 .with_frm_style .frm_submit{
614 186 clear:both;
615 187 }
616 188
@@ -633,29 +205,8 @@
633 205 .with_frm_style.frm_center_submit .frm_submit{
634 206 text-align:center;
635 207 }
636 208
637 -.with_frm_style.frm_center_submit .frm_flex.frm_submit {
638 - justify-content: center;
639 -}
640 -
641 -.with_frm_style .frm_inline_success .frm_submit{
642 - display: flex;
643 - flex-direction: row;
644 - align-items: center;
645 - margin: 0;
646 -}
647 -
648 -.with_frm_style .frm_inline_success .frm_submit .frm_message{
649 - flex: 1;
650 - margin: 0;
651 - padding-left: 10px;
652 -}
653 -
654 -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
655 - text-align: right;
656 -}
657 -
658 209 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
659 210 .with_frm_style.frm_center_submit .frm_submit input[type=button],
660 211 .with_frm_style.frm_center_submit .frm_submit button{
661 212 margin-bottom:8px !important;
@@ -660,11 +211,8 @@
660 211 .with_frm_style.frm_center_submit .frm_submit button{
661 212 margin-bottom:8px !important;
662 213 }
663 214
664 -<?php if ( $pro_is_installed ) { ?>
665 -.with_frm_style .frm-edit-page-btn,
666 -<?php } ?>
667 215 .with_frm_style .frm_submit input[type=submit],
668 216 .with_frm_style .frm_submit input[type=button],
669 217 .with_frm_style .frm_submit button{
670 218 -webkit-appearance: none;
@@ -675,28 +223,20 @@
675 223 display: block;
676 224 margin: 0 auto;
677 225 }
678 226
679 -.with_frm_style .frm_loading_prev .frm_ajax_loading,
680 227 .with_frm_style .frm_loading_form .frm_ajax_loading{
681 228 /* keep this for reverse compatibility for old HTML */
682 229 visibility:visible !important;
683 230 }
684 231
685 -<?php if ( $pro_is_installed ) { ?>
686 -.with_frm_style .frm_loading_prev .frm_prev_page,
687 -<?php } ?>
688 232 .with_frm_style .frm_loading_form .frm_button_submit {
689 233 position: relative;
234 + opacity: .8;
690 235 color: transparent !important;
691 236 text-shadow: none !important;
692 237 }
693 238
694 -<?php if ( $pro_is_installed ) { ?>
695 -.with_frm_style .frm_loading_prev .frm_prev_page:hover,
696 -.with_frm_style .frm_loading_prev .frm_prev_page:active,
697 -.with_frm_style .frm_loading_prev .frm_prev_page:focus,
698 -<?php } ?>
699 239 .with_frm_style .frm_loading_form .frm_button_submit:hover,
700 240 .with_frm_style .frm_loading_form .frm_button_submit:active,
701 241 .with_frm_style .frm_loading_form .frm_button_submit:focus {
702 242 cursor: not-allowed;
@@ -704,11 +244,8 @@
704 244 outline: none !important;
705 245 box-shadow: none;
706 246 }
707 247
708 -<?php if ( $pro_is_installed ) { ?>
709 -.with_frm_style .frm_loading_prev .frm_prev_page::before,
710 -<?php } ?>
711 248 .with_frm_style .frm_loading_form .frm_button_submit:before {
712 249 content: '';
713 250 display: inline-block;
714 251 position: absolute;
@@ -717,9 +254,9 @@
717 254 border-top-color: transparent;
718 255 border-left-color: transparent;
719 256 border-radius: 50%;
720 257 box-sizing: border-box;
721 - <?php $loader_size = 12; ?>
258 + <?php $loader_size = 20; ?>
722 259 top: 50%;
723 260 left: 50%;
724 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
725 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -724,30 +261,19 @@
724 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
725 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
726 263 width: <?php echo absint( $loader_size ); ?>px;
727 264 height: <?php echo absint( $loader_size ); ?>px;
728 - animation: spin 2s linear infinite;
265 + -webkit-animation: spin 2s linear infinite;
266 + -moz-animation: spin 2s linear infinite;
267 + -o-animation: spin 2s linear infinite;
268 + animation: spin 2s linear infinite;
729 269 }
730 270
731 -.with_frm_style .frm_submit.frm_flex {
732 - align-items: center;
733 - gap: 2%;
734 -}
735 -
736 -<?php if ( $pro_is_installed ) { ?>
737 -.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
738 - order: -1;
739 -}
740 -<?php } ?>
741 -
742 271 <?php
743 272 foreach ( $styles as $style ) {
744 - include __DIR__ . '/_single_theme.css.php';
273 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
745 274 unset( $style );
746 275 }
747 -
748 -// Set it again since it may have been overridden.
749 -$important = ! empty( $defaults['important_style'] ) ? ' !important' : '';
750 276 ?>
751 277
752 278 .frm_ajax_loading{
753 279 visibility:hidden;
@@ -761,19 +287,8 @@
761 287 a.frm_save_draft{
762 288 cursor:pointer;
763 289 }
764 290
765 -<?php if ( $pro_is_installed ) { ?>
766 -.with_frm_style a.frm_save_draft,
767 -.with_frm_style a.frm_start_over{
768 - <?php if ( ! empty( $defaults['font'] ) ) { ?>
769 - font-family: var(--font);
770 -<?php } ?>
771 - font-size: var(--submit-font-size);
772 - font-weight: var(--submit-weight);
773 -}
774 -<?php } ?>
775 -
776 291 .horizontal_radio .frm_radio{
777 292 margin:0 5px 0 0;
778 293 }
779 294
@@ -778,9 +293,9 @@
778 293 }
779 294
780 295 .horizontal_radio .frm_checkbox{
781 296 margin:0;
782 - margin-right:12px;
297 + margin-right:5px;
783 298 }
784 299
785 300 .vertical_radio .frm_checkbox,
786 301 .vertical_radio .frm_radio,
@@ -791,72 +306,23 @@
791 306 .horizontal_radio .frm_checkbox,
792 307 .horizontal_radio .frm_radio,
793 308 .horizontal_radio .frm_catlevel_1{
794 309 display:inline-block;
795 - padding-left: 0;
796 310 }
797 311
798 -.with_frm_style .frm_radio{
799 - display: var(--radio-align)<?php echo esc_html( $important ); ?>;
800 -}
801 -
802 -.with_frm_style .frm_checkbox{
803 - display: var(--check-align)<?php echo esc_html( $important ); ?>;
804 -}
805 -
806 -.with_frm_style .vertical_radio .frm_checkbox,
807 -.with_frm_style .vertical_radio .frm_radio,
808 -.vertical_radio .frm_catlevel_1{
809 - display:block<?php echo esc_html( $important ); ?>;
810 - margin-bottom: 10px;
811 -}
812 -
813 -.with_frm_style .horizontal_radio .frm_checkbox,
814 -.with_frm_style .horizontal_radio .frm_radio,
815 -.horizontal_radio .frm_catlevel_1{
816 - display:inline-block<?php echo esc_html( $important ); ?>;
817 -}
818 -
819 312 .with_frm_style .frm_checkbox label,
820 -.with_frm_style .frm_radio label {
821 - display: inline-block;
822 - vertical-align: middle;
313 +.with_frm_style .frm_radio label{
314 + display: inline;
823 315 white-space:normal;
824 316 }
825 317
826 -.with_frm_style .frm_checkbox label input[type=checkbox],
827 -.with_frm_style .frm_radio label input[type=radio] {
828 - margin-right: 4px;
829 -}
830 -
831 -.with_frm_style .frm_checkbox label:not(.frm-label-disabled),
832 -.with_frm_style .frm_radio label:not(.frm-label-disabled) {
833 - cursor: pointer;
834 -}
835 -
836 318 .with_frm_style .vertical_radio .frm_checkbox label,
837 319 .with_frm_style .vertical_radio .frm_radio label{
838 320 display: block;
839 - width: 100%;
321 + padding-left: 20px;
322 + text-indent: -20px;
840 323 }
841 324
842 -.with_frm_style .frm_radio label,
843 -.with_frm_style .frm_checkbox label {
844 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
845 - font-family: var(--font);
846 -<?php } ?>
847 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
848 - color: var(--check-label-color)<?php echo esc_html( $important ); ?>;
849 - font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>;
850 - line-height: 1.3;
851 -}
852 -
853 -.with_frm_style .frm_radio input[type=radio],
854 -.with_frm_style .frm_checkbox input[type=checkbox] {
855 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
856 - position: static<?php echo esc_html( $important ); ?>;
857 -}
858 -
859 325 .frm_file_container .frm_file_link,
860 326 .with_frm_style .frm_radio label .frm_file_container,
861 327 .with_frm_style .frm_checkbox label .frm_file_container{
862 328 display:inline-block;
@@ -863,104 +329,31 @@
863 329 margin:5px;
864 330 vertical-align:middle;
865 331 }
866 332
867 -.with_frm_style .frm_radio input[type=radio]
868 -<?php if ( $pro_is_installed ) : ?>
869 -, .with_frm_style .frm_scale input[type=radio]
870 -<?php endif; ?>
871 -{
333 +.with_frm_style .frm_radio input[type=radio]{
334 + -webkit-appearance:radio;
872 335 border-radius:50%;
873 336 }
874 337
875 -.with_frm_style .frm_checkbox input[type=checkbox] {
876 - border-radius: calc(var(--border-radius) / 2) !important;
338 +.with_frm_style .frm_checkbox input[type=checkbox]{
339 + -webkit-appearance:checkbox;
340 + border-radius:0;
877 341 }
878 342
879 343 .with_frm_style .frm_radio input[type=radio],
880 -<?php if ( $pro_is_installed ) : ?>
881 -.with_frm_style .frm_scale input[type=radio],
882 -<?php endif; ?>
883 344 .with_frm_style .frm_checkbox input[type=checkbox]{
884 - appearance: none;
885 - background-color: var(--bg-color);
886 345 flex: none;
887 - display:inline-block !important;
888 - width: 16px !important;
889 - min-width: 16px !important;
890 - height: 16px !important;
891 - color: var(--border-color);
892 - border: 1px solid currentColor;
893 - border-color: var(--border-color);
894 - vertical-align: middle;
346 + display:inline-block;
347 + margin:4px 5px 0 0;
348 + width:auto;
349 + border:none;
350 + vertical-align:baseline;
895 351 position: initial; /* override Bootstrap */
896 - padding: 0;
897 - margin: 0;
898 352 }
899 353
900 -.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked,
901 -<?php if ( $pro_is_installed ) : ?>
902 -.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked,
903 -<?php endif; ?>
904 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
905 - border-color: var(--border-color-active) !important;
906 -}
907 -
908 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
909 - background-color: var(--border-color-active) !important;
910 -}
911 -
912 -.with_frm_style .frm_radio input[type=radio][disabled]:checked,
913 -<?php if ( $pro_is_installed ) : ?>
914 -.with_frm_style .frm_scale input[type=radio][disabled]:checked,
915 -<?php endif; ?>
916 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
917 - border-color: var(--border-color) !important; /* Override Style Preview */
918 -}
919 -
920 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
921 - background-color: var(--border-color) !important;
922 -}
923 -
924 -.with_frm_style .frm_radio input[type=radio]:checked:before,
925 -<?php if ( $pro_is_installed ) { ?>
926 -.with_frm_style .frm_scale input[type=radio]:checked:before,
927 -<?php } ?>
928 -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
929 - position: static !important; /* Override Style Preview */
930 - content: '';
931 - display: block;
932 -}
933 -
934 -.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before {
935 - width: 100% !important;
936 - height: 100% !important;
937 - background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6667 1.5L4.25001 7.91667L1.33334 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") !important;
938 - background-size: 9px !important;
939 - background-repeat: no-repeat !important;
940 - background-position: center !important;
941 - margin: 0;
942 -}
943 -
944 -<?php if ( $pro_is_installed ) { ?>
945 -.with_frm_style .frm_scale input[type=radio]:before,
946 -<?php } ?>
947 -.with_frm_style .frm_radio input[type=radio]:before {
948 - width: 8px;
949 - height: 8px;
950 - border-radius: 50%;
951 - background-color: var(--border-color-active);
952 - margin: 3px;
953 -}
954 -
955 -<?php if ( $pro_is_installed ) { ?>
956 -.with_frm_style .frm_scale input[type=radio][disabled]:before,
957 -<?php } ?>
958 -.with_frm_style .frm_radio input[type=radio][disabled]:before {
959 - background-color: var(--border-color);
960 -}
961 -
962 354 .with_frm_style :invalid,
355 +.with_frm_style :-moz-submit-invalid,
963 356 .with_frm_style :-moz-ui-invalid{
964 357 box-shadow:none;
965 358 }
966 359
@@ -976,43 +369,18 @@
976 369
977 370 .with_frm_style .frm_error_style,
978 371 .with_frm_style .frm_message,
979 372 .frm_success_style{
373 + -moz-border-radius:4px;
374 + -webkit-border-radius:4px;
980 375 border-radius:4px;
981 376 padding:15px;
982 377 }
983 378
984 -.with_frm_style .frm_message p {
985 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
986 - margin-bottom: 0;
379 +.with_frm_style .frm_message p{
380 + margin-bottom:5px;
987 381 }
988 382
989 -.with_frm_style .frm_message > p:first-of-type {
990 - margin-top: 0;
991 -}
992 -
993 -.with_frm_style .frm_message,
994 -.frm_success_style {
995 - margin: 5px 0 15px;
996 - border: 1px solid var(--success-border-color);
997 - background-color: var(--success-bg-color);
998 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
999 - border-radius: var(--border-radius);
1000 - font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>;
1001 -}
1002 -
1003 -.with_frm_style .frm_plain_success .frm_message {
1004 - background-color: transparent;
1005 - padding:0;
1006 - border:none;
1007 - font-size:inherit<?php echo esc_html( $important ); ?>;
1008 - color:inherit<?php echo esc_html( $important ); ?>;
1009 -}
1010 -
1011 -.with_frm_style .frm_plain_success .frm_message p {
1012 - color:inherit<?php echo esc_html( $important ); ?>;
1013 -}
1014 -
1015 383 .frm_form_fields_style,
1016 384 .frm_form_fields_active_style,
1017 385 .frm_form_fields_error_style,
1018 386 .frm_form_submit_style{
@@ -1033,11 +401,9 @@
1033 401 .frm-grid th{
1034 402 padding:5px;
1035 403 border-width:1px;
1036 404 border-style:solid;
1037 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1038 - border-color: var(--border-color);
1039 - <?php } ?>
405 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1040 406 border-top:none;
1041 407 border-left:none;
1042 408 border-right:none;
1043 409 }
@@ -1043,20 +409,13 @@
1043 409 }
1044 410
1045 411 .frm-alt-table {
1046 412 width:100%;
1047 - border-collapse:separate;
413 + border-collapse:collapse;
1048 414 margin-top:0.5em;
1049 415 font-size:15px;
1050 - border-width:1px;
1051 416 }
1052 417
1053 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1054 -.with_frm_style .frm-alt-table{
1055 - border-color: var(--border-color);
1056 -}
1057 -<?php } ?>
1058 -
1059 418 .frm-alt-table th {
1060 419 width:200px;
1061 420 }
1062 421
@@ -1069,9 +428,8 @@
1069 428 background-color:transparent;
1070 429 vertical-align:top;
1071 430 text-align:left;
1072 431 padding:20px;
1073 - border-color:transparent;
1074 432 }
1075 433
1076 434 .frm-alt-table tr:nth-child(even) {
1077 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
@@ -1076,63 +434,33 @@
1076 434 .frm-alt-table tr:nth-child(even) {
1077 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1078 436 }
1079 437
1080 -<?php if ( $pro_is_installed ) { ?>
1081 438 table.form_results.with_frm_style{
1082 - border-style: solid;
1083 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1084 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
439 + border:1px solid #ccc;
1085 440 }
1086 441
1087 442 table.form_results.with_frm_style tr td{
1088 443 text-align:left;
444 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1089 445 padding:7px 9px;
1090 - <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1091 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
1092 -<?php } ?>
1093 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1094 - border-top-style: solid;
1095 - border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1096 - border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1097 -<?php } ?>
446 + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1098 447 }
1099 -<?php } ?>
1100 448
1101 449 table.form_results.with_frm_style tr.frm_even,
1102 450 .frm-grid .frm_even{
1103 451 background-color:#fff;
1104 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1105 452 }
1106 453
1107 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1108 454 table.form_results.with_frm_style tr.frm_odd,
1109 -.frm-grid .frm_odd {
1110 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
1111 -}
1112 -<?php } ?>
1113 -
1114 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1115 -.frm_color_block {
455 +.frm-grid .frm_odd{
1116 456 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1117 - padding: 40px;
1118 457 }
1119 458
1120 - <?php if ( $pro_is_installed ) { ?>
1121 -.with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1122 -.frm_color_block.frm_section_heading h3 {
1123 - border-width: 0 !important;
1124 -}
1125 - <?php } ?>
1126 -<?php } ?>
1127 -
1128 -<?php if ( $pro_is_installed ) { ?>
1129 459 .frm_collapse .ui-icon{
1130 460 display:inline-block;
1131 461 }
1132 -<?php } ?>
1133 462
1134 -<?php if ( $pro_is_installed ) { ?>
1135 463 .frm_toggle_container{
1136 464 /* Prevent the slide and bounce */
1137 465 border:1px solid transparent;
1138 466 }
@@ -1149,11 +477,9 @@
1149 477
1150 478 .frm_toggle_container .frm_month_listing{
1151 479 margin-left:40px;
1152 480 }
1153 -<?php } ?>
1154 481
1155 -<?php if ( $pro_is_installed ) { ?>
1156 482 #frm_loading{
1157 483 display:none;
1158 484 position:fixed;
1159 485 top:0;
@@ -1196,30 +522,25 @@
1196 522 #frm_loading .progress.active .progress-bar{
1197 523 animation:2s linear 0s normal none infinite progress-bar-stripes;
1198 524 }
1199 525
1200 - <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1201 -#frm_loading .progress-striped .progress-bar {
1202 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1203 - 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 - <?php } ?>
526 +<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
527 +#frm_loading .progress-striped .progress-bar{
528 + background-image:linear-gradient(45deg, <?php echo esc_html( $defaults['border_color'] ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $defaults['border_color'] ); ?> 50%, <?php echo esc_html( $defaults['border_color'] ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
1205 529 background-size:40px 40px;
1206 530 }
1207 531 <?php } ?>
1208 532
1209 -#frm_loading .progress-bar {
1210 - background-color: var(--bg-color);
1211 - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1212 - float: left;
1213 - height: 100%;
1214 - line-height: 20px;
1215 - text-align: center;
1216 - transition: width 0.6s ease 0s;
1217 - width: 100%;
533 +#frm_loading .progress-bar{
534 + background-color:<?php echo esc_html( empty( $defaults['bg_color'] ) ? 'transparent' : $defaults['bg_color'] ); ?>;
535 + box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset;
536 + float:left;
537 + height:100%;
538 + line-height:20px;
539 + text-align:center;
540 + transition:width 0.6s ease 0s;
541 + width:100%;
1218 542 }
1219 - <?php
1220 -}//end if
1221 -?>
1222 543
1223 544 .frm_image_from_url{
1224 545 height:50px;
1225 546 }
@@ -1228,9 +549,8 @@
1228 549 background:url(../images/ajax_loader.gif) no-repeat center center;
1229 550 padding:6px 12px;
1230 551 }
1231 552
1232 -<?php if ( $pro_is_installed ) { ?>
1233 553 select.frm_loading_lookup{
1234 554 background-image: url(../images/ajax_loader.gif) !important;
1235 555 background-position: 10px;
1236 556 background-repeat: no-repeat;
@@ -1235,25 +555,22 @@
1235 555 background-position: 10px;
1236 556 background-repeat: no-repeat;
1237 557 color: transparent !important;
1238 558 }
1239 -<?php } ?>
1240 559
1241 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
560 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1242 561
1243 -<?php if ( $pro_is_installed ) { ?>
1244 562 .frm_conf_field.frm_left_container .frm_primary_label{
1245 563 display:none;
1246 564 }
1247 -<?php } ?>
1248 565
1249 -<?php if ( $pro_is_installed ) { ?>
1250 566 .wp-editor-wrap *,
1251 567 .wp-editor-wrap *:after,
1252 568 .wp-editor-wrap *:before{
569 + -webkit-box-sizing:content-box;
570 + -moz-box-sizing:content-box;
1253 571 box-sizing:content-box;
1254 572 }
1255 -<?php } ?>
1256 573
1257 574 .with_frm_style .frm_grid,
1258 575 .with_frm_style .frm_grid_first,
1259 576 .with_frm_style .frm_grid_odd{
@@ -1261,11 +578,9 @@
1261 578 margin-bottom:0 !important;
1262 579 padding:5px;
1263 580 border-width:1px;
1264 581 border-style:solid;
1265 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1266 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1267 -<?php } ?>
582 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1268 583 border-left:none;
1269 584 border-right:none;
1270 585 }
1271 586
@@ -1275,12 +590,9 @@
1275 590 }
1276 591
1277 592 .frm_grid .frm_error,
1278 593 .frm_grid_first .frm_error,
1279 -.frm_grid_odd .frm_error,
1280 -.frm_grid .frm_limit_error,
1281 -.frm_grid_first .frm_limit_error,
1282 -.frm_grid_odd .frm_limit_error{
594 +.frm_grid_odd .frm_error{
1283 595 display:none;
1284 596 }
1285 597
1286 598 .frm_grid:after,
@@ -1297,28 +609,17 @@
1297 609 .frm_grid_first{
1298 610 margin-top:20px;
1299 611 }
1300 612
1301 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1302 613 .frm_grid_first,
1303 -.frm_grid_odd {
1304 - background-color: var(--bg-color);
614 +.frm_grid_odd{
615 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1305 616 }
1306 -<?php } ?>
1307 617
1308 -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1309 -.frm_grid {
1310 - background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>;
618 +.frm_grid{
619 + background-color:<?php echo esc_html( $defaults['bg_color_active'] ); ?>;
1311 620 }
1312 -<?php } ?>
1313 621
1314 -.with_frm_style .frm_grid.frm_blank_field,
1315 -.with_frm_style .frm_grid_first.frm_blank_field,
1316 -.with_frm_style .frm_grid_odd.frm_blank_field{
1317 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1318 - border-color: var(--error-border);
1319 -}
1320 -
1321 622 .frm_grid .frm_primary_label,
1322 623 .frm_grid_first .frm_primary_label,
1323 624 .frm_grid_odd .frm_primary_label,
1324 625 .frm_grid .frm_radio,
@@ -1338,10 +639,9 @@
1338 639 .frm_grid_odd .frm_radio label,
1339 640 .frm_grid_first .frm_checkbox label,
1340 641 .frm_grid .frm_checkbox label,
1341 642 .frm_grid_odd .frm_checkbox label{
1342 - color:transparent;
1343 - text-indent: -9999px;
643 + visibility:hidden;
1344 644 white-space:nowrap;
1345 645 text-align:left;
1346 646 }
1347 647
@@ -1364,8 +664,105 @@
1364 664 .frm_grid_odd .frm_checkbox{
1365 665 display:inline;
1366 666 }
1367 667
668 +.frm_grid_2 .frm_radio,
669 +.frm_grid_2 .frm_checkbox,
670 +.frm_grid_2 .frm_primary_label{
671 + width:48% !important;
672 +}
673 +
674 +.frm_grid_2 .frm_radio,
675 +.frm_grid_2 .frm_checkbox{
676 + margin-right:4%;
677 +}
678 +
679 +.frm_grid_3 .frm_radio,
680 +.frm_grid_3 .frm_checkbox,
681 +.frm_grid_3 .frm_primary_label{
682 + width:30% !important;
683 +}
684 +
685 +.frm_grid_3 .frm_radio,
686 +.frm_grid_3 .frm_checkbox{
687 + margin-right:3%;
688 +}
689 +
690 +.frm_grid_4 .frm_radio,
691 +.frm_grid_4 .frm_checkbox{
692 + width:20% !important;
693 +}
694 +
695 +.frm_grid_4 .frm_primary_label{
696 + width:28% !important;
697 +}
698 +
699 +.frm_grid_4 .frm_radio,
700 +.frm_grid_4 .frm_checkbox{
701 + margin-right:4%;
702 +}
703 +
704 +.frm_grid_5 .frm_primary_label,
705 +.frm_grid_7 .frm_primary_label{
706 + width:24% !important;
707 +}
708 +
709 +.frm_grid_5 .frm_radio,
710 +.frm_grid_5 .frm_checkbox{
711 + width:17% !important;
712 + margin-right:2%;
713 +}
714 +
715 +.frm_grid_6 .frm_primary_label{
716 + width:25% !important;
717 +}
718 +
719 +.frm_grid_6 .frm_radio,
720 +.frm_grid_6 .frm_checkbox{
721 + width:14% !important;
722 + margin-right:1%;
723 +}
724 +
725 +.frm_grid_7 .frm_primary_label{
726 + width:22% !important;
727 +}
728 +
729 +.frm_grid_7 .frm_radio,
730 +.frm_grid_7 .frm_checkbox{
731 + width:12% !important;
732 + margin-right:1%;
733 +}
734 +
735 +.frm_grid_8 .frm_primary_label{
736 + width:23% !important;
737 +}
738 +
739 +.frm_grid_8 .frm_radio,
740 +.frm_grid_8 .frm_checkbox{
741 + width:10% !important;
742 + margin-right:1%;
743 +}
744 +
745 +.frm_grid_9 .frm_primary_label{
746 + width:20% !important;
747 +}
748 +
749 +.frm_grid_9 .frm_radio,
750 +.frm_grid_9 .frm_checkbox{
751 + width:9% !important;
752 + margin-right:1%;
753 +}
754 +
755 +.frm_grid_10 .frm_primary_label{
756 + width:19% !important;
757 +}
758 +
759 +.frm_grid_10 .frm_radio,
760 +.frm_grid_10 .frm_checkbox{
761 + width:8% !important;
762 + margin-right:1%;
763 +}
764 +
1368 765 .frm_form_field.frm_inline_container .frm_opt_container,
1369 766 .frm_form_field.frm_right_container .frm_opt_container,
1370 767 .frm_form_field.frm_left_container .frm_opt_container{
1371 768 padding-top:4px;
@@ -1370,18 +767,8 @@
1370 767 .frm_form_field.frm_left_container .frm_opt_container{
1371 768 padding-top:4px;
1372 769 }
1373 770
1374 -.with_frm_style .frm_left_container > select.auto_width,
1375 -.with_frm_style .frm_right_container > select.auto_width {
1376 - width: max-content<?php echo esc_html( $important ); ?>;
1377 -}
1378 -
1379 -.with_frm_style .frm_right_container > .frm_primary_label,
1380 -.with_frm_style .frm_right_container > select.auto_width {
1381 - margin-left: auto<?php echo esc_html( $important ); ?>;
1382 -}
1383 -
1384 771 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1385 772 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1386 773 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1387 774 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1416,9 +803,11 @@
1416 803 grid-column-end: span 1;
1417 804 }
1418 805
1419 806 .frm_form_field .frm_checkbox,
1420 -.frm_form_field .frm_radio {
807 +.frm_form_field .frm_checkbox + .frm_checkbox,
808 +.frm_form_field .frm_radio,
809 +.frm_form_field .frm_radio + .frm_radio{
1421 810 margin-top: 0;
1422 811 margin-bottom: 0;
1423 812 }
1424 813
@@ -1427,28 +816,30 @@
1427 816 overflow:auto;
1428 817 }
1429 818
1430 819 .frm_html_container.frm_scroll_box,
1431 -.frm_form_field.frm_html_scroll_box {
1432 - height: 100px;
1433 - overflow: auto;
1434 - background-color: var(--bg-color);
1435 - border-color: var(--border-color);
1436 - border-width: var(--field-border-width);
1437 - border-style: var(--field-border-style);
1438 - border-radius: var(--border-radius);
1439 - width: var(--field-width);
1440 - max-width: 100%;
1441 - font-size: var(--field-font-size);
1442 - padding: var(--field-pad);
1443 - box-sizing: border-box;
1444 - outline: none<?php echo esc_html( $important ); ?>;
1445 - font-weight: normal;
1446 - box-shadow: var(--box-shadow);
820 +.frm_form_field.frm_html_scroll_box{
821 + height:100px;
822 + overflow:auto;
823 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
824 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
825 + border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
826 + border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
827 + -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
828 + -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
829 + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
830 + width:<?php echo esc_html( $defaults['field_width'] == '' ? 'auto' : $defaults['field_width'] ); ?>;
831 + max-width:100%;
832 + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
833 + padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
834 + -webkit-box-sizing:border-box;
835 + -moz-box-sizing:border-box;
836 + box-sizing:border-box;
837 + outline:none;
838 + font-weight:normal;
839 + box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset;
1447 840 }
1448 841
1449 -.frm_form_field.frm_total_big input,
1450 -.frm_form_field.frm_total_big textarea,
1451 842 .frm_form_field.frm_total input,
1452 843 .frm_form_field.frm_total textarea{
1453 844 opacity:1;
1454 845 background-color:transparent !important;
@@ -1453,10 +844,11 @@
1453 844 opacity:1;
1454 845 background-color:transparent !important;
1455 846 border:none !important;
1456 847 font-weight:bold;
848 + -moz-box-shadow:none;
849 + -webkit-box-shadow:none;
1457 850 width:auto !important;
1458 - height:auto !important;
1459 851 box-shadow:none !important;
1460 852 display:inline;
1461 853 -moz-appearance:textfield;
1462 854 padding:0;
@@ -1461,21 +853,19 @@
1461 853 -moz-appearance:textfield;
1462 854 padding:0;
1463 855 }
1464 856
1465 -.frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1466 -.frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1467 857 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1468 858 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1469 859 -webkit-appearance: none;
1470 860 }
1471 861
1472 -.frm_form_field.frm_total_big input:focus,
1473 -.frm_form_field.frm_total_big textarea:focus,
1474 862 .frm_form_field.frm_total input:focus,
1475 863 .frm_form_field.frm_total textarea:focus{
1476 864 background-color:transparent;
1477 865 border:none;
866 + -moz-box-shadow:none;
867 + -webkit-box-shadow:none;
1478 868 box-shadow:none;
1479 869 }
1480 870
1481 871 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1500,30 +890,13 @@
1500 890 .frm_clearfix{
1501 891 display:block;
1502 892 }
1503 893
1504 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1505 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1506 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1507 - margin-bottom: 0 !important;
1508 -}
894 +/* Fonts */
895 +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
896 +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1509 897
1510 -
1511 -<?php
1512 -/**
1513 - * Call action so other plugins can add additional CSS.
1514 - *
1515 - * @param array $args {
1516 - *
1517 - * @type array $defaults
1518 - * }
1519 - */
1520 -do_action( 'frm_include_front_css', compact( 'defaults' ) );
1521 -?>
1522 -
1523 898 /* Responsive */
1524 -
1525 -<?php if ( $pro_is_installed ) { ?>
1526 899 @media only screen and (max-width: 900px) {
1527 900 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1528 901 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1529 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1529,21 +902,13 @@
1529 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1530 903 display: block !important;
1531 904 }
1532 905 }
1533 -<?php } ?>
1534 906
1535 907 @media only screen and (max-width: 600px) {
1536 908 .frm_form_field.frm_four_col .frm_opt_container{
1537 909 grid-template-columns: repeat(2, 1fr);
1538 910 }
1539 -
1540 - <?php if ( $pro_is_installed ) { ?>
1541 - .with_frm_style .frm_repeat_inline,
1542 - .with_frm_style .frm_repeat_grid{
1543 - margin: 20px 0;
1544 - }
1545 - <?php } ?>
1546 911 }
1547 912
1548 913 @media only screen and (max-width: 500px) {
1549 914 .frm_form_field.frm_two_col .frm_radio,
@@ -1568,8 +933,9 @@
1568 933 max-width:302px;
1569 934 border-right:1px solid #d3d3d3;
1570 935 border-radius:4px;
1571 936 box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
937 + -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1572 938 }
1573 939
1574 940 .with_frm_style .g-recaptcha iframe,
1575 941 .with_frm_style .frm-g-recaptcha iframe{
@@ -1575,18 +941,12 @@
1575 941 .with_frm_style .frm-g-recaptcha iframe{
1576 942 width:100%;
1577 943 }
1578 944 }
945 +<?php
1579 946
1580 -.frm-card-element .sq-card-wrapper .sq-card-message {
1581 - margin-bottom: 0;
947 +$frm_settings = FrmAppHelper::get_settings();
948 +if ( $frm_settings->old_css ) {
949 + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
1582 950 }
1583 -.frm-card-errors:empty {
1584 - margin: 0;
1585 -}
1586 -<?php
1587 951
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 -}
952 +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.