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

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