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 +48 -739 6.34.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,18 +11,15 @@
16 11 if ( ! isset( $frm_style ) ) {
17 12 $frm_style = new FrmStyle();
18 13 }
19 14
20 -$styles = $frm_style->get_all();
15 +$styles = $frm_style->get_all();
21 16 $default_style = $frm_style->get_default_style( $styles );
22 -$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
23 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
17 +$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
24 18
25 19 ?>
26 -.with_frm_style{
27 -<?php FrmStylesHelper::output_vars( $defaults ); ?>
28 -}
29 20
21 +.frm_form_field .grecaptcha-badge,
30 22 .frm_hidden,
31 23 .frm_add_form_row.frm_hidden,
32 24 .frm_remove_form_row.frm_hidden,
33 25 .with_frm_style .frm_button.frm_hidden{
@@ -33,51 +25,14 @@
33 25 .with_frm_style .frm_button.frm_hidden{
34 26 display:none;
35 27 }
36 28
37 -.with_frm_style,
38 -.with_frm_style form,
39 -.with_frm_style .frm-show-form div.frm_description p{
40 - text-align:<?php echo esc_html( $defaults['form_align'] . $important ); ?>;
41 - text-align:var(--form-align)<?php echo esc_html( $important ); ?>;
42 -}
43 -
44 -input:-webkit-autofill {
45 - -webkit-box-shadow: 0 0 0 30px white inset;
46 -}
47 -
48 -/* Form description */
49 -.with_frm_style .frm-show-form div.frm_description p{
50 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
51 - font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>;
52 - font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>;
53 -<?php } ?>
54 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
55 - color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>;
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:<?php echo esc_html( $defaults['form_desc_margin_top'] . $important ); ?>;
60 - margin-top:var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>;
61 -<?php } ?>
62 -<?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?>
63 - margin-bottom:<?php echo esc_html( $defaults['form_desc_margin_bottom'] . $important ); ?>;
64 - margin-bottom:var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>;
65 -<?php } ?>
66 -<?php if ( isset( $defaults['form_desc_padding'] ) ) { ?>
67 - padding:<?php echo esc_html( $defaults['form_desc_padding'] . $important ); ?>;
68 - padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>;
69 -<?php } ?>
70 -}
71 -
72 29 form input.frm_verify{
73 - position:absolute;
74 - left:-3000px;
30 + display:none !important;
75 31 }
76 32
77 33 .with_frm_style fieldset{
78 34 min-width:0;
79 - display: block; /* Override 2021 theme */
80 35 }
81 36
82 37 .with_frm_style fieldset fieldset{
83 38 border:none;
@@ -85,32 +40,8 @@
85 40 padding:0;
86 41 background-color:transparent;
87 42 }
88 43
89 -.with_frm_style .frm_form_fields > fieldset{
90 -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?>
91 - border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>;
92 - border-width:var(--fieldset)<?php echo esc_html( $important ); ?>;
93 -<?php } ?>
94 - border-style:solid;
95 -<?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?>
96 - border-color:<?php echo esc_html( $defaults['fieldset_color'] . $important ); ?>;
97 - border-color:var(--fieldset-color)<?php echo esc_html( $important ); ?>;
98 -<?php } ?>
99 - margin:0;
100 -<?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?>
101 - padding:<?php echo esc_html( $defaults['fieldset_padding'] . $important ); ?>;
102 - padding:var(--fieldset-padding)<?php echo esc_html( $important ); ?>;
103 -<?php } ?>
104 -<?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?>
105 - background-color:<?php echo esc_html( $defaults['fieldset_bg_color'] ); ?>;
106 - background-color:var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>;
107 -<?php } ?>
108 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
109 - font-family:var(--font);
110 -<?php } ?>
111 -}
112 -
113 44 legend.frm_hidden{
114 45 display:none !important;
115 46 }
116 47
@@ -125,181 +56,9 @@
125 56 .frm_transparent{
126 57 color:transparent;
127 58 }
128 59
129 -.with_frm_style legend + h3,
130 -.with_frm_style h3.frm_form_title{
131 -<?php if ( ! empty( $defaults['title_size'] ) ) { ?>
132 - font-size:<?php echo esc_html( $defaults['title_size'] . $important ); ?>;
133 - font-size:var(--title-size)<?php echo esc_html( $important ); ?>;
134 -<?php } ?>
135 -<?php if ( ! empty( $defaults['title_color'] ) ) { ?>
136 - color:<?php echo esc_html( $defaults['title_color'] . $important ); ?>;
137 - color:var(--title-color)<?php echo esc_html( $important ); ?>;
138 -<?php } ?>
139 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
140 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
141 - font-family:var(--font);
142 -<?php } ?>
143 -<?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?>
144 - margin-top:<?php echo esc_html( $defaults['title_margin_top'] . $important ); ?>;
145 - margin-top:var(--title-margin-top)<?php echo esc_html( $important ); ?>;
146 -<?php } ?>
147 -<?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?>
148 - margin-bottom:<?php echo esc_html( $defaults['title_margin_bottom'] . $important ); ?>;
149 - margin-bottom:var(--title-margin-bottom)<?php echo esc_html( $important ); ?>;
150 -<?php } ?>
151 -}
152 -
153 -.with_frm_style .frm_form_field.frm_html_container,
154 -.with_frm_style .frm_form_field .frm_show_it{
155 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
156 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
157 - font-family:var(--font);
158 -<?php } ?>
159 -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
160 - color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>;
161 - color:var(--form-desc-color)<?php echo esc_html( $important ); ?>;
162 -<?php } ?>
163 -}
164 -
165 -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
166 -.with_frm_style .frm_form_field.frm_html_container{
167 - font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>;
168 - font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>;
169 -}
170 -<?php } ?>
171 -
172 -.with_frm_style .frm_form_field .frm_show_it{
173 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
174 - font-size:<?php echo esc_html( $defaults['field_font_size'] . $important ); ?>;
175 - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
176 -<?php } ?>
177 -<?php if ( ! empty( $defaults['field_weight'] ) ) { ?>
178 - font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>;
179 - font-weight:var(--field-weight)<?php echo esc_html( $important ); ?>;
180 -<?php } ?>
181 -}
182 -
183 -.with_frm_style .frm_required{
184 -<?php if ( ! empty( $defaults['required_color'] ) ) { ?>
185 - color:<?php echo esc_html( $defaults['required_color'] . $important ); ?>;
186 - color:var(--required-color)<?php echo esc_html( $important ); ?>;
187 -<?php } ?>
188 -<?php if ( ! empty( $defaults['required_weight'] ) ) { ?>
189 - font-weight:<?php echo esc_html( $defaults['required_weight'] . $important ); ?>;
190 - font-weight:var(--required-weight)<?php echo esc_html( $important ); ?>;
191 -<?php } ?>
192 -}
193 -
194 -.with_frm_style input[type=text],
195 -.with_frm_style input[type=password],
196 -.with_frm_style input[type=email],
197 -.with_frm_style input[type=number],
198 -.with_frm_style input[type=url],
199 -.with_frm_style input[type=tel],
200 -.with_frm_style input[type=search],
201 -.with_frm_style select,
202 -.with_frm_style textarea,
203 -.with_frm_style .frm-card-element.StripeElement,
204 -.with_frm_style .chosen-container{
205 - font-family:var(--font)<?php echo esc_html( $important ); ?>;
206 -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
207 - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
208 - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
209 -<?php } ?>
210 - margin-bottom:0<?php echo esc_html( $important ); ?>;
211 -}
212 -
213 -.with_frm_style textarea{
214 - vertical-align:top;
215 - height:auto;
216 -}
217 -
218 -.with_frm_style input[type=text],
219 -.with_frm_style input[type=password],
220 -.with_frm_style input[type=email],
221 -.with_frm_style input[type=number],
222 -.with_frm_style input[type=url],
223 -.with_frm_style input[type=tel],
224 -.with_frm_style input[type=phone],
225 -.with_frm_style input[type=search],
226 -.with_frm_style select,
227 -.with_frm_style textarea,
228 -.frm_form_fields_style,
229 -.with_frm_style .frm_scroll_box .frm_opt_container,
230 -.frm_form_fields_active_style,
231 -.frm_form_fields_error_style,
232 -.with_frm_style .frm-card-element.StripeElement,
233 -.with_frm_style .chosen-container-multi .chosen-choices,
234 -.with_frm_style .chosen-container-single .chosen-single{
235 - color:<?php echo esc_html( $defaults['text_color'] ); ?>;
236 - color:var(--text-color)<?php echo esc_html( $important ); ?>;
237 - background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
238 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
239 -<?php if ( ! empty( $important ) ) { ?>
240 - background-image:none !important;
241 -<?php } ?>
242 - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
243 - border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
244 - border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
245 - border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
246 - border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
247 - border-style:var(--field-border-style)<?php echo esc_html( $important ); ?>;
248 - -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
249 - -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
250 - border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
251 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
252 - width:<?php echo esc_html( $defaults['field_width'] ); ?>;
253 - width:var(--field-width)<?php echo esc_html( $important ); ?>;
254 - max-width:100%;
255 - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
256 - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
257 - padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
258 - padding:var(--field-pad)<?php echo esc_html( $important ); ?>;
259 - -webkit-box-sizing:border-box;
260 - -moz-box-sizing:border-box;
261 - box-sizing:border-box;
262 - outline:none<?php echo esc_html( $important ); ?>;
263 - font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>;
264 - font-weight:var(--field-weight);
265 - box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
266 -}
267 -
268 -.with_frm_style input[type=radio],
269 -.with_frm_style input[type=checkbox]{
270 - border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>;
271 - border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
272 - box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
273 - float: none;
274 -}
275 -
276 -.with_frm_style input[type=radio]:after,
277 -.with_frm_style input[type=checkbox]:after {
278 - display: none; /* 2021 conflict */
279 -}
280 -
281 -.with_frm_style input[type=text],
282 -.with_frm_style input[type=password],
283 -.with_frm_style input[type=email],
284 -.with_frm_style input[type=number],
285 -.with_frm_style input[type=url],
286 -.with_frm_style input[type=tel],
287 -.with_frm_style input[type=file],
288 -.with_frm_style input[type=search],
289 -.with_frm_style select,
290 -.with_frm_style .frm-card-element.StripeElement{
291 - height:<?php echo esc_html( $defaults['field_height'] ); ?>;
292 - height:var(--field-height)<?php echo esc_html( $important ); ?>;
293 - line-height:1.3<?php echo esc_html( $important ); ?>;
294 -}
295 -
296 -.with_frm_style select[multiple=multiple]{
297 - height:auto<?php echo esc_html( $important ); ?>;
298 -}
299 -
300 -.input[type=file].frm_transparent:focus,
301 -.with_frm_style input[type=file]{
60 +.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{
302 61 background-color:transparent;
303 62 border:none;
304 63 outline:none;
305 64 box-shadow:none;
@@ -305,60 +64,11 @@
305 64 box-shadow:none;
306 65 }
307 66
308 67 .with_frm_style input[type=file]{
309 - color:<?php echo esc_html( $defaults['text_color'] ); ?>;
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:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
316 - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
317 68 display:initial;
318 69 }
319 70
320 -.with_frm_style input[type=file].frm_transparent{
321 - color:transparent<?php echo esc_html( $important ); ?>;
322 -}
323 -
324 -.with_frm_style .wp-editor-wrap{
325 - width:<?php echo esc_html( $defaults['field_width'] . $important ); ?>;
326 - width:var(--field-width)<?php echo esc_html( $important ); ?>;
327 - max-width:100%;
328 -}
329 -
330 -.with_frm_style .wp-editor-container textarea{
331 - border:none<?php echo esc_html( $important ); ?>;
332 - box-shadow:none !important;
333 -}
334 -
335 -.with_frm_style .mceIframeContainer{
336 - background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
337 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
338 -}
339 -
340 -.with_frm_style select{
341 - width:<?php echo esc_html( $defaults['auto_width'] ); ?>;
342 - width:var(--auto-width)<?php echo esc_html( $important ); ?>;
343 - max-width:100%;
344 - background-position-y: center;
345 -}
346 -
347 -.with_frm_style input[disabled],
348 -.with_frm_style select[disabled],
349 -.with_frm_style textarea[disabled],
350 -.with_frm_style input[readonly],
351 -.with_frm_style select[readonly],
352 -.with_frm_style textarea[readonly]{
353 - background-color:<?php echo esc_html( $defaults['bg_color_disabled'] ); ?>;
354 - background-color:var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
355 - color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>;
356 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
357 - border-color:<?php echo esc_html( $defaults['border_color_disabled'] ); ?>;
358 - border-color:var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
359 -}
360 -
361 71 .frm_preview_page:before{
362 72 content:normal !important;
363 73 }
364 74
@@ -367,35 +77,8 @@
367 77 }
368 78
369 79 .with_frm_style .frm_primary_label{
370 80 max-width:100%;
371 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
372 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
373 - font-family:var(--font);
374 -<?php } ?>
375 -<?php if ( ! empty( $defaults['font_size'] ) ) { ?>
376 - font-size:<?php echo esc_html( $defaults['font_size'] . $important ); ?>;
377 - font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
378 -<?php } ?>
379 -<?php if ( ! empty( $defaults['label_color'] ) ) { ?>
380 - color:<?php echo esc_html( $defaults['label_color'] . $important ); ?>;
381 - color:var(--label-color)<?php echo esc_html( $important ); ?>;
382 -<?php } ?>
383 -<?php if ( ! empty( $defaults['weight'] ) ) { ?>
384 - font-weight:<?php echo esc_html( $defaults['weight'] . $important ); ?>;
385 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
386 -<?php } ?>
387 -<?php if ( ! empty( $defaults['align'] ) ) { ?>
388 - text-align:<?php echo esc_html( $defaults['align'] . $important ); ?>;
389 - text-align:var(--align)<?php echo esc_html( $important ); ?>;
390 -<?php } ?>
391 -<?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
392 - padding:<?php echo esc_html( $defaults['label_padding'] . $important ); ?>;
393 - padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
394 -<?php } ?>
395 - margin:0;
396 - width:auto;
397 - display:block;
398 81 }
399 82
400 83 .with_frm_style .frm_top_container .frm_primary_label,
401 84 .with_frm_style .frm_hidden_container .frm_primary_label,
@@ -415,12 +98,8 @@
415 98 float:right;
416 99 margin-left:10px;
417 100 }
418 101
419 -.with_frm_style .frm_pos_center {
420 - text-align: center;
421 -}
422 -
423 102 .with_frm_style .frm_none_container .frm_primary_label,
424 103 .with_frm_style .frm_pos_none,
425 104 .frm_pos_none,
426 105 .frm_none_container .frm_primary_label{
@@ -437,104 +116,19 @@
437 116 visibility:hidden;
438 117 white-space:nowrap;
439 118 }
440 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,
441 126 .frm_visible{
442 127 opacity:1;
443 128 }
444 129
445 -/* Floating labels */
446 -.with_frm_style .frm_inside_container {
447 - position: relative;
448 - padding-top: 16px;
449 - padding-top: calc(0.5 * var(--field-height));
450 -}
451 -
452 -.with_frm_style .frm_inside_container > input,
453 -.with_frm_style .frm_inside_container > select,
454 -.with_frm_style .frm_inside_container > textarea {
455 - display: block;
456 -}
457 -
458 -/* These do not work if they are combined */
459 -.with_frm_style .frm_inside_container > input::-moz-placeholder,
460 -.with_frm_style .frm_inside_container > textarea::-moz-placeholder {
461 - opacity: 0 !important;
462 - transition: opacity 0.3s ease-in;
463 -}
464 -
465 -.with_frm_style .frm_inside_container > input:-ms-input-placeholder,
466 -.with_frm_style .frm_inside_container > textarea:-ms-input-placeholder {
467 - opacity: 0;
468 - transition: opacity 0.3s ease-in;
469 -}
470 -
471 -.with_frm_style .frm_inside_container > input::placeholder,
472 -.with_frm_style .frm_inside_container > textarea::placeholder {
473 - opacity: 0;
474 - transition: opacity 0.3s ease-in;
475 -}
476 -
477 -.with_frm_style .frm_inside_container > label {
478 - transition: all 0.3s ease-in;
479 -
480 - position: absolute;
481 - top: 17px;
482 - top: calc(1px + .5 * var(--field-height));
483 - left: 3px;
484 - width: 100%;
485 -
486 - line-height: 1.3;
487 - text-overflow: ellipsis;
488 - overflow: hidden;
489 - white-space: nowrap;
490 -
491 - padding: 6px 10px;
492 - padding: var(--field-pad);
493 -
494 - font-size: 14px;
495 - font-size: var(--field-font-size);
496 - font-weight: normal;
497 - font-weight: var(--field-weight);
498 -
499 - -ms-pointer-events: none;
500 - pointer-events: none;
501 -}
502 -
503 -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
504 - line-height: 1;
505 -}
506 -
507 -.with_frm_style .frm_inside_container.frm_label_float_top > label {
508 - top: 0;
509 - left: 0;
510 - padding: 0;
511 - font-size: 12px;
512 - font-size: calc(0.85 * var(--field-font-size));
513 -}
514 -
515 -/* These do not work if they are combined */
516 -.with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder,
517 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder {
518 - opacity: 1 !important;
519 - transition: opacity 0.3s ease-in;
520 -}
521 -
522 -.with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder,
523 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder {
524 - opacity: 1;
525 - transition: opacity 0.3s ease-in;
526 -}
527 -
528 -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
529 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
530 - opacity: 1;
531 - transition: opacity 0.3s ease-in;
532 -}
533 -/* End floating label */
534 -
535 -.with_frm_style .frm_description,
536 -.with_frm_style .frm_pro_max_limit_desc{
130 +.with_frm_style .frm_description{
537 131 clear:both;
538 132 }
539 133
540 134 .with_frm_style input[type=number][readonly]{
@@ -564,14 +158,18 @@
564 158 .with_frm_style .wp-editor-container textarea{
565 159 border:none;
566 160 }
567 161
162 +.with_frm_style textarea{
163 + height:auto;
164 +}
165 +
568 166 .with_frm_style .auto_width #loginform input,
569 167 .with_frm_style .auto_width input,
570 168 .with_frm_style input.auto_width,
571 169 .with_frm_style select.auto_width,
572 170 .with_frm_style textarea.auto_width{
573 - width:auto<?php echo esc_html( $important ); ?>;
171 + width:auto;
574 172 }
575 173
576 174 .with_frm_style .frm_repeat_buttons{
577 175 white-space:nowrap;
@@ -577,64 +175,14 @@
577 175 white-space:nowrap;
578 176 }
579 177
580 178 .with_frm_style .frm_button{
581 - text-decoration:none !important;;
179 + text-decoration:none;
582 180 border:1px solid #eee;
583 - display:inline-block;
584 -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
585 - padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>;
586 - padding:var(--submit-padding)<?php echo esc_html( $important ); ?>;
587 -<?php } else { ?>
588 181 padding:5px;
589 -<?php } ?>
590 -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
591 - -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
592 - -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
593 - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
594 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
595 -<?php } ?>
596 -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
597 - font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>;
598 - font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>;
599 -<?php } ?>
600 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
601 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
602 - font-family:var(--font)<?php echo esc_html( $important ); ?>;
603 -<?php } ?>
604 -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
605 - font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>;
606 - font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>;
607 -<?php } ?>
608 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
609 - color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>;
610 - color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
611 -<?php } ?>
612 -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
613 - background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>;
614 - background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
615 -<?php } ?>
616 -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
617 - border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>;
618 - border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>;
619 -<?php } ?>
620 -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
621 - border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>;
622 - border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>;
623 -<?php } ?>
624 -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
625 - height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>;
626 - height:var(--submit-height)<?php echo esc_html( $important ); ?>;
627 -<?php } ?>
182 + display:inline;
628 183 }
629 184
630 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
631 -.with_frm_style .frm_button.frm_inverse{
632 - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
633 - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
634 -}
635 -<?php } ?>
636 -
637 185 .with_frm_style .frm_submit{
638 186 clear:both;
639 187 }
640 188
@@ -657,25 +205,8 @@
657 205 .with_frm_style.frm_center_submit .frm_submit{
658 206 text-align:center;
659 207 }
660 208
661 -.with_frm_style .frm_inline_success .frm_submit{
662 - display: flex;
663 - flex-direction: row;
664 - align-items: center;
665 - margin: 0;
666 -}
667 -
668 -.with_frm_style .frm_inline_success .frm_submit .frm_message{
669 - flex: 1;
670 - margin: 0;
671 - padding-left: 10px;
672 -}
673 -
674 -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
675 - text-align: right;
676 -}
677 -
678 209 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
679 210 .with_frm_style.frm_center_submit .frm_submit input[type=button],
680 211 .with_frm_style.frm_center_submit .frm_submit button{
681 212 margin-bottom:8px !important;
@@ -680,9 +211,8 @@
680 211 .with_frm_style.frm_center_submit .frm_submit button{
681 212 margin-bottom:8px !important;
682 213 }
683 214
684 -.with_frm_style .frm-edit-page-btn,
685 215 .with_frm_style .frm_submit input[type=submit],
686 216 .with_frm_style .frm_submit input[type=button],
687 217 .with_frm_style .frm_submit button{
688 218 -webkit-appearance: none;
@@ -693,15 +223,13 @@
693 223 display: block;
694 224 margin: 0 auto;
695 225 }
696 226
697 -.with_frm_style .frm_loading_prev .frm_ajax_loading,
698 227 .with_frm_style .frm_loading_form .frm_ajax_loading{
699 228 /* keep this for reverse compatibility for old HTML */
700 229 visibility:visible !important;
701 230 }
702 231
703 -.with_frm_style .frm_loading_prev .frm_prev_page,
704 232 .with_frm_style .frm_loading_form .frm_button_submit {
705 233 position: relative;
706 234 opacity: .8;
707 235 color: transparent !important;
@@ -707,11 +235,8 @@
707 235 color: transparent !important;
708 236 text-shadow: none !important;
709 237 }
710 238
711 -.with_frm_style .frm_loading_prev .frm_prev_page:hover,
712 -.with_frm_style .frm_loading_prev .frm_prev_page:active,
713 -.with_frm_style .frm_loading_prev .frm_prev_page:focus,
714 239 .with_frm_style .frm_loading_form .frm_button_submit:hover,
715 240 .with_frm_style .frm_loading_form .frm_button_submit:active,
716 241 .with_frm_style .frm_loading_form .frm_button_submit:focus {
717 242 cursor: not-allowed;
@@ -719,9 +244,8 @@
719 244 outline: none !important;
720 245 box-shadow: none;
721 246 }
722 247
723 -.with_frm_style .frm_loading_prev .frm_prev_page::before,
724 248 .with_frm_style .frm_loading_form .frm_button_submit:before {
725 249 content: '';
726 250 display: inline-block;
727 251 position: absolute;
@@ -748,11 +272,8 @@
748 272 foreach ( $styles as $style ) {
749 273 include( dirname( __FILE__ ) . '/_single_theme.css.php' );
750 274 unset( $style );
751 275 }
752 -
753 -// Set it again since it may have been overridden.
754 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
755 276 ?>
756 277
757 278 .frm_ajax_loading{
758 279 visibility:hidden;
@@ -766,20 +287,8 @@
766 287 a.frm_save_draft{
767 288 cursor:pointer;
768 289 }
769 290
770 -.with_frm_style a.frm_save_draft,
771 -.with_frm_style a.frm_start_over{
772 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
773 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
774 - font-family:var(--font);
775 -<?php } ?>
776 - font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>;
777 - font-size:var(--submit-font-size);
778 - font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>;
779 - font-weight:var(--submit-weight);
780 -}
781 -
782 291 .horizontal_radio .frm_radio{
783 292 margin:0 5px 0 0;
784 293 }
785 294
@@ -797,33 +306,10 @@
797 306 .horizontal_radio .frm_checkbox,
798 307 .horizontal_radio .frm_radio,
799 308 .horizontal_radio .frm_catlevel_1{
800 309 display:inline-block;
801 - padding-left: 0;
802 310 }
803 311
804 -.with_frm_style .frm_radio{
805 - display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>;
806 - display:var(--radio-align)<?php echo esc_html( $important ); ?>;
807 -}
808 -
809 -.with_frm_style .frm_checkbox{
810 - display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>;
811 - display:var(--check-align)<?php echo esc_html( $important ); ?>;
812 -}
813 -
814 -.with_frm_style .vertical_radio .frm_checkbox,
815 -.with_frm_style .vertical_radio .frm_radio,
816 -.vertical_radio .frm_catlevel_1{
817 - display:block<?php echo esc_html( $important ); ?>;
818 -}
819 -
820 -.with_frm_style .horizontal_radio .frm_checkbox,
821 -.with_frm_style .horizontal_radio .frm_radio,
822 -.horizontal_radio .frm_catlevel_1{
823 - display:inline-block<?php echo esc_html( $important ); ?>;
824 -}
825 -
826 312 .with_frm_style .frm_checkbox label,
827 313 .with_frm_style .frm_radio label{
828 314 display: inline;
829 315 white-space:normal;
@@ -835,30 +321,8 @@
835 321 padding-left: 20px;
836 322 text-indent: -20px;
837 323 }
838 324
839 -.with_frm_style .frm_radio label,
840 -.with_frm_style .frm_checkbox label{
841 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
842 - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
843 - font-family:var(--font);
844 -<?php } ?>
845 - font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
846 - font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
847 - color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>;
848 - color:var(--check-label-color)<?php echo esc_html( $important ); ?>;
849 - font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>;
850 - font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>;
851 - line-height: 1.3;
852 -}
853 -
854 -.with_frm_style .frm_radio input[type=radio],
855 -.with_frm_style .frm_checkbox input[type=checkbox] {
856 - font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
857 - font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
858 - position:static<?php echo esc_html( $important ); ?>;
859 -}
860 -
861 325 .frm_file_container .frm_file_link,
862 326 .with_frm_style .frm_radio label .frm_file_container,
863 327 .with_frm_style .frm_checkbox label .frm_file_container{
864 328 display:inline-block;
@@ -866,57 +330,28 @@
866 330 vertical-align:middle;
867 331 }
868 332
869 333 .with_frm_style .frm_radio input[type=radio]{
334 + -webkit-appearance:radio;
870 335 border-radius:50%;
871 336 }
872 337
873 338 .with_frm_style .frm_checkbox input[type=checkbox]{
339 + -webkit-appearance:checkbox;
874 340 border-radius:0;
875 341 }
876 342
877 343 .with_frm_style .frm_radio input[type=radio],
878 344 .with_frm_style .frm_checkbox input[type=checkbox]{
879 - -webkit-appearance: none;
880 - appearance: none;
881 - background-color: var(--bg-color);
882 345 flex: none;
883 - display:inline-block !important;
884 - margin: 0 5px 0 0;
885 - color: var(--border-color);
886 - width: 18px;
887 - min-width: 18px;
888 - height: 18px;
889 - border: 1px solid currentColor;
890 - border-color: var(--border-color);
891 - vertical-align: middle;
346 + display:inline-block;
347 + margin:4px 5px 0 0;
348 + width:auto;
349 + border:none;
350 + vertical-align:baseline;
892 351 position: initial; /* override Bootstrap */
893 - padding: 0;
894 352 }
895 353
896 -.with_frm_style .frm_radio input[type=radio]:before,
897 -.with_frm_style .frm_checkbox input[type=checkbox]:before {
898 - content: '';
899 - width: 12px;
900 - height: 12px;
901 - border-radius: 50%;
902 - transform: scale(0);
903 - transition: 120ms transform ease-in-out;
904 - box-shadow: inset 10px 10px var(--text-color);
905 - display: block;
906 - margin: 2px 0 0 2px;
907 -}
908 -
909 -.with_frm_style .frm_checkbox input[type=checkbox]:before{
910 - clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
911 - border-radius: 0;
912 -}
913 -
914 -.with_frm_style .frm_radio input[type=radio]:checked:before,
915 -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
916 - transform: scale(1);
917 -}
918 -
919 354 .with_frm_style :invalid,
920 355 .with_frm_style :-moz-submit-invalid,
921 356 .with_frm_style :-moz-ui-invalid{
922 357 box-shadow:none;
@@ -942,39 +377,10 @@
942 377 }
943 378
944 379 .with_frm_style .frm_message p{
945 380 margin-bottom:5px;
946 - color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
947 - color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
948 381 }
949 382
950 -.with_frm_style .frm_message,
951 -.frm_success_style{
952 - margin:5px 0 15px;
953 - border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>;
954 - border-color:var(--success-border-color);
955 - background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>;
956 - background-color:var(--success-bg-color);
957 - color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
958 - color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
959 - border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
960 - border-radius:var(--border-radius);
961 - font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>;
962 - font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>;
963 -}
964 -
965 -.with_frm_style .frm_plain_success .frm_message {
966 - background-color: transparent;
967 - padding:0;
968 - border:none;
969 - font-size:inherit<?php echo esc_html( $important ); ?>;
970 - color:inherit<?php echo esc_html( $important ); ?>;
971 -}
972 -
973 -.with_frm_style .frm_plain_success .frm_message p {
974 - color:inherit<?php echo esc_html( $important ); ?>;
975 -}
976 -
977 383 .frm_form_fields_style,
978 384 .frm_form_fields_active_style,
979 385 .frm_form_fields_error_style,
980 386 .frm_form_submit_style{
@@ -995,12 +401,9 @@
995 401 .frm-grid th{
996 402 padding:5px;
997 403 border-width:1px;
998 404 border-style:solid;
999 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1000 - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1001 - border-color:var(--border-color);
1002 - <?php } ?>
405 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1003 406 border-top:none;
1004 407 border-left:none;
1005 408 border-right:none;
1006 409 }
@@ -1006,21 +409,13 @@
1006 409 }
1007 410
1008 411 .frm-alt-table {
1009 412 width:100%;
1010 - border-collapse:separate;
413 + border-collapse:collapse;
1011 414 margin-top:0.5em;
1012 415 font-size:15px;
1013 - border-width:1px;
1014 416 }
1015 417
1016 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1017 -.with_frm_style .frm-alt-table{
1018 - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1019 - border-color:var(--border-color);
1020 -}
1021 -<?php } ?>
1022 -
1023 418 .frm-alt-table th {
1024 419 width:200px;
1025 420 }
1026 421
@@ -1033,9 +428,8 @@
1033 428 background-color:transparent;
1034 429 vertical-align:top;
1035 430 text-align:left;
1036 431 padding:20px;
1037 - border-color:transparent;
1038 432 }
1039 433
1040 434 .frm-alt-table tr:nth-child(even) {
1041 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
@@ -1041,53 +435,28 @@
1041 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1042 436 }
1043 437
1044 438 table.form_results.with_frm_style{
1045 - border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>;
1046 - border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1047 - border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
439 + border:1px solid #ccc;
1048 440 }
1049 441
1050 442 table.form_results.with_frm_style tr td{
1051 443 text-align:left;
444 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1052 445 padding:7px 9px;
1053 -<?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1054 - color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1055 - color:var(--text-color)<?php echo esc_html( $important ); ?>;
1056 -<?php } ?>
1057 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1058 446 border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1059 - border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1060 - border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1061 -<?php } ?>
1062 447 }
1063 448
1064 449 table.form_results.with_frm_style tr.frm_even,
1065 450 .frm-grid .frm_even{
1066 451 background-color:#fff;
1067 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1068 452 }
1069 453
1070 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1071 454 table.form_results.with_frm_style tr.frm_odd,
1072 455 .frm-grid .frm_odd{
1073 - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1074 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1075 -}
1076 -<?php } ?>
1077 -
1078 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1079 -.frm_color_block {
1080 456 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1081 - padding: 40px;
1082 457 }
1083 458
1084 -.with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1085 -.frm_color_block.frm_section_heading h3 {
1086 - border-width: 0 !important;
1087 -}
1088 -<?php } ?>
1089 -
1090 459 .frm_collapse .ui-icon{
1091 460 display:inline-block;
1092 461 }
1093 462
@@ -1155,18 +524,15 @@
1155 524 }
1156 525
1157 526 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1158 527 #frm_loading .progress-striped .progress-bar{
1159 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1160 - 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));
1161 - <?php } ?>
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));
1162 529 background-size:40px 40px;
1163 530 }
1164 531 <?php } ?>
1165 532
1166 533 #frm_loading .progress-bar{
1167 - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1168 - background-color:var(--bg-color);
534 + background-color:<?php echo esc_html( empty( $defaults['bg_color'] ) ? 'transparent' : $defaults['bg_color'] ); ?>;
1169 535 box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1170 536 float:left;
1171 537 height:100%;
1172 538 line-height:20px;
@@ -1212,12 +578,9 @@
1212 578 margin-bottom:0 !important;
1213 579 padding:5px;
1214 580 border-width:1px;
1215 581 border-style:solid;
1216 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1217 582 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1218 - border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1219 -<?php } ?>
1220 583 border-left:none;
1221 584 border-right:none;
1222 585 }
1223 586
@@ -1227,12 +590,9 @@
1227 590 }
1228 591
1229 592 .frm_grid .frm_error,
1230 593 .frm_grid_first .frm_error,
1231 -.frm_grid_odd .frm_error,
1232 -.frm_grid .frm_limit_error,
1233 -.frm_grid_first .frm_limit_error,
1234 -.frm_grid_odd .frm_limit_error{
594 +.frm_grid_odd .frm_error{
1235 595 display:none;
1236 596 }
1237 597
1238 598 .frm_grid:after,
@@ -1249,32 +609,17 @@
1249 609 .frm_grid_first{
1250 610 margin-top:20px;
1251 611 }
1252 612
1253 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1254 613 .frm_grid_first,
1255 614 .frm_grid_odd{
1256 615 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1257 - background-color:var(--bg-color);
1258 616 }
1259 -<?php } ?>
1260 617
1261 -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1262 618 .frm_grid{
1263 - background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>;
1264 - background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
619 + background-color:<?php echo esc_html( $defaults['bg_color_active'] ); ?>;
1265 620 }
1266 -<?php } ?>
1267 621
1268 -.with_frm_style .frm_grid.frm_blank_field,
1269 -.with_frm_style .frm_grid_first.frm_blank_field,
1270 -.with_frm_style .frm_grid_odd.frm_blank_field{
1271 - background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1272 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1273 - border-color:<?php echo esc_html( $defaults['error_border'] ); ?>;
1274 - border-color:var(--error-bg);
1275 -}
1276 -
1277 622 .frm_grid .frm_primary_label,
1278 623 .frm_grid_first .frm_primary_label,
1279 624 .frm_grid_odd .frm_primary_label,
1280 625 .frm_grid .frm_radio,
@@ -1475,36 +820,26 @@
1475 820 .frm_form_field.frm_html_scroll_box{
1476 821 height:100px;
1477 822 overflow:auto;
1478 823 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1479 - background-color:var(--bg-color);
1480 824 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1481 - border-color:var(--border-color);
1482 825 border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
1483 - border-width:var(--field-border-width);
1484 826 border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
1485 - border-style:var(--field-border-style);
1486 827 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1487 828 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1488 829 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1489 - border-radius:var(--border-radius);
1490 - width:<?php echo esc_html( $defaults['field_width'] ); ?>;
1491 - width:var(--field-width);
830 + width:<?php echo esc_html( $defaults['field_width'] == '' ? 'auto' : $defaults['field_width'] ); ?>;
1492 831 max-width:100%;
1493 832 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
1494 - font-size:var(--field-font-size);
1495 833 padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
1496 - padding:var(--field-pad);
1497 834 -webkit-box-sizing:border-box;
1498 835 -moz-box-sizing:border-box;
1499 836 box-sizing:border-box;
1500 - outline:none<?php echo esc_html( $important ); ?>;
837 + outline:none;
1501 838 font-weight:normal;
1502 - box-shadow:var(--box-shadow);
839 + box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset;
1503 840 }
1504 841
1505 -.frm_form_field.frm_total_big input,
1506 -.frm_form_field.frm_total_big textarea,
1507 842 .frm_form_field.frm_total input,
1508 843 .frm_form_field.frm_total textarea{
1509 844 opacity:1;
1510 845 background-color:transparent !important;
@@ -1512,9 +847,8 @@
1512 847 font-weight:bold;
1513 848 -moz-box-shadow:none;
1514 849 -webkit-box-shadow:none;
1515 850 width:auto !important;
1516 - height:auto !important;
1517 851 box-shadow:none !important;
1518 852 display:inline;
1519 853 -moz-appearance:textfield;
1520 854 padding:0;
@@ -1519,17 +853,13 @@
1519 853 -moz-appearance:textfield;
1520 854 padding:0;
1521 855 }
1522 856
1523 -.frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1524 -.frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1525 857 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1526 858 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1527 859 -webkit-appearance: none;
1528 860 }
1529 861
1530 -.frm_form_field.frm_total_big input:focus,
1531 -.frm_form_field.frm_total_big textarea:focus,
1532 862 .frm_form_field.frm_total input:focus,
1533 863 .frm_form_field.frm_total textarea:focus{
1534 864 background-color:transparent;
1535 865 border:none;
@@ -1560,34 +890,13 @@
1560 890 .frm_clearfix{
1561 891 display:block;
1562 892 }
1563 893
1564 -.with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before {
1565 - color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>;
1566 - color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1567 -}
894 +/* Fonts */
895 +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
896 +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1568 897
1569 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1570 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1571 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1572 - margin-bottom: 0 !important;
1573 -}
1574 -
1575 -<?php
1576 -FrmStylesHelper::maybe_include_font_icon_css();
1577 -
1578 -/**
1579 - * Call action so other plugins can add additional CSS.
1580 - *
1581 - * @param array $args {
1582 - * @type array $defaults
1583 - * }
1584 - */
1585 -do_action( 'frm_include_front_css', compact( 'defaults' ) );
1586 -?>
1587 -
1588 898 /* Responsive */
1589 -
1590 899 @media only screen and (max-width: 900px) {
1591 900 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1592 901 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1593 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1598,13 +907,8 @@
1598 907 @media only screen and (max-width: 600px) {
1599 908 .frm_form_field.frm_four_col .frm_opt_container{
1600 909 grid-template-columns: repeat(2, 1fr);
1601 910 }
1602 -
1603 - .with_frm_style .frm_repeat_inline,
1604 - .with_frm_style .frm_repeat_grid{
1605 - margin: 20px 0;
1606 - }
1607 911 }
1608 912
1609 913 @media only screen and (max-width: 500px) {
1610 914 .frm_form_field.frm_two_col .frm_radio,
@@ -1639,5 +943,10 @@
1639 943 }
1640 944 }
1641 945 <?php
1642 946
1643 -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
947 +$frm_settings = FrmAppHelper::get_settings();
948 +if ( $frm_settings->old_css ) {
949 + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
950 +}
951 +
952 +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.