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