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

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