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 -791 6.264.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,82 +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 -.with_frm_style input::placeholder,
446 -.with_frm_style textarea::placeholder {
447 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
448 -}
449 -
450 -.with_frm_style .frm_inside_container > input::placeholder,
451 -.with_frm_style .frm_inside_container > textarea::placeholder {
452 - opacity: 0;
453 - transition: opacity 0.3s ease-in;
454 -}
455 -
456 -.with_frm_style .frm_inside_container > label {
457 - transition: all 0.3s ease-in;
458 -
459 - position: absolute;
460 - top: 19px;
461 - top: calc(1px + .5 * var(--field-height));
462 - left: 3px;
463 - width: 100%;
464 -
465 - line-height: 1.3;
466 - text-overflow: ellipsis;
467 - overflow: hidden;
468 - white-space: nowrap;
469 -
470 - padding: 8px 12px;
471 - padding: var(--field-pad);
472 -
473 - font-size: 14px;
474 - font-size: var(--field-font-size);
475 - font-weight: normal;
476 - font-weight: var(--field-weight);
477 -
478 - pointer-events: none;
479 -}
480 -
481 -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
482 - line-height: 1;
483 -}
484 -
485 -.with_frm_style .frm_inside_container.frm_label_float_top > label {
486 - top: 0;
487 - left: 0;
488 - padding: 0;
489 - font-size: 12px;
490 - font-size: calc(0.85 * var(--field-font-size));
491 -}
492 -
493 -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
494 -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
495 - opacity: 1;
496 - transition: opacity 0.3s ease-in;
497 -}
498 -/* End floating label */
499 -
500 -.with_frm_style .frm_description,
501 -.with_frm_style .frm_pro_max_limit_desc{
130 +.with_frm_style .frm_description{
502 131 clear:both;
503 132 }
504 133
505 134 .with_frm_style input[type=number][readonly]{
@@ -529,14 +158,18 @@
529 158 .with_frm_style .wp-editor-container textarea{
530 159 border:none;
531 160 }
532 161
162 +.with_frm_style textarea{
163 + height:auto;
164 +}
165 +
533 166 .with_frm_style .auto_width #loginform input,
534 167 .with_frm_style .auto_width input,
535 168 .with_frm_style input.auto_width,
536 169 .with_frm_style select.auto_width,
537 170 .with_frm_style textarea.auto_width{
538 - width:auto<?php echo esc_html( $important ); ?>;
171 + width:auto;
539 172 }
540 173
541 174 .with_frm_style .frm_repeat_buttons{
542 175 white-space:nowrap;
@@ -542,53 +175,14 @@
542 175 white-space:nowrap;
543 176 }
544 177
545 178 .with_frm_style .frm_button{
546 - text-decoration:none !important;
179 + text-decoration:none;
547 180 border:1px solid #eee;
548 - display:inline-block;
549 -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
550 - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
551 -<?php } else { ?>
552 181 padding:5px;
553 -<?php } ?>
554 -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
555 - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
556 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
557 -<?php } ?>
558 -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
559 - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
560 -<?php } ?>
561 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
562 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
563 -<?php } ?>
564 -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
565 - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
566 -<?php } ?>
567 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
568 - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
569 -<?php } ?>
570 -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
571 - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
572 -<?php } ?>
573 -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
574 - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
575 -<?php } ?>
576 -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
577 - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
578 -<?php } ?>
579 -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
580 - height: var(--submit-height)<?php echo esc_html( $important ); ?>;
581 -<?php } ?>
182 + display:inline;
582 183 }
583 184
584 -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
585 -.with_frm_style .frm_button.frm_inverse{
586 - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
587 - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
588 -}
589 -<?php } ?>
590 -
591 185 .with_frm_style .frm_submit{
592 186 clear:both;
593 187 }
594 188
@@ -611,29 +205,8 @@
611 205 .with_frm_style.frm_center_submit .frm_submit{
612 206 text-align:center;
613 207 }
614 208
615 -.with_frm_style.frm_center_submit .frm_flex.frm_submit {
616 - justify-content: center;
617 -}
618 -
619 -.with_frm_style .frm_inline_success .frm_submit{
620 - display: flex;
621 - flex-direction: row;
622 - align-items: center;
623 - margin: 0;
624 -}
625 -
626 -.with_frm_style .frm_inline_success .frm_submit .frm_message{
627 - flex: 1;
628 - margin: 0;
629 - padding-left: 10px;
630 -}
631 -
632 -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
633 - text-align: right;
634 -}
635 -
636 209 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
637 210 .with_frm_style.frm_center_submit .frm_submit input[type=button],
638 211 .with_frm_style.frm_center_submit .frm_submit button{
639 212 margin-bottom:8px !important;
@@ -638,9 +211,8 @@
638 211 .with_frm_style.frm_center_submit .frm_submit button{
639 212 margin-bottom:8px !important;
640 213 }
641 214
642 -.with_frm_style .frm-edit-page-btn,
643 215 .with_frm_style .frm_submit input[type=submit],
644 216 .with_frm_style .frm_submit input[type=button],
645 217 .with_frm_style .frm_submit button{
646 218 -webkit-appearance: none;
@@ -651,24 +223,20 @@
651 223 display: block;
652 224 margin: 0 auto;
653 225 }
654 226
655 -.with_frm_style .frm_loading_prev .frm_ajax_loading,
656 227 .with_frm_style .frm_loading_form .frm_ajax_loading{
657 228 /* keep this for reverse compatibility for old HTML */
658 229 visibility:visible !important;
659 230 }
660 231
661 -.with_frm_style .frm_loading_prev .frm_prev_page,
662 232 .with_frm_style .frm_loading_form .frm_button_submit {
663 233 position: relative;
234 + opacity: .8;
664 235 color: transparent !important;
665 236 text-shadow: none !important;
666 237 }
667 238
668 -.with_frm_style .frm_loading_prev .frm_prev_page:hover,
669 -.with_frm_style .frm_loading_prev .frm_prev_page:active,
670 -.with_frm_style .frm_loading_prev .frm_prev_page:focus,
671 239 .with_frm_style .frm_loading_form .frm_button_submit:hover,
672 240 .with_frm_style .frm_loading_form .frm_button_submit:active,
673 241 .with_frm_style .frm_loading_form .frm_button_submit:focus {
674 242 cursor: not-allowed;
@@ -676,9 +244,8 @@
676 244 outline: none !important;
677 245 box-shadow: none;
678 246 }
679 247
680 -.with_frm_style .frm_loading_prev .frm_prev_page::before,
681 248 .with_frm_style .frm_loading_form .frm_button_submit:before {
682 249 content: '';
683 250 display: inline-block;
684 251 position: absolute;
@@ -687,9 +254,9 @@
687 254 border-top-color: transparent;
688 255 border-left-color: transparent;
689 256 border-radius: 50%;
690 257 box-sizing: border-box;
691 - <?php $loader_size = 12; ?>
258 + <?php $loader_size = 20; ?>
692 259 top: 50%;
693 260 left: 50%;
694 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
695 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -694,28 +261,19 @@
694 261 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
695 262 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
696 263 width: <?php echo absint( $loader_size ); ?>px;
697 264 height: <?php echo absint( $loader_size ); ?>px;
698 - 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;
699 269 }
700 270
701 -.with_frm_style .frm_submit.frm_flex {
702 - align-items: center;
703 - gap: 2%;
704 -}
705 -
706 -.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
707 - order: -1;
708 -}
709 -
710 271 <?php
711 272 foreach ( $styles as $style ) {
712 - include __DIR__ . '/_single_theme.css.php';
273 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
713 274 unset( $style );
714 275 }
715 -
716 -// Set it again since it may have been overridden.
717 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
718 276 ?>
719 277
720 278 .frm_ajax_loading{
721 279 visibility:hidden;
@@ -729,17 +287,8 @@
729 287 a.frm_save_draft{
730 288 cursor:pointer;
731 289 }
732 290
733 -.with_frm_style a.frm_save_draft,
734 -.with_frm_style a.frm_start_over{
735 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
736 - font-family: var(--font);
737 -<?php } ?>
738 - font-size: var(--submit-font-size);
739 - font-weight: var(--submit-weight);
740 -}
741 -
742 291 .horizontal_radio .frm_radio{
743 292 margin:0 5px 0 0;
744 293 }
745 294
@@ -744,9 +293,9 @@
744 293 }
745 294
746 295 .horizontal_radio .frm_checkbox{
747 296 margin:0;
748 - margin-right:12px;
297 + margin-right:5px;
749 298 }
750 299
751 300 .vertical_radio .frm_checkbox,
752 301 .vertical_radio .frm_radio,
@@ -757,72 +306,23 @@
757 306 .horizontal_radio .frm_checkbox,
758 307 .horizontal_radio .frm_radio,
759 308 .horizontal_radio .frm_catlevel_1{
760 309 display:inline-block;
761 - padding-left: 0;
762 310 }
763 311
764 -.with_frm_style .frm_radio{
765 - display: var(--radio-align)<?php echo esc_html( $important ); ?>;
766 -}
767 -
768 -.with_frm_style .frm_checkbox{
769 - display: var(--check-align)<?php echo esc_html( $important ); ?>;
770 -}
771 -
772 -.with_frm_style .vertical_radio .frm_checkbox,
773 -.with_frm_style .vertical_radio .frm_radio,
774 -.vertical_radio .frm_catlevel_1{
775 - display:block<?php echo esc_html( $important ); ?>;
776 - margin-bottom: 10px;
777 -}
778 -
779 -.with_frm_style .horizontal_radio .frm_checkbox,
780 -.with_frm_style .horizontal_radio .frm_radio,
781 -.horizontal_radio .frm_catlevel_1{
782 - display:inline-block<?php echo esc_html( $important ); ?>;
783 -}
784 -
785 312 .with_frm_style .frm_checkbox label,
786 -.with_frm_style .frm_radio label {
787 - display: inline-block;
788 - vertical-align: middle;
313 +.with_frm_style .frm_radio label{
314 + display: inline;
789 315 white-space:normal;
790 316 }
791 317
792 -.with_frm_style .frm_checkbox label input[type=checkbox],
793 -.with_frm_style .frm_radio label input[type=radio] {
794 - margin-right: 4px;
795 -}
796 -
797 -.with_frm_style .frm_checkbox label:not(.frm-label-disabled),
798 -.with_frm_style .frm_radio label:not(.frm-label-disabled) {
799 - cursor: pointer;
800 -}
801 -
802 318 .with_frm_style .vertical_radio .frm_checkbox label,
803 319 .with_frm_style .vertical_radio .frm_radio label{
804 320 display: block;
805 - width: 100%;
321 + padding-left: 20px;
322 + text-indent: -20px;
806 323 }
807 324
808 -.with_frm_style .frm_radio label,
809 -.with_frm_style .frm_checkbox label {
810 -<?php if ( ! empty( $defaults['font'] ) ) { ?>
811 - font-family: var(--font);
812 -<?php } ?>
813 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
814 - color: var(--check-label-color)<?php echo esc_html( $important ); ?>;
815 - font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>;
816 - line-height: 1.3;
817 -}
818 -
819 -.with_frm_style .frm_radio input[type=radio],
820 -.with_frm_style .frm_checkbox input[type=checkbox] {
821 - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
822 - position: static<?php echo esc_html( $important ); ?>;
823 -}
824 -
825 325 .frm_file_container .frm_file_link,
826 326 .with_frm_style .frm_radio label .frm_file_container,
827 327 .with_frm_style .frm_checkbox label .frm_file_container{
828 328 display:inline-block;
@@ -829,104 +329,31 @@
829 329 margin:5px;
830 330 vertical-align:middle;
831 331 }
832 332
833 -.with_frm_style .frm_radio input[type=radio]
834 -<?php if ( $pro_is_installed ) : ?>
835 -, .with_frm_style .frm_scale input[type=radio]
836 -<?php endif; ?>
837 -{
333 +.with_frm_style .frm_radio input[type=radio]{
334 + -webkit-appearance:radio;
838 335 border-radius:50%;
839 336 }
840 337
841 -.with_frm_style .frm_checkbox input[type=checkbox] {
842 - 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;
843 341 }
844 342
845 343 .with_frm_style .frm_radio input[type=radio],
846 -<?php if ( $pro_is_installed ) : ?>
847 -.with_frm_style .frm_scale input[type=radio],
848 -<?php endif; ?>
849 344 .with_frm_style .frm_checkbox input[type=checkbox]{
850 - appearance: none;
851 - background-color: var(--bg-color);
852 345 flex: none;
853 - display:inline-block !important;
854 - width: 16px !important;
855 - min-width: 16px !important;
856 - height: 16px !important;
857 - color: var(--border-color);
858 - border: 1px solid currentColor;
859 - border-color: var(--border-color);
860 - vertical-align: middle;
346 + display:inline-block;
347 + margin:4px 5px 0 0;
348 + width:auto;
349 + border:none;
350 + vertical-align:baseline;
861 351 position: initial; /* override Bootstrap */
862 - padding: 0;
863 - margin: 0;
864 352 }
865 353
866 -.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked,
867 -<?php if ( $pro_is_installed ) : ?>
868 -.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked,
869 -<?php endif; ?>
870 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
871 - border-color: var(--border-color-active) !important;
872 -}
873 -
874 -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
875 - background-color: var(--border-color-active) !important;
876 -}
877 -
878 -.with_frm_style .frm_radio input[type=radio][disabled]:checked,
879 -<?php if ( $pro_is_installed ) : ?>
880 -.with_frm_style .frm_scale input[type=radio][disabled]:checked,
881 -<?php endif; ?>
882 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
883 - border-color: var(--border-color) !important; /* Override Style Preview */
884 -}
885 -
886 -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
887 - background-color: var(--border-color) !important;
888 -}
889 -
890 -.with_frm_style .frm_radio input[type=radio]:checked:before,
891 -<?php if ( $pro_is_installed ) { ?>
892 -.with_frm_style .frm_scale input[type=radio]:checked:before,
893 -<?php } ?>
894 -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
895 - position: static !important; /* Override Style Preview */
896 - content: '';
897 - display: block;
898 -}
899 -
900 -.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before {
901 - width: 100% !important;
902 - height: 100% !important;
903 - 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;
904 - background-size: 9px !important;
905 - background-repeat: no-repeat !important;
906 - background-position: center !important;
907 - margin: 0;
908 -}
909 -
910 -<?php if ( $pro_is_installed ) { ?>
911 -.with_frm_style .frm_scale input[type=radio]:before,
912 -<?php } ?>
913 -.with_frm_style .frm_radio input[type=radio]:before {
914 - width: 8px;
915 - height: 8px;
916 - border-radius: 50%;
917 - background-color: var(--border-color-active);
918 - margin: 3px;
919 -}
920 -
921 -<?php if ( $pro_is_installed ) { ?>
922 -.with_frm_style .frm_scale input[type=radio][disabled]:before,
923 -<?php } ?>
924 -.with_frm_style .frm_radio input[type=radio][disabled]:before {
925 - background-color: var(--border-color);
926 -}
927 -
928 354 .with_frm_style :invalid,
355 +.with_frm_style :-moz-submit-invalid,
929 356 .with_frm_style :-moz-ui-invalid{
930 357 box-shadow:none;
931 358 }
932 359
@@ -942,43 +369,18 @@
942 369
943 370 .with_frm_style .frm_error_style,
944 371 .with_frm_style .frm_message,
945 372 .frm_success_style{
373 + -moz-border-radius:4px;
374 + -webkit-border-radius:4px;
946 375 border-radius:4px;
947 376 padding:15px;
948 377 }
949 378
950 -.with_frm_style .frm_message p {
951 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
952 - margin-bottom: 0;
379 +.with_frm_style .frm_message p{
380 + margin-bottom:5px;
953 381 }
954 382
955 -.with_frm_style .frm_message > p:first-of-type {
956 - margin-top: 0;
957 -}
958 -
959 -.with_frm_style .frm_message,
960 -.frm_success_style {
961 - margin: 5px 0 15px;
962 - border: 1px solid var(--success-border-color);
963 - background-color: var(--success-bg-color);
964 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
965 - border-radius: var(--border-radius);
966 - font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>;
967 -}
968 -
969 -.with_frm_style .frm_plain_success .frm_message {
970 - background-color: transparent;
971 - padding:0;
972 - border:none;
973 - font-size:inherit<?php echo esc_html( $important ); ?>;
974 - color:inherit<?php echo esc_html( $important ); ?>;
975 -}
976 -
977 -.with_frm_style .frm_plain_success .frm_message p {
978 - color:inherit<?php echo esc_html( $important ); ?>;
979 -}
980 -
981 383 .frm_form_fields_style,
982 384 .frm_form_fields_active_style,
983 385 .frm_form_fields_error_style,
984 386 .frm_form_submit_style{
@@ -999,11 +401,9 @@
999 401 .frm-grid th{
1000 402 padding:5px;
1001 403 border-width:1px;
1002 404 border-style:solid;
1003 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1004 - border-color: var(--border-color);
1005 - <?php } ?>
405 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1006 406 border-top:none;
1007 407 border-left:none;
1008 408 border-right:none;
1009 409 }
@@ -1009,20 +409,13 @@
1009 409 }
1010 410
1011 411 .frm-alt-table {
1012 412 width:100%;
1013 - border-collapse:separate;
413 + border-collapse:collapse;
1014 414 margin-top:0.5em;
1015 415 font-size:15px;
1016 - border-width:1px;
1017 416 }
1018 417
1019 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1020 -.with_frm_style .frm-alt-table{
1021 - border-color: var(--border-color);
1022 -}
1023 -<?php } ?>
1024 -
1025 418 .frm-alt-table th {
1026 419 width:200px;
1027 420 }
1028 421
@@ -1035,9 +428,8 @@
1035 428 background-color:transparent;
1036 429 vertical-align:top;
1037 430 text-align:left;
1038 431 padding:20px;
1039 - border-color:transparent;
1040 432 }
1041 433
1042 434 .frm-alt-table tr:nth-child(even) {
1043 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
@@ -1043,51 +435,28 @@
1043 435 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1044 436 }
1045 437
1046 438 table.form_results.with_frm_style{
1047 - border-style: solid;
1048 - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1049 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
439 + border:1px solid #ccc;
1050 440 }
1051 441
1052 442 table.form_results.with_frm_style tr td{
1053 443 text-align:left;
444 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1054 445 padding:7px 9px;
1055 -<?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1056 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
1057 -<?php } ?>
1058 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1059 - border-top-style: solid;
1060 - border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1061 - border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1062 -<?php } ?>
446 + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1063 447 }
1064 448
1065 449 table.form_results.with_frm_style tr.frm_even,
1066 450 .frm-grid .frm_even{
1067 451 background-color:#fff;
1068 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1069 452 }
1070 453
1071 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1072 454 table.form_results.with_frm_style tr.frm_odd,
1073 -.frm-grid .frm_odd {
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 {
455 +.frm-grid .frm_odd{
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
@@ -1154,25 +523,23 @@
1154 523 animation:2s linear 0s normal none infinite progress-bar-stripes;
1155 524 }
1156 525
1157 526 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1158 -#frm_loading .progress-striped .progress-bar {
1159 - <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1160 - 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));
1161 - <?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));
1162 529 background-size:40px 40px;
1163 530 }
1164 531 <?php } ?>
1165 532
1166 -#frm_loading .progress-bar {
1167 - background-color: var(--bg-color);
1168 - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1169 - float: left;
1170 - height: 100%;
1171 - line-height: 20px;
1172 - text-align: center;
1173 - transition: width 0.6s ease 0s;
1174 - 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%;
1175 542 }
1176 543
1177 544 .frm_image_from_url{
1178 545 height:50px;
@@ -1189,9 +556,9 @@
1189 556 background-repeat: no-repeat;
1190 557 color: transparent !important;
1191 558 }
1192 559
1193 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
560 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1194 561
1195 562 .frm_conf_field.frm_left_container .frm_primary_label{
1196 563 display:none;
1197 564 }
@@ -1198,8 +565,10 @@
1198 565
1199 566 .wp-editor-wrap *,
1200 567 .wp-editor-wrap *:after,
1201 568 .wp-editor-wrap *:before{
569 + -webkit-box-sizing:content-box;
570 + -moz-box-sizing:content-box;
1202 571 box-sizing:content-box;
1203 572 }
1204 573
1205 574 .with_frm_style .frm_grid,
@@ -1209,11 +578,9 @@
1209 578 margin-bottom:0 !important;
1210 579 padding:5px;
1211 580 border-width:1px;
1212 581 border-style:solid;
1213 -<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1214 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1215 -<?php } ?>
582 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1216 583 border-left:none;
1217 584 border-right:none;
1218 585 }
1219 586
@@ -1223,12 +590,9 @@
1223 590 }
1224 591
1225 592 .frm_grid .frm_error,
1226 593 .frm_grid_first .frm_error,
1227 -.frm_grid_odd .frm_error,
1228 -.frm_grid .frm_limit_error,
1229 -.frm_grid_first .frm_limit_error,
1230 -.frm_grid_odd .frm_limit_error{
594 +.frm_grid_odd .frm_error{
1231 595 display:none;
1232 596 }
1233 597
1234 598 .frm_grid:after,
@@ -1245,28 +609,17 @@
1245 609 .frm_grid_first{
1246 610 margin-top:20px;
1247 611 }
1248 612
1249 -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1250 613 .frm_grid_first,
1251 -.frm_grid_odd {
1252 - background-color: var(--bg-color);
614 +.frm_grid_odd{
615 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1253 616 }
1254 -<?php } ?>
1255 617
1256 -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1257 -.frm_grid {
1258 - 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'] ); ?>;
1259 620 }
1260 -<?php } ?>
1261 621
1262 -.with_frm_style .frm_grid.frm_blank_field,
1263 -.with_frm_style .frm_grid_first.frm_blank_field,
1264 -.with_frm_style .frm_grid_odd.frm_blank_field{
1265 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1266 - border-color: var(--error-border);
1267 -}
1268 -
1269 622 .frm_grid .frm_primary_label,
1270 623 .frm_grid_first .frm_primary_label,
1271 624 .frm_grid_odd .frm_primary_label,
1272 625 .frm_grid .frm_radio,
@@ -1286,10 +639,9 @@
1286 639 .frm_grid_odd .frm_radio label,
1287 640 .frm_grid_first .frm_checkbox label,
1288 641 .frm_grid .frm_checkbox label,
1289 642 .frm_grid_odd .frm_checkbox label{
1290 - color:transparent;
1291 - text-indent: -9999px;
643 + visibility:hidden;
1292 644 white-space:nowrap;
1293 645 text-align:left;
1294 646 }
1295 647
@@ -1415,18 +767,8 @@
1415 767 .frm_form_field.frm_left_container .frm_opt_container{
1416 768 padding-top:4px;
1417 769 }
1418 770
1419 -.with_frm_style .frm_left_container > select.auto_width,
1420 -.with_frm_style .frm_right_container > select.auto_width {
1421 - width: max-content<?php echo esc_html( $important ); ?>;
1422 -}
1423 -
1424 -.with_frm_style .frm_right_container > .frm_primary_label,
1425 -.with_frm_style .frm_right_container > select.auto_width {
1426 - margin-left: auto<?php echo esc_html( $important ); ?>;
1427 -}
1428 -
1429 771 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1430 772 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1431 773 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1432 774 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1461,9 +803,11 @@
1461 803 grid-column-end: span 1;
1462 804 }
1463 805
1464 806 .frm_form_field .frm_checkbox,
1465 -.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{
1466 810 margin-top: 0;
1467 811 margin-bottom: 0;
1468 812 }
1469 813
@@ -1472,28 +816,30 @@
1472 816 overflow:auto;
1473 817 }
1474 818
1475 819 .frm_html_container.frm_scroll_box,
1476 -.frm_form_field.frm_html_scroll_box {
1477 - height: 100px;
1478 - overflow: auto;
1479 - background-color: var(--bg-color);
1480 - border-color: var(--border-color);
1481 - border-width: var(--field-border-width);
1482 - border-style: var(--field-border-style);
1483 - border-radius: var(--border-radius);
1484 - width: var(--field-width);
1485 - max-width: 100%;
1486 - font-size: var(--field-font-size);
1487 - padding: var(--field-pad);
1488 - box-sizing: border-box;
1489 - outline: none<?php echo esc_html( $important ); ?>;
1490 - font-weight: normal;
1491 - 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;
1492 840 }
1493 841
1494 -.frm_form_field.frm_total_big input,
1495 -.frm_form_field.frm_total_big textarea,
1496 842 .frm_form_field.frm_total input,
1497 843 .frm_form_field.frm_total textarea{
1498 844 opacity:1;
1499 845 background-color:transparent !important;
@@ -1498,10 +844,11 @@
1498 844 opacity:1;
1499 845 background-color:transparent !important;
1500 846 border:none !important;
1501 847 font-weight:bold;
848 + -moz-box-shadow:none;
849 + -webkit-box-shadow:none;
1502 850 width:auto !important;
1503 - height:auto !important;
1504 851 box-shadow:none !important;
1505 852 display:inline;
1506 853 -moz-appearance:textfield;
1507 854 padding:0;
@@ -1506,21 +853,19 @@
1506 853 -moz-appearance:textfield;
1507 854 padding:0;
1508 855 }
1509 856
1510 -.frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1511 -.frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1512 857 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1513 858 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1514 859 -webkit-appearance: none;
1515 860 }
1516 861
1517 -.frm_form_field.frm_total_big input:focus,
1518 -.frm_form_field.frm_total_big textarea:focus,
1519 862 .frm_form_field.frm_total input:focus,
1520 863 .frm_form_field.frm_total textarea:focus{
1521 864 background-color:transparent;
1522 865 border:none;
866 + -moz-box-shadow:none;
867 + -webkit-box-shadow:none;
1523 868 box-shadow:none;
1524 869 }
1525 870
1526 871 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1545,29 +890,13 @@
1545 890 .frm_clearfix{
1546 891 display:block;
1547 892 }
1548 893
1549 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1550 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1551 -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1552 - margin-bottom: 0 !important;
1553 -}
894 +/* Fonts */
895 +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
896 +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1554 897
1555 -
1556 -<?php
1557 -/**
1558 - * Call action so other plugins can add additional CSS.
1559 - *
1560 - * @param array $args {
1561 - *
1562 - * @type array $defaults
1563 - * }
1564 - */
1565 -do_action( 'frm_include_front_css', compact( 'defaults' ) );
1566 -?>
1567 -
1568 898 /* Responsive */
1569 -
1570 899 @media only screen and (max-width: 900px) {
1571 900 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1572 901 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1573 902 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1578,13 +907,8 @@
1578 907 @media only screen and (max-width: 600px) {
1579 908 .frm_form_field.frm_four_col .frm_opt_container{
1580 909 grid-template-columns: repeat(2, 1fr);
1581 910 }
1582 -
1583 - .with_frm_style .frm_repeat_inline,
1584 - .with_frm_style .frm_repeat_grid{
1585 - margin: 20px 0;
1586 - }
1587 911 }
1588 912
1589 913 @media only screen and (max-width: 500px) {
1590 914 .frm_form_field.frm_two_col .frm_radio,
@@ -1609,8 +933,9 @@
1609 933 max-width:302px;
1610 934 border-right:1px solid #d3d3d3;
1611 935 border-radius:4px;
1612 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);
1613 938 }
1614 939
1615 940 .with_frm_style .g-recaptcha iframe,
1616 941 .with_frm_style .frm-g-recaptcha iframe{
@@ -1616,14 +941,12 @@
1616 941 .with_frm_style .frm-g-recaptcha iframe{
1617 942 width:100%;
1618 943 }
1619 944 }
945 +<?php
1620 946
1621 -.frm-card-element .sq-card-wrapper .sq-card-message {
1622 - margin-bottom: 0;
947 +$frm_settings = FrmAppHelper::get_settings();
948 +if ( $frm_settings->old_css ) {
949 + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' );
1623 950 }
1624 -.frm-card-errors:empty {
1625 - margin: 0;
1626 -}
1627 -<?php
1628 951
1629 -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
952 +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok.