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