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

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