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 +116 -838 6.284.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( $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,20 +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 -$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
23 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
24 -$pro_is_installed = FrmAppHelper::pro_is_installed();
25 -$use_chosen_js = FrmStylesHelper::use_chosen_js();
15 +$styles = $frm_style->get_all();
16 +$default_style = $frm_style->get_default_style( $styles );
17 +$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
26 18
27 19 ?>
28 -.with_frm_style{
29 -<?php FrmStylesHelper::output_vars( $defaults ); ?>
30 -}
31 20
21 +.frm_form_field .grecaptcha-badge,
32 22 .frm_hidden,
33 23 .frm_add_form_row.frm_hidden,
34 24 .frm_remove_form_row.frm_hidden,
35 25 .with_frm_style .frm_button.frm_hidden{
@@ -35,41 +25,14 @@
35 25 .with_frm_style .frm_button.frm_hidden{
36 26 display:none;
37 27 }
38 28
39 -.with_frm_style,
40 -.with_frm_style form,
41 -.with_frm_style .frm-show-form div.frm_description p{
42 - text-align: var(--form-align)<?php echo esc_html( $important ); ?>;
29 +form input.frm_verify{
30 + display:none !important;
43 31 }
44 32
45 -/* Keep this. This is used for Honeypot */
46 -input:-webkit-autofill {
47 - -webkit-box-shadow: 0 0 0 30px white inset;
48 -}
49 -
50 -/* Form description */
51 -.with_frm_style .frm-show-form div.frm_description p{
52 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
53 - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
54 -<?php } ?>
55 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
56 - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
57 -<?php } ?>
58 -<?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?>
59 - margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>;
60 -<?php } ?>
61 -<?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?>
62 - margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>;
63 -<?php } ?>
64 -<?php if ( isset( $defaults['form_desc_padding'] ) ) { ?>
65 - padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>;
66 -<?php } ?>
67 -}
68 -
69 33 .with_frm_style fieldset{
70 34 min-width:0;
71 - display: block; /* Override 2021 theme */
72 35 }
73 36
74 37 .with_frm_style fieldset fieldset{
75 38 border:none;
@@ -77,28 +40,8 @@
77 40 padding:0;
78 41 background-color:transparent;
79 42 }
80 43
81 -.with_frm_style .frm_form_fields > fieldset{
82 -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?>
83 - border-width: var(--fieldset)<?php echo esc_html( $important ); ?>;
84 -<?php } ?>
85 - border-style:solid;
86 -<?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?>
87 - border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>;
88 -<?php } ?>
89 - margin:0;
90 -<?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?>
91 - padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>;
92 -<?php } ?>
93 -<?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?>
94 - background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>;
95 -<?php } ?>
96 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
97 - font-family:var(--font);
98 -<?php } ?>
99 -}
100 -
101 44 legend.frm_hidden{
102 45 display:none !important;
103 46 }
104 47
@@ -113,195 +56,9 @@
113 56 .frm_transparent{
114 57 color:transparent;
115 58 }
116 59
117 -.with_frm_style legend + h3,
118 -.with_frm_style h3.frm_form_title{
119 -<?php if ( ! empty( $defaults['title_size'] ) ) { ?>
120 - font-size: var(--title-size)<?php echo esc_html( $important ); ?>;
121 -<?php } ?>
122 -<?php if ( ! empty( $defaults['title_color'] ) ) { ?>
123 - color: var(--title-color)<?php echo esc_html( $important ); ?>;
124 -<?php } ?>
125 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
126 - font-family: var(--font);
127 -<?php } ?>
128 -<?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?>
129 - margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>;
130 -<?php } ?>
131 -<?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?>
132 - margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>;
133 -<?php } ?>
134 -}
135 -
136 -.with_frm_style .frm_form_field.frm_html_container,
137 -.with_frm_style .frm_form_field .frm_show_it{
138 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
139 - font-family: var(--font);
140 -<?php } ?>
141 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
142 - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
143 -<?php } ?>
144 -}
145 -
146 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
147 -.with_frm_style .frm_form_field.frm_html_container{
148 - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
149 -}
150 -<?php } ?>
151 -
152 -.with_frm_style .frm_form_field .frm_show_it{
153 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
154 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
155 -<?php } ?>
156 -<?php if ( ! empty( $defaults['field_weight'] ) ) { ?>
157 - font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>;
158 -<?php } ?>
159 -}
160 -
161 -.with_frm_style .frm_required {
162 -<?php if ( ! empty( $defaults['required_color'] ) ) { ?>
163 - color: var(--required-color)<?php echo esc_html( $important ); ?>;
164 -<?php } ?>
165 -<?php if ( ! empty( $defaults['required_weight'] ) ) { ?>
166 - font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>;
167 -<?php } ?>
168 -}
169 -
170 -<?php if ( $use_chosen_js ) { ?>
171 -.with_frm_style .chosen-container,
172 -<?php } ?>
173 -.with_frm_style input[type=text],
174 -.with_frm_style input[type=password],
175 -.with_frm_style input[type=email],
176 -.with_frm_style input[type=number],
177 -.with_frm_style input[type=url],
178 -.with_frm_style input[type=tel],
179 -.with_frm_style input[type=search],
180 -.with_frm_style select,
181 -.with_frm_style textarea,
182 -.with_frm_style .frm-card-element.StripeElement {
183 - font-family:var(--font)<?php echo esc_html( $important ); ?>;
184 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
185 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
186 -<?php } ?>
187 - margin-bottom:0<?php echo esc_html( $important ); ?>;
188 -}
189 -
190 -.with_frm_style textarea{
191 - vertical-align:top;
192 - height:auto;
193 -}
194 -
195 -<?php if ( $use_chosen_js ) { ?>
196 -.with_frm_style .chosen-container-multi .chosen-choices,
197 -.with_frm_style .chosen-container-single .chosen-single,
198 -<?php } elseif ( $pro_is_installed ) { ?>
199 -.with_frm_style .frm_slimselect.ss-main,
200 -<?php } ?>
201 -.with_frm_style input[type=text],
202 -.with_frm_style input[type=password],
203 -.with_frm_style input[type=email],
204 -.with_frm_style input[type=number],
205 -.with_frm_style input[type=url],
206 -.with_frm_style input[type=tel],
207 -.with_frm_style input[type=phone],
208 -.with_frm_style input[type=search],
209 -.with_frm_style select,
210 -.with_frm_style textarea,
211 -.frm_form_fields_style,
212 -.with_frm_style .frm_scroll_box .frm_opt_container,
213 -.frm_form_fields_active_style,
214 -.frm_form_fields_error_style,
215 -.with_frm_style .frm-card-element.StripeElement {
216 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
217 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
218 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
219 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
220 - border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>;
221 - border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>;
222 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
223 - max-width: 100%;
224 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
225 - padding: var(--field-pad)<?php echo esc_html( $important ); ?>;
226 - box-sizing: border-box;
227 - outline: none<?php echo esc_html( $important ); ?>;
228 - font-weight: var(--field-weight);
229 -}
230 -
231 -<?php if ( ! empty( $important ) ) : ?>
232 - <?php if ( $use_chosen_js ) { ?>
233 - .with_frm_style .chosen-container-multi .chosen-choices,
234 - .with_frm_style .chosen-container-single .chosen-single,
235 - <?php } ?>
236 -.with_frm_style input[type=text],
237 -.with_frm_style input[type=password],
238 -.with_frm_style input[type=email],
239 -.with_frm_style input[type=number],
240 -.with_frm_style input[type=url],
241 -.with_frm_style input[type=tel],
242 -.with_frm_style input[type=phone],
243 -.with_frm_style input[type=search],
244 -.with_frm_style textarea,
245 -.frm_form_fields_style,
246 -.with_frm_style .frm_scroll_box .frm_opt_container,
247 -.frm_form_fields_active_style,
248 -.frm_form_fields_error_style,
249 -.with_frm_style .frm-card-element.StripeElement {
250 - background-image:none !important;
251 -}
252 -<?php endif; ?>
253 -
254 -.with_frm_style select option {
255 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
256 -}
257 -
258 -.with_frm_style select option.frm-select-placeholder {
259 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
260 -}
261 -
262 -.with_frm_style input[type=radio],
263 -.with_frm_style input[type=checkbox]{
264 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
265 - box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>;
266 - float: none;
267 -}
268 -
269 -.with_frm_style input[type=radio]:after,
270 -.with_frm_style input[type=checkbox]:after {
271 - display: none; /* 2021 conflict */
272 -}
273 -
274 -.with_frm_style input[type=radio]:not(:checked):focus,
275 -.with_frm_style input[type=checkbox]:not(:checked):focus {
276 - border-color: var(--border-color) !important;
277 -}
278 -
279 -.with_frm_style input[type=radio]:focus,
280 -.with_frm_style input[type=checkbox]:focus {
281 - box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important;
282 -}
283 -
284 -.with_frm_style input[type=text],
285 -.with_frm_style input[type=password],
286 -.with_frm_style input[type=email],
287 -.with_frm_style input[type=number],
288 -.with_frm_style input[type=url],
289 -.with_frm_style input[type=tel],
290 -.with_frm_style input[type=file],
291 -.with_frm_style input[type=search],
292 -.with_frm_style select,
293 -.with_frm_style .frm-card-element.StripeElement{
294 - min-height: var(--field-height)<?php echo esc_html( $important ); ?>;
295 - line-height:1.3<?php echo esc_html( $important ); ?>;
296 -}
297 -
298 -.with_frm_style select[multiple=multiple]{
299 - height:auto<?php echo esc_html( $important ); ?>;
300 -}
301 -
302 -.input[type=file].frm_transparent:focus,
303 -.with_frm_style input[type=file]{
60 +.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{
304 61 background-color:transparent;
305 62 border:none;
306 63 outline:none;
307 64 box-shadow:none;
@@ -307,54 +64,11 @@
307 64 box-shadow:none;
308 65 }
309 66
310 67 .with_frm_style input[type=file]{
311 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
312 - padding: 0px;
313 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
314 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
315 -<?php } ?>
316 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
317 - display: initial;
68 + display:initial;
318 69 }
319 70
320 -.with_frm_style input[type=file].frm_transparent{
321 - color:transparent<?php echo esc_html( $important ); ?>;
322 -}
323 -
324 -<?php if ( $pro_is_installed ) { ?>
325 -.with_frm_style .wp-editor-wrap{
326 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
327 - max-width:100%;
328 -}
329 -
330 -.with_frm_style .wp-editor-container textarea{
331 - border:none<?php echo esc_html( $important ); ?>;
332 - box-shadow:none !important;
333 -}
334 -
335 -.with_frm_style .mceIframeContainer{
336 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
337 -}
338 -<?php } ?>
339 -
340 -.with_frm_style select{
341 - width: var(--auto-width)<?php echo esc_html( $important ); ?>;
342 - max-width:100%;
343 - background-position-y: calc(50% + 3px);
344 -}
345 -
346 -.with_frm_style input[disabled],
347 -.with_frm_style select[disabled],
348 -.with_frm_style textarea[disabled],
349 -.with_frm_style input[readonly],
350 -.with_frm_style select[readonly],
351 -.with_frm_style textarea[readonly] {
352 - background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
353 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
354 - border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
355 -}
356 -
357 71 .frm_preview_page:before{
358 72 content:normal !important;
359 73 }
360 74
@@ -363,29 +77,8 @@
363 77 }
364 78
365 79 .with_frm_style .frm_primary_label{
366 80 max-width:100%;
367 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
368 - font-family: var(--font);
369 -<?php } ?>
370 -<?php if ( ! empty( $defaults['font_size'] ) ) { ?>
371 - font-size: var(--font-size)<?php echo esc_html( $important ); ?>;
372 -<?php } ?>
373 -<?php if ( ! empty( $defaults['label_color'] ) ) { ?>
374 - color: var(--label-color)<?php echo esc_html( $important ); ?>;
375 -<?php } ?>
376 -<?php if ( ! empty( $defaults['weight'] ) ) { ?>
377 - font-weight: var(--weight)<?php echo esc_html( $important ); ?>;
378 -<?php } ?>
379 -<?php if ( ! empty( $defaults['align'] ) ) { ?>
380 - text-align: var(--align)<?php echo esc_html( $important ); ?>;
381 -<?php } ?>
382 -<?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
383 - padding: var(--label-padding)<?php echo esc_html( $important ); ?>;
384 -<?php } ?>
385 - margin:0;
386 - width:auto;
387 - display:block;
388 81 }
389 82
390 83 .with_frm_style .frm_top_container .frm_primary_label,
391 84 .with_frm_style .frm_hidden_container .frm_primary_label,
@@ -405,12 +98,8 @@
405 98 float:right;
406 99 margin-left:10px;
407 100 }
408 101
409 -.with_frm_style .frm_pos_center {
410 - text-align: center;
411 -}
412 -
413 102 .with_frm_style .frm_none_container .frm_primary_label,
414 103 .with_frm_style .frm_pos_none,
415 104 .frm_pos_none,
416 105 .frm_none_container .frm_primary_label{
@@ -416,13 +105,11 @@
416 105 .frm_none_container .frm_primary_label{
417 106 display:none;
418 107 }
419 108
420 -<?php if ( $pro_is_installed ) { ?>
421 109 .with_frm_style .frm_section_heading.frm_hide_section{
422 110 margin-top:0 !important;
423 111 }
424 -<?php } ?>
425 112
426 113 .with_frm_style .frm_hidden_container .frm_primary_label,
427 114 .with_frm_style .frm_pos_hidden,
428 115 .frm_hidden_container .frm_primary_label{
@@ -429,86 +116,23 @@
429 116 visibility:hidden;
430 117 white-space:nowrap;
431 118 }
432 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,
433 126 .frm_visible{
434 127 opacity:1;
435 128 }
436 129
437 -/* Floating labels */
438 -.with_frm_style .frm_inside_container {
439 - position: relative;
440 - padding-top: 18px;
441 - padding-top: calc(0.5 * var(--field-height));
442 -}
443 -
444 -.with_frm_style .frm_inside_container > input,
445 -.with_frm_style .frm_inside_container > select,
446 -.with_frm_style .frm_inside_container > textarea {
447 - display: block;
448 -}
449 -
450 -.with_frm_style input::placeholder,
451 -.with_frm_style textarea::placeholder {
452 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
453 -}
454 -
455 -.with_frm_style .frm_inside_container > input::placeholder,
456 -.with_frm_style .frm_inside_container > textarea::placeholder {
457 - opacity: 0;
458 - transition: opacity 0.3s ease-in;
459 -}
460 -
461 -.with_frm_style .frm_inside_container > label {
462 - transition: all 0.3s ease-in;
463 -
464 - position: absolute;
465 - top: 19px;
466 - top: calc(1px + .5 * var(--field-height));
467 - left: 3px;
468 - width: 100%;
469 -
470 - line-height: 1.3;
471 - text-overflow: ellipsis;
472 - overflow: hidden;
473 - white-space: nowrap;
474 -
475 - padding: 8px 12px;
476 - padding: var(--field-pad);
477 -
478 - font-size: 14px;
479 - font-size: var(--field-font-size);
480 - font-weight: normal;
481 - font-weight: var(--field-weight);
482 -
483 - pointer-events: none;
484 -}
485 -
486 -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
487 - line-height: 1;
488 -}
489 -
490 -.with_frm_style .frm_inside_container.frm_label_float_top > label {
491 - top: 0;
492 - left: 0;
493 - padding: 0;
494 - font-size: 12px;
495 - font-size: calc(0.85 * var(--field-font-size));
496 -}
497 -
498 -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
499 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
500 - opacity: 1;
501 - transition: opacity 0.3s ease-in;
502 -}
503 -/* End floating label */
504 -
505 -.with_frm_style .frm_description,
506 -.with_frm_style .frm_pro_max_limit_desc{
130 +.with_frm_style .frm_description{
507 131 clear:both;
508 132 }
509 133
510 -.with_frm_style input[type=number][readonly] {
134 +.with_frm_style input[type=number][readonly]{
511 135 -moz-appearance: textfield;
512 136 }
513 137
514 138 .with_frm_style select[multiple="multiple"]{
@@ -515,9 +139,8 @@
515 139 height:auto;
516 140 line-height:normal;
517 141 }
518 142
519 -<?php if ( $pro_is_installed ) { ?>
520 143 .with_frm_style .frm_catlevel_2,
521 144 .with_frm_style .frm_catlevel_3,
522 145 .with_frm_style .frm_catlevel_4,
523 146 .with_frm_style .frm_catlevel_5{
@@ -522,11 +145,9 @@
522 145 .with_frm_style .frm_catlevel_4,
523 146 .with_frm_style .frm_catlevel_5{
524 147 margin-left:18px;
525 148 }
526 -<?php } ?>
527 149
528 -<?php if ( $pro_is_installed ) { ?>
529 150 .with_frm_style .wp-editor-container{
530 151 border:1px solid #e5e5e5;
531 152 }
532 153
@@ -536,70 +157,32 @@
536 157
537 158 .with_frm_style .wp-editor-container textarea{
538 159 border:none;
539 160 }
540 -<?php } ?>
541 161
162 +.with_frm_style textarea{
163 + height:auto;
164 +}
165 +
542 166 .with_frm_style .auto_width #loginform input,
543 167 .with_frm_style .auto_width input,
544 168 .with_frm_style input.auto_width,
545 169 .with_frm_style select.auto_width,
546 170 .with_frm_style textarea.auto_width{
547 - width:auto<?php echo esc_html( $important ); ?>;
171 + width:auto;
548 172 }
549 173
550 -<?php if ( $pro_is_installed ) { ?>
551 174 .with_frm_style .frm_repeat_buttons{
552 175 white-space:nowrap;
553 176 }
554 -<?php } ?>
555 177
556 178 .with_frm_style .frm_button{
557 - text-decoration:none !important;
179 + text-decoration:none;
558 180 border:1px solid #eee;
559 - display:inline-block;
560 -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
561 - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
562 -<?php } else { ?>
563 181 padding:5px;
564 -<?php } ?>
565 -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
566 - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
567 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
568 -<?php } ?>
569 -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
570 - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
571 -<?php } ?>
572 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
573 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
574 -<?php } ?>
575 -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
576 - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
577 -<?php } ?>
578 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
579 - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
580 -<?php } ?>
581 -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
582 - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
583 -<?php } ?>
584 -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
585 - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
586 -<?php } ?>
587 -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
588 - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
589 -<?php } ?>
590 -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
591 - height: var(--submit-height)<?php echo esc_html( $important ); ?>;
592 -<?php } ?>
182 + display:inline;
593 183 }
594 184
595 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
596 -.with_frm_style .frm_button.frm_inverse{
597 - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
598 - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
599 -}
600 -<?php } ?>
601 -
602 185 .with_frm_style .frm_submit{
603 186 clear:both;
604 187 }
605 188
@@ -622,29 +205,8 @@
622 205 .with_frm_style.frm_center_submit .frm_submit{
623 206 text-align:center;
624 207 }
625 208
626 -.with_frm_style.frm_center_submit .frm_flex.frm_submit {
627 - justify-content: center;
628 -}
629 -
630 -.with_frm_style .frm_inline_success .frm_submit{
631 - display: flex;
632 - flex-direction: row;
633 - align-items: center;
634 - margin: 0;
635 -}
636 -
637 -.with_frm_style .frm_inline_success .frm_submit .frm_message{
638 - flex: 1;
639 - margin: 0;
640 - padding-left: 10px;
641 -}
642 -
643 -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
644 - text-align: right;
645 -}
646 -
647 209 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
648 210 .with_frm_style.frm_center_submit .frm_submit input[type=button],
649 211 .with_frm_style.frm_center_submit .frm_submit button{
650 212 margin-bottom:8px !important;
@@ -649,11 +211,8 @@
649 211 .with_frm_style.frm_center_submit .frm_submit button{
650 212 margin-bottom:8px !important;
651 213 }
652 214
653 -<?php if ( $pro_is_installed ) { ?>
654 -.with_frm_style .frm-edit-page-btn,
655 -<?php } ?>
656 215 .with_frm_style .frm_submit input[type=submit],
657 216 .with_frm_style .frm_submit input[type=button],
658 217 .with_frm_style .frm_submit button{
659 218 -webkit-appearance: none;
@@ -664,28 +223,20 @@
664 223 display: block;
665 224 margin: 0 auto;
666 225 }
667 226
668 -.with_frm_style .frm_loading_prev .frm_ajax_loading,
669 227 .with_frm_style .frm_loading_form .frm_ajax_loading{
670 228 /* keep this for reverse compatibility for old HTML */
671 229 visibility:visible !important;
672 230 }
673 231
674 -<?php if ( $pro_is_installed ) { ?>
675 -.with_frm_style .frm_loading_prev .frm_prev_page,
676 -<?php } ?>
677 232 .with_frm_style .frm_loading_form .frm_button_submit {
678 233 position: relative;
234 + opacity: .8;
679 235 color: transparent !important;
680 236 text-shadow: none !important;
681 237 }
682 238
683 -<?php if ( $pro_is_installed ) { ?>
684 -.with_frm_style .frm_loading_prev .frm_prev_page:hover,
685 -.with_frm_style .frm_loading_prev .frm_prev_page:active,
686 -.with_frm_style .frm_loading_prev .frm_prev_page:focus,
687 -<?php } ?>
688 239 .with_frm_style .frm_loading_form .frm_button_submit:hover,
689 240 .with_frm_style .frm_loading_form .frm_button_submit:active,
690 241 .with_frm_style .frm_loading_form .frm_button_submit:focus {
691 242 cursor: not-allowed;
@@ -693,11 +244,8 @@
693 244 outline: none !important;
694 245 box-shadow: none;
695 246 }
696 247
697 -<?php if ( $pro_is_installed ) { ?>
698 -.with_frm_style .frm_loading_prev .frm_prev_page::before,
699 -<?php } ?>
700 248 .with_frm_style .frm_loading_form .frm_button_submit:before {
701 249 content: '';
702 250 display: inline-block;
703 251 position: absolute;
@@ -706,9 +254,9 @@
706 254 border-top-color: transparent;
707 255 border-left-color: transparent;
708 256 border-radius: 50%;
709 257 box-sizing: border-box;
710 - <?php $loader_size = 12; ?>
258 + <?php $loader_size = 20; ?>
711 259 top: 50%;
712 260 left: 50%;
713 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
714 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -713,30 +261,19 @@
713 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
714 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
715 263 width: <?php echo absint( $loader_size ); ?>px;
716 264 height: <?php echo absint( $loader_size ); ?>px;
717 - 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;
718 269 }
719 270
720 -.with_frm_style .frm_submit.frm_flex {
721 - align-items: center;
722 - gap: 2%;
723 -}
724 -
725 -<?php if ( $pro_is_installed ) { ?>
726 -.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
727 - order: -1;
728 -}
729 -<?php } ?>
730 -
731 271 <?php
732 272 foreach ( $styles as $style ) {
733 - include __DIR__ . '/_single_theme.css.php';
273 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
734 274 unset( $style );
735 275 }
736 -
737 -// Set it again since it may have been overridden.
738 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
739 276 ?>
740 277
741 278 .frm_ajax_loading{
742 279 visibility:hidden;
@@ -750,19 +287,8 @@
750 287 a.frm_save_draft{
751 288 cursor:pointer;
752 289 }
753 290
754 -<?php if ( $pro_is_installed ) { ?>
755 -.with_frm_style a.frm_save_draft,
756 -.with_frm_style a.frm_start_over{
757 - <?php if ( ! empty( $defaults['font'] ) ) { ?>
758 - font-family: var(--font);
759 -<?php } ?>
760 - font-size: var(--submit-font-size);
761 - font-weight: var(--submit-weight);
762 -}
763 -<?php } ?>
764 -
765 291 .horizontal_radio .frm_radio{
766 292 margin:0 5px 0 0;
767 293 }
768 294
@@ -767,9 +293,9 @@
767 293 }
768 294
769 295 .horizontal_radio .frm_checkbox{
770 296 margin:0;
771 - margin-right:12px;
297 + margin-right:5px;
772 298 }
773 299
774 300 .vertical_radio .frm_checkbox,
775 301 .vertical_radio .frm_radio,
@@ -780,72 +306,23 @@
780 306 .horizontal_radio .frm_checkbox,
781 307 .horizontal_radio .frm_radio,
782 308 .horizontal_radio .frm_catlevel_1{
783 309 display:inline-block;
784 - padding-left: 0;
785 310 }
786 311
787 -.with_frm_style .frm_radio{
788 - display: var(--radio-align)<?php echo esc_html( $important ); ?>;
789 -}
790 -
791 -.with_frm_style .frm_checkbox{
792 - display: var(--check-align)<?php echo esc_html( $important ); ?>;
793 -}
794 -
795 -.with_frm_style .vertical_radio .frm_checkbox,
796 -.with_frm_style .vertical_radio .frm_radio,
797 -.vertical_radio .frm_catlevel_1{
798 - display:block<?php echo esc_html( $important ); ?>;
799 - margin-bottom: 10px;
800 -}
801 -
802 -.with_frm_style .horizontal_radio .frm_checkbox,
803 -.with_frm_style .horizontal_radio .frm_radio,
804 -.horizontal_radio .frm_catlevel_1{
805 - display:inline-block<?php echo esc_html( $important ); ?>;
806 -}
807 -
808 312 .with_frm_style .frm_checkbox label,
809 -.with_frm_style .frm_radio label {
810 - display: inline-block;
811 - vertical-align: middle;
313 +.with_frm_style .frm_radio label{
314 + display: inline;
812 315 white-space:normal;
813 316 }
814 317
815 -.with_frm_style .frm_checkbox label input[type=checkbox],
816 -.with_frm_style .frm_radio label input[type=radio] {
817 - margin-right: 4px;
818 -}
819 -
820 -.with_frm_style .frm_checkbox label:not(.frm-label-disabled),
821 -.with_frm_style .frm_radio label:not(.frm-label-disabled) {
822 - cursor: pointer;
823 -}
824 -
825 318 .with_frm_style .vertical_radio .frm_checkbox label,
826 319 .with_frm_style .vertical_radio .frm_radio label{
827 320 display: block;
828 - width: 100%;
321 + padding-left: 20px;
322 + text-indent: -20px;
829 323 }
830 324
831 -.with_frm_style .frm_radio label,
832 -.with_frm_style .frm_checkbox label {
833 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
834 - font-family: var(--font);
835 -<?php } ?>
836 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
837 - color: var(--check-label-color)<?php echo esc_html( $important ); ?>;
838 - font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>;
839 - line-height: 1.3;
840 -}
841 -
842 -.with_frm_style .frm_radio input[type=radio],
843 -.with_frm_style .frm_checkbox input[type=checkbox] {
844 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
845 - position: static<?php echo esc_html( $important ); ?>;
846 -}
847 -
848 325 .frm_file_container .frm_file_link,
849 326 .with_frm_style .frm_radio label .frm_file_container,
850 327 .with_frm_style .frm_checkbox label .frm_file_container{
851 328 display:inline-block;
@@ -852,104 +329,31 @@
852 329 margin:5px;
853 330 vertical-align:middle;
854 331 }
855 332
856 -.with_frm_style .frm_radio input[type=radio]
857 -<?php if ( $pro_is_installed ) : ?>
858 -, .with_frm_style .frm_scale input[type=radio]
859 -<?php endif; ?>
860 -{
333 +.with_frm_style .frm_radio input[type=radio]{
334 + -webkit-appearance:radio;
861 335 border-radius:50%;
862 336 }
863 337
864 -.with_frm_style .frm_checkbox input[type=checkbox] {
865 - 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;
866 341 }
867 342
868 343 .with_frm_style .frm_radio input[type=radio],
869 -<?php if ( $pro_is_installed ) : ?>
870 -.with_frm_style .frm_scale input[type=radio],
871 -<?php endif; ?>
872 344 .with_frm_style .frm_checkbox input[type=checkbox]{
873 - appearance: none;
874 - background-color: var(--bg-color);
875 345 flex: none;
876 - display:inline-block !important;
877 - width: 16px !important;
878 - min-width: 16px !important;
879 - height: 16px !important;
880 - color: var(--border-color);
881 - border: 1px solid currentColor;
882 - border-color: var(--border-color);
883 - vertical-align: middle;
346 + display:inline-block;
347 + margin:4px 5px 0 0;
348 + width:auto;
349 + border:none;
350 + vertical-align:baseline;
884 351 position: initial; /* override Bootstrap */
885 - padding: 0;
886 - margin: 0;
887 352 }
888 353
889 -.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked,
890 -<?php if ( $pro_is_installed ) : ?>
891 -.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked,
892 -<?php endif; ?>
893 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
894 - border-color: var(--border-color-active) !important;
895 -}
896 -
897 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
898 - background-color: var(--border-color-active) !important;
899 -}
900 -
901 -.with_frm_style .frm_radio input[type=radio][disabled]:checked,
902 -<?php if ( $pro_is_installed ) : ?>
903 -.with_frm_style .frm_scale input[type=radio][disabled]:checked,
904 -<?php endif; ?>
905 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
906 - border-color: var(--border-color) !important; /* Override Style Preview */
907 -}
908 -
909 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
910 - background-color: var(--border-color) !important;
911 -}
912 -
913 -.with_frm_style .frm_radio input[type=radio]:checked:before,
914 -<?php if ( $pro_is_installed ) { ?>
915 -.with_frm_style .frm_scale input[type=radio]:checked:before,
916 -<?php } ?>
917 -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
918 - position: static !important; /* Override Style Preview */
919 - content: '';
920 - display: block;
921 -}
922 -
923 -.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before {
924 - width: 100% !important;
925 - height: 100% !important;
926 - 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;
927 - background-size: 9px !important;
928 - background-repeat: no-repeat !important;
929 - background-position: center !important;
930 - margin: 0;
931 -}
932 -
933 -<?php if ( $pro_is_installed ) { ?>
934 -.with_frm_style .frm_scale input[type=radio]:before,
935 -<?php } ?>
936 -.with_frm_style .frm_radio input[type=radio]:before {
937 - width: 8px;
938 - height: 8px;
939 - border-radius: 50%;
940 - background-color: var(--border-color-active);
941 - margin: 3px;
942 -}
943 -
944 -<?php if ( $pro_is_installed ) { ?>
945 -.with_frm_style .frm_scale input[type=radio][disabled]:before,
946 -<?php } ?>
947 -.with_frm_style .frm_radio input[type=radio][disabled]:before {
948 - background-color: var(--border-color);
949 -}
950 -
951 354 .with_frm_style :invalid,
355 +.with_frm_style :-moz-submit-invalid,
952 356 .with_frm_style :-moz-ui-invalid{
953 357 box-shadow:none;
954 358 }
955 359
@@ -965,43 +369,18 @@
965 369
966 370 .with_frm_style .frm_error_style,
967 371 .with_frm_style .frm_message,
968 372 .frm_success_style{
373 + -moz-border-radius:4px;
374 + -webkit-border-radius:4px;
969 375 border-radius:4px;
970 376 padding:15px;
971 377 }
972 378
973 -.with_frm_style .frm_message p {
974 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
975 - margin-bottom: 0;
379 +.with_frm_style .frm_message p{
380 + margin-bottom:5px;
976 381 }
977 382
978 -.with_frm_style .frm_message > p:first-of-type {
979 - margin-top: 0;
980 -}
981 -
982 -.with_frm_style .frm_message,
983 -.frm_success_style {
984 - margin: 5px 0 15px;
985 - border: 1px solid var(--success-border-color);
986 - background-color: var(--success-bg-color);
987 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
988 - border-radius: var(--border-radius);
989 - font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>;
990 -}
991 -
992 -.with_frm_style .frm_plain_success .frm_message {
993 - background-color: transparent;
994 - padding:0;
995 - border:none;
996 - font-size:inherit<?php echo esc_html( $important ); ?>;
997 - color:inherit<?php echo esc_html( $important ); ?>;
998 -}
999 -
1000 -.with_frm_style .frm_plain_success .frm_message p {
1001 - color:inherit<?php echo esc_html( $important ); ?>;
1002 -}
1003 -
1004 383 .frm_form_fields_style,
1005 384 .frm_form_fields_active_style,
1006 385 .frm_form_fields_error_style,
1007 386 .frm_form_submit_style{
@@ -1022,11 +401,9 @@
1022 401 .frm-grid th{
1023 402 padding:5px;
1024 403 border-width:1px;
1025 404 border-style:solid;
1026 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1027 - border-color: var(--border-color);
1028 - <?php } ?>
405 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1029 406 border-top:none;
1030 407 border-left:none;
1031 408 border-right:none;
1032 409 }
@@ -1032,20 +409,13 @@
1032 409 }
1033 410
1034 411 .frm-alt-table {
1035 412 width:100%;
1036 - border-collapse:separate;
413 + border-collapse:collapse;
1037 414 margin-top:0.5em;
1038 415 font-size:15px;
1039 - border-width:1px;
1040 416 }
1041 417
1042 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1043 -.with_frm_style .frm-alt-table{
1044 - border-color: var(--border-color);
1045 -}
1046 -<?php } ?>
1047 -
1048 418 .frm-alt-table th {
1049 419 width:200px;
1050 420 }
1051 421
@@ -1058,9 +428,8 @@
1058 428 background-color:transparent;
1059 429 vertical-align:top;
1060 430 text-align:left;
1061 431 padding:20px;
1062 - border-color:transparent;
1063 432 }
1064 433
1065 434 .frm-alt-table tr:nth-child(even) {
1066 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
@@ -1065,63 +434,33 @@
1065 434 .frm-alt-table tr:nth-child(even) {
1066 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1067 436 }
1068 437
1069 -<?php if ( $pro_is_installed ) { ?>
1070 438 table.form_results.with_frm_style{
1071 - border-style: solid;
1072 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1073 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
439 + border:1px solid #ccc;
1074 440 }
1075 441
1076 442 table.form_results.with_frm_style tr td{
1077 443 text-align:left;
444 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1078 445 padding:7px 9px;
1079 - <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1080 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
1081 -<?php } ?>
1082 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1083 - border-top-style: solid;
1084 - border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1085 - border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1086 -<?php } ?>
446 + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1087 447 }
1088 -<?php } ?>
1089 448
1090 449 table.form_results.with_frm_style tr.frm_even,
1091 450 .frm-grid .frm_even{
1092 451 background-color:#fff;
1093 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1094 452 }
1095 453
1096 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1097 454 table.form_results.with_frm_style tr.frm_odd,
1098 -.frm-grid .frm_odd {
1099 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
1100 -}
1101 -<?php } ?>
1102 -
1103 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1104 -.frm_color_block {
455 +.frm-grid .frm_odd{
1105 456 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1106 - padding: 40px;
1107 457 }
1108 458
1109 - <?php if ( $pro_is_installed ) { ?>
1110 -.with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1111 -.frm_color_block.frm_section_heading h3 {
1112 - border-width: 0 !important;
1113 -}
1114 - <?php } ?>
1115 -<?php } ?>
1116 -
1117 -<?php if ( $pro_is_installed ) { ?>
1118 459 .frm_collapse .ui-icon{
1119 460 display:inline-block;
1120 461 }
1121 -<?php } ?>
1122 462
1123 -<?php if ( $pro_is_installed ) { ?>
1124 463 .frm_toggle_container{
1125 464 /* Prevent the slide and bounce */
1126 465 border:1px solid transparent;
1127 466 }
@@ -1138,11 +477,9 @@
1138 477
1139 478 .frm_toggle_container .frm_month_listing{
1140 479 margin-left:40px;
1141 480 }
1142 -<?php } ?>
1143 481
1144 -<?php if ( $pro_is_installed ) { ?>
1145 482 #frm_loading{
1146 483 display:none;
1147 484 position:fixed;
1148 485 top:0;
@@ -1185,30 +522,25 @@
1185 522 #frm_loading .progress.active .progress-bar{
1186 523 animation:2s linear 0s normal none infinite progress-bar-stripes;
1187 524 }
1188 525
1189 - <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1190 -#frm_loading .progress-striped .progress-bar {
1191 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1192 - 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));
1193 - <?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));
1194 529 background-size:40px 40px;
1195 530 }
1196 531 <?php } ?>
1197 532
1198 -#frm_loading .progress-bar {
1199 - background-color: var(--bg-color);
1200 - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1201 - float: left;
1202 - height: 100%;
1203 - line-height: 20px;
1204 - text-align: center;
1205 - transition: width 0.6s ease 0s;
1206 - 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%;
1207 542 }
1208 - <?php
1209 -}//end if
1210 -?>
1211 543
1212 544 .frm_image_from_url{
1213 545 height:50px;
1214 546 }
@@ -1217,9 +549,8 @@
1217 549 background:url(../images/ajax_loader.gif) no-repeat center center;
1218 550 padding:6px 12px;
1219 551 }
1220 552
1221 -<?php if ( $pro_is_installed ) { ?>
1222 553 select.frm_loading_lookup{
1223 554 background-image: url(../images/ajax_loader.gif) !important;
1224 555 background-position: 10px;
1225 556 background-repeat: no-repeat;
@@ -1224,25 +555,22 @@
1224 555 background-position: 10px;
1225 556 background-repeat: no-repeat;
1226 557 color: transparent !important;
1227 558 }
1228 -<?php } ?>
1229 559
1230 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
560 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1231 561
1232 -<?php if ( $pro_is_installed ) { ?>
1233 562 .frm_conf_field.frm_left_container .frm_primary_label{
1234 563 display:none;
1235 564 }
1236 -<?php } ?>
1237 565
1238 -<?php if ( $pro_is_installed ) { ?>
1239 566 .wp-editor-wrap *,
1240 567 .wp-editor-wrap *:after,
1241 568 .wp-editor-wrap *:before{
569 + -webkit-box-sizing:content-box;
570 + -moz-box-sizing:content-box;
1242 571 box-sizing:content-box;
1243 572 }
1244 -<?php } ?>
1245 573
1246 574 .with_frm_style .frm_grid,
1247 575 .with_frm_style .frm_grid_first,
1248 576 .with_frm_style .frm_grid_odd{
@@ -1250,11 +578,9 @@
1250 578 margin-bottom:0 !important;
1251 579 padding:5px;
1252 580 border-width:1px;
1253 581 border-style:solid;
1254 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1255 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1256 -<?php } ?>
582 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1257 583 border-left:none;
1258 584 border-right:none;
1259 585 }
1260 586
@@ -1264,12 +590,9 @@
1264 590 }
1265 591
1266 592 .frm_grid .frm_error,
1267 593 .frm_grid_first .frm_error,
1268 -.frm_grid_odd .frm_error,
1269 -.frm_grid .frm_limit_error,
1270 -.frm_grid_first .frm_limit_error,
1271 -.frm_grid_odd .frm_limit_error{
594 +.frm_grid_odd .frm_error{
1272 595 display:none;
1273 596 }
1274 597
1275 598 .frm_grid:after,
@@ -1286,28 +609,17 @@
1286 609 .frm_grid_first{
1287 610 margin-top:20px;
1288 611 }
1289 612
1290 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1291 613 .frm_grid_first,
1292 -.frm_grid_odd {
1293 - background-color: var(--bg-color);
614 +.frm_grid_odd{
615 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1294 616 }
1295 -<?php } ?>
1296 617
1297 -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1298 -.frm_grid {
1299 - 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'] ); ?>;
1300 620 }
1301 -<?php } ?>
1302 621
1303 -.with_frm_style .frm_grid.frm_blank_field,
1304 -.with_frm_style .frm_grid_first.frm_blank_field,
1305 -.with_frm_style .frm_grid_odd.frm_blank_field{
1306 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1307 - border-color: var(--error-border);
1308 -}
1309 -
1310 622 .frm_grid .frm_primary_label,
1311 623 .frm_grid_first .frm_primary_label,
1312 624 .frm_grid_odd .frm_primary_label,
1313 625 .frm_grid .frm_radio,
@@ -1327,10 +639,9 @@
1327 639 .frm_grid_odd .frm_radio label,
1328 640 .frm_grid_first .frm_checkbox label,
1329 641 .frm_grid .frm_checkbox label,
1330 642 .frm_grid_odd .frm_checkbox label{
1331 - color:transparent;
1332 - text-indent: -9999px;
643 + visibility:hidden;
1333 644 white-space:nowrap;
1334 645 text-align:left;
1335 646 }
1336 647
@@ -1456,18 +767,8 @@
1456 767 .frm_form_field.frm_left_container .frm_opt_container{
1457 768 padding-top:4px;
1458 769 }
1459 770
1460 -.with_frm_style .frm_left_container > select.auto_width,
1461 -.with_frm_style .frm_right_container > select.auto_width {
1462 - width: max-content<?php echo esc_html( $important ); ?>;
1463 -}
1464 -
1465 -.with_frm_style .frm_right_container > .frm_primary_label,
1466 -.with_frm_style .frm_right_container > select.auto_width {
1467 - margin-left: auto<?php echo esc_html( $important ); ?>;
1468 -}
1469 -
1470 771 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1471 772 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1472 773 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1473 774 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1502,9 +803,11 @@
1502 803 grid-column-end: span 1;
1503 804 }
1504 805
1505 806 .frm_form_field .frm_checkbox,
1506 -.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{
1507 810 margin-top: 0;
1508 811 margin-bottom: 0;
1509 812 }
1510 813
@@ -1513,28 +816,30 @@
1513 816 overflow:auto;
1514 817 }
1515 818
1516 819 .frm_html_container.frm_scroll_box,
1517 -.frm_form_field.frm_html_scroll_box {
1518 - height: 100px;
1519 - overflow: auto;
1520 - background-color: var(--bg-color);
1521 - border-color: var(--border-color);
1522 - border-width: var(--field-border-width);
1523 - border-style: var(--field-border-style);
1524 - border-radius: var(--border-radius);
1525 - width: var(--field-width);
1526 - max-width: 100%;
1527 - font-size: var(--field-font-size);
1528 - padding: var(--field-pad);
1529 - box-sizing: border-box;
1530 - outline: none<?php echo esc_html( $important ); ?>;
1531 - font-weight: normal;
1532 - 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;
1533 840 }
1534 841
1535 -.frm_form_field.frm_total_big input,
1536 -.frm_form_field.frm_total_big textarea,
1537 842 .frm_form_field.frm_total input,
1538 843 .frm_form_field.frm_total textarea{
1539 844 opacity:1;
1540 845 background-color:transparent !important;
@@ -1539,10 +844,11 @@
1539 844 opacity:1;
1540 845 background-color:transparent !important;
1541 846 border:none !important;
1542 847 font-weight:bold;
848 + -moz-box-shadow:none;
849 + -webkit-box-shadow:none;
1543 850 width:auto !important;
1544 - height:auto !important;
1545 851 box-shadow:none !important;
1546 852 display:inline;
1547 853 -moz-appearance:textfield;
1548 854 padding:0;
@@ -1547,21 +853,19 @@
1547 853 -moz-appearance:textfield;
1548 854 padding:0;
1549 855 }
1550 856
1551 -.frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1552 -.frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1553 857 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1554 858 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1555 859 -webkit-appearance: none;
1556 860 }
1557 861
1558 -.frm_form_field.frm_total_big input:focus,
1559 -.frm_form_field.frm_total_big textarea:focus,
1560 862 .frm_form_field.frm_total input:focus,
1561 863 .frm_form_field.frm_total textarea:focus{
1562 864 background-color:transparent;
1563 865 border:none;
866 + -moz-box-shadow:none;
867 + -webkit-box-shadow:none;
1564 868 box-shadow:none;
1565 869 }
1566 870
1567 871 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1586,30 +890,13 @@
1586 890 .frm_clearfix{
1587 891 display:block;
1588 892 }
1589 893
1590 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1591 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1592 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1593 - margin-bottom: 0 !important;
1594 -}
894 +/* Fonts */
895 +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
896 +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1595 897
1596 -
1597 -<?php
1598 -/**
1599 - * Call action so other plugins can add additional CSS.
1600 - *
1601 - * @param array $args {
1602 - *
1603 - * @type array $defaults
1604 - * }
1605 - */
1606 -do_action( 'frm_include_front_css', compact( 'defaults' ) );
1607 -?>
1608 -
1609 898 /* Responsive */
1610 -
1611 -<?php if ( $pro_is_installed ) { ?>
1612 899 @media only screen and (max-width: 900px) {
1613 900 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1614 901 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1615 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1615,21 +902,13 @@
1615 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1616 903 display: block !important;
1617 904 }
1618 905 }
1619 -<?php } ?>
1620 906
1621 907 @media only screen and (max-width: 600px) {
1622 908 .frm_form_field.frm_four_col .frm_opt_container{
1623 909 grid-template-columns: repeat(2, 1fr);
1624 910 }
1625 -
1626 - <?php if ( $pro_is_installed ) { ?>
1627 - .with_frm_style .frm_repeat_inline,
1628 - .with_frm_style .frm_repeat_grid{
1629 - margin: 20px 0;
1630 - }
1631 - <?php } ?>
1632 911 }
1633 912
1634 913 @media only screen and (max-width: 500px) {
1635 914 .frm_form_field.frm_two_col .frm_radio,
@@ -1654,8 +933,9 @@
1654 933 max-width:302px;
1655 934 border-right:1px solid #d3d3d3;
1656 935 border-radius:4px;
1657 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);
1658 938 }
1659 939
1660 940 .with_frm_style .g-recaptcha iframe,
1661 941 .with_frm_style .frm-g-recaptcha iframe{
@@ -1661,14 +941,12 @@
1661 941 .with_frm_style .frm-g-recaptcha iframe{
1662 942 width:100%;
1663 943 }
1664 944 }
945 +<?php
1665 946
1666 -.frm-card-element .sq-card-wrapper .sq-card-message {
1667 - margin-bottom: 0;
947 +$frm_settings = FrmAppHelper::get_settings();
948 +if ( $frm_settings->old_css ) {
949 + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
1668 950 }
1669 -.frm-card-errors:empty {
1670 - margin: 0;
1671 -}
1672 -<?php
1673 951
1674 -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
952 +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.