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 +114 -816 6.254.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, 'all' ); // 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,194 +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 -.with_frm_style input[type=text],
196 -.with_frm_style input[type=password],
197 -.with_frm_style input[type=email],
198 -.with_frm_style input[type=number],
199 -.with_frm_style input[type=url],
200 -.with_frm_style input[type=tel],
201 -.with_frm_style input[type=phone],
202 -.with_frm_style input[type=search],
203 -.with_frm_style select,
204 -.with_frm_style textarea,
205 -.frm_form_fields_style,
206 -.with_frm_style .frm_scroll_box .frm_opt_container,
207 -.frm_form_fields_active_style,
208 -.frm_form_fields_error_style,
209 -.with_frm_style .frm-card-element.StripeElement,
210 -<?php if ( $use_chosen_js ) { ?>
211 -.with_frm_style .chosen-container-multi .chosen-choices,
212 -.with_frm_style .chosen-container-single .chosen-single,
213 -<?php } ?>
214 -.with_frm_style .frm_slimselect.ss-main {
215 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
216 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
217 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
218 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
219 - border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>;
220 - border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>;
221 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
222 - max-width: 100%;
223 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
224 - padding: var(--field-pad)<?php echo esc_html( $important ); ?>;
225 - box-sizing: border-box;
226 - outline: none<?php echo esc_html( $important ); ?>;
227 - font-weight: var(--field-weight);
228 -}
229 -
230 -<?php if ( ! empty( $important ) ) : ?>
231 - <?php if ( $use_chosen_js ) { ?>
232 - .with_frm_style .chosen-container-multi .chosen-choices,
233 - .with_frm_style .chosen-container-single .chosen-single,
234 - <?php } ?>
235 -.with_frm_style input[type=text],
236 -.with_frm_style input[type=password],
237 -.with_frm_style input[type=email],
238 -.with_frm_style input[type=number],
239 -.with_frm_style input[type=url],
240 -.with_frm_style input[type=tel],
241 -.with_frm_style input[type=phone],
242 -.with_frm_style input[type=search],
243 -.with_frm_style textarea,
244 -.frm_form_fields_style,
245 -.with_frm_style .frm_scroll_box .frm_opt_container,
246 -.frm_form_fields_active_style,
247 -.frm_form_fields_error_style,
248 -.with_frm_style .frm-card-element.StripeElement {
249 - background-image:none !important;
250 -}
251 -<?php endif; ?>
252 -
253 -.with_frm_style select option {
254 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
255 -}
256 -
257 -.with_frm_style select option.frm-select-placeholder {
258 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
259 -}
260 -
261 -.with_frm_style input[type=radio],
262 -.with_frm_style input[type=checkbox]{
263 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
264 - box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>;
265 - float: none;
266 -}
267 -
268 -.with_frm_style input[type=radio]:after,
269 -.with_frm_style input[type=checkbox]:after {
270 - display: none; /* 2021 conflict */
271 -}
272 -
273 -.with_frm_style input[type=radio]:not(:checked):focus,
274 -.with_frm_style input[type=checkbox]:not(:checked):focus {
275 - border-color: var(--border-color) !important;
276 -}
277 -
278 -.with_frm_style input[type=radio]:focus,
279 -.with_frm_style input[type=checkbox]:focus {
280 - box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important;
281 -}
282 -
283 -.with_frm_style input[type=text],
284 -.with_frm_style input[type=password],
285 -.with_frm_style input[type=email],
286 -.with_frm_style input[type=number],
287 -.with_frm_style input[type=url],
288 -.with_frm_style input[type=tel],
289 -.with_frm_style input[type=file],
290 -.with_frm_style input[type=search],
291 -.with_frm_style select,
292 -.with_frm_style .frm-card-element.StripeElement{
293 - min-height: var(--field-height)<?php echo esc_html( $important ); ?>;
294 - line-height:1.3<?php echo esc_html( $important ); ?>;
295 -}
296 -
297 -.with_frm_style select[multiple=multiple]{
298 - height:auto<?php echo esc_html( $important ); ?>;
299 -}
300 -
301 -.input[type=file].frm_transparent:focus,
302 -.with_frm_style input[type=file]{
60 +.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{
303 61 background-color:transparent;
304 62 border:none;
305 63 outline:none;
306 64 box-shadow:none;
@@ -306,52 +64,11 @@
306 64 box-shadow:none;
307 65 }
308 66
309 67 .with_frm_style input[type=file]{
310 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
311 - padding: 0px;
312 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
313 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
314 -<?php } ?>
315 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
316 - display: initial;
68 + display:initial;
317 69 }
318 70
319 -.with_frm_style input[type=file].frm_transparent{
320 - color:transparent<?php echo esc_html( $important ); ?>;
321 -}
322 -
323 -.with_frm_style .wp-editor-wrap{
324 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
325 - max-width:100%;
326 -}
327 -
328 -.with_frm_style .wp-editor-container textarea{
329 - border:none<?php echo esc_html( $important ); ?>;
330 - box-shadow:none !important;
331 -}
332 -
333 -.with_frm_style .mceIframeContainer{
334 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
335 -}
336 -
337 -.with_frm_style select{
338 - width: var(--auto-width)<?php echo esc_html( $important ); ?>;
339 - max-width:100%;
340 - background-position-y: calc(50% + 3px);
341 -}
342 -
343 -.with_frm_style input[disabled],
344 -.with_frm_style select[disabled],
345 -.with_frm_style textarea[disabled],
346 -.with_frm_style input[readonly],
347 -.with_frm_style select[readonly],
348 -.with_frm_style textarea[readonly] {
349 - background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
350 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
351 - border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
352 -}
353 -
354 71 .frm_preview_page:before{
355 72 content:normal !important;
356 73 }
357 74
@@ -360,29 +77,8 @@
360 77 }
361 78
362 79 .with_frm_style .frm_primary_label{
363 80 max-width:100%;
364 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
365 - font-family: var(--font);
366 -<?php } ?>
367 -<?php if ( ! empty( $defaults['font_size'] ) ) { ?>
368 - font-size: var(--font-size)<?php echo esc_html( $important ); ?>;
369 -<?php } ?>
370 -<?php if ( ! empty( $defaults['label_color'] ) ) { ?>
371 - color: var(--label-color)<?php echo esc_html( $important ); ?>;
372 -<?php } ?>
373 -<?php if ( ! empty( $defaults['weight'] ) ) { ?>
374 - font-weight: var(--weight)<?php echo esc_html( $important ); ?>;
375 -<?php } ?>
376 -<?php if ( ! empty( $defaults['align'] ) ) { ?>
377 - text-align: var(--align)<?php echo esc_html( $important ); ?>;
378 -<?php } ?>
379 -<?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
380 - padding: var(--label-padding)<?php echo esc_html( $important ); ?>;
381 -<?php } ?>
382 - margin:0;
383 - width:auto;
384 - display:block;
385 81 }
386 82
387 83 .with_frm_style .frm_top_container .frm_primary_label,
388 84 .with_frm_style .frm_hidden_container .frm_primary_label,
@@ -402,12 +98,8 @@
402 98 float:right;
403 99 margin-left:10px;
404 100 }
405 101
406 -.with_frm_style .frm_pos_center {
407 - text-align: center;
408 -}
409 -
410 102 .with_frm_style .frm_none_container .frm_primary_label,
411 103 .with_frm_style .frm_pos_none,
412 104 .frm_pos_none,
413 105 .frm_none_container .frm_primary_label{
@@ -424,108 +116,19 @@
424 116 visibility:hidden;
425 117 white-space:nowrap;
426 118 }
427 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,
428 126 .frm_visible{
429 127 opacity:1;
430 128 }
431 129
432 -/* Floating labels */
433 -.with_frm_style .frm_inside_container {
434 - position: relative;
435 - padding-top: 18px;
436 - padding-top: calc(0.5 * var(--field-height));
437 -}
438 -
439 -.with_frm_style .frm_inside_container > input,
440 -.with_frm_style .frm_inside_container > select,
441 -.with_frm_style .frm_inside_container > textarea {
442 - display: block;
443 -}
444 -
445 -/* These do not work if they are combined */
446 -.with_frm_style input::placeholder,
447 -.with_frm_style textarea::placeholder {
448 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
449 -}
450 -
451 -.with_frm_style .frm_inside_container > input::-moz-placeholder,
452 -.with_frm_style .frm_inside_container > textarea::-moz-placeholder {
453 - opacity: 0 !important;
454 - transition: opacity 0.3s ease-in;
455 -}
456 -
457 -.with_frm_style .frm_inside_container > input:-ms-input-placeholder,
458 -.with_frm_style .frm_inside_container > textarea:-ms-input-placeholder {
459 - opacity: 0;
460 - transition: opacity 0.3s ease-in;
461 -}
462 -
463 -.with_frm_style .frm_inside_container > input::placeholder,
464 -.with_frm_style .frm_inside_container > textarea::placeholder {
465 - opacity: 0;
466 - transition: opacity 0.3s ease-in;
467 -}
468 -
469 -.with_frm_style .frm_inside_container > label {
470 - transition: all 0.3s ease-in;
471 -
472 - position: absolute;
473 - top: 19px;
474 - top: calc(1px + .5 * var(--field-height));
475 - left: 3px;
476 - width: 100%;
477 -
478 - line-height: 1.3;
479 - text-overflow: ellipsis;
480 - overflow: hidden;
481 - white-space: nowrap;
482 -
483 - padding: 8px 12px;
484 - padding: var(--field-pad);
485 -
486 - font-size: 14px;
487 - font-size: var(--field-font-size);
488 - font-weight: normal;
489 - font-weight: var(--field-weight);
490 -
491 - pointer-events: none;
492 -}
493 -
494 -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
495 - line-height: 1;
496 -}
497 -
498 -.with_frm_style .frm_inside_container.frm_label_float_top > label {
499 - top: 0;
500 - left: 0;
501 - padding: 0;
502 - font-size: 12px;
503 - font-size: calc(0.85 * var(--field-font-size));
504 -}
505 -
506 -/* These do not work if they are combined */
507 -.with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder,
508 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder {
509 - opacity: 1 !important;
510 - transition: opacity 0.3s ease-in;
511 -}
512 -
513 -.with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder,
514 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder {
515 - opacity: 1;
516 - transition: opacity 0.3s ease-in;
517 -}
518 -
519 -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
520 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
521 - opacity: 1;
522 - transition: opacity 0.3s ease-in;
523 -}
524 -/* End floating label */
525 -
526 -.with_frm_style .frm_description,
527 -.with_frm_style .frm_pro_max_limit_desc{
130 +.with_frm_style .frm_description{
528 131 clear:both;
529 132 }
530 133
531 134 .with_frm_style input[type=number][readonly]{
@@ -555,14 +158,18 @@
555 158 .with_frm_style .wp-editor-container textarea{
556 159 border:none;
557 160 }
558 161
162 +.with_frm_style textarea{
163 + height:auto;
164 +}
165 +
559 166 .with_frm_style .auto_width #loginform input,
560 167 .with_frm_style .auto_width input,
561 168 .with_frm_style input.auto_width,
562 169 .with_frm_style select.auto_width,
563 170 .with_frm_style textarea.auto_width{
564 - width:auto<?php echo esc_html( $important ); ?>;
171 + width:auto;
565 172 }
566 173
567 174 .with_frm_style .frm_repeat_buttons{
568 175 white-space:nowrap;
@@ -568,53 +175,14 @@
568 175 white-space:nowrap;
569 176 }
570 177
571 178 .with_frm_style .frm_button{
572 - text-decoration:none !important;;
179 + text-decoration:none;
573 180 border:1px solid #eee;
574 - display:inline-block;
575 -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
576 - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
577 -<?php } else { ?>
578 181 padding:5px;
579 -<?php } ?>
580 -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
581 - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
582 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
583 -<?php } ?>
584 -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
585 - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
586 -<?php } ?>
587 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
588 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
589 -<?php } ?>
590 -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
591 - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
592 -<?php } ?>
593 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
594 - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
595 -<?php } ?>
596 -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
597 - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
598 -<?php } ?>
599 -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
600 - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
601 -<?php } ?>
602 -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
603 - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
604 -<?php } ?>
605 -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
606 - height: var(--submit-height)<?php echo esc_html( $important ); ?>;
607 -<?php } ?>
182 + display:inline;
608 183 }
609 184
610 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
611 -.with_frm_style .frm_button.frm_inverse{
612 - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
613 - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
614 -}
615 -<?php } ?>
616 -
617 185 .with_frm_style .frm_submit{
618 186 clear:both;
619 187 }
620 188
@@ -637,29 +205,8 @@
637 205 .with_frm_style.frm_center_submit .frm_submit{
638 206 text-align:center;
639 207 }
640 208
641 -.with_frm_style.frm_center_submit .frm_flex.frm_submit {
642 - justify-content: center;
643 -}
644 -
645 -.with_frm_style .frm_inline_success .frm_submit{
646 - display: flex;
647 - flex-direction: row;
648 - align-items: center;
649 - margin: 0;
650 -}
651 -
652 -.with_frm_style .frm_inline_success .frm_submit .frm_message{
653 - flex: 1;
654 - margin: 0;
655 - padding-left: 10px;
656 -}
657 -
658 -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
659 - text-align: right;
660 -}
661 -
662 209 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
663 210 .with_frm_style.frm_center_submit .frm_submit input[type=button],
664 211 .with_frm_style.frm_center_submit .frm_submit button{
665 212 margin-bottom:8px !important;
@@ -664,9 +211,8 @@
664 211 .with_frm_style.frm_center_submit .frm_submit button{
665 212 margin-bottom:8px !important;
666 213 }
667 214
668 -.with_frm_style .frm-edit-page-btn,
669 215 .with_frm_style .frm_submit input[type=submit],
670 216 .with_frm_style .frm_submit input[type=button],
671 217 .with_frm_style .frm_submit button{
672 218 -webkit-appearance: none;
@@ -677,24 +223,20 @@
677 223 display: block;
678 224 margin: 0 auto;
679 225 }
680 226
681 -.with_frm_style .frm_loading_prev .frm_ajax_loading,
682 227 .with_frm_style .frm_loading_form .frm_ajax_loading{
683 228 /* keep this for reverse compatibility for old HTML */
684 229 visibility:visible !important;
685 230 }
686 231
687 -.with_frm_style .frm_loading_prev .frm_prev_page,
688 232 .with_frm_style .frm_loading_form .frm_button_submit {
689 233 position: relative;
234 + opacity: .8;
690 235 color: transparent !important;
691 236 text-shadow: none !important;
692 237 }
693 238
694 -.with_frm_style .frm_loading_prev .frm_prev_page:hover,
695 -.with_frm_style .frm_loading_prev .frm_prev_page:active,
696 -.with_frm_style .frm_loading_prev .frm_prev_page:focus,
697 239 .with_frm_style .frm_loading_form .frm_button_submit:hover,
698 240 .with_frm_style .frm_loading_form .frm_button_submit:active,
699 241 .with_frm_style .frm_loading_form .frm_button_submit:focus {
700 242 cursor: not-allowed;
@@ -702,9 +244,8 @@
702 244 outline: none !important;
703 245 box-shadow: none;
704 246 }
705 247
706 -.with_frm_style .frm_loading_prev .frm_prev_page::before,
707 248 .with_frm_style .frm_loading_form .frm_button_submit:before {
708 249 content: '';
709 250 display: inline-block;
710 251 position: absolute;
@@ -713,9 +254,9 @@
713 254 border-top-color: transparent;
714 255 border-left-color: transparent;
715 256 border-radius: 50%;
716 257 box-sizing: border-box;
717 - <?php $loader_size = 12; ?>
258 + <?php $loader_size = 20; ?>
718 259 top: 50%;
719 260 left: 50%;
720 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
721 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -720,28 +261,19 @@
720 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
721 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
722 263 width: <?php echo absint( $loader_size ); ?>px;
723 264 height: <?php echo absint( $loader_size ); ?>px;
724 - 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;
725 269 }
726 270
727 -.with_frm_style .frm_submit.frm_flex {
728 - align-items: center;
729 - gap: 2%;
730 -}
731 -
732 -.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
733 - order: -1;
734 -}
735 -
736 271 <?php
737 272 foreach ( $styles as $style ) {
738 - include __DIR__ . '/_single_theme.css.php';
273 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
739 274 unset( $style );
740 275 }
741 -
742 -// Set it again since it may have been overridden.
743 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
744 276 ?>
745 277
746 278 .frm_ajax_loading{
747 279 visibility:hidden;
@@ -755,17 +287,8 @@
755 287 a.frm_save_draft{
756 288 cursor:pointer;
757 289 }
758 290
759 -.with_frm_style a.frm_save_draft,
760 -.with_frm_style a.frm_start_over{
761 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
762 - font-family: var(--font);
763 -<?php } ?>
764 - font-size: var(--submit-font-size);
765 - font-weight: var(--submit-weight);
766 -}
767 -
768 291 .horizontal_radio .frm_radio{
769 292 margin:0 5px 0 0;
770 293 }
771 294
@@ -770,9 +293,9 @@
770 293 }
771 294
772 295 .horizontal_radio .frm_checkbox{
773 296 margin:0;
774 - margin-right:12px;
297 + margin-right:5px;
775 298 }
776 299
777 300 .vertical_radio .frm_checkbox,
778 301 .vertical_radio .frm_radio,
@@ -783,72 +306,23 @@
783 306 .horizontal_radio .frm_checkbox,
784 307 .horizontal_radio .frm_radio,
785 308 .horizontal_radio .frm_catlevel_1{
786 309 display:inline-block;
787 - padding-left: 0;
788 310 }
789 311
790 -.with_frm_style .frm_radio{
791 - display: var(--radio-align)<?php echo esc_html( $important ); ?>;
792 -}
793 -
794 -.with_frm_style .frm_checkbox{
795 - display: var(--check-align)<?php echo esc_html( $important ); ?>;
796 -}
797 -
798 -.with_frm_style .vertical_radio .frm_checkbox,
799 -.with_frm_style .vertical_radio .frm_radio,
800 -.vertical_radio .frm_catlevel_1{
801 - display:block<?php echo esc_html( $important ); ?>;
802 - margin-bottom: 10px;
803 -}
804 -
805 -.with_frm_style .horizontal_radio .frm_checkbox,
806 -.with_frm_style .horizontal_radio .frm_radio,
807 -.horizontal_radio .frm_catlevel_1{
808 - display:inline-block<?php echo esc_html( $important ); ?>;
809 -}
810 -
811 312 .with_frm_style .frm_checkbox label,
812 -.with_frm_style .frm_radio label {
813 - display: inline-block;
814 - vertical-align: middle;
313 +.with_frm_style .frm_radio label{
314 + display: inline;
815 315 white-space:normal;
816 316 }
817 317
818 -.with_frm_style .frm_checkbox label input[type=checkbox],
819 -.with_frm_style .frm_radio label input[type=radio] {
820 - margin-right: 4px;
821 -}
822 -
823 -.with_frm_style .frm_checkbox label:not(.frm-label-disabled),
824 -.with_frm_style .frm_radio label:not(.frm-label-disabled) {
825 - cursor: pointer;
826 -}
827 -
828 318 .with_frm_style .vertical_radio .frm_checkbox label,
829 319 .with_frm_style .vertical_radio .frm_radio label{
830 320 display: block;
831 - width: 100%;
321 + padding-left: 20px;
322 + text-indent: -20px;
832 323 }
833 324
834 -.with_frm_style .frm_radio label,
835 -.with_frm_style .frm_checkbox label {
836 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
837 - font-family: var(--font);
838 -<?php } ?>
839 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
840 - color: var(--check-label-color)<?php echo esc_html( $important ); ?>;
841 - font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>;
842 - line-height: 1.3;
843 -}
844 -
845 -.with_frm_style .frm_radio input[type=radio],
846 -.with_frm_style .frm_checkbox input[type=checkbox] {
847 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
848 - position: static<?php echo esc_html( $important ); ?>;
849 -}
850 -
851 325 .frm_file_container .frm_file_link,
852 326 .with_frm_style .frm_radio label .frm_file_container,
853 327 .with_frm_style .frm_checkbox label .frm_file_container{
854 328 display:inline-block;
@@ -855,104 +329,31 @@
855 329 margin:5px;
856 330 vertical-align:middle;
857 331 }
858 332
859 -.with_frm_style .frm_radio input[type=radio]
860 -<?php if ( $pro_is_installed ) : ?>
861 -, .with_frm_style .frm_scale input[type=radio]
862 -<?php endif; ?>
863 -{
333 +.with_frm_style .frm_radio input[type=radio]{
334 + -webkit-appearance:radio;
864 335 border-radius:50%;
865 336 }
866 337
867 -.with_frm_style .frm_checkbox input[type=checkbox] {
868 - 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;
869 341 }
870 342
871 343 .with_frm_style .frm_radio input[type=radio],
872 -<?php if ( $pro_is_installed ) : ?>
873 -.with_frm_style .frm_scale input[type=radio],
874 -<?php endif; ?>
875 344 .with_frm_style .frm_checkbox input[type=checkbox]{
876 - appearance: none;
877 - background-color: var(--bg-color);
878 345 flex: none;
879 - display:inline-block !important;
880 - width: 16px !important;
881 - min-width: 16px !important;
882 - height: 16px !important;
883 - color: var(--border-color);
884 - border: 1px solid currentColor;
885 - border-color: var(--border-color);
886 - vertical-align: middle;
346 + display:inline-block;
347 + margin:4px 5px 0 0;
348 + width:auto;
349 + border:none;
350 + vertical-align:baseline;
887 351 position: initial; /* override Bootstrap */
888 - padding: 0;
889 - margin: 0;
890 352 }
891 353
892 -.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked,
893 -<?php if ( $pro_is_installed ) : ?>
894 -.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked,
895 -<?php endif; ?>
896 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
897 - border-color: var(--border-color-active) !important;
898 -}
899 -
900 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
901 - background-color: var(--border-color-active) !important;
902 -}
903 -
904 -.with_frm_style .frm_radio input[type=radio][disabled]:checked,
905 -<?php if ( $pro_is_installed ) : ?>
906 -.with_frm_style .frm_scale input[type=radio][disabled]:checked,
907 -<?php endif; ?>
908 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
909 - border-color: var(--border-color) !important; /* Override Style Preview */
910 -}
911 -
912 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
913 - background-color: var(--border-color) !important;
914 -}
915 -
916 -.with_frm_style .frm_radio input[type=radio]:checked:before,
917 -<?php if ( $pro_is_installed ) { ?>
918 -.with_frm_style .frm_scale input[type=radio]:checked:before,
919 -<?php } ?>
920 -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
921 - position: static !important; /* Override Style Preview */
922 - content: '';
923 - display: block;
924 -}
925 -
926 -.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before {
927 - width: 100% !important;
928 - height: 100% !important;
929 - 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;
930 - background-size: 9px !important;
931 - background-repeat: no-repeat !important;
932 - background-position: center !important;
933 - margin: 0;
934 -}
935 -
936 -<?php if ( $pro_is_installed ) { ?>
937 -.with_frm_style .frm_scale input[type=radio]:before,
938 -<?php } ?>
939 -.with_frm_style .frm_radio input[type=radio]:before {
940 - width: 8px;
941 - height: 8px;
942 - border-radius: 50%;
943 - background-color: var(--border-color-active);
944 - margin: 3px;
945 -}
946 -
947 -<?php if ( $pro_is_installed ) { ?>
948 -.with_frm_style .frm_scale input[type=radio][disabled]:before,
949 -<?php } ?>
950 -.with_frm_style .frm_radio input[type=radio][disabled]:before {
951 - background-color: var(--border-color);
952 -}
953 -
954 354 .with_frm_style :invalid,
355 +.with_frm_style :-moz-submit-invalid,
955 356 .with_frm_style :-moz-ui-invalid{
956 357 box-shadow:none;
957 358 }
958 359
@@ -968,43 +369,18 @@
968 369
969 370 .with_frm_style .frm_error_style,
970 371 .with_frm_style .frm_message,
971 372 .frm_success_style{
373 + -moz-border-radius:4px;
374 + -webkit-border-radius:4px;
972 375 border-radius:4px;
973 376 padding:15px;
974 377 }
975 378
976 -.with_frm_style .frm_message p {
977 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
978 - margin-bottom: 0;
379 +.with_frm_style .frm_message p{
380 + margin-bottom:5px;
979 381 }
980 382
981 -.with_frm_style .frm_message > p:first-of-type {
982 - margin-top: 0;
983 -}
984 -
985 -.with_frm_style .frm_message,
986 -.frm_success_style {
987 - margin: 5px 0 15px;
988 - border: 1px solid var(--success-border-color);
989 - background-color: var(--success-bg-color);
990 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
991 - border-radius: var(--border-radius);
992 - font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>;
993 -}
994 -
995 -.with_frm_style .frm_plain_success .frm_message {
996 - background-color: transparent;
997 - padding:0;
998 - border:none;
999 - font-size:inherit<?php echo esc_html( $important ); ?>;
1000 - color:inherit<?php echo esc_html( $important ); ?>;
1001 -}
1002 -
1003 -.with_frm_style .frm_plain_success .frm_message p {
1004 - color:inherit<?php echo esc_html( $important ); ?>;
1005 -}
1006 -
1007 383 .frm_form_fields_style,
1008 384 .frm_form_fields_active_style,
1009 385 .frm_form_fields_error_style,
1010 386 .frm_form_submit_style{
@@ -1025,11 +401,9 @@
1025 401 .frm-grid th{
1026 402 padding:5px;
1027 403 border-width:1px;
1028 404 border-style:solid;
1029 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1030 - border-color: var(--border-color);
1031 - <?php } ?>
405 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1032 406 border-top:none;
1033 407 border-left:none;
1034 408 border-right:none;
1035 409 }
@@ -1035,20 +409,13 @@
1035 409 }
1036 410
1037 411 .frm-alt-table {
1038 412 width:100%;
1039 - border-collapse:separate;
413 + border-collapse:collapse;
1040 414 margin-top:0.5em;
1041 415 font-size:15px;
1042 - border-width:1px;
1043 416 }
1044 417
1045 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1046 -.with_frm_style .frm-alt-table{
1047 - border-color: var(--border-color);
1048 -}
1049 -<?php } ?>
1050 -
1051 418 .frm-alt-table th {
1052 419 width:200px;
1053 420 }
1054 421
@@ -1061,9 +428,8 @@
1061 428 background-color:transparent;
1062 429 vertical-align:top;
1063 430 text-align:left;
1064 431 padding:20px;
1065 - border-color:transparent;
1066 432 }
1067 433
1068 434 .frm-alt-table tr:nth-child(even) {
1069 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
@@ -1069,51 +435,28 @@
1069 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1070 436 }
1071 437
1072 438 table.form_results.with_frm_style{
1073 - border-style: solid;
1074 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1075 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
439 + border:1px solid #ccc;
1076 440 }
1077 441
1078 442 table.form_results.with_frm_style tr td{
1079 443 text-align:left;
444 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1080 445 padding:7px 9px;
1081 -<?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1082 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
1083 -<?php } ?>
1084 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1085 - border-top-style: solid;
1086 - border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1087 - border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1088 -<?php } ?>
446 + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1089 447 }
1090 448
1091 449 table.form_results.with_frm_style tr.frm_even,
1092 450 .frm-grid .frm_even{
1093 451 background-color:#fff;
1094 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1095 452 }
1096 453
1097 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1098 454 table.form_results.with_frm_style tr.frm_odd,
1099 -.frm-grid .frm_odd {
1100 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
1101 -}
1102 -<?php } ?>
1103 -
1104 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1105 -.frm_color_block {
455 +.frm-grid .frm_odd{
1106 456 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1107 - padding: 40px;
1108 457 }
1109 458
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 -
1116 459 .frm_collapse .ui-icon{
1117 460 display:inline-block;
1118 461 }
1119 462
@@ -1180,25 +523,23 @@
1180 523 animation:2s linear 0s normal none infinite progress-bar-stripes;
1181 524 }
1182 525
1183 526 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1184 -#frm_loading .progress-striped .progress-bar {
1185 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1186 - 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));
1187 - <?php } ?>
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));
1188 529 background-size:40px 40px;
1189 530 }
1190 531 <?php } ?>
1191 532
1192 -#frm_loading .progress-bar {
1193 - background-color: var(--bg-color);
1194 - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1195 - float: left;
1196 - height: 100%;
1197 - line-height: 20px;
1198 - text-align: center;
1199 - transition: width 0.6s ease 0s;
1200 - 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%;
1201 542 }
1202 543
1203 544 .frm_image_from_url{
1204 545 height:50px;
@@ -1215,9 +556,9 @@
1215 556 background-repeat: no-repeat;
1216 557 color: transparent !important;
1217 558 }
1218 559
1219 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
560 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1220 561
1221 562 .frm_conf_field.frm_left_container .frm_primary_label{
1222 563 display:none;
1223 564 }
@@ -1224,8 +565,10 @@
1224 565
1225 566 .wp-editor-wrap *,
1226 567 .wp-editor-wrap *:after,
1227 568 .wp-editor-wrap *:before{
569 + -webkit-box-sizing:content-box;
570 + -moz-box-sizing:content-box;
1228 571 box-sizing:content-box;
1229 572 }
1230 573
1231 574 .with_frm_style .frm_grid,
@@ -1235,11 +578,9 @@
1235 578 margin-bottom:0 !important;
1236 579 padding:5px;
1237 580 border-width:1px;
1238 581 border-style:solid;
1239 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1240 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1241 -<?php } ?>
582 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1242 583 border-left:none;
1243 584 border-right:none;
1244 585 }
1245 586
@@ -1249,12 +590,9 @@
1249 590 }
1250 591
1251 592 .frm_grid .frm_error,
1252 593 .frm_grid_first .frm_error,
1253 -.frm_grid_odd .frm_error,
1254 -.frm_grid .frm_limit_error,
1255 -.frm_grid_first .frm_limit_error,
1256 -.frm_grid_odd .frm_limit_error{
594 +.frm_grid_odd .frm_error{
1257 595 display:none;
1258 596 }
1259 597
1260 598 .frm_grid:after,
@@ -1271,28 +609,17 @@
1271 609 .frm_grid_first{
1272 610 margin-top:20px;
1273 611 }
1274 612
1275 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1276 613 .frm_grid_first,
1277 -.frm_grid_odd {
1278 - background-color: var(--bg-color);
614 +.frm_grid_odd{
615 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1279 616 }
1280 -<?php } ?>
1281 617
1282 -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1283 -.frm_grid {
1284 - 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'] ); ?>;
1285 620 }
1286 -<?php } ?>
1287 621
1288 -.with_frm_style .frm_grid.frm_blank_field,
1289 -.with_frm_style .frm_grid_first.frm_blank_field,
1290 -.with_frm_style .frm_grid_odd.frm_blank_field{
1291 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1292 - border-color: var(--error-border);
1293 -}
1294 -
1295 622 .frm_grid .frm_primary_label,
1296 623 .frm_grid_first .frm_primary_label,
1297 624 .frm_grid_odd .frm_primary_label,
1298 625 .frm_grid .frm_radio,
@@ -1312,10 +639,9 @@
1312 639 .frm_grid_odd .frm_radio label,
1313 640 .frm_grid_first .frm_checkbox label,
1314 641 .frm_grid .frm_checkbox label,
1315 642 .frm_grid_odd .frm_checkbox label{
1316 - color:transparent;
1317 - text-indent: -9999px;
643 + visibility:hidden;
1318 644 white-space:nowrap;
1319 645 text-align:left;
1320 646 }
1321 647
@@ -1441,18 +767,8 @@
1441 767 .frm_form_field.frm_left_container .frm_opt_container{
1442 768 padding-top:4px;
1443 769 }
1444 770
1445 -.with_frm_style .frm_left_container > select.auto_width,
1446 -.with_frm_style .frm_right_container > select.auto_width {
1447 - width: max-content<?php echo esc_html( $important ); ?>;
1448 -}
1449 -
1450 -.with_frm_style .frm_right_container > .frm_primary_label,
1451 -.with_frm_style .frm_right_container > select.auto_width {
1452 - margin-left: auto<?php echo esc_html( $important ); ?>;
1453 -}
1454 -
1455 771 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1456 772 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1457 773 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1458 774 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1487,9 +803,11 @@
1487 803 grid-column-end: span 1;
1488 804 }
1489 805
1490 806 .frm_form_field .frm_checkbox,
1491 -.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{
1492 810 margin-top: 0;
1493 811 margin-bottom: 0;
1494 812 }
1495 813
@@ -1498,28 +816,30 @@
1498 816 overflow:auto;
1499 817 }
1500 818
1501 819 .frm_html_container.frm_scroll_box,
1502 -.frm_form_field.frm_html_scroll_box {
1503 - height: 100px;
1504 - overflow: auto;
1505 - background-color: var(--bg-color);
1506 - border-color: var(--border-color);
1507 - border-width: var(--field-border-width);
1508 - border-style: var(--field-border-style);
1509 - border-radius: var(--border-radius);
1510 - width: var(--field-width);
1511 - max-width: 100%;
1512 - font-size: var(--field-font-size);
1513 - padding: var(--field-pad);
1514 - box-sizing: border-box;
1515 - outline: none<?php echo esc_html( $important ); ?>;
1516 - font-weight: normal;
1517 - 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;
1518 840 }
1519 841
1520 -.frm_form_field.frm_total_big input,
1521 -.frm_form_field.frm_total_big textarea,
1522 842 .frm_form_field.frm_total input,
1523 843 .frm_form_field.frm_total textarea{
1524 844 opacity:1;
1525 845 background-color:transparent !important;
@@ -1524,10 +844,11 @@
1524 844 opacity:1;
1525 845 background-color:transparent !important;
1526 846 border:none !important;
1527 847 font-weight:bold;
848 + -moz-box-shadow:none;
849 + -webkit-box-shadow:none;
1528 850 width:auto !important;
1529 - height:auto !important;
1530 851 box-shadow:none !important;
1531 852 display:inline;
1532 853 -moz-appearance:textfield;
1533 854 padding:0;
@@ -1532,21 +853,19 @@
1532 853 -moz-appearance:textfield;
1533 854 padding:0;
1534 855 }
1535 856
1536 -.frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1537 -.frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1538 857 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1539 858 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1540 859 -webkit-appearance: none;
1541 860 }
1542 861
1543 -.frm_form_field.frm_total_big input:focus,
1544 -.frm_form_field.frm_total_big textarea:focus,
1545 862 .frm_form_field.frm_total input:focus,
1546 863 .frm_form_field.frm_total textarea:focus{
1547 864 background-color:transparent;
1548 865 border:none;
866 + -moz-box-shadow:none;
867 + -webkit-box-shadow:none;
1549 868 box-shadow:none;
1550 869 }
1551 870
1552 871 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1571,28 +890,13 @@
1571 890 .frm_clearfix{
1572 891 display:block;
1573 892 }
1574 893
1575 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1576 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1577 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1578 - margin-bottom: 0 !important;
1579 -}
894 +/* Fonts */
895 +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
896 +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1580 897
1581 -
1582 -<?php
1583 -/**
1584 - * Call action so other plugins can add additional CSS.
1585 - *
1586 - * @param array $args {
1587 - * @type array $defaults
1588 - * }
1589 - */
1590 -do_action( 'frm_include_front_css', compact( 'defaults' ) );
1591 -?>
1592 -
1593 898 /* Responsive */
1594 -
1595 899 @media only screen and (max-width: 900px) {
1596 900 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1597 901 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1598 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1603,13 +907,8 @@
1603 907 @media only screen and (max-width: 600px) {
1604 908 .frm_form_field.frm_four_col .frm_opt_container{
1605 909 grid-template-columns: repeat(2, 1fr);
1606 910 }
1607 -
1608 - .with_frm_style .frm_repeat_inline,
1609 - .with_frm_style .frm_repeat_grid{
1610 - margin: 20px 0;
1611 - }
1612 911 }
1613 912
1614 913 @media only screen and (max-width: 500px) {
1615 914 .frm_form_field.frm_two_col .frm_radio,
@@ -1634,8 +933,9 @@
1634 933 max-width:302px;
1635 934 border-right:1px solid #d3d3d3;
1636 935 border-radius:4px;
1637 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);
1638 938 }
1639 939
1640 940 .with_frm_style .g-recaptcha iframe,
1641 941 .with_frm_style .frm-g-recaptcha iframe{
@@ -1641,14 +941,12 @@
1641 941 .with_frm_style .frm-g-recaptcha iframe{
1642 942 width:100%;
1643 943 }
1644 944 }
945 +<?php
1645 946
1646 -.frm-card-element .sq-card-wrapper .sq-card-message {
1647 - margin-bottom: 0;
947 +$frm_settings = FrmAppHelper::get_settings();
948 +if ( $frm_settings->old_css ) {
949 + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
1648 950 }
1649 -.frm-card-errors:empty {
1650 - margin: 0;
1651 -}
1652 -<?php
1653 951
1654 -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
952 +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.