PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.24
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.24
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 +295 -324 6.5.36.24 View file →
@@ -16,12 +16,14 @@
16 16 if ( ! isset( $frm_style ) ) {
17 17 $frm_style = new FrmStyle();
18 18 }
19 19
20 -$styles = $frm_style->get_all();
21 -$default_style = $frm_style->get_default_style( $styles );
22 -$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
23 -$important = empty( $defaults['important_style'] ) ? '' : ' !important';
20 +$styles = $frm_style->get_all();
21 +$default_style = $frm_style->get_default_style( $styles );
22 +$defaults = FrmStylesHelper::get_settings_for_output( $default_style );
23 +$important = empty( $defaults['important_style'] ) ? '' : ' !important';
24 +$pro_is_installed = FrmAppHelper::pro_is_installed();
25 +$use_chosen_js = FrmStylesHelper::use_chosen_js();
24 26
25 27 ?>
26 28 .with_frm_style{
27 29 <?php FrmStylesHelper::output_vars( $defaults ); ?>
@@ -36,12 +38,12 @@
36 38
37 39 .with_frm_style,
38 40 .with_frm_style form,
39 41 .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 + text-align: var(--form-align)<?php echo esc_html( $important ); ?>;
42 43 }
43 44
45 +/* Keep this. This is used for Honeypot */
44 46 input:-webkit-autofill {
45 47 -webkit-box-shadow: 0 0 0 30px white inset;
46 48 }
47 49
@@ -47,36 +49,24 @@
47 49
48 50 /* Form description */
49 51 .with_frm_style .frm-show-form div.frm_description p{
50 52 <?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 + font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
53 54 <?php } ?>
54 55 <?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 ); ?>;
56 + color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
57 57 <?php } ?>
58 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 ); ?>;
59 + margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>;
61 60 <?php } ?>
62 61 <?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 ); ?>;
62 + margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>;
65 63 <?php } ?>
66 64 <?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 ); ?>;
65 + padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>;
69 66 <?php } ?>
70 67 }
71 68
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 69 .with_frm_style fieldset{
80 70 min-width:0;
81 71 display: block; /* Override 2021 theme */
82 72 }
@@ -89,24 +79,20 @@
89 79 }
90 80
91 81 .with_frm_style .frm_form_fields > fieldset{
92 82 <?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 ); ?>;
83 + border-width: var(--fieldset)<?php echo esc_html( $important ); ?>;
95 84 <?php } ?>
96 85 border-style:solid;
97 86 <?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 ); ?>;
87 + border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>;
100 88 <?php } ?>
101 89 margin:0;
102 90 <?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 ); ?>;
91 + padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>;
105 92 <?php } ?>
106 93 <?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 ); ?>;
94 + background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>;
109 95 <?php } ?>
110 96 <?php if ( ! empty( $defaults['font'] ) ) { ?>
111 97 font-family:var(--font);
112 98 <?php } ?>
@@ -130,26 +116,21 @@
130 116
131 117 .with_frm_style legend + h3,
132 118 .with_frm_style h3.frm_form_title{
133 119 <?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 ); ?>;
120 + font-size: var(--title-size)<?php echo esc_html( $important ); ?>;
136 121 <?php } ?>
137 122 <?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 ); ?>;
123 + color: var(--title-color)<?php echo esc_html( $important ); ?>;
140 124 <?php } ?>
141 125 <?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);
126 + font-family: var(--font);
144 127 <?php } ?>
145 128 <?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 ); ?>;
129 + margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>;
148 130 <?php } ?>
149 131 <?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 ); ?>;
132 + margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>;
152 133 <?php } ?>
153 134 }
154 135
155 136 .with_frm_style .frm_form_field.frm_html_container,
@@ -154,46 +135,42 @@
154 135
155 136 .with_frm_style .frm_form_field.frm_html_container,
156 137 .with_frm_style .frm_form_field .frm_show_it{
157 138 <?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);
139 + font-family: var(--font);
160 140 <?php } ?>
161 141 <?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 ); ?>;
142 + color: var(--form-desc-color)<?php echo esc_html( $important ); ?>;
164 143 <?php } ?>
165 144 }
166 145
167 146 <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
168 147 .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 ); ?>;
148 + font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>;
171 149 }
172 150 <?php } ?>
173 151
174 152 .with_frm_style .frm_form_field .frm_show_it{
175 153 <?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 ); ?>;
154 + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
178 155 <?php } ?>
179 156 <?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 ); ?>;
157 + font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>;
182 158 <?php } ?>
183 159 }
184 160
185 -.with_frm_style .frm_required{
161 +.with_frm_style .frm_required {
186 162 <?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 ); ?>;
163 + color: var(--required-color)<?php echo esc_html( $important ); ?>;
189 164 <?php } ?>
190 165 <?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 ); ?>;
166 + font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>;
193 167 <?php } ?>
194 168 }
195 169
170 +<?php if ( $use_chosen_js ) { ?>
171 +.with_frm_style .chosen-container,
172 +<?php } ?>
196 173 .with_frm_style input[type=text],
197 174 .with_frm_style input[type=password],
198 175 .with_frm_style input[type=email],
199 176 .with_frm_style input[type=number],
@@ -201,14 +178,12 @@
201 178 .with_frm_style input[type=tel],
202 179 .with_frm_style input[type=search],
203 180 .with_frm_style select,
204 181 .with_frm_style textarea,
205 -.with_frm_style .frm-card-element.StripeElement,
206 -.with_frm_style .chosen-container{
182 +.with_frm_style .frm-card-element.StripeElement {
207 183 font-family:var(--font)<?php echo esc_html( $important ); ?>;
208 184 <?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 ); ?>;
185 + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
211 186 <?php } ?>
212 187 margin-bottom:0<?php echo esc_html( $important ); ?>;
213 188 }
214 189
@@ -231,41 +206,33 @@
231 206 .with_frm_style .frm_scroll_box .frm_opt_container,
232 207 .frm_form_fields_active_style,
233 208 .frm_form_fields_error_style,
234 209 .with_frm_style .frm-card-element.StripeElement,
210 +<?php if ( $use_chosen_js ) { ?>
235 211 .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 ); ?>;
212 +.with_frm_style .chosen-container-single .chosen-single,
213 +<?php } ?>
214 +.with_frm_style .frm_slimselect.ss-main {
215 + color: var(--text-color)<?php echo esc_html( $important ); ?>;
216 + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
217 + border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
218 + border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
219 + border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>;
220 + border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>;
221 + width: var(--field-width)<?php echo esc_html( $important ); ?>;
222 + max-width: 100%;
223 + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
224 + padding: var(--field-pad)<?php echo esc_html( $important ); ?>;
225 + box-sizing: border-box;
226 + outline: none<?php echo esc_html( $important ); ?>;
227 + font-weight: var(--field-weight);
265 228 }
266 229
267 -<?php if ( ! empty( $important ) ) { ?>
230 +<?php if ( ! empty( $important ) ) : ?>
231 + <?php if ( $use_chosen_js ) { ?>
232 + .with_frm_style .chosen-container-multi .chosen-choices,
233 + .with_frm_style .chosen-container-single .chosen-single,
234 + <?php } ?>
268 235 .with_frm_style input[type=text],
269 236 .with_frm_style input[type=password],
270 237 .with_frm_style input[type=email],
271 238 .with_frm_style input[type=number],
@@ -277,30 +244,25 @@
277 244 .frm_form_fields_style,
278 245 .with_frm_style .frm_scroll_box .frm_opt_container,
279 246 .frm_form_fields_active_style,
280 247 .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{
248 +.with_frm_style .frm-card-element.StripeElement {
284 249 background-image:none !important;
285 250 }
286 -<?php } ?>
251 +<?php endif; ?>
287 252
288 253 .with_frm_style select option {
289 - color:<?php echo esc_html( $defaults['text_color'] ); ?>;
290 - color:var(--text-color)<?php echo esc_html( $important ); ?>;
254 + color: var(--text-color)<?php echo esc_html( $important ); ?>;
291 255 }
292 256
293 257 .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 ); ?>;
258 + color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
296 259 }
297 260
298 261 .with_frm_style input[type=radio],
299 262 .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 ); ?>;
263 + border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
264 + box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>;
303 265 float: none;
304 266 }
305 267
306 268 .with_frm_style input[type=radio]:after,
@@ -307,8 +269,18 @@
307 269 .with_frm_style input[type=checkbox]:after {
308 270 display: none; /* 2021 conflict */
309 271 }
310 272
273 +.with_frm_style input[type=radio]:not(:checked):focus,
274 +.with_frm_style input[type=checkbox]:not(:checked):focus {
275 + border-color: var(--border-color) !important;
276 +}
277 +
278 +.with_frm_style input[type=radio]:focus,
279 +.with_frm_style input[type=checkbox]:focus {
280 + box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important;
281 +}
282 +
311 283 .with_frm_style input[type=text],
312 284 .with_frm_style input[type=password],
313 285 .with_frm_style input[type=email],
314 286 .with_frm_style input[type=number],
@@ -317,10 +289,9 @@
317 289 .with_frm_style input[type=file],
318 290 .with_frm_style input[type=search],
319 291 .with_frm_style select,
320 292 .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 ); ?>;
293 + min-height: var(--field-height)<?php echo esc_html( $important ); ?>;
323 294 line-height:1.3<?php echo esc_html( $important ); ?>;
324 295 }
325 296
326 297 .with_frm_style select[multiple=multiple]{
@@ -335,17 +306,15 @@
335 306 box-shadow:none;
336 307 }
337 308
338 309 .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;
310 + color: var(--text-color)<?php echo esc_html( $important ); ?>;
311 + padding: 0px;
342 312 <?php if ( ! empty( $defaults['font'] ) ) { ?>
343 - font-family:var(--font)<?php echo esc_html( $important ); ?>;
313 + font-family: var(--font)<?php echo esc_html( $important ); ?>;
344 314 <?php } ?>
345 - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
346 - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
347 - display:initial;
315 + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
316 + display: initial;
348 317 }
349 318
350 319 .with_frm_style input[type=file].frm_transparent{
351 320 color:transparent<?php echo esc_html( $important ); ?>;
@@ -351,10 +320,9 @@
351 320 color:transparent<?php echo esc_html( $important ); ?>;
352 321 }
353 322
354 323 .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 ); ?>;
324 + width: var(--field-width)<?php echo esc_html( $important ); ?>;
357 325 max-width:100%;
358 326 }
359 327
360 328 .with_frm_style .wp-editor-container textarea{
@@ -362,17 +330,15 @@
362 330 box-shadow:none !important;
363 331 }
364 332
365 333 .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 ); ?>;
334 + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
368 335 }
369 336
370 337 .with_frm_style select{
371 - width:<?php echo esc_html( $defaults['auto_width'] ); ?>;
372 - width:var(--auto-width)<?php echo esc_html( $important ); ?>;
338 + width: var(--auto-width)<?php echo esc_html( $important ); ?>;
373 339 max-width:100%;
374 - background-position-y: center;
340 + background-position-y: calc(50% + 3px);
375 341 }
376 342
377 343 .with_frm_style input[disabled],
378 344 .with_frm_style select[disabled],
@@ -378,15 +344,12 @@
378 344 .with_frm_style select[disabled],
379 345 .with_frm_style textarea[disabled],
380 346 .with_frm_style input[readonly],
381 347 .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 ); ?>;
348 +.with_frm_style textarea[readonly] {
349 + background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
350 + color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
351 + border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
389 352 }
390 353
391 354 .frm_preview_page:before{
392 355 content:normal !important;
@@ -398,30 +361,24 @@
398 361
399 362 .with_frm_style .frm_primary_label{
400 363 max-width:100%;
401 364 <?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);
365 + font-family: var(--font);
404 366 <?php } ?>
405 367 <?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 ); ?>;
368 + font-size: var(--font-size)<?php echo esc_html( $important ); ?>;
408 369 <?php } ?>
409 370 <?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 ); ?>;
371 + color: var(--label-color)<?php echo esc_html( $important ); ?>;
412 372 <?php } ?>
413 373 <?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 ); ?>;
374 + font-weight: var(--weight)<?php echo esc_html( $important ); ?>;
416 375 <?php } ?>
417 376 <?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 ); ?>;
377 + text-align: var(--align)<?php echo esc_html( $important ); ?>;
420 378 <?php } ?>
421 379 <?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 ); ?>;
380 + padding: var(--label-padding)<?php echo esc_html( $important ); ?>;
424 381 <?php } ?>
425 382 margin:0;
426 383 width:auto;
427 384 display:block;
@@ -474,9 +431,9 @@
474 431
475 432 /* Floating labels */
476 433 .with_frm_style .frm_inside_container {
477 434 position: relative;
478 - padding-top: 16px;
435 + padding-top: 18px;
479 436 padding-top: calc(0.5 * var(--field-height));
480 437 }
481 438
482 439 .with_frm_style .frm_inside_container > input,
@@ -485,8 +442,13 @@
485 442 display: block;
486 443 }
487 444
488 445 /* These do not work if they are combined */
446 +.with_frm_style input::placeholder,
447 +.with_frm_style textarea::placeholder {
448 + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
449 +}
450 +
489 451 .with_frm_style .frm_inside_container > input::-moz-placeholder,
490 452 .with_frm_style .frm_inside_container > textarea::-moz-placeholder {
491 453 opacity: 0 !important;
492 454 transition: opacity 0.3s ease-in;
@@ -507,9 +469,9 @@
507 469 .with_frm_style .frm_inside_container > label {
508 470 transition: all 0.3s ease-in;
509 471
510 472 position: absolute;
511 - top: 17px;
473 + top: 19px;
512 474 top: calc(1px + .5 * var(--field-height));
513 475 left: 3px;
514 476 width: 100%;
515 477
@@ -517,9 +479,9 @@
517 479 text-overflow: ellipsis;
518 480 overflow: hidden;
519 481 white-space: nowrap;
520 482
521 - padding: 6px 10px;
483 + padding: 8px 12px;
522 484 padding: var(--field-pad);
523 485
524 486 font-size: 14px;
525 487 font-size: var(--field-font-size);
@@ -525,9 +487,8 @@
525 487 font-size: var(--field-font-size);
526 488 font-weight: normal;
527 489 font-weight: var(--field-weight);
528 490
529 - -ms-pointer-events: none;
530 491 pointer-events: none;
531 492 }
532 493
533 494 .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
@@ -611,50 +572,39 @@
611 572 text-decoration:none !important;;
612 573 border:1px solid #eee;
613 574 display:inline-block;
614 575 <?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 ); ?>;
576 + padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
617 577 <?php } else { ?>
618 578 padding:5px;
619 579 <?php } ?>
620 580 <?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 581 border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
624 582 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
625 583 <?php } ?>
626 584 <?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 ); ?>;
585 + font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
629 586 <?php } ?>
630 587 <?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 ); ?>;
588 + font-family: var(--font)<?php echo esc_html( $important ); ?>;
633 589 <?php } ?>
634 590 <?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 ); ?>;
591 + font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
637 592 <?php } ?>
638 593 <?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 ); ?>;
594 + color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
641 595 <?php } ?>
642 596 <?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 ); ?>;
597 + background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
645 598 <?php } ?>
646 599 <?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 ); ?>;
600 + border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
649 601 <?php } ?>
650 602 <?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 ); ?>;
603 + border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
653 604 <?php } ?>
654 605 <?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 ); ?>;
606 + height: var(--submit-height)<?php echo esc_html( $important ); ?>;
657 607 <?php } ?>
658 608 }
659 609
660 610 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
@@ -687,8 +637,12 @@
687 637 .with_frm_style.frm_center_submit .frm_submit{
688 638 text-align:center;
689 639 }
690 640
641 +.with_frm_style.frm_center_submit .frm_flex.frm_submit {
642 + justify-content: center;
643 +}
644 +
691 645 .with_frm_style .frm_inline_success .frm_submit{
692 646 display: flex;
693 647 flex-direction: row;
694 648 align-items: center;
@@ -732,9 +686,8 @@
732 686
733 687 .with_frm_style .frm_loading_prev .frm_prev_page,
734 688 .with_frm_style .frm_loading_form .frm_button_submit {
735 689 position: relative;
736 - opacity: .8;
737 690 color: transparent !important;
738 691 text-shadow: none !important;
739 692 }
740 693
@@ -760,9 +713,9 @@
760 713 border-top-color: transparent;
761 714 border-left-color: transparent;
762 715 border-radius: 50%;
763 716 box-sizing: border-box;
764 - <?php $loader_size = 20; ?>
717 + <?php $loader_size = 12; ?>
765 718 top: 50%;
766 719 left: 50%;
767 720 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
768 721 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -767,17 +720,23 @@
767 720 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
768 721 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
769 722 width: <?php echo absint( $loader_size ); ?>px;
770 723 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;
724 + animation: spin 2s linear infinite;
775 725 }
776 726
727 +.with_frm_style .frm_submit.frm_flex {
728 + align-items: center;
729 + gap: 2%;
730 +}
731 +
732 +.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
733 + order: -1;
734 +}
735 +
777 736 <?php
778 737 foreach ( $styles as $style ) {
779 - include( dirname( __FILE__ ) . '/_single_theme.css.php' );
738 + include __DIR__ . '/_single_theme.css.php';
780 739 unset( $style );
781 740 }
782 741
783 742 // Set it again since it may have been overridden.
@@ -799,15 +758,12 @@
799 758
800 759 .with_frm_style a.frm_save_draft,
801 760 .with_frm_style a.frm_start_over{
802 761 <?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);
762 + font-family: var(--font);
805 763 <?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);
764 + font-size: var(--submit-font-size);
765 + font-weight: var(--submit-weight);
810 766 }
811 767
812 768 .horizontal_radio .frm_radio{
813 769 margin:0 5px 0 0;
@@ -814,9 +770,9 @@
814 770 }
815 771
816 772 .horizontal_radio .frm_checkbox{
817 773 margin:0;
818 - margin-right:5px;
774 + margin-right:12px;
819 775 }
820 776
821 777 .vertical_radio .frm_checkbox,
822 778 .vertical_radio .frm_radio,
@@ -831,15 +787,13 @@
831 787 padding-left: 0;
832 788 }
833 789
834 790 .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 ); ?>;
791 + display: var(--radio-align)<?php echo esc_html( $important ); ?>;
837 792 }
838 793
839 794 .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 ); ?>;
795 + display: var(--check-align)<?php echo esc_html( $important ); ?>;
842 796 }
843 797
844 798 .with_frm_style .vertical_radio .frm_checkbox,
845 799 .with_frm_style .vertical_radio .frm_radio,
@@ -844,8 +798,9 @@
844 798 .with_frm_style .vertical_radio .frm_checkbox,
845 799 .with_frm_style .vertical_radio .frm_radio,
846 800 .vertical_radio .frm_catlevel_1{
847 801 display:block<?php echo esc_html( $important ); ?>;
802 + margin-bottom: 10px;
848 803 }
849 804
850 805 .with_frm_style .horizontal_radio .frm_checkbox,
851 806 .with_frm_style .horizontal_radio .frm_radio,
@@ -853,40 +808,45 @@
853 808 display:inline-block<?php echo esc_html( $important ); ?>;
854 809 }
855 810
856 811 .with_frm_style .frm_checkbox label,
857 -.with_frm_style .frm_radio label{
858 - display: inline;
812 +.with_frm_style .frm_radio label {
813 + display: inline-block;
814 + vertical-align: middle;
859 815 white-space:normal;
860 816 }
861 817
818 +.with_frm_style .frm_checkbox label input[type=checkbox],
819 +.with_frm_style .frm_radio label input[type=radio] {
820 + margin-right: 4px;
821 +}
822 +
823 +.with_frm_style .frm_checkbox label:not(.frm-label-disabled),
824 +.with_frm_style .frm_radio label:not(.frm-label-disabled) {
825 + cursor: pointer;
826 +}
827 +
862 828 .with_frm_style .vertical_radio .frm_checkbox label,
863 829 .with_frm_style .vertical_radio .frm_radio label{
864 830 display: block;
865 - padding-left: 20px;
866 - text-indent: -20px;
831 + width: 100%;
867 832 }
868 833
869 834 .with_frm_style .frm_radio label,
870 -.with_frm_style .frm_checkbox label{
835 +.with_frm_style .frm_checkbox label {
871 836 <?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);
837 + font-family: var(--font);
874 838 <?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 ); ?>;
839 + font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
840 + color: var(--check-label-color)<?php echo esc_html( $important ); ?>;
841 + font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>;
881 842 line-height: 1.3;
882 843 }
883 844
884 845 .with_frm_style .frm_radio input[type=radio],
885 846 .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 ); ?>;
847 + font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>;
848 + position: static<?php echo esc_html( $important ); ?>;
889 849 }
890 850
891 851 .frm_file_container .frm_file_link,
892 852 .with_frm_style .frm_radio label .frm_file_container,
@@ -896,9 +856,9 @@
896 856 vertical-align:middle;
897 857 }
898 858
899 859 .with_frm_style .frm_radio input[type=radio]
900 -<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
860 +<?php if ( $pro_is_installed ) : ?>
901 861 , .with_frm_style .frm_scale input[type=radio]
902 862 <?php endif; ?>
903 863 {
904 864 border-radius:50%;
@@ -903,62 +863,96 @@
903 863 {
904 864 border-radius:50%;
905 865 }
906 866
907 -.with_frm_style .frm_checkbox input[type=checkbox]{
908 - border-radius:0;
867 +.with_frm_style .frm_checkbox input[type=checkbox] {
868 + border-radius: calc(var(--border-radius) / 2) !important;
909 869 }
910 870
911 871 .with_frm_style .frm_radio input[type=radio],
912 -<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
872 +<?php if ( $pro_is_installed ) : ?>
913 873 .with_frm_style .frm_scale input[type=radio],
914 874 <?php endif; ?>
915 875 .with_frm_style .frm_checkbox input[type=checkbox]{
916 - -webkit-appearance: none;
917 876 appearance: none;
918 877 background-color: var(--bg-color);
919 878 flex: none;
920 879 display:inline-block !important;
921 - margin: 0 5px 0 0;
880 + width: 16px !important;
881 + min-width: 16px !important;
882 + height: 16px !important;
922 883 color: var(--border-color);
923 - width: 18px;
924 - min-width: 18px;
925 - height: 18px;
926 884 border: 1px solid currentColor;
927 885 border-color: var(--border-color);
928 886 vertical-align: middle;
929 887 position: initial; /* override Bootstrap */
930 888 padding: 0;
889 + margin: 0;
931 890 }
932 891
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,
892 +.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked,
893 +<?php if ( $pro_is_installed ) : ?>
894 +.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked,
936 895 <?php endif; ?>
937 -.with_frm_style .frm_checkbox input[type=checkbox]:before {
896 +.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
897 + border-color: var(--border-color-active) !important;
898 +}
899 +
900 +.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
901 + background-color: var(--border-color-active) !important;
902 +}
903 +
904 +.with_frm_style .frm_radio input[type=radio][disabled]:checked,
905 +<?php if ( $pro_is_installed ) : ?>
906 +.with_frm_style .frm_scale input[type=radio][disabled]:checked,
907 +<?php endif; ?>
908 +.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
909 + border-color: var(--border-color) !important; /* Override Style Preview */
910 +}
911 +
912 +.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked {
913 + background-color: var(--border-color) !important;
914 +}
915 +
916 +.with_frm_style .frm_radio input[type=radio]:checked:before,
917 +<?php if ( $pro_is_installed ) { ?>
918 +.with_frm_style .frm_scale input[type=radio]:checked:before,
919 +<?php } ?>
920 +.with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
921 + position: static !important; /* Override Style Preview */
938 922 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 923 display: block;
946 - margin: 2px 0 0 2px;
947 924 }
948 925
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;
926 +.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before {
927 + width: 100% !important;
928 + height: 100% !important;
929 + background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6667 1.5L4.25001 7.91667L1.33334 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") !important;
930 + background-size: 9px !important;
931 + background-repeat: no-repeat !important;
932 + background-position: center !important;
933 + margin: 0;
952 934 }
953 935
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);
936 +<?php if ( $pro_is_installed ) { ?>
937 +.with_frm_style .frm_scale input[type=radio]:before,
938 +<?php } ?>
939 +.with_frm_style .frm_radio input[type=radio]:before {
940 + width: 8px;
941 + height: 8px;
942 + border-radius: 50%;
943 + background-color: var(--border-color-active);
944 + margin: 3px;
957 945 }
958 946
947 +<?php if ( $pro_is_installed ) { ?>
948 +.with_frm_style .frm_scale input[type=radio][disabled]:before,
949 +<?php } ?>
950 +.with_frm_style .frm_radio input[type=radio][disabled]:before {
951 + background-color: var(--border-color);
952 +}
953 +
959 954 .with_frm_style :invalid,
960 -.with_frm_style :-moz-submit-invalid,
961 955 .with_frm_style :-moz-ui-invalid{
962 956 box-shadow:none;
963 957 }
964 958
@@ -974,33 +968,29 @@
974 968
975 969 .with_frm_style .frm_error_style,
976 970 .with_frm_style .frm_message,
977 971 .frm_success_style{
978 - -moz-border-radius:4px;
979 - -webkit-border-radius:4px;
980 972 border-radius:4px;
981 973 padding:15px;
982 974 }
983 975
984 -.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 ); ?>;
976 +.with_frm_style .frm_message p {
977 + color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
978 + margin-bottom: 0;
988 979 }
989 980
981 +.with_frm_style .frm_message > p:first-of-type {
982 + margin-top: 0;
983 +}
984 +
990 985 .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 ); ?>;
986 +.frm_success_style {
987 + margin: 5px 0 15px;
988 + border: 1px solid var(--success-border-color);
989 + background-color: var(--success-bg-color);
990 + color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
991 + border-radius: var(--border-radius);
992 + font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>;
1003 993 }
1004 994
1005 995 .with_frm_style .frm_plain_success .frm_message {
1006 996 background-color: transparent;
@@ -1036,10 +1026,9 @@
1036 1026 padding:5px;
1037 1027 border-width:1px;
1038 1028 border-style:solid;
1039 1029 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1040 - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1041 - border-color:var(--border-color);
1030 + border-color: var(--border-color);
1042 1031 <?php } ?>
1043 1032 border-top:none;
1044 1033 border-left:none;
1045 1034 border-right:none;
@@ -1054,10 +1043,9 @@
1054 1043 }
1055 1044
1056 1045 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1057 1046 .with_frm_style .frm-alt-table{
1058 - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1059 - border-color:var(--border-color);
1047 + border-color: var(--border-color);
1060 1048 }
1061 1049 <?php } ?>
1062 1050
1063 1051 .frm-alt-table th {
@@ -1081,11 +1069,11 @@
1081 1069 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1082 1070 }
1083 1071
1084 1072 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 ); ?>;
1073 + border-style: solid;
1074 + border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1075 + border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1088 1076 }
1089 1077
1090 1078 table.form_results.with_frm_style tr td{
1091 1079 text-align:left;
@@ -1090,15 +1078,14 @@
1090 1078 table.form_results.with_frm_style tr td{
1091 1079 text-align:left;
1092 1080 padding:7px 9px;
1093 1081 <?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 ); ?>;
1082 + color: var(--text-color)<?php echo esc_html( $important ); ?>;
1096 1083 <?php } ?>
1097 1084 <?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 ); ?>;
1085 + border-top-style: solid;
1086 + border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>;
1087 + border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1101 1088 <?php } ?>
1102 1089 }
1103 1090
1104 1091 table.form_results.with_frm_style tr.frm_even,
@@ -1108,11 +1095,10 @@
1108 1095 }
1109 1096
1110 1097 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1111 1098 table.form_results.with_frm_style tr.frm_odd,
1112 -.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 ); ?>;
1099 +.frm-grid .frm_odd {
1100 + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
1115 1101 }
1116 1102 <?php } ?>
1117 1103
1118 1104 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
@@ -1194,26 +1180,25 @@
1194 1180 animation:2s linear 0s normal none infinite progress-bar-stripes;
1195 1181 }
1196 1182
1197 1183 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1198 -#frm_loading .progress-striped .progress-bar{
1184 +#frm_loading .progress-striped .progress-bar {
1199 1185 <?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));
1186 + background-image: linear-gradient(45deg, var(--border-color) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, var(--border-color) 50%, var(--border-color) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
1201 1187 <?php } ?>
1202 1188 background-size:40px 40px;
1203 1189 }
1204 1190 <?php } ?>
1205 1191
1206 -#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%;
1192 +#frm_loading .progress-bar {
1193 + background-color: var(--bg-color);
1194 + box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1195 + float: left;
1196 + height: 100%;
1197 + line-height: 20px;
1198 + text-align: center;
1199 + transition: width 0.6s ease 0s;
1200 + width: 100%;
1216 1201 }
1217 1202
1218 1203 .frm_image_from_url{
1219 1204 height:50px;
@@ -1230,9 +1215,9 @@
1230 1215 background-repeat: no-repeat;
1231 1216 color: transparent !important;
1232 1217 }
1233 1218
1234 -<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1219 +<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
1235 1220
1236 1221 .frm_conf_field.frm_left_container .frm_primary_label{
1237 1222 display:none;
1238 1223 }
@@ -1239,10 +1224,8 @@
1239 1224
1240 1225 .wp-editor-wrap *,
1241 1226 .wp-editor-wrap *:after,
1242 1227 .wp-editor-wrap *:before{
1243 - -webkit-box-sizing:content-box;
1244 - -moz-box-sizing:content-box;
1245 1228 box-sizing:content-box;
1246 1229 }
1247 1230
1248 1231 .with_frm_style .frm_grid,
@@ -1253,10 +1236,9 @@
1253 1236 padding:5px;
1254 1237 border-width:1px;
1255 1238 border-style:solid;
1256 1239 <?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 ); ?>;
1240 + border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1259 1241 <?php } ?>
1260 1242 border-left:none;
1261 1243 border-right:none;
1262 1244 }
@@ -1291,18 +1273,16 @@
1291 1273 }
1292 1274
1293 1275 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1294 1276 .frm_grid_first,
1295 -.frm_grid_odd{
1296 - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1297 - background-color:var(--bg-color);
1277 +.frm_grid_odd {
1278 + background-color: var(--bg-color);
1298 1279 }
1299 1280 <?php } ?>
1300 1281
1301 1282 <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1302 -.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 ); ?>;
1283 +.frm_grid {
1284 + background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>;
1305 1285 }
1306 1286 <?php } ?>
1307 1287
1308 1288 .with_frm_style .frm_grid.frm_blank_field,
@@ -1307,12 +1287,10 @@
1307 1287
1308 1288 .with_frm_style .frm_grid.frm_blank_field,
1309 1289 .with_frm_style .frm_grid_first.frm_blank_field,
1310 1290 .with_frm_style .frm_grid_odd.frm_blank_field{
1311 - background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1312 1291 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);
1292 + border-color: var(--error-border);
1315 1293 }
1316 1294
1317 1295 .frm_grid .frm_primary_label,
1318 1296 .frm_grid_first .frm_primary_label,
@@ -1334,9 +1312,10 @@
1334 1312 .frm_grid_odd .frm_radio label,
1335 1313 .frm_grid_first .frm_checkbox label,
1336 1314 .frm_grid .frm_checkbox label,
1337 1315 .frm_grid_odd .frm_checkbox label{
1338 - visibility:hidden;
1316 + color:transparent;
1317 + text-indent: -9999px;
1339 1318 white-space:nowrap;
1340 1319 text-align:left;
1341 1320 }
1342 1321
@@ -1462,8 +1441,18 @@
1462 1441 .frm_form_field.frm_left_container .frm_opt_container{
1463 1442 padding-top:4px;
1464 1443 }
1465 1444
1445 +.with_frm_style .frm_left_container > select.auto_width,
1446 +.with_frm_style .frm_right_container > select.auto_width {
1447 + width: max-content<?php echo esc_html( $important ); ?>;
1448 +}
1449 +
1450 +.with_frm_style .frm_right_container > .frm_primary_label,
1451 +.with_frm_style .frm_right_container > select.auto_width {
1452 + margin-left: auto<?php echo esc_html( $important ); ?>;
1453 +}
1454 +
1466 1455 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1467 1456 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1468 1457 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1469 1458 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1498,11 +1487,9 @@
1498 1487 grid-column-end: span 1;
1499 1488 }
1500 1489
1501 1490 .frm_form_field .frm_checkbox,
1502 -.frm_form_field .frm_checkbox + .frm_checkbox,
1503 -.frm_form_field .frm_radio,
1504 -.frm_form_field .frm_radio + .frm_radio{
1491 +.frm_form_field .frm_radio {
1505 1492 margin-top: 0;
1506 1493 margin-bottom: 0;
1507 1494 }
1508 1495
@@ -1511,36 +1498,24 @@
1511 1498 overflow:auto;
1512 1499 }
1513 1500
1514 1501 .frm_html_container.frm_scroll_box,
1515 -.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);
1502 +.frm_form_field.frm_html_scroll_box {
1503 + height: 100px;
1504 + overflow: auto;
1505 + background-color: var(--bg-color);
1506 + border-color: var(--border-color);
1507 + border-width: var(--field-border-width);
1508 + border-style: var(--field-border-style);
1509 + border-radius: var(--border-radius);
1510 + width: var(--field-width);
1511 + max-width: 100%;
1512 + font-size: var(--field-font-size);
1513 + padding: var(--field-pad);
1514 + box-sizing: border-box;
1515 + outline: none<?php echo esc_html( $important ); ?>;
1516 + font-weight: normal;
1517 + box-shadow: var(--box-shadow);
1543 1518 }
1544 1519
1545 1520 .frm_form_field.frm_total_big input,
1546 1521 .frm_form_field.frm_total_big textarea,
@@ -1549,10 +1524,8 @@
1549 1524 opacity:1;
1550 1525 background-color:transparent !important;
1551 1526 border:none !important;
1552 1527 font-weight:bold;
1553 - -moz-box-shadow:none;
1554 - -webkit-box-shadow:none;
1555 1528 width:auto !important;
1556 1529 height:auto !important;
1557 1530 box-shadow:none !important;
1558 1531 display:inline;
@@ -1572,10 +1545,8 @@
1572 1545 .frm_form_field.frm_total input:focus,
1573 1546 .frm_form_field.frm_total textarea:focus{
1574 1547 background-color:transparent;
1575 1548 border:none;
1576 - -moz-box-shadow:none;
1577 - -webkit-box-shadow:none;
1578 1549 box-shadow:none;
1579 1550 }
1580 1551
1581 1552 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1600,13 +1571,8 @@
1600 1571 .frm_clearfix{
1601 1572 display:block;
1602 1573 }
1603 1574
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 ); ?>;
1607 -}
1608 -
1609 1575 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1610 1576 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1611 1577 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1612 1578 margin-bottom: 0 !important;
@@ -1611,11 +1577,10 @@
1611 1577 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1612 1578 margin-bottom: 0 !important;
1613 1579 }
1614 1580
1581 +
1615 1582 <?php
1616 -FrmStylesHelper::maybe_include_font_icon_css();
1617 -
1618 1583 /**
1619 1584 * Call action so other plugins can add additional CSS.
1620 1585 *
1621 1586 * @param array $args {
@@ -1669,9 +1634,8 @@
1669 1634 max-width:302px;
1670 1635 border-right:1px solid #d3d3d3;
1671 1636 border-radius:4px;
1672 1637 box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1673 - -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1674 1638 }
1675 1639
1676 1640 .with_frm_style .g-recaptcha iframe,
1677 1641 .with_frm_style .frm-g-recaptcha iframe{
@@ -1676,8 +1640,15 @@
1676 1640 .with_frm_style .g-recaptcha iframe,
1677 1641 .with_frm_style .frm-g-recaptcha iframe{
1678 1642 width:100%;
1679 1643 }
1644 +}
1645 +
1646 +.frm-card-element .sq-card-wrapper .sq-card-message {
1647 + margin-bottom: 0;
1648 +}
1649 +.frm-card-errors:empty {
1650 + margin: 0;
1680 1651 }
1681 1652 <?php
1682 1653
1683 1654 echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped