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