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