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

1,631 lines 46.2 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: 27px;
447 padding-top: calc(0.85 * 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: 28px;
480 top: calc(1px + 0.85 * 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 font-size: 12px;
509 font-size: calc(0.85 * var(--field-font-size));
510 }
511
512 /* These do not work if they are combined */
513 .with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder,
514 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder {
515 opacity: 1 !important;
516 transition: opacity 0.3s ease-in;
517 }
518
519 .with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder,
520 .with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder {
521 opacity: 1;
522 transition: opacity 0.3s ease-in;
523 }
524
525 .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
526 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
527 opacity: 1;
528 transition: opacity 0.3s ease-in;
529 }
530
531 .with_frm_style .frm_description,
532 .with_frm_style .frm_pro_max_limit_desc{
533 clear:both;
534 }
535
536 .with_frm_style input[type=number][readonly]{
537 -moz-appearance: textfield;
538 }
539
540 .with_frm_style select[multiple="multiple"]{
541 height:auto;
542 line-height:normal;
543 }
544
545 .with_frm_style .frm_catlevel_2,
546 .with_frm_style .frm_catlevel_3,
547 .with_frm_style .frm_catlevel_4,
548 .with_frm_style .frm_catlevel_5{
549 margin-left:18px;
550 }
551
552 .with_frm_style .wp-editor-container{
553 border:1px solid #e5e5e5;
554 }
555
556 .with_frm_style .quicktags-toolbar input{
557 font-size:12px !important;
558 }
559
560 .with_frm_style .wp-editor-container textarea{
561 border:none;
562 }
563
564 .with_frm_style .auto_width #loginform input,
565 .with_frm_style .auto_width input,
566 .with_frm_style input.auto_width,
567 .with_frm_style select.auto_width,
568 .with_frm_style textarea.auto_width{
569 width:auto<?php echo esc_html( $important ); ?>;
570 }
571
572 .with_frm_style .frm_repeat_buttons{
573 white-space:nowrap;
574 }
575
576 .with_frm_style .frm_button{
577 text-decoration:none !important;;
578 border:1px solid #eee;
579 display:inline-block;
580 <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
581 padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>;
582 padding:var(--submit-padding)<?php echo esc_html( $important ); ?>;
583 <?php } else { ?>
584 padding:5px;
585 <?php } ?>
586 <?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
587 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
588 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
589 border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
590 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
591 <?php } ?>
592 <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
593 font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>;
594 font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>;
595 <?php } ?>
596 <?php if ( ! empty( $defaults['font'] ) ) { ?>
597 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
598 font-family:var(--font)<?php echo esc_html( $important ); ?>;
599 <?php } ?>
600 <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
601 font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>;
602 font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>;
603 <?php } ?>
604 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
605 color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>;
606 color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
607 <?php } ?>
608 <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
609 background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>;
610 background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
611 <?php } ?>
612 <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
613 border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>;
614 border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>;
615 <?php } ?>
616 <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
617 border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>;
618 border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>;
619 <?php } ?>
620 <?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
621 height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>;
622 height:var(--submit-height)<?php echo esc_html( $important ); ?>;
623 <?php } ?>
624 }
625
626 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
627 .with_frm_style .frm_button.frm_inverse{
628 color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
629 background:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
630 }
631 <?php } ?>
632
633 .with_frm_style .frm_submit{
634 clear:both;
635 }
636
637 .frm_inline_form .frm_form_field,
638 .frm_inline_form .frm_submit{
639 grid-column: span 1 / span 1;
640 }
641
642 .frm_inline_form .frm_submit{
643 margin:0;
644 }
645
646 .frm_submit.frm_inline_submit input[type=submit],
647 .frm_submit.frm_inline_submit button,
648 .frm_inline_form .frm_submit input[type=submit],
649 .frm_inline_form .frm_submit button{
650 margin-top:0;
651 }
652
653 .with_frm_style.frm_center_submit .frm_submit{
654 text-align:center;
655 }
656
657 .with_frm_style .frm_inline_success .frm_submit{
658 display: flex;
659 flex-direction: row;
660 align-items: center;
661 margin: 0;
662 }
663
664 .with_frm_style .frm_inline_success .frm_submit .frm_message{
665 flex: 1;
666 margin: 0;
667 padding-left: 10px;
668 }
669
670 .with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{
671 text-align: right;
672 }
673
674 .with_frm_style.frm_center_submit .frm_submit input[type=submit],
675 .with_frm_style.frm_center_submit .frm_submit input[type=button],
676 .with_frm_style.frm_center_submit .frm_submit button{
677 margin-bottom:8px !important;
678 }
679
680 .with_frm_style .frm-edit-page-btn,
681 .with_frm_style .frm_submit input[type=submit],
682 .with_frm_style .frm_submit input[type=button],
683 .with_frm_style .frm_submit button{
684 -webkit-appearance: none;
685 cursor: pointer;
686 }
687
688 .with_frm_style.frm_center_submit .frm_submit .frm_ajax_loading{
689 display: block;
690 margin: 0 auto;
691 }
692
693 .with_frm_style .frm_loading_prev .frm_ajax_loading,
694 .with_frm_style .frm_loading_form .frm_ajax_loading{
695 /* keep this for reverse compatibility for old HTML */
696 visibility:visible !important;
697 }
698
699 .with_frm_style .frm_loading_prev .frm_prev_page,
700 .with_frm_style .frm_loading_form .frm_button_submit {
701 position: relative;
702 opacity: .8;
703 color: transparent !important;
704 text-shadow: none !important;
705 }
706
707 .with_frm_style .frm_loading_prev .frm_prev_page:hover,
708 .with_frm_style .frm_loading_prev .frm_prev_page:active,
709 .with_frm_style .frm_loading_prev .frm_prev_page:focus,
710 .with_frm_style .frm_loading_form .frm_button_submit:hover,
711 .with_frm_style .frm_loading_form .frm_button_submit:active,
712 .with_frm_style .frm_loading_form .frm_button_submit:focus {
713 cursor: not-allowed;
714 color: transparent;
715 outline: none !important;
716 box-shadow: none;
717 }
718
719 .with_frm_style .frm_loading_prev .frm_prev_page::before,
720 .with_frm_style .frm_loading_form .frm_button_submit:before {
721 content: '';
722 display: inline-block;
723 position: absolute;
724 background: transparent;
725 border: 1px solid #fff;
726 border-top-color: transparent;
727 border-left-color: transparent;
728 border-radius: 50%;
729 box-sizing: border-box;
730 <?php $loader_size = 20; ?>
731 top: 50%;
732 left: 50%;
733 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
734 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
735 width: <?php echo absint( $loader_size ); ?>px;
736 height: <?php echo absint( $loader_size ); ?>px;
737 -webkit-animation: spin 2s linear infinite;
738 -moz-animation: spin 2s linear infinite;
739 -o-animation: spin 2s linear infinite;
740 animation: spin 2s linear infinite;
741 }
742
743 <?php
744 foreach ( $styles as $style ) {
745 include( dirname( __FILE__ ) . '/_single_theme.css.php' );
746 unset( $style );
747 }
748
749 // Set it again since it may have been overridden.
750 $important = empty( $defaults['important_style'] ) ? '' : ' !important';
751 ?>
752
753 .frm_ajax_loading{
754 visibility:hidden;
755 width:auto;
756 }
757
758 .frm_form_submit_style{
759 height:auto;
760 }
761
762 a.frm_save_draft{
763 cursor:pointer;
764 }
765
766 .with_frm_style a.frm_save_draft,
767 .with_frm_style a.frm_start_over{
768 <?php if ( ! empty( $defaults['font'] ) ) { ?>
769 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
770 font-family:var(--font);
771 <?php } ?>
772 font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>;
773 font-size:var(--submit-font-size);
774 font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>;
775 font-weight:var(--submit-weight);
776 }
777
778 .horizontal_radio .frm_radio{
779 margin:0 5px 0 0;
780 }
781
782 .horizontal_radio .frm_checkbox{
783 margin:0;
784 margin-right:5px;
785 }
786
787 .vertical_radio .frm_checkbox,
788 .vertical_radio .frm_radio,
789 .vertical_radio .frm_catlevel_1{
790 display:block;
791 }
792
793 .horizontal_radio .frm_checkbox,
794 .horizontal_radio .frm_radio,
795 .horizontal_radio .frm_catlevel_1{
796 display:inline-block;
797 padding-left: 0;
798 }
799
800 .with_frm_style .frm_radio{
801 display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>;
802 display:var(--radio-align)<?php echo esc_html( $important ); ?>;
803 }
804
805 .with_frm_style .frm_checkbox{
806 display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>;
807 display:var(--check-align)<?php echo esc_html( $important ); ?>;
808 }
809
810 .with_frm_style .vertical_radio .frm_checkbox,
811 .with_frm_style .vertical_radio .frm_radio,
812 .vertical_radio .frm_catlevel_1{
813 display:block<?php echo esc_html( $important ); ?>;
814 }
815
816 .with_frm_style .horizontal_radio .frm_checkbox,
817 .with_frm_style .horizontal_radio .frm_radio,
818 .horizontal_radio .frm_catlevel_1{
819 display:inline-block<?php echo esc_html( $important ); ?>;
820 }
821
822 .with_frm_style .frm_checkbox label,
823 .with_frm_style .frm_radio label{
824 display: inline;
825 white-space:normal;
826 }
827
828 .with_frm_style .vertical_radio .frm_checkbox label,
829 .with_frm_style .vertical_radio .frm_radio label{
830 display: block;
831 padding-left: 20px;
832 text-indent: -20px;
833 }
834
835 .with_frm_style .frm_radio label,
836 .with_frm_style .frm_checkbox label{
837 <?php if ( ! empty( $defaults['font'] ) ) { ?>
838 font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
839 font-family:var(--font);
840 <?php } ?>
841 font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
842 font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
843 color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>;
844 color:var(--check-label-color)<?php echo esc_html( $important ); ?>;
845 font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>;
846 font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>;
847 line-height: 1.3;
848 }
849
850 .with_frm_style .frm_radio input[type=radio],
851 .with_frm_style .frm_checkbox input[type=checkbox] {
852 font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
853 font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
854 position:static<?php echo esc_html( $important ); ?>;
855 }
856
857 .frm_file_container .frm_file_link,
858 .with_frm_style .frm_radio label .frm_file_container,
859 .with_frm_style .frm_checkbox label .frm_file_container{
860 display:inline-block;
861 margin:5px;
862 vertical-align:middle;
863 }
864
865 .with_frm_style .frm_radio input[type=radio]{
866 border-radius:50%;
867 }
868
869 .with_frm_style .frm_checkbox input[type=checkbox]{
870 border-radius:0;
871 }
872
873 .with_frm_style .frm_radio input[type=radio],
874 .with_frm_style .frm_checkbox input[type=checkbox]{
875 -webkit-appearance: none;
876 appearance: none;
877 background-color: var(--bg-color);
878 flex: none;
879 display:inline-block !important;
880 margin: 0 5px 0 0;
881 color: var(--border-color);
882 width: 18px;
883 min-width: 18px;
884 height: 18px;
885 border: 1px solid currentColor;
886 border-color: var(--border-color);
887 vertical-align: middle;
888 position: initial; /* override Bootstrap */
889 padding: 0;
890 }
891
892 .with_frm_style .frm_radio input[type=radio]:before,
893 .with_frm_style .frm_checkbox input[type=checkbox]:before {
894 content: '';
895 width: 12px;
896 height: 12px;
897 border-radius: 50%;
898 transform: scale(0);
899 transition: 120ms transform ease-in-out;
900 box-shadow: inset 10px 10px var(--text-color);
901 display: block;
902 margin: 2px 0 0 2px;
903 }
904
905 .with_frm_style .frm_checkbox input[type=checkbox]:before{
906 clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
907 border-radius: 0;
908 }
909
910 .with_frm_style .frm_radio input[type=radio]:checked:before,
911 .with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
912 transform: scale(1);
913 }
914
915 .with_frm_style :invalid,
916 .with_frm_style :-moz-submit-invalid,
917 .with_frm_style :-moz-ui-invalid{
918 box-shadow:none;
919 }
920
921 .with_frm_style .frm_error_style img{
922 padding-right:10px;
923 vertical-align:middle;
924 border:none;
925 }
926
927 .with_frm_style .frm_trigger{
928 cursor:pointer;
929 }
930
931 .with_frm_style .frm_error_style,
932 .with_frm_style .frm_message,
933 .frm_success_style{
934 -moz-border-radius:4px;
935 -webkit-border-radius:4px;
936 border-radius:4px;
937 padding:15px;
938 }
939
940 .with_frm_style .frm_message p{
941 margin-bottom:5px;
942 color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
943 color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
944 }
945
946 .with_frm_style .frm_message,
947 .frm_success_style{
948 margin:5px 0 15px;
949 border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>;
950 border-color:var(--success-border-color);
951 background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>;
952 background-color:var(--success-bg-color);
953 color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
954 color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
955 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
956 border-radius:var(--border-radius);
957 font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>;
958 font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>;
959 }
960
961 .with_frm_style .frm_plain_success .frm_message {
962 background-color: transparent;
963 padding:0;
964 border:none;
965 font-size:inherit<?php echo esc_html( $important ); ?>;
966 color:inherit<?php echo esc_html( $important ); ?>;
967 }
968
969 .with_frm_style .frm_plain_success .frm_message p {
970 color:inherit<?php echo esc_html( $important ); ?>;
971 }
972
973 .frm_form_fields_style,
974 .frm_form_fields_active_style,
975 .frm_form_fields_error_style,
976 .frm_form_submit_style{
977 width:auto;
978 }
979
980 .with_frm_style .frm_trigger span{
981 float:left;
982 }
983
984 .with_frm_style table.frm-grid,
985 #content .with_frm_style table.frm-grid{
986 border-collapse:collapse;
987 border:none;
988 }
989
990 .frm-grid td,
991 .frm-grid th{
992 padding:5px;
993 border-width:1px;
994 border-style:solid;
995 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
996 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
997 border-color:var(--border-color);
998 <?php } ?>
999 border-top:none;
1000 border-left:none;
1001 border-right:none;
1002 }
1003
1004 .frm-alt-table {
1005 width:100%;
1006 border-collapse:separate;
1007 margin-top:0.5em;
1008 font-size:15px;
1009 border-width:1px;
1010 }
1011
1012 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1013 .with_frm_style .frm-alt-table{
1014 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1015 border-color:var(--border-color);
1016 }
1017 <?php } ?>
1018
1019 .frm-alt-table th {
1020 width:200px;
1021 }
1022
1023 .frm-alt-table tr {
1024 background-color:transparent;
1025 }
1026
1027 .frm-alt-table th,
1028 .frm-alt-table td {
1029 background-color:transparent;
1030 vertical-align:top;
1031 text-align:left;
1032 padding:20px;
1033 border-color:transparent;
1034 }
1035
1036 .frm-alt-table tr:nth-child(even) {
1037 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1038 }
1039
1040 table.form_results.with_frm_style{
1041 border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>;
1042 border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1043 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1044 }
1045
1046 table.form_results.with_frm_style tr td{
1047 text-align:left;
1048 padding:7px 9px;
1049 <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1050 color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1051 color:var(--text-color)<?php echo esc_html( $important ); ?>;
1052 <?php } ?>
1053 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1054 border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1055 border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1056 border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1057 <?php } ?>
1058 }
1059
1060 table.form_results.with_frm_style tr.frm_even,
1061 .frm-grid .frm_even{
1062 background-color:#fff;
1063 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1064 }
1065
1066 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1067 table.form_results.with_frm_style tr.frm_odd,
1068 .frm-grid .frm_odd{
1069 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1070 background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1071 }
1072 <?php } ?>
1073
1074 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1075 .frm_color_block {
1076 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1077 padding: 40px;
1078 }
1079
1080 .with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1081 .frm_color_block.frm_section_heading h3 {
1082 border-width: 0 !important;
1083 }
1084 <?php } ?>
1085
1086 .frm_collapse .ui-icon{
1087 display:inline-block;
1088 }
1089
1090 .frm_toggle_container{
1091 /* Prevent the slide and bounce */
1092 border:1px solid transparent;
1093 }
1094
1095 .frm_toggle_container ul{
1096 margin:5px 0;
1097 padding-left:0;
1098 list-style-type:none;
1099 }
1100
1101 .frm_toggle_container .frm_month_heading{
1102 text-indent:15px;
1103 }
1104
1105 .frm_toggle_container .frm_month_listing{
1106 margin-left:40px;
1107 }
1108
1109 #frm_loading{
1110 display:none;
1111 position:fixed;
1112 top:0;
1113 left:0;
1114 width:100%;
1115 height:100%;
1116 z-index:99999;
1117 }
1118
1119 #frm_loading h3{
1120 font-weight:500;
1121 padding-bottom:15px;
1122 color:#fff;
1123 font-size:24px;
1124 }
1125
1126 #frm_loading_content{
1127 position:fixed;
1128 top:20%;
1129 left:33%;
1130 width:33%;
1131 text-align:center;
1132 padding-top:30px;
1133 font-weight:bold;
1134 z-index:9999999;
1135 }
1136
1137 #frm_loading img{
1138 max-width:100%;
1139 }
1140
1141 #frm_loading .progress{
1142 border-radius:4px;
1143 box-shadow:0 1px 2px rgba(0, 0, 0, 0.1) inset;
1144 height:20px;
1145 margin-bottom:20px;
1146 overflow:hidden;
1147 }
1148
1149 #frm_loading .progress.active .progress-bar{
1150 animation:2s linear 0s normal none infinite progress-bar-stripes;
1151 }
1152
1153 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1154 #frm_loading .progress-striped .progress-bar{
1155 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1156 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));
1157 <?php } ?>
1158 background-size:40px 40px;
1159 }
1160 <?php } ?>
1161
1162 #frm_loading .progress-bar{
1163 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1164 background-color:var(--bg-color);
1165 box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1166 float:left;
1167 height:100%;
1168 line-height:20px;
1169 text-align:center;
1170 transition:width 0.6s ease 0s;
1171 width:100%;
1172 }
1173
1174 .frm_image_from_url{
1175 height:50px;
1176 }
1177
1178 .frm-loading-img{
1179 background:url(../images/ajax_loader.gif) no-repeat center center;
1180 padding:6px 12px;
1181 }
1182
1183 select.frm_loading_lookup{
1184 background-image: url(../images/ajax_loader.gif) !important;
1185 background-position: 10px;
1186 background-repeat: no-repeat;
1187 color: transparent !important;
1188 }
1189
1190 <?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1191
1192 .frm_conf_field.frm_left_container .frm_primary_label{
1193 display:none;
1194 }
1195
1196 .wp-editor-wrap *,
1197 .wp-editor-wrap *:after,
1198 .wp-editor-wrap *:before{
1199 -webkit-box-sizing:content-box;
1200 -moz-box-sizing:content-box;
1201 box-sizing:content-box;
1202 }
1203
1204 .with_frm_style .frm_grid,
1205 .with_frm_style .frm_grid_first,
1206 .with_frm_style .frm_grid_odd{
1207 clear:both;
1208 margin-bottom:0 !important;
1209 padding:5px;
1210 border-width:1px;
1211 border-style:solid;
1212 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1213 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1214 border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1215 <?php } ?>
1216 border-left:none;
1217 border-right:none;
1218 }
1219
1220 .with_frm_style .frm_grid,
1221 .with_frm_style .frm_grid_odd{
1222 border-top:none;
1223 }
1224
1225 .frm_grid .frm_error,
1226 .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{
1231 display:none;
1232 }
1233
1234 .frm_grid:after,
1235 .frm_grid_first:after,
1236 .frm_grid_odd:after{
1237 visibility:hidden;
1238 display:block;
1239 font-size:0;
1240 content:" ";
1241 clear:both;
1242 height:0;
1243 }
1244
1245 .frm_grid_first{
1246 margin-top:20px;
1247 }
1248
1249 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1250 .frm_grid_first,
1251 .frm_grid_odd{
1252 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1253 background-color:var(--bg-color);
1254 }
1255 <?php } ?>
1256
1257 <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1258 .frm_grid{
1259 background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>;
1260 background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
1261 }
1262 <?php } ?>
1263
1264 .with_frm_style .frm_grid.frm_blank_field,
1265 .with_frm_style .frm_grid_first.frm_blank_field,
1266 .with_frm_style .frm_grid_odd.frm_blank_field{
1267 background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1268 background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1269 border-color:<?php echo esc_html( $defaults['error_border'] ); ?>;
1270 border-color:var(--error-bg);
1271 }
1272
1273 .frm_grid .frm_primary_label,
1274 .frm_grid_first .frm_primary_label,
1275 .frm_grid_odd .frm_primary_label,
1276 .frm_grid .frm_radio,
1277 .frm_grid_first .frm_radio,
1278 .frm_grid_odd .frm_radio,
1279 .frm_grid .frm_checkbox,
1280 .frm_grid_first .frm_checkbox,
1281 .frm_grid_odd .frm_checkbox{
1282 float:left !important;
1283 display:block;
1284 margin-top:0;
1285 margin-left:0 !important;
1286 }
1287
1288 .frm_grid_first .frm_radio label,
1289 .frm_grid .frm_radio label,
1290 .frm_grid_odd .frm_radio label,
1291 .frm_grid_first .frm_checkbox label,
1292 .frm_grid .frm_checkbox label,
1293 .frm_grid_odd .frm_checkbox label{
1294 visibility:hidden;
1295 white-space:nowrap;
1296 text-align:left;
1297 }
1298
1299 .frm_grid_first .frm_radio label input,
1300 .frm_grid .frm_radio label input,
1301 .frm_grid_odd .frm_radio label input,
1302 .frm_grid_first .frm_checkbox label input,
1303 .frm_grid .frm_checkbox label input,
1304 .frm_grid_odd .frm_checkbox label input{
1305 visibility:visible;
1306 margin:2px 0 0;
1307 float:right;
1308 }
1309
1310 .frm_grid .frm_radio,
1311 .frm_grid_first .frm_radio,
1312 .frm_grid_odd .frm_radio,
1313 .frm_grid .frm_checkbox,
1314 .frm_grid_first .frm_checkbox,
1315 .frm_grid_odd .frm_checkbox{
1316 display:inline;
1317 }
1318
1319 .frm_grid_2 .frm_radio,
1320 .frm_grid_2 .frm_checkbox,
1321 .frm_grid_2 .frm_primary_label{
1322 width:48% !important;
1323 }
1324
1325 .frm_grid_2 .frm_radio,
1326 .frm_grid_2 .frm_checkbox{
1327 margin-right:4%;
1328 }
1329
1330 .frm_grid_3 .frm_radio,
1331 .frm_grid_3 .frm_checkbox,
1332 .frm_grid_3 .frm_primary_label{
1333 width:30% !important;
1334 }
1335
1336 .frm_grid_3 .frm_radio,
1337 .frm_grid_3 .frm_checkbox{
1338 margin-right:3%;
1339 }
1340
1341 .frm_grid_4 .frm_radio,
1342 .frm_grid_4 .frm_checkbox{
1343 width:20% !important;
1344 }
1345
1346 .frm_grid_4 .frm_primary_label{
1347 width:28% !important;
1348 }
1349
1350 .frm_grid_4 .frm_radio,
1351 .frm_grid_4 .frm_checkbox{
1352 margin-right:4%;
1353 }
1354
1355 .frm_grid_5 .frm_primary_label,
1356 .frm_grid_7 .frm_primary_label{
1357 width:24% !important;
1358 }
1359
1360 .frm_grid_5 .frm_radio,
1361 .frm_grid_5 .frm_checkbox{
1362 width:17% !important;
1363 margin-right:2%;
1364 }
1365
1366 .frm_grid_6 .frm_primary_label{
1367 width:25% !important;
1368 }
1369
1370 .frm_grid_6 .frm_radio,
1371 .frm_grid_6 .frm_checkbox{
1372 width:14% !important;
1373 margin-right:1%;
1374 }
1375
1376 .frm_grid_7 .frm_primary_label{
1377 width:22% !important;
1378 }
1379
1380 .frm_grid_7 .frm_radio,
1381 .frm_grid_7 .frm_checkbox{
1382 width:12% !important;
1383 margin-right:1%;
1384 }
1385
1386 .frm_grid_8 .frm_primary_label{
1387 width:23% !important;
1388 }
1389
1390 .frm_grid_8 .frm_radio,
1391 .frm_grid_8 .frm_checkbox{
1392 width:10% !important;
1393 margin-right:1%;
1394 }
1395
1396 .frm_grid_9 .frm_primary_label{
1397 width:20% !important;
1398 }
1399
1400 .frm_grid_9 .frm_radio,
1401 .frm_grid_9 .frm_checkbox{
1402 width:9% !important;
1403 margin-right:1%;
1404 }
1405
1406 .frm_grid_10 .frm_primary_label{
1407 width:19% !important;
1408 }
1409
1410 .frm_grid_10 .frm_radio,
1411 .frm_grid_10 .frm_checkbox{
1412 width:8% !important;
1413 margin-right:1%;
1414 }
1415
1416 .frm_form_field.frm_inline_container .frm_opt_container,
1417 .frm_form_field.frm_right_container .frm_opt_container,
1418 .frm_form_field.frm_left_container .frm_opt_container{
1419 padding-top:4px;
1420 }
1421
1422 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1423 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1424 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1425 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
1426 .with_frm_style .frm_inline_container.frm_grid .frm_opt_container,
1427 .with_frm_style .frm_inline_container.frm_grid_odd .frm_opt_container{
1428 margin-right:0;
1429 }
1430
1431 .frm_form_field.frm_two_col .frm_opt_container,
1432 .frm_form_field.frm_three_col .frm_opt_container,
1433 .frm_form_field.frm_four_col .frm_opt_container{
1434 display: grid;
1435 grid-template-columns: repeat(2, 1fr);
1436 grid-auto-rows: max-content;
1437 grid-gap: 0 2.5%;
1438 }
1439
1440 .frm_form_field.frm_three_col .frm_opt_container{
1441 grid-template-columns: repeat(3, 1fr);
1442 }
1443
1444 .frm_form_field.frm_four_col .frm_opt_container{
1445 grid-template-columns: repeat(4, 1fr);
1446 }
1447
1448 .frm_form_field.frm_two_col .frm_radio,
1449 .frm_form_field.frm_two_col .frm_checkbox,
1450 .frm_form_field.frm_three_col .frm_radio,
1451 .frm_form_field.frm_three_col .frm_checkbox,
1452 .frm_form_field.frm_four_col .frm_radio,
1453 .frm_form_field.frm_four_col .frm_checkbox{
1454 grid-column-end: span 1;
1455 }
1456
1457 .frm_form_field .frm_checkbox,
1458 .frm_form_field .frm_checkbox + .frm_checkbox,
1459 .frm_form_field .frm_radio,
1460 .frm_form_field .frm_radio + .frm_radio{
1461 margin-top: 0;
1462 margin-bottom: 0;
1463 }
1464
1465 .frm_form_field.frm_scroll_box .frm_opt_container{
1466 height:100px;
1467 overflow:auto;
1468 }
1469
1470 .frm_html_container.frm_scroll_box,
1471 .frm_form_field.frm_html_scroll_box{
1472 height:100px;
1473 overflow:auto;
1474 background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1475 background-color:var(--bg-color);
1476 border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1477 border-color:var(--border-color);
1478 border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
1479 border-width:var(--field-border-width);
1480 border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
1481 border-style:var(--field-border-style);
1482 -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1483 -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1484 border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1485 border-radius:var(--border-radius);
1486 width:<?php echo esc_html( $defaults['field_width'] ); ?>;
1487 width:var(--field-width);
1488 max-width:100%;
1489 font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
1490 font-size:var(--field-font-size);
1491 padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
1492 padding:var(--field-pad);
1493 -webkit-box-sizing:border-box;
1494 -moz-box-sizing:border-box;
1495 box-sizing:border-box;
1496 outline:none<?php echo esc_html( $important ); ?>;
1497 font-weight:normal;
1498 box-shadow:var(--box-shadow);
1499 }
1500
1501 .frm_form_field.frm_total_big input,
1502 .frm_form_field.frm_total_big textarea,
1503 .frm_form_field.frm_total input,
1504 .frm_form_field.frm_total textarea{
1505 opacity:1;
1506 background-color:transparent !important;
1507 border:none !important;
1508 font-weight:bold;
1509 -moz-box-shadow:none;
1510 -webkit-box-shadow:none;
1511 width:auto !important;
1512 height:auto !important;
1513 box-shadow:none !important;
1514 display:inline;
1515 -moz-appearance:textfield;
1516 padding:0;
1517 }
1518
1519 .frm_form_field.frm_total_big input::-webkit-outer-spin-button,
1520 .frm_form_field.frm_total_big input::-webkit-inner-spin-button,
1521 .frm_form_field.frm_total input::-webkit-outer-spin-button,
1522 .frm_form_field.frm_total input::-webkit-inner-spin-button {
1523 -webkit-appearance: none;
1524 }
1525
1526 .frm_form_field.frm_total_big input:focus,
1527 .frm_form_field.frm_total_big textarea:focus,
1528 .frm_form_field.frm_total input:focus,
1529 .frm_form_field.frm_total textarea:focus{
1530 background-color:transparent;
1531 border:none;
1532 -moz-box-shadow:none;
1533 -webkit-box-shadow:none;
1534 box-shadow:none;
1535 }
1536
1537 .frm_form_field.frm_label_justify .frm_primary_label{
1538 text-align:justify !important;
1539 }
1540
1541 .frm_form_field.frm_capitalize input,
1542 .frm_form_field.frm_capitalize select,
1543 .frm_form_field.frm_capitalize .frm_opt_container label{
1544 text-transform:capitalize;
1545 }
1546
1547 .frm_clearfix:after{
1548 content:".";
1549 display:block;
1550 clear:both;
1551 visibility:hidden;
1552 line-height:0;
1553 height:0;
1554 }
1555
1556 .frm_clearfix{
1557 display:block;
1558 }
1559
1560 .with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before {
1561 color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>;
1562 color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1563 }
1564
1565 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1566 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1567 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1568 margin-bottom: 0 !important;
1569 }
1570
1571 /* Fonts */
1572 <?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?>
1573 <?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?>
1574
1575 /* Responsive */
1576
1577 @media only screen and (max-width: 900px) {
1578 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1579 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1580 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1581 display: block !important;
1582 }
1583 }
1584
1585 @media only screen and (max-width: 600px) {
1586 .frm_form_field.frm_four_col .frm_opt_container{
1587 grid-template-columns: repeat(2, 1fr);
1588 }
1589
1590 .with_frm_style .frm_repeat_inline,
1591 .with_frm_style .frm_repeat_grid{
1592 margin: 20px 0;
1593 }
1594 }
1595
1596 @media only screen and (max-width: 500px) {
1597 .frm_form_field.frm_two_col .frm_radio,
1598 .frm_form_field.frm_two_col .frm_checkbox,
1599 .frm_form_field.frm_three_col .frm_radio,
1600 .frm_form_field.frm_three_col .frm_checkbox{
1601 width: auto;
1602 margin-right: 0;
1603 float: none;
1604 display:block;
1605 }
1606
1607 .frm_form_field input[type=file] {
1608 max-width:220px;
1609 }
1610
1611 .with_frm_style .frm-g-recaptcha > div > div,
1612 .with_frm_style .g-recaptcha > div > div{
1613 width:inherit !important;
1614 display:block;
1615 overflow:hidden;
1616 max-width:302px;
1617 border-right:1px solid #d3d3d3;
1618 border-radius:4px;
1619 box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1620 -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1621 }
1622
1623 .with_frm_style .g-recaptcha iframe,
1624 .with_frm_style .frm-g-recaptcha iframe{
1625 width:100%;
1626 }
1627 }
1628 <?php
1629
1630 echo strip_tags( $defaults['custom_css'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1631