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