PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.5.5
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.5.5
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
formidable / css / custom_theme.css.php

custom_theme.css.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 5.5.5, at css/custom_theme.css.php

1,642 lines 46.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 if ( ! isset( $saving ) ) {
7 header( 'Content-type: text/css' );
8
9 if ( ! empty( $css ) ) {
10 echo strip_tags( $css, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
11 die();
12 }
13 }
14
15 if ( ! isset( $frm_style ) ) {
16 $frm_style = new FrmStyle();
17 }
18
19 $styles = $frm_style->get_all();
20 $default_style = $frm_style->get_default_style( $styles );
21 $defaults = FrmStylesHelper::get_settings_for_output( $default_style );
22 $important = empty( $defaults['important_style'] ) ? '' : ' !important';
23
24 ?>
25 .with_frm_style{
26 <?php FrmStylesHelper::output_vars( $defaults ); ?>
27 }
28
29 .frm_hidden,
30 .frm_add_form_row.frm_hidden,
31 .frm_remove_form_row.frm_hidden,
32 .with_frm_style .frm_button.frm_hidden{
33 display:none;
34 }
35
36 .with_frm_style,
37 .with_frm_style form,
38 .with_frm_style .frm-show-form div.frm_description p{
39 text-align:<?php echo esc_html( $defaults['form_align'] . $important ); ?>;
40 text-align:var(--form-align)<?php echo esc_html( $important ); ?>;
41 }
42
43 input:-webkit-autofill {
44 -webkit-box-shadow: 0 0 0 30px white inset;
45 }
46
47 /* Form description */
48 .with_frm_style .frm-show-form div.frm_description p{
49 <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
50 font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>;
51 font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>;
52 <?php } ?>
53 <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
54 color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>;
55 color:var(--form-desc-color)<?php echo esc_html( $important ); ?>;
56 <?php } ?>
57 <?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?>
58 margin-top:<?php echo esc_html( $defaults['form_desc_margin_top'] . $important ); ?>;
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:<?php echo esc_html( $defaults['form_desc_margin_bottom'] . $important ); ?>;
63 margin-bottom:var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>;
64 <?php } ?>
65 <?php if ( isset( $defaults['form_desc_padding'] ) ) { ?>
66 padding:<?php echo esc_html( $defaults['form_desc_padding'] . $important ); ?>;
67 padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>;
68 <?php } ?>
69 }
70
71 form input.frm_verify{
72 position:absolute;
73 left:-3000px;
74 }
75
76 .with_frm_style fieldset{
77 min-width:0;
78 display: block; /* Override 2021 theme */
79 }
80
81 .with_frm_style fieldset fieldset{
82 border:none;
83 margin:0;
84 padding:0;
85 background-color:transparent;
86 }
87
88 .with_frm_style .frm_form_fields > fieldset{
89 <?php if ( ! empty( $defaults['fieldset'] ) ) { ?>
90 border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>;
91 border-width:var(--fieldset)<?php echo esc_html( $important ); ?>;
92 <?php } ?>
93 border-style:solid;
94 <?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?>
95 border-color:<?php echo esc_html( $defaults['fieldset_color'] . $important ); ?>;
96 border-color:var(--fieldset-color)<?php echo esc_html( $important ); ?>;
97 <?php } ?>
98 margin:0;
99 <?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?>
100 padding:<?php echo esc_html( $defaults['fieldset_padding'] . $important ); ?>;
101 padding:var(--fieldset-padding)<?php echo esc_html( $important ); ?>;
102 <?php } ?>
103 <?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?>
104 background-color:<?php echo esc_html( $defaults['fieldset_bg_color'] ); ?>;
105 background-color:var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>;
106 <?php } ?>
107 <?php if ( ! empty( $defaults['font'] ) ) { ?>
108 font-family:var(--font);
109 <?php } ?>
110 }
111
112 legend.frm_hidden{
113 display:none !important;
114 }
115
116 .with_frm_style .frm_form_fields{
117 opacity:1;
118 transition: opacity 0.1s linear;
119 }
120 .with_frm_style .frm_doing_ajax{
121 opacity:.5;
122 }
123
124 .frm_transparent{
125 color:transparent;
126 }
127
128 .with_frm_style legend + h3,
129 .with_frm_style h3.frm_form_title{
130 <?php if ( ! empty( $defaults['title_size'] ) ) { ?>
131 font-size:<?php echo esc_html( $defaults['title_size'] . $important ); ?>;
132 font-size:var(--title-size)<?php echo esc_html( $important ); ?>;
133 <?php } ?>
134 <?php if ( ! empty( $defaults['title_color'] ) ) { ?>
135 color:<?php echo esc_html( $defaults['title_color'] . $important ); ?>;
136 color:var(--title-color)<?php echo esc_html( $important ); ?>;
137 <?php } ?>
138 <?php if ( ! empty( $defaults['font'] ) ) { ?>
139 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
140 font-family:var(--font);
141 <?php } ?>
142 <?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?>
143 margin-top:<?php echo esc_html( $defaults['title_margin_top'] . $important ); ?>;
144 margin-top:var(--title-margin-top)<?php echo esc_html( $important ); ?>;
145 <?php } ?>
146 <?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?>
147 margin-bottom:<?php echo esc_html( $defaults['title_margin_bottom'] . $important ); ?>;
148 margin-bottom:var(--title-margin-bottom)<?php echo esc_html( $important ); ?>;
149 <?php } ?>
150 }
151
152 .with_frm_style .frm_form_field.frm_html_container,
153 .with_frm_style .frm_form_field .frm_show_it{
154 <?php if ( ! empty( $defaults['font'] ) ) { ?>
155 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
156 font-family:var(--font);
157 <?php } ?>
158 <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
159 color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>;
160 color:var(--form-desc-color)<?php echo esc_html( $important ); ?>;
161 <?php } ?>
162 }
163
164 <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
165 .with_frm_style .frm_form_field.frm_html_container{
166 font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>;
167 font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>;
168 }
169 <?php } ?>
170
171 .with_frm_style .frm_form_field .frm_show_it{
172 <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
173 font-size:<?php echo esc_html( $defaults['field_font_size'] . $important ); ?>;
174 font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
175 <?php } ?>
176 <?php if ( ! empty( $defaults['field_weight'] ) ) { ?>
177 font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>;
178 font-weight:var(--field-weight)<?php echo esc_html( $important ); ?>;
179 <?php } ?>
180 }
181
182 .with_frm_style .frm_required{
183 <?php if ( ! empty( $defaults['required_color'] ) ) { ?>
184 color:<?php echo esc_html( $defaults['required_color'] . $important ); ?>;
185 color:var(--required-color)<?php echo esc_html( $important ); ?>;
186 <?php } ?>
187 <?php if ( ! empty( $defaults['required_weight'] ) ) { ?>
188 font-weight:<?php echo esc_html( $defaults['required_weight'] . $important ); ?>;
189 font-weight:var(--required-weight)<?php echo esc_html( $important ); ?>;
190 <?php } ?>
191 }
192
193 .with_frm_style input[type=text],
194 .with_frm_style input[type=password],
195 .with_frm_style input[type=email],
196 .with_frm_style input[type=number],
197 .with_frm_style input[type=url],
198 .with_frm_style input[type=tel],
199 .with_frm_style input[type=search],
200 .with_frm_style select,
201 .with_frm_style textarea,
202 .with_frm_style .frm-card-element.StripeElement,
203 .with_frm_style .chosen-container{
204 font-family:var(--font)<?php echo esc_html( $important ); ?>;
205 <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
206 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
207 font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
208 <?php } ?>
209 margin-bottom:0<?php echo esc_html( $important ); ?>;
210 }
211
212 .with_frm_style textarea{
213 vertical-align:top;
214 height:auto;
215 }
216
217 .with_frm_style input[type=text],
218 .with_frm_style input[type=password],
219 .with_frm_style input[type=email],
220 .with_frm_style input[type=number],
221 .with_frm_style input[type=url],
222 .with_frm_style input[type=tel],
223 .with_frm_style input[type=phone],
224 .with_frm_style input[type=search],
225 .with_frm_style select,
226 .with_frm_style textarea,
227 .frm_form_fields_style,
228 .with_frm_style .frm_scroll_box .frm_opt_container,
229 .frm_form_fields_active_style,
230 .frm_form_fields_error_style,
231 .with_frm_style .frm-card-element.StripeElement,
232 .with_frm_style .chosen-container-multi .chosen-choices,
233 .with_frm_style .chosen-container-single .chosen-single{
234 color:<?php echo esc_html( $defaults['text_color'] ); ?>;
235 color:var(--text-color)<?php echo esc_html( $important ); ?>;
236 background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
237 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
238 <?php if ( ! empty( $important ) ) { ?>
239 background-image:none !important;
240 <?php } ?>
241 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
242 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
243 border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
244 border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
245 border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
246 border-style:var(--field-border-style)<?php echo esc_html( $important ); ?>;
247 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
248 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
249 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
250 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
251 width:<?php echo esc_html( $defaults['field_width'] ); ?>;
252 width:var(--field-width)<?php echo esc_html( $important ); ?>;
253 max-width:100%;
254 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
255 font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
256 padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
257 padding:var(--field-pad)<?php echo esc_html( $important ); ?>;
258 -webkit-box-sizing:border-box;
259 -moz-box-sizing:border-box;
260 box-sizing:border-box;
261 outline:none<?php echo esc_html( $important ); ?>;
262 font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>;
263 font-weight:var(--field-weight);
264 box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
265 }
266
267 .with_frm_style input[type=radio],
268 .with_frm_style input[type=checkbox]{
269 border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>;
270 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
271 box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
272 float: none;
273 }
274
275 .with_frm_style input[type=radio]:after,
276 .with_frm_style input[type=checkbox]:after {
277 display: none; /* 2021 conflict */
278 }
279
280 .with_frm_style input[type=text],
281 .with_frm_style input[type=password],
282 .with_frm_style input[type=email],
283 .with_frm_style input[type=number],
284 .with_frm_style input[type=url],
285 .with_frm_style input[type=tel],
286 .with_frm_style input[type=file],
287 .with_frm_style input[type=search],
288 .with_frm_style select,
289 .with_frm_style .frm-card-element.StripeElement{
290 height:<?php echo esc_html( $defaults['field_height'] ); ?>;
291 height:var(--field-height)<?php echo esc_html( $important ); ?>;
292 line-height:1.3<?php echo esc_html( $important ); ?>;
293 }
294
295 .with_frm_style select[multiple=multiple]{
296 height:auto<?php echo esc_html( $important ); ?>;
297 }
298
299 .input[type=file].frm_transparent:focus,
300 .with_frm_style input[type=file]{
301 background-color:transparent;
302 border:none;
303 outline:none;
304 box-shadow:none;
305 }
306
307 .with_frm_style input[type=file]{
308 color:<?php echo esc_html( $defaults['text_color'] ); ?>;
309 color:var(--text-color)<?php echo esc_html( $important ); ?>;
310 padding:0px;
311 <?php if ( ! empty( $defaults['font'] ) ) { ?>
312 font-family:var(--font)<?php echo esc_html( $important ); ?>;
313 <?php } ?>
314 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
315 font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
316 display:initial;
317 }
318
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:<?php echo esc_html( $defaults['field_width'] . $important ); ?>;
325 width:var(--field-width)<?php echo esc_html( $important ); ?>;
326 max-width:100%;
327 }
328
329 .with_frm_style .wp-editor-container textarea{
330 border:none<?php echo esc_html( $important ); ?>;
331 }
332
333 .with_frm_style .mceIframeContainer{
334 background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
335 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
336 }
337
338 .with_frm_style select{
339 width:<?php echo esc_html( $defaults['auto_width'] ); ?>;
340 width:var(--auto-width)<?php echo esc_html( $important ); ?>;
341 max-width:100%;
342 background-position-y: center;
343 }
344
345 .with_frm_style input[disabled],
346 .with_frm_style select[disabled],
347 .with_frm_style textarea[disabled],
348 .with_frm_style input[readonly],
349 .with_frm_style select[readonly],
350 .with_frm_style textarea[readonly]{
351 background-color:<?php echo esc_html( $defaults['bg_color_disabled'] ); ?>;
352 background-color:var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
353 color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>;
354 color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
355 border-color:<?php echo esc_html( $defaults['border_color_disabled'] ); ?>;
356 border-color:var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
357 }
358
359 .frm_preview_page:before{
360 content:normal !important;
361 }
362
363 .frm_preview_page{
364 padding:25px;
365 }
366
367 .with_frm_style .frm_primary_label{
368 max-width:100%;
369 <?php if ( ! empty( $defaults['font'] ) ) { ?>
370 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
371 font-family:var(--font);
372 <?php } ?>
373 <?php if ( ! empty( $defaults['font_size'] ) ) { ?>
374 font-size:<?php echo esc_html( $defaults['font_size'] . $important ); ?>;
375 font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
376 <?php } ?>
377 <?php if ( ! empty( $defaults['label_color'] ) ) { ?>
378 color:<?php echo esc_html( $defaults['label_color'] . $important ); ?>;
379 color:var(--label-color)<?php echo esc_html( $important ); ?>;
380 <?php } ?>
381 <?php if ( ! empty( $defaults['weight'] ) ) { ?>
382 font-weight:<?php echo esc_html( $defaults['weight'] . $important ); ?>;
383 font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
384 <?php } ?>
385 <?php if ( ! empty( $defaults['align'] ) ) { ?>
386 text-align:<?php echo esc_html( $defaults['align'] . $important ); ?>;
387 text-align:var(--align)<?php echo esc_html( $important ); ?>;
388 <?php } ?>
389 <?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
390 padding:<?php echo esc_html( $defaults['label_padding'] . $important ); ?>;
391 padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
392 <?php } ?>
393 margin:0;
394 width:auto;
395 display:block;
396 }
397
398 .with_frm_style .frm_top_container .frm_primary_label,
399 .with_frm_style .frm_hidden_container .frm_primary_label,
400 .with_frm_style .frm_pos_top{
401 display:block;
402 float:none;
403 width:auto;
404 }
405
406 .with_frm_style .frm_inline_container .frm_primary_label{
407 margin-right:10px;
408 }
409
410 .with_frm_style .frm_right_container .frm_primary_label,
411 .with_frm_style .frm_pos_right{
412 display:inline;
413 float:right;
414 margin-left:10px;
415 }
416
417 .with_frm_style .frm_pos_center {
418 text-align: center;
419 }
420
421 .with_frm_style .frm_none_container .frm_primary_label,
422 .with_frm_style .frm_pos_none,
423 .frm_pos_none,
424 .frm_none_container .frm_primary_label{
425 display:none;
426 }
427
428 .with_frm_style .frm_section_heading.frm_hide_section{
429 margin-top:0 !important;
430 }
431
432 .with_frm_style .frm_hidden_container .frm_primary_label,
433 .with_frm_style .frm_pos_hidden,
434 .frm_hidden_container .frm_primary_label{
435 visibility:hidden;
436 white-space:nowrap;
437 }
438
439 .frm_visible{
440 opacity:1;
441 }
442
443 /* Floating labels */
444 .with_frm_style .frm_inside_container {
445 position: relative;
446 padding-top: 16px;
447 padding-top: calc(0.5 * var(--field-height));
448 }
449
450 .with_frm_style .frm_inside_container > input,
451 .with_frm_style .frm_inside_container > select,
452 .with_frm_style .frm_inside_container > textarea {
453 display: block;
454 }
455
456 /* These do not work if they are combined */
457 .with_frm_style .frm_inside_container > input::-moz-placeholder,
458 .with_frm_style .frm_inside_container > textarea::-moz-placeholder {
459 opacity: 0 !important;
460 transition: opacity 0.3s ease-in;
461 }
462
463 .with_frm_style .frm_inside_container > input:-ms-input-placeholder,
464 .with_frm_style .frm_inside_container > textarea:-ms-input-placeholder {
465 opacity: 0;
466 transition: opacity 0.3s ease-in;
467 }
468
469 .with_frm_style .frm_inside_container > input::placeholder,
470 .with_frm_style .frm_inside_container > textarea::placeholder {
471 opacity: 0;
472 transition: opacity 0.3s ease-in;
473 }
474
475 .with_frm_style .frm_inside_container > label {
476 transition: all 0.3s ease-in;
477
478 position: absolute;
479 top: 17px;
480 top: calc(1px + .5 * var(--field-height));
481 left: 3px;
482 width: 100%;
483
484 line-height: 1.3;
485 text-overflow: ellipsis;
486 overflow: hidden;
487 white-space: nowrap;
488
489 padding: 6px 10px;
490 padding: var(--field-pad);
491
492 font-size: 14px;
493 font-size: var(--field-font-size);
494 font-weight: normal;
495 font-weight: var(--field-weight);
496
497 -ms-pointer-events: none;
498 pointer-events: none;
499 }
500
501 .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
502 line-height: 1;
503 }
504
505 .with_frm_style .frm_inside_container.frm_label_float_top > label {
506 top: 0;
507 left: 0;
508 padding: 0;
509 font-size: 12px;
510 font-size: calc(0.85 * var(--field-font-size));
511 }
512
513 /* These do not work if they are combined */
514 .with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder,
515 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder {
516 opacity: 1 !important;
517 transition: opacity 0.3s ease-in;
518 }
519
520 .with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder,
521 .with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder {
522 opacity: 1;
523 transition: opacity 0.3s ease-in;
524 }
525
526 .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
527 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
528 opacity: 1;
529 transition: opacity 0.3s ease-in;
530 }
531 /* End floating label */
532
533 .with_frm_style .frm_description,
534 .with_frm_style .frm_pro_max_limit_desc{
535 clear:both;
536 }
537
538 .with_frm_style input[type=number][readonly]{
539 -moz-appearance: textfield;
540 }
541
542 .with_frm_style select[multiple="multiple"]{
543 height:auto;
544 line-height:normal;
545 }
546
547 .with_frm_style .frm_catlevel_2,
548 .with_frm_style .frm_catlevel_3,
549 .with_frm_style .frm_catlevel_4,
550 .with_frm_style .frm_catlevel_5{
551 margin-left:18px;
552 }
553
554 .with_frm_style .wp-editor-container{
555 border:1px solid #e5e5e5;
556 }
557
558 .with_frm_style .quicktags-toolbar input{
559 font-size:12px !important;
560 }
561
562 .with_frm_style .wp-editor-container textarea{
563 border:none;
564 }
565
566 .with_frm_style .auto_width #loginform input,
567 .with_frm_style .auto_width input,
568 .with_frm_style input.auto_width,
569 .with_frm_style select.auto_width,
570 .with_frm_style textarea.auto_width{
571 width:auto<?php echo esc_html( $important ); ?>;
572 }
573
574 .with_frm_style .frm_repeat_buttons{
575 white-space:nowrap;
576 }
577
578 .with_frm_style .frm_button{
579 text-decoration:none !important;;
580 border:1px solid #eee;
581 display:inline-block;
582 <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
583 padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>;
584 padding:var(--submit-padding)<?php echo esc_html( $important ); ?>;
585 <?php } else { ?>
586 padding:5px;
587 <?php } ?>
588 <?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
589 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
590 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
591 border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
592 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
593 <?php } ?>
594 <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
595 font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>;
596 font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>;
597 <?php } ?>
598 <?php if ( ! empty( $defaults['font'] ) ) { ?>
599 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
600 font-family:var(--font)<?php echo esc_html( $important ); ?>;
601 <?php } ?>
602 <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
603 font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>;
604 font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>;
605 <?php } ?>
606 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
607 color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>;
608 color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
609 <?php } ?>
610 <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
611 background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>;
612 background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
613 <?php } ?>
614 <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
615 border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>;
616 border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>;
617 <?php } ?>
618 <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
619 border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>;
620 border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>;
621 <?php } ?>
622 <?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
623 height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>;
624 height:var(--submit-height)<?php echo esc_html( $important ); ?>;
625 <?php } ?>
626 }
627
628 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
629 .with_frm_style .frm_button.frm_inverse{
630 color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
631 background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
632 }
633 <?php } ?>
634
635 .with_frm_style .frm_submit{
636 clear:both;
637 }
638
639 .frm_inline_form .frm_form_field,
640 .frm_inline_form .frm_submit{
641 grid-column: span 1 / span 1;
642 }
643
644 .frm_inline_form .frm_submit{
645 margin:0;
646 }
647
648 .frm_submit.frm_inline_submit input[type=submit],
649 .frm_submit.frm_inline_submit button,
650 .frm_inline_form .frm_submit input[type=submit],
651 .frm_inline_form .frm_submit button{
652 margin-top:0;
653 }
654
655 .with_frm_style.frm_center_submit .frm_submit{
656 text-align:center;
657 }
658
659 .with_frm_style .frm_inline_success .frm_submit{
660 display: flex;
661 flex-direction: row;
662 align-items: center;
663 margin: 0;
664 }
665
666 .with_frm_style .frm_inline_success .frm_submit .frm_message{
667 flex: 1;
668 margin: 0;
669 padding-left: 10px;
670 }
671
672 .with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
673 text-align: right;
674 }
675
676 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
677 .with_frm_style.frm_center_submit .frm_submit input[type=button],
678 .with_frm_style.frm_center_submit .frm_submit button{
679 margin-bottom:8px !important;
680 }
681
682 .with_frm_style .frm-edit-page-btn,
683 .with_frm_style .frm_submit input[type=submit],
684 .with_frm_style .frm_submit input[type=button],
685 .with_frm_style .frm_submit button{
686 -webkit-appearance: none;
687 cursor: pointer;
688 }
689
690 .with_frm_style.frm_center_submit .frm_submit .frm_ajax_loading{
691 display: block;
692 margin: 0 auto;
693 }
694
695 .with_frm_style .frm_loading_prev .frm_ajax_loading,
696 .with_frm_style .frm_loading_form .frm_ajax_loading{
697 /* keep this for reverse compatibility for old HTML */
698 visibility:visible !important;
699 }
700
701 .with_frm_style .frm_loading_prev .frm_prev_page,
702 .with_frm_style .frm_loading_form .frm_button_submit {
703 position: relative;
704 opacity: .8;
705 color: transparent !important;
706 text-shadow: none !important;
707 }
708
709 .with_frm_style .frm_loading_prev .frm_prev_page:hover,
710 .with_frm_style .frm_loading_prev .frm_prev_page:active,
711 .with_frm_style .frm_loading_prev .frm_prev_page:focus,
712 .with_frm_style .frm_loading_form .frm_button_submit:hover,
713 .with_frm_style .frm_loading_form .frm_button_submit:active,
714 .with_frm_style .frm_loading_form .frm_button_submit:focus {
715 cursor: not-allowed;
716 color: transparent;
717 outline: none !important;
718 box-shadow: none;
719 }
720
721 .with_frm_style .frm_loading_prev .frm_prev_page::before,
722 .with_frm_style .frm_loading_form .frm_button_submit:before {
723 content: '';
724 display: inline-block;
725 position: absolute;
726 background: transparent;
727 border: 1px solid #fff;
728 border-top-color: transparent;
729 border-left-color: transparent;
730 border-radius: 50%;
731 box-sizing: border-box;
732 <?php $loader_size = 20; ?>
733 top: 50%;
734 left: 50%;
735 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
736 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
737 width: <?php echo absint( $loader_size ); ?>px;
738 height: <?php echo absint( $loader_size ); ?>px;
739 -webkit-animation: spin 2s linear infinite;
740 -moz-animation: spin 2s linear infinite;
741 -o-animation: spin 2s linear infinite;
742 animation: spin 2s linear infinite;
743 }
744
745 <?php
746 foreach ( $styles as $style ) {
747 include( dirname( __FILE__ ) . '/_single_theme.css.php' );
748 unset( $style );
749 }
750
751 // Set it again since it may have been overridden.
752 $important = empty( $defaults['important_style'] ) ? '' : ' !important';
753 ?>
754
755 .frm_ajax_loading{
756 visibility:hidden;
757 width:auto;
758 }
759
760 .frm_form_submit_style{
761 height:auto;
762 }
763
764 a.frm_save_draft{
765 cursor:pointer;
766 }
767
768 .with_frm_style a.frm_save_draft,
769 .with_frm_style a.frm_start_over{
770 <?php if ( ! empty( $defaults['font'] ) ) { ?>
771 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
772 font-family:var(--font);
773 <?php } ?>
774 font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>;
775 font-size:var(--submit-font-size);
776 font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>;
777 font-weight:var(--submit-weight);
778 }
779
780 .horizontal_radio .frm_radio{
781 margin:0 5px 0 0;
782 }
783
784 .horizontal_radio .frm_checkbox{
785 margin:0;
786 margin-right:5px;
787 }
788
789 .vertical_radio .frm_checkbox,
790 .vertical_radio .frm_radio,
791 .vertical_radio .frm_catlevel_1{
792 display:block;
793 }
794
795 .horizontal_radio .frm_checkbox,
796 .horizontal_radio .frm_radio,
797 .horizontal_radio .frm_catlevel_1{
798 display:inline-block;
799 padding-left: 0;
800 }
801
802 .with_frm_style .frm_radio{
803 display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>;
804 display:var(--radio-align)<?php echo esc_html( $important ); ?>;
805 }
806
807 .with_frm_style .frm_checkbox{
808 display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>;
809 display:var(--check-align)<?php echo esc_html( $important ); ?>;
810 }
811
812 .with_frm_style .vertical_radio .frm_checkbox,
813 .with_frm_style .vertical_radio .frm_radio,
814 .vertical_radio .frm_catlevel_1{
815 display:block<?php echo esc_html( $important ); ?>;
816 }
817
818 .with_frm_style .horizontal_radio .frm_checkbox,
819 .with_frm_style .horizontal_radio .frm_radio,
820 .horizontal_radio .frm_catlevel_1{
821 display:inline-block<?php echo esc_html( $important ); ?>;
822 }
823
824 .with_frm_style .frm_checkbox label,
825 .with_frm_style .frm_radio label{
826 display: inline;
827 white-space:normal;
828 }
829
830 .with_frm_style .vertical_radio .frm_checkbox label,
831 .with_frm_style .vertical_radio .frm_radio label{
832 display: block;
833 padding-left: 20px;
834 text-indent: -20px;
835 }
836
837 .with_frm_style .frm_radio label,
838 .with_frm_style .frm_checkbox label{
839 <?php if ( ! empty( $defaults['font'] ) ) { ?>
840 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
841 font-family:var(--font);
842 <?php } ?>
843 font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
844 font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
845 color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>;
846 color:var(--check-label-color)<?php echo esc_html( $important ); ?>;
847 font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>;
848 font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>;
849 line-height: 1.3;
850 }
851
852 .with_frm_style .frm_radio input[type=radio],
853 .with_frm_style .frm_checkbox input[type=checkbox] {
854 font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
855 font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
856 position:static<?php echo esc_html( $important ); ?>;
857 }
858
859 .frm_file_container .frm_file_link,
860 .with_frm_style .frm_radio label .frm_file_container,
861 .with_frm_style .frm_checkbox label .frm_file_container{
862 display:inline-block;
863 margin:5px;
864 vertical-align:middle;
865 }
866
867 .with_frm_style .frm_radio input[type=radio]{
868 border-radius:50%;
869 }
870
871 .with_frm_style .frm_checkbox input[type=checkbox]{
872 border-radius:0;
873 }
874
875 .with_frm_style .frm_radio input[type=radio],
876 .with_frm_style .frm_checkbox input[type=checkbox]{
877 -webkit-appearance: none;
878 appearance: none;
879 background-color: var(--bg-color);
880 flex: none;
881 display:inline-block !important;
882 margin: 0 5px 0 0;
883 color: var(--border-color);
884 width: 18px;
885 min-width: 18px;
886 height: 18px;
887 border: 1px solid currentColor;
888 border-color: var(--border-color);
889 vertical-align: middle;
890 position: initial; /* override Bootstrap */
891 padding: 0;
892 }
893
894 .with_frm_style .frm_radio input[type=radio]:before,
895 .with_frm_style .frm_checkbox input[type=checkbox]:before {
896 content: '';
897 width: 12px;
898 height: 12px;
899 border-radius: 50%;
900 transform: scale(0);
901 transition: 120ms transform ease-in-out;
902 box-shadow: inset 10px 10px var(--text-color);
903 display: block;
904 margin: 2px 0 0 2px;
905 }
906
907 .with_frm_style .frm_checkbox input[type=checkbox]:before{
908 clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
909 border-radius: 0;
910 }
911
912 .with_frm_style .frm_radio input[type=radio]:checked:before,
913 .with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
914 transform: scale(1);
915 }
916
917 .with_frm_style :invalid,
918 .with_frm_style :-moz-submit-invalid,
919 .with_frm_style :-moz-ui-invalid{
920 box-shadow:none;
921 }
922
923 .with_frm_style .frm_error_style img{
924 padding-right:10px;
925 vertical-align:middle;
926 border:none;
927 }
928
929 .with_frm_style .frm_trigger{
930 cursor:pointer;
931 }
932
933 .with_frm_style .frm_error_style,
934 .with_frm_style .frm_message,
935 .frm_success_style{
936 -moz-border-radius:4px;
937 -webkit-border-radius:4px;
938 border-radius:4px;
939 padding:15px;
940 }
941
942 .with_frm_style .frm_message p{
943 margin-bottom:5px;
944 color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
945 color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
946 }
947
948 .with_frm_style .frm_message,
949 .frm_success_style{
950 margin:5px 0 15px;
951 border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>;
952 border-color:var(--success-border-color);
953 background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>;
954 background-color:var(--success-bg-color);
955 color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
956 color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
957 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
958 border-radius:var(--border-radius);
959 font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>;
960 font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>;
961 }
962
963 .with_frm_style .frm_plain_success .frm_message {
964 background-color: transparent;
965 padding:0;
966 border:none;
967 font-size:inherit<?php echo esc_html( $important ); ?>;
968 color:inherit<?php echo esc_html( $important ); ?>;
969 }
970
971 .with_frm_style .frm_plain_success .frm_message p {
972 color:inherit<?php echo esc_html( $important ); ?>;
973 }
974
975 .frm_form_fields_style,
976 .frm_form_fields_active_style,
977 .frm_form_fields_error_style,
978 .frm_form_submit_style{
979 width:auto;
980 }
981
982 .with_frm_style .frm_trigger span{
983 float:left;
984 }
985
986 .with_frm_style table.frm-grid,
987 #content .with_frm_style table.frm-grid{
988 border-collapse:collapse;
989 border:none;
990 }
991
992 .frm-grid td,
993 .frm-grid th{
994 padding:5px;
995 border-width:1px;
996 border-style:solid;
997 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
998 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
999 border-color:var(--border-color);
1000 <?php } ?>
1001 border-top:none;
1002 border-left:none;
1003 border-right:none;
1004 }
1005
1006 .frm-alt-table {
1007 width:100%;
1008 border-collapse:separate;
1009 margin-top:0.5em;
1010 font-size:15px;
1011 border-width:1px;
1012 }
1013
1014 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1015 .with_frm_style .frm-alt-table{
1016 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1017 border-color:var(--border-color);
1018 }
1019 <?php } ?>
1020
1021 .frm-alt-table th {
1022 width:200px;
1023 }
1024
1025 .frm-alt-table tr {
1026 background-color:transparent;
1027 }
1028
1029 .frm-alt-table th,
1030 .frm-alt-table td {
1031 background-color:transparent;
1032 vertical-align:top;
1033 text-align:left;
1034 padding:20px;
1035 border-color:transparent;
1036 }
1037
1038 .frm-alt-table tr:nth-child(even) {
1039 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1040 }
1041
1042 table.form_results.with_frm_style{
1043 border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>;
1044 border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1045 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1046 }
1047
1048 table.form_results.with_frm_style tr td{
1049 text-align:left;
1050 padding:7px 9px;
1051 <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1052 color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1053 color:var(--text-color)<?php echo esc_html( $important ); ?>;
1054 <?php } ?>
1055 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1056 border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1057 border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1058 border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1059 <?php } ?>
1060 }
1061
1062 table.form_results.with_frm_style tr.frm_even,
1063 .frm-grid .frm_even{
1064 background-color:#fff;
1065 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1066 }
1067
1068 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1069 table.form_results.with_frm_style tr.frm_odd,
1070 .frm-grid .frm_odd{
1071 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1072 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1073 }
1074 <?php } ?>
1075
1076 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1077 .frm_color_block {
1078 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1079 padding: 40px;
1080 }
1081
1082 .with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1083 .frm_color_block.frm_section_heading h3 {
1084 border-width: 0 !important;
1085 }
1086 <?php } ?>
1087
1088 .frm_collapse .ui-icon{
1089 display:inline-block;
1090 }
1091
1092 .frm_toggle_container{
1093 /* Prevent the slide and bounce */
1094 border:1px solid transparent;
1095 }
1096
1097 .frm_toggle_container ul{
1098 margin:5px 0;
1099 padding-left:0;
1100 list-style-type:none;
1101 }
1102
1103 .frm_toggle_container .frm_month_heading{
1104 text-indent:15px;
1105 }
1106
1107 .frm_toggle_container .frm_month_listing{
1108 margin-left:40px;
1109 }
1110
1111 #frm_loading{
1112 display:none;
1113 position:fixed;
1114 top:0;
1115 left:0;
1116 width:100%;
1117 height:100%;
1118 z-index:99999;
1119 }
1120
1121 #frm_loading h3{
1122 font-weight:500;
1123 padding-bottom:15px;
1124 color:#fff;
1125 font-size:24px;
1126 }
1127
1128 #frm_loading_content{
1129 position:fixed;
1130 top:20%;
1131 left:33%;
1132 width:33%;
1133 text-align:center;
1134 padding-top:30px;
1135 font-weight:bold;
1136 z-index:9999999;
1137 }
1138
1139 #frm_loading img{
1140 max-width:100%;
1141 }
1142
1143 #frm_loading .progress{
1144 border-radius:4px;
1145 box-shadow:0 1px 2px rgba(0, 0, 0, 0.1) inset;
1146 height:20px;
1147 margin-bottom:20px;
1148 overflow:hidden;
1149 }
1150
1151 #frm_loading .progress.active .progress-bar{
1152 animation:2s linear 0s normal none infinite progress-bar-stripes;
1153 }
1154
1155 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1156 #frm_loading .progress-striped .progress-bar{
1157 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1158 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));
1159 <?php } ?>
1160 background-size:40px 40px;
1161 }
1162 <?php } ?>
1163
1164 #frm_loading .progress-bar{
1165 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1166 background-color:var(--bg-color);
1167 box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1168 float:left;
1169 height:100%;
1170 line-height:20px;
1171 text-align:center;
1172 transition:width 0.6s ease 0s;
1173 width:100%;
1174 }
1175
1176 .frm_image_from_url{
1177 height:50px;
1178 }
1179
1180 .frm-loading-img{
1181 background:url(../images/ajax_loader.gif) no-repeat center center;
1182 padding:6px 12px;
1183 }
1184
1185 select.frm_loading_lookup{
1186 background-image: url(../images/ajax_loader.gif) !important;
1187 background-position: 10px;
1188 background-repeat: no-repeat;
1189 color: transparent !important;
1190 }
1191
1192 <?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1193
1194 .frm_conf_field.frm_left_container .frm_primary_label{
1195 display:none;
1196 }
1197
1198 .wp-editor-wrap *,
1199 .wp-editor-wrap *:after,
1200 .wp-editor-wrap *:before{
1201 -webkit-box-sizing:content-box;
1202 -moz-box-sizing:content-box;
1203 box-sizing:content-box;
1204 }
1205
1206 .with_frm_style .frm_grid,
1207 .with_frm_style .frm_grid_first,
1208 .with_frm_style .frm_grid_odd{
1209 clear:both;
1210 margin-bottom:0 !important;
1211 padding:5px;
1212 border-width:1px;
1213 border-style:solid;
1214 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1215 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1216 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1217 <?php } ?>
1218 border-left:none;
1219 border-right:none;
1220 }
1221
1222 .with_frm_style .frm_grid,
1223 .with_frm_style .frm_grid_odd{
1224 border-top:none;
1225 }
1226
1227 .frm_grid .frm_error,
1228 .frm_grid_first .frm_error,
1229 .frm_grid_odd .frm_error,
1230 .frm_grid .frm_limit_error,
1231 .frm_grid_first .frm_limit_error,
1232 .frm_grid_odd .frm_limit_error{
1233 display:none;
1234 }
1235
1236 .frm_grid:after,
1237 .frm_grid_first:after,
1238 .frm_grid_odd:after{
1239 visibility:hidden;
1240 display:block;
1241 font-size:0;
1242 content:" ";
1243 clear:both;
1244 height:0;
1245 }
1246
1247 .frm_grid_first{
1248 margin-top:20px;
1249 }
1250
1251 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1252 .frm_grid_first,
1253 .frm_grid_odd{
1254 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1255 background-color:var(--bg-color);
1256 }
1257 <?php } ?>
1258
1259 <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1260 .frm_grid{
1261 background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>;
1262 background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
1263 }
1264 <?php } ?>
1265
1266 .with_frm_style .frm_grid.frm_blank_field,
1267 .with_frm_style .frm_grid_first.frm_blank_field,
1268 .with_frm_style .frm_grid_odd.frm_blank_field{
1269 background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1270 background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1271 border-color:<?php echo esc_html( $defaults['error_border'] ); ?>;
1272 border-color:var(--error-bg);
1273 }
1274
1275 .frm_grid .frm_primary_label,
1276 .frm_grid_first .frm_primary_label,
1277 .frm_grid_odd .frm_primary_label,
1278 .frm_grid .frm_radio,
1279 .frm_grid_first .frm_radio,
1280 .frm_grid_odd .frm_radio,
1281 .frm_grid .frm_checkbox,
1282 .frm_grid_first .frm_checkbox,
1283 .frm_grid_odd .frm_checkbox{
1284 float:left !important;
1285 display:block;
1286 margin-top:0;
1287 margin-left:0 !important;
1288 }
1289
1290 .frm_grid_first .frm_radio label,
1291 .frm_grid .frm_radio label,
1292 .frm_grid_odd .frm_radio label,
1293 .frm_grid_first .frm_checkbox label,
1294 .frm_grid .frm_checkbox label,
1295 .frm_grid_odd .frm_checkbox label{
1296 visibility:hidden;
1297 white-space:nowrap;
1298 text-align:left;
1299 }
1300
1301 .frm_grid_first .frm_radio label input,
1302 .frm_grid .frm_radio label input,
1303 .frm_grid_odd .frm_radio label input,
1304 .frm_grid_first .frm_checkbox label input,
1305 .frm_grid .frm_checkbox label input,
1306 .frm_grid_odd .frm_checkbox label input{
1307 visibility:visible;
1308 margin:2px 0 0;
1309 float:right;
1310 }
1311
1312 .frm_grid .frm_radio,
1313 .frm_grid_first .frm_radio,
1314 .frm_grid_odd .frm_radio,
1315 .frm_grid .frm_checkbox,
1316 .frm_grid_first .frm_checkbox,
1317 .frm_grid_odd .frm_checkbox{
1318 display:inline;
1319 }
1320
1321 .frm_grid_2 .frm_radio,
1322 .frm_grid_2 .frm_checkbox,
1323 .frm_grid_2 .frm_primary_label{
1324 width:48% !important;
1325 }
1326
1327 .frm_grid_2 .frm_radio,
1328 .frm_grid_2 .frm_checkbox{
1329 margin-right:4%;
1330 }
1331
1332 .frm_grid_3 .frm_radio,
1333 .frm_grid_3 .frm_checkbox,
1334 .frm_grid_3 .frm_primary_label{
1335 width:30% !important;
1336 }
1337
1338 .frm_grid_3 .frm_radio,
1339 .frm_grid_3 .frm_checkbox{
1340 margin-right:3%;
1341 }
1342
1343 .frm_grid_4 .frm_radio,
1344 .frm_grid_4 .frm_checkbox{
1345 width:20% !important;
1346 }
1347
1348 .frm_grid_4 .frm_primary_label{
1349 width:28% !important;
1350 }
1351
1352 .frm_grid_4 .frm_radio,
1353 .frm_grid_4 .frm_checkbox{
1354 margin-right:4%;
1355 }
1356
1357 .frm_grid_5 .frm_primary_label,
1358 .frm_grid_7 .frm_primary_label{
1359 width:24% !important;
1360 }
1361
1362 .frm_grid_5 .frm_radio,
1363 .frm_grid_5 .frm_checkbox{
1364 width:17% !important;
1365 margin-right:2%;
1366 }
1367
1368 .frm_grid_6 .frm_primary_label{
1369 width:25% !important;
1370 }
1371
1372 .frm_grid_6 .frm_radio,
1373 .frm_grid_6 .frm_checkbox{
1374 width:14% !important;
1375 margin-right:1%;
1376 }
1377
1378 .frm_grid_7 .frm_primary_label{
1379 width:22% !important;
1380 }
1381
1382 .frm_grid_7 .frm_radio,
1383 .frm_grid_7 .frm_checkbox{
1384 width:12% !important;
1385 margin-right:1%;
1386 }
1387
1388 .frm_grid_8 .frm_primary_label{
1389 width:23% !important;
1390 }
1391
1392 .frm_grid_8 .frm_radio,
1393 .frm_grid_8 .frm_checkbox{
1394 width:10% !important;
1395 margin-right:1%;
1396 }
1397
1398 .frm_grid_9 .frm_primary_label{
1399 width:20% !important;
1400 }
1401
1402 .frm_grid_9 .frm_radio,
1403 .frm_grid_9 .frm_checkbox{
1404 width:9% !important;
1405 margin-right:1%;
1406 }
1407
1408 .frm_grid_10 .frm_primary_label{
1409 width:19% !important;
1410 }
1411
1412 .frm_grid_10 .frm_radio,
1413 .frm_grid_10 .frm_checkbox{
1414 width:8% !important;
1415 margin-right:1%;
1416 }
1417
1418 .frm_form_field.frm_inline_container .frm_opt_container,
1419 .frm_form_field.frm_right_container .frm_opt_container,
1420 .frm_form_field.frm_left_container .frm_opt_container{
1421 padding-top:4px;
1422 }
1423
1424 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1425 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1426 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1427 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
1428 .with_frm_style .frm_inline_container.frm_grid .frm_opt_container,
1429 .with_frm_style .frm_inline_container.frm_grid_odd .frm_opt_container{
1430 margin-right:0;
1431 }
1432
1433 .frm_form_field.frm_two_col .frm_opt_container,
1434 .frm_form_field.frm_three_col .frm_opt_container,
1435 .frm_form_field.frm_four_col .frm_opt_container{
1436 display: grid;
1437 grid-template-columns: repeat(2, 1fr);
1438 grid-auto-rows: max-content;
1439 grid-gap: 0 2.5%;
1440 }
1441
1442 .frm_form_field.frm_three_col .frm_opt_container{
1443 grid-template-columns: repeat(3, 1fr);
1444 }
1445
1446 .frm_form_field.frm_four_col .frm_opt_container{
1447 grid-template-columns: repeat(4, 1fr);
1448 }
1449
1450 .frm_form_field.frm_two_col .frm_radio,
1451 .frm_form_field.frm_two_col .frm_checkbox,
1452 .frm_form_field.frm_three_col .frm_radio,
1453 .frm_form_field.frm_three_col .frm_checkbox,
1454 .frm_form_field.frm_four_col .frm_radio,
1455 .frm_form_field.frm_four_col .frm_checkbox{
1456 grid-column-end: span 1;
1457 }
1458
1459 .frm_form_field .frm_checkbox,
1460 .frm_form_field .frm_checkbox + .frm_checkbox,
1461 .frm_form_field .frm_radio,
1462 .frm_form_field .frm_radio + .frm_radio{
1463 margin-top: 0;
1464 margin-bottom: 0;
1465 }
1466
1467 .frm_form_field.frm_scroll_box .frm_opt_container{
1468 height:100px;
1469 overflow:auto;
1470 }
1471
1472 .frm_html_container.frm_scroll_box,
1473 .frm_form_field.frm_html_scroll_box{
1474 height:100px;
1475 overflow:auto;
1476 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1477 background-color:var(--bg-color);
1478 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1479 border-color:var(--border-color);
1480 border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
1481 border-width:var(--field-border-width);
1482 border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
1483 border-style:var(--field-border-style);
1484 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1485 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1486 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1487 border-radius:var(--border-radius);
1488 width:<?php echo esc_html( $defaults['field_width'] ); ?>;
1489 width:var(--field-width);
1490 max-width:100%;
1491 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
1492 font-size:var(--field-font-size);
1493 padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
1494 padding:var(--field-pad);
1495 -webkit-box-sizing:border-box;
1496 -moz-box-sizing:border-box;
1497 box-sizing:border-box;
1498 outline:none<?php echo esc_html( $important ); ?>;
1499 font-weight:normal;
1500 box-shadow:var(--box-shadow);
1501 }
1502
1503 .frm_form_field.frm_total_big input,
1504 .frm_form_field.frm_total_big textarea,
1505 .frm_form_field.frm_total input,
1506 .frm_form_field.frm_total textarea{
1507 opacity:1;
1508 background-color:transparent !important;
1509 border:none !important;
1510 font-weight:bold;
1511 -moz-box-shadow:none;
1512 -webkit-box-shadow:none;
1513 width:auto !important;
1514 height:auto !important;
1515 box-shadow:none !important;
1516 display:inline;
1517 -moz-appearance:textfield;
1518 padding:0;
1519 }
1520
1521 .frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1522 .frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1523 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1524 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1525 -webkit-appearance: none;
1526 }
1527
1528 .frm_form_field.frm_total_big input:focus,
1529 .frm_form_field.frm_total_big textarea:focus,
1530 .frm_form_field.frm_total input:focus,
1531 .frm_form_field.frm_total textarea:focus{
1532 background-color:transparent;
1533 border:none;
1534 -moz-box-shadow:none;
1535 -webkit-box-shadow:none;
1536 box-shadow:none;
1537 }
1538
1539 .frm_form_field.frm_label_justify .frm_primary_label{
1540 text-align:justify !important;
1541 }
1542
1543 .frm_form_field.frm_capitalize input,
1544 .frm_form_field.frm_capitalize select,
1545 .frm_form_field.frm_capitalize .frm_opt_container label{
1546 text-transform:capitalize;
1547 }
1548
1549 .frm_clearfix:after{
1550 content:".";
1551 display:block;
1552 clear:both;
1553 visibility:hidden;
1554 line-height:0;
1555 height:0;
1556 }
1557
1558 .frm_clearfix{
1559 display:block;
1560 }
1561
1562 .with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before {
1563 color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>;
1564 color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1565 }
1566
1567 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1568 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1569 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1570 margin-bottom: 0 !important;
1571 }
1572
1573 <?php
1574 FrmStylesHelper::maybe_include_font_icon_css();
1575
1576 /**
1577 * Call action so other plugins can add additional CSS.
1578 *
1579 * @param array $args {
1580 * @type array $defaults
1581 * }
1582 */
1583 do_action( 'frm_include_front_css', compact( 'defaults' ) );
1584 ?>
1585
1586 /* Responsive */
1587
1588 @media only screen and (max-width: 900px) {
1589 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1590 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1591 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1592 display: block !important;
1593 }
1594 }
1595
1596 @media only screen and (max-width: 600px) {
1597 .frm_form_field.frm_four_col .frm_opt_container{
1598 grid-template-columns: repeat(2, 1fr);
1599 }
1600
1601 .with_frm_style .frm_repeat_inline,
1602 .with_frm_style .frm_repeat_grid{
1603 margin: 20px 0;
1604 }
1605 }
1606
1607 @media only screen and (max-width: 500px) {
1608 .frm_form_field.frm_two_col .frm_radio,
1609 .frm_form_field.frm_two_col .frm_checkbox,
1610 .frm_form_field.frm_three_col .frm_radio,
1611 .frm_form_field.frm_three_col .frm_checkbox{
1612 width: auto;
1613 margin-right: 0;
1614 float: none;
1615 display:block;
1616 }
1617
1618 .frm_form_field input[type=file] {
1619 max-width:220px;
1620 }
1621
1622 .with_frm_style .frm-g-recaptcha > div > div,
1623 .with_frm_style .g-recaptcha > div > div{
1624 width:inherit !important;
1625 display:block;
1626 overflow:hidden;
1627 max-width:302px;
1628 border-right:1px solid #d3d3d3;
1629 border-radius:4px;
1630 box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1631 -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1632 }
1633
1634 .with_frm_style .g-recaptcha iframe,
1635 .with_frm_style .frm-g-recaptcha iframe{
1636 width:100%;
1637 }
1638 }
1639 <?php
1640
1641 echo strip_tags( $defaults['custom_css'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1642