PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
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 +358 -335 6.286.8 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( $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,43 @@
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 +.with_frm_style .frm_slimselect.ss-main {
238 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
239 + color:var(--text-color)<?php echo esc_html( $important ); ?>;
240 + background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
241 + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
242 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
243 + border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
244 + border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
245 + border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
246 + border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
247 + border-style:var(--field-border-style)<?php echo esc_html( $important ); ?>;
248 + -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
249 + -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
250 + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
251 + border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
252 + width:<?php echo esc_html( $defaults['field_width'] ); ?>;
253 + width:var(--field-width)<?php echo esc_html( $important ); ?>;
254 + max-width:100%;
255 + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
256 + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
257 + padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
258 + padding:var(--field-pad)<?php echo esc_html( $important ); ?>;
259 + -webkit-box-sizing:border-box;
260 + -moz-box-sizing:border-box;
261 + box-sizing:border-box;
262 + outline:none<?php echo esc_html( $important ); ?>;
263 + font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>;
264 + font-weight:var(--field-weight);
265 + box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
229 266 }
230 267
231 -<?php if ( ! empty( $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 } ?>
268 +<?php if ( ! empty( $important ) ) { ?>
236 269 .with_frm_style input[type=text],
237 270 .with_frm_style input[type=password],
238 271 .with_frm_style input[type=email],
239 272 .with_frm_style input[type=number],
@@ -245,25 +278,30 @@
245 278 .frm_form_fields_style,
246 279 .with_frm_style .frm_scroll_box .frm_opt_container,
247 280 .frm_form_fields_active_style,
248 281 .frm_form_fields_error_style,
249 -.with_frm_style .frm-card-element.StripeElement {
282 +.with_frm_style .frm-card-element.StripeElement,
283 +.with_frm_style .chosen-container-multi .chosen-choices,
284 +.with_frm_style .chosen-container-single .chosen-single{
250 285 background-image:none !important;
251 286 }
252 -<?php endif; ?>
287 +<?php } ?>
253 288
254 289 .with_frm_style select option {
255 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
290 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
291 + color:var(--text-color)<?php echo esc_html( $important ); ?>;
256 292 }
257 293
258 294 .with_frm_style select option.frm-select-placeholder {
259 - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
295 + color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>;
296 + color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
260 297 }
261 298
262 299 .with_frm_style input[type=radio],
263 300 .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 ); ?>;
301 + border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>;
302 + border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
303 + box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>;
266 304 float: none;
267 305 }
268 306
269 307 .with_frm_style input[type=radio]:after,
@@ -270,18 +308,8 @@
270 308 .with_frm_style input[type=checkbox]:after {
271 309 display: none; /* 2021 conflict */
272 310 }
273 311
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 312 .with_frm_style input[type=text],
285 313 .with_frm_style input[type=password],
286 314 .with_frm_style input[type=email],
287 315 .with_frm_style input[type=number],
@@ -290,9 +318,10 @@
290 318 .with_frm_style input[type=file],
291 319 .with_frm_style input[type=search],
292 320 .with_frm_style select,
293 321 .with_frm_style .frm-card-element.StripeElement{
294 - min-height: var(--field-height)<?php echo esc_html( $important ); ?>;
322 + min-height:<?php echo esc_html( $defaults['field_height'] ); ?>;
323 + min-height:var(--field-height)<?php echo esc_html( $important ); ?>;
295 324 line-height:1.3<?php echo esc_html( $important ); ?>;
296 325 }
297 326
298 327 .with_frm_style select[multiple=multiple]{
@@ -307,15 +336,17 @@
307 336 box-shadow:none;
308 337 }
309 338
310 339 .with_frm_style input[type=file]{
311 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
312 - padding: 0px;
340 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
341 + color:var(--text-color)<?php echo esc_html( $important ); ?>;
342 + padding:0px;
313 343 <?php if ( ! empty( $defaults['font'] ) ) { ?>
314 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
344 + font-family:var(--font)<?php echo esc_html( $important ); ?>;
315 345 <?php } ?>
316 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
317 - display: initial;
346 + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
347 + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>;
348 + display:initial;
318 349 }
319 350
320 351 .with_frm_style input[type=file].frm_transparent{
321 352 color:transparent<?php echo esc_html( $important ); ?>;
@@ -320,11 +351,11 @@
320 351 .with_frm_style input[type=file].frm_transparent{
321 352 color:transparent<?php echo esc_html( $important ); ?>;
322 353 }
323 354
324 -<?php if ( $pro_is_installed ) { ?>
325 355 .with_frm_style .wp-editor-wrap{
326 - width: var(--field-width)<?php echo esc_html( $important ); ?>;
356 + width:<?php echo esc_html( $defaults['field_width'] . $important ); ?>;
357 + width:var(--field-width)<?php echo esc_html( $important ); ?>;
327 358 max-width:100%;
328 359 }
329 360
330 361 .with_frm_style .wp-editor-container textarea{
@@ -332,14 +363,15 @@
332 363 box-shadow:none !important;
333 364 }
334 365
335 366 .with_frm_style .mceIframeContainer{
336 - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>;
367 + background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>;
368 + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
337 369 }
338 -<?php } ?>
339 370
340 371 .with_frm_style select{
341 - width: var(--auto-width)<?php echo esc_html( $important ); ?>;
372 + width:<?php echo esc_html( $defaults['auto_width'] ); ?>;
373 + width:var(--auto-width)<?php echo esc_html( $important ); ?>;
342 374 max-width:100%;
343 375 background-position-y: calc(50% + 3px);
344 376 }
345 377
@@ -347,12 +379,15 @@
347 379 .with_frm_style select[disabled],
348 380 .with_frm_style textarea[disabled],
349 381 .with_frm_style input[readonly],
350 382 .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 ); ?>;
383 +.with_frm_style textarea[readonly]{
384 + background-color:<?php echo esc_html( $defaults['bg_color_disabled'] ); ?>;
385 + background-color:var(--bg-color-disabled)<?php echo esc_html( $important ); ?>;
386 + color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>;
387 + color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
388 + border-color:<?php echo esc_html( $defaults['border_color_disabled'] ); ?>;
389 + border-color:var(--border-color-disabled)<?php echo esc_html( $important ); ?>;
355 390 }
356 391
357 392 .frm_preview_page:before{
358 393 content:normal !important;
@@ -364,24 +399,30 @@
364 399
365 400 .with_frm_style .frm_primary_label{
366 401 max-width:100%;
367 402 <?php if ( ! empty( $defaults['font'] ) ) { ?>
368 - font-family: var(--font);
403 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
404 + font-family:var(--font);
369 405 <?php } ?>
370 406 <?php if ( ! empty( $defaults['font_size'] ) ) { ?>
371 - font-size: var(--font-size)<?php echo esc_html( $important ); ?>;
407 + font-size:<?php echo esc_html( $defaults['font_size'] . $important ); ?>;
408 + font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
372 409 <?php } ?>
373 410 <?php if ( ! empty( $defaults['label_color'] ) ) { ?>
374 - color: var(--label-color)<?php echo esc_html( $important ); ?>;
411 + color:<?php echo esc_html( $defaults['label_color'] . $important ); ?>;
412 + color:var(--label-color)<?php echo esc_html( $important ); ?>;
375 413 <?php } ?>
376 414 <?php if ( ! empty( $defaults['weight'] ) ) { ?>
377 - font-weight: var(--weight)<?php echo esc_html( $important ); ?>;
415 + font-weight:<?php echo esc_html( $defaults['weight'] . $important ); ?>;
416 + font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
378 417 <?php } ?>
379 418 <?php if ( ! empty( $defaults['align'] ) ) { ?>
380 - text-align: var(--align)<?php echo esc_html( $important ); ?>;
419 + text-align:<?php echo esc_html( $defaults['align'] . $important ); ?>;
420 + text-align:var(--align)<?php echo esc_html( $important ); ?>;
381 421 <?php } ?>
382 422 <?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
383 - padding: var(--label-padding)<?php echo esc_html( $important ); ?>;
423 + padding:<?php echo esc_html( $defaults['label_padding'] . $important ); ?>;
424 + padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
384 425 <?php } ?>
385 426 margin:0;
386 427 width:auto;
387 428 display:block;
@@ -416,13 +457,11 @@
416 457 .frm_none_container .frm_primary_label{
417 458 display:none;
418 459 }
419 460
420 -<?php if ( $pro_is_installed ) { ?>
421 461 .with_frm_style .frm_section_heading.frm_hide_section{
422 462 margin-top:0 !important;
423 463 }
424 -<?php } ?>
425 464
426 465 .with_frm_style .frm_hidden_container .frm_primary_label,
427 466 .with_frm_style .frm_pos_hidden,
428 467 .frm_hidden_container .frm_primary_label{
@@ -436,9 +475,9 @@
436 475
437 476 /* Floating labels */
438 477 .with_frm_style .frm_inside_container {
439 478 position: relative;
440 - padding-top: 18px;
479 + padding-top: 16px;
441 480 padding-top: calc(0.5 * var(--field-height));
442 481 }
443 482
444 483 .with_frm_style .frm_inside_container > input,
@@ -446,13 +485,21 @@
446 485 .with_frm_style .frm_inside_container > textarea {
447 486 display: block;
448 487 }
449 488
450 -.with_frm_style input::placeholder,
451 -.with_frm_style textarea::placeholder {
452 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
489 +/* These do not work if they are combined */
490 +.with_frm_style .frm_inside_container > input::-moz-placeholder,
491 +.with_frm_style .frm_inside_container > textarea::-moz-placeholder {
492 + opacity: 0 !important;
493 + transition: opacity 0.3s ease-in;
453 494 }
454 495
496 +.with_frm_style .frm_inside_container > input:-ms-input-placeholder,
497 +.with_frm_style .frm_inside_container > textarea:-ms-input-placeholder {
498 + opacity: 0;
499 + transition: opacity 0.3s ease-in;
500 +}
501 +
455 502 .with_frm_style .frm_inside_container > input::placeholder,
456 503 .with_frm_style .frm_inside_container > textarea::placeholder {
457 504 opacity: 0;
458 505 transition: opacity 0.3s ease-in;
@@ -461,9 +508,9 @@
461 508 .with_frm_style .frm_inside_container > label {
462 509 transition: all 0.3s ease-in;
463 510
464 511 position: absolute;
465 - top: 19px;
512 + top: 17px;
466 513 top: calc(1px + .5 * var(--field-height));
467 514 left: 3px;
468 515 width: 100%;
469 516
@@ -471,9 +518,9 @@
471 518 text-overflow: ellipsis;
472 519 overflow: hidden;
473 520 white-space: nowrap;
474 521
475 - padding: 8px 12px;
522 + padding: 6px 10px;
476 523 padding: var(--field-pad);
477 524
478 525 font-size: 14px;
479 526 font-size: var(--field-font-size);
@@ -479,8 +526,9 @@
479 526 font-size: var(--field-font-size);
480 527 font-weight: normal;
481 528 font-weight: var(--field-weight);
482 529
530 + -ms-pointer-events: none;
483 531 pointer-events: none;
484 532 }
485 533
486 534 .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
@@ -494,8 +542,21 @@
494 542 font-size: 12px;
495 543 font-size: calc(0.85 * var(--field-font-size));
496 544 }
497 545
546 +/* These do not work if they are combined */
547 +.with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder,
548 +.with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder {
549 + opacity: 1 !important;
550 + transition: opacity 0.3s ease-in;
551 +}
552 +
553 +.with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder,
554 +.with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder {
555 + opacity: 1;
556 + transition: opacity 0.3s ease-in;
557 +}
558 +
498 559 .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
499 560 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
500 561 opacity: 1;
501 562 transition: opacity 0.3s ease-in;
@@ -506,9 +567,9 @@
506 567 .with_frm_style .frm_pro_max_limit_desc{
507 568 clear:both;
508 569 }
509 570
510 -.with_frm_style input[type=number][readonly] {
571 +.with_frm_style input[type=number][readonly]{
511 572 -moz-appearance: textfield;
512 573 }
513 574
514 575 .with_frm_style select[multiple="multiple"]{
@@ -515,9 +576,8 @@
515 576 height:auto;
516 577 line-height:normal;
517 578 }
518 579
519 -<?php if ( $pro_is_installed ) { ?>
520 580 .with_frm_style .frm_catlevel_2,
521 581 .with_frm_style .frm_catlevel_3,
522 582 .with_frm_style .frm_catlevel_4,
523 583 .with_frm_style .frm_catlevel_5{
@@ -522,11 +582,9 @@
522 582 .with_frm_style .frm_catlevel_4,
523 583 .with_frm_style .frm_catlevel_5{
524 584 margin-left:18px;
525 585 }
526 -<?php } ?>
527 586
528 -<?php if ( $pro_is_installed ) { ?>
529 587 .with_frm_style .wp-editor-container{
530 588 border:1px solid #e5e5e5;
531 589 }
532 590
@@ -536,9 +594,8 @@
536 594
537 595 .with_frm_style .wp-editor-container textarea{
538 596 border:none;
539 597 }
540 -<?php } ?>
541 598
542 599 .with_frm_style .auto_width #loginform input,
543 600 .with_frm_style .auto_width input,
544 601 .with_frm_style input.auto_width,
@@ -546,50 +603,59 @@
546 603 .with_frm_style textarea.auto_width{
547 604 width:auto<?php echo esc_html( $important ); ?>;
548 605 }
549 606
550 -<?php if ( $pro_is_installed ) { ?>
551 607 .with_frm_style .frm_repeat_buttons{
552 608 white-space:nowrap;
553 609 }
554 -<?php } ?>
555 610
556 611 .with_frm_style .frm_button{
557 - text-decoration:none !important;
612 + text-decoration:none !important;;
558 613 border:1px solid #eee;
559 614 display:inline-block;
560 615 <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
561 - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>;
616 + padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>;
617 + padding:var(--submit-padding)<?php echo esc_html( $important ); ?>;
562 618 <?php } else { ?>
563 619 padding:5px;
564 620 <?php } ?>
565 621 <?php if ( ! empty( $defaults['border_radius'] ) ) { ?>
622 + -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
623 + -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
566 624 border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
567 625 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
568 626 <?php } ?>
569 627 <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
570 - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>;
628 + font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>;
629 + font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>;
571 630 <?php } ?>
572 631 <?php if ( ! empty( $defaults['font'] ) ) { ?>
573 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
632 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
633 + font-family:var(--font)<?php echo esc_html( $important ); ?>;
574 634 <?php } ?>
575 635 <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
576 - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>;
636 + font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>;
637 + font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>;
577 638 <?php } ?>
578 639 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
579 - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>;
640 + color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>;
641 + color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
580 642 <?php } ?>
581 643 <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
582 - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
644 + background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>;
645 + background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
583 646 <?php } ?>
584 647 <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
585 - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>;
648 + border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>;
649 + border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>;
586 650 <?php } ?>
587 651 <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
588 - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>;
652 + border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>;
653 + border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>;
589 654 <?php } ?>
590 655 <?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
591 - height: var(--submit-height)<?php echo esc_html( $important ); ?>;
656 + height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>;
657 + height:var(--submit-height)<?php echo esc_html( $important ); ?>;
592 658 <?php } ?>
593 659 }
594 660
595 661 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
@@ -649,11 +715,9 @@
649 715 .with_frm_style.frm_center_submit .frm_submit button{
650 716 margin-bottom:8px !important;
651 717 }
652 718
653 -<?php if ( $pro_is_installed ) { ?>
654 719 .with_frm_style .frm-edit-page-btn,
655 -<?php } ?>
656 720 .with_frm_style .frm_submit input[type=submit],
657 721 .with_frm_style .frm_submit input[type=button],
658 722 .with_frm_style .frm_submit button{
659 723 -webkit-appearance: none;
@@ -670,22 +734,19 @@
670 734 /* keep this for reverse compatibility for old HTML */
671 735 visibility:visible !important;
672 736 }
673 737
674 -<?php if ( $pro_is_installed ) { ?>
675 738 .with_frm_style .frm_loading_prev .frm_prev_page,
676 -<?php } ?>
677 739 .with_frm_style .frm_loading_form .frm_button_submit {
678 740 position: relative;
741 + opacity: .8;
679 742 color: transparent !important;
680 743 text-shadow: none !important;
681 744 }
682 745
683 -<?php if ( $pro_is_installed ) { ?>
684 746 .with_frm_style .frm_loading_prev .frm_prev_page:hover,
685 747 .with_frm_style .frm_loading_prev .frm_prev_page:active,
686 748 .with_frm_style .frm_loading_prev .frm_prev_page:focus,
687 -<?php } ?>
688 749 .with_frm_style .frm_loading_form .frm_button_submit:hover,
689 750 .with_frm_style .frm_loading_form .frm_button_submit:active,
690 751 .with_frm_style .frm_loading_form .frm_button_submit:focus {
691 752 cursor: not-allowed;
@@ -693,11 +754,9 @@
693 754 outline: none !important;
694 755 box-shadow: none;
695 756 }
696 757
697 -<?php if ( $pro_is_installed ) { ?>
698 758 .with_frm_style .frm_loading_prev .frm_prev_page::before,
699 -<?php } ?>
700 759 .with_frm_style .frm_loading_form .frm_button_submit:before {
701 760 content: '';
702 761 display: inline-block;
703 762 position: absolute;
@@ -706,9 +765,9 @@
706 765 border-top-color: transparent;
707 766 border-left-color: transparent;
708 767 border-radius: 50%;
709 768 box-sizing: border-box;
710 - <?php $loader_size = 12; ?>
769 + <?php $loader_size = 20; ?>
711 770 top: 50%;
712 771 left: 50%;
713 772 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
714 773 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -713,9 +772,12 @@
713 772 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
714 773 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
715 774 width: <?php echo absint( $loader_size ); ?>px;
716 775 height: <?php echo absint( $loader_size ); ?>px;
717 - animation: spin 2s linear infinite;
776 + -webkit-animation: spin 2s linear infinite;
777 + -moz-animation: spin 2s linear infinite;
778 + -o-animation: spin 2s linear infinite;
779 + animation: spin 2s linear infinite;
718 780 }
719 781
720 782 .with_frm_style .frm_submit.frm_flex {
721 783 align-items: center;
@@ -721,17 +783,15 @@
721 783 align-items: center;
722 784 gap: 2%;
723 785 }
724 786
725 -<?php if ( $pro_is_installed ) { ?>
726 787 .with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
727 788 order: -1;
728 789 }
729 -<?php } ?>
730 790
731 791 <?php
732 792 foreach ( $styles as $style ) {
733 - include __DIR__ . '/_single_theme.css.php';
793 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
734 794 unset( $style );
735 795 }
736 796
737 797 // Set it again since it may have been overridden.
@@ -750,18 +810,19 @@
750 810 a.frm_save_draft{
751 811 cursor:pointer;
752 812 }
753 813
754 -<?php if ( $pro_is_installed ) { ?>
755 814 .with_frm_style a.frm_save_draft,
756 815 .with_frm_style a.frm_start_over{
757 - <?php if ( ! empty( $defaults['font'] ) ) { ?>
758 - font-family: var(--font);
816 +<?php if ( ! empty( $defaults['font'] ) ) { ?>
817 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
818 + font-family:var(--font);
759 819 <?php } ?>
760 - font-size: var(--submit-font-size);
761 - font-weight: var(--submit-weight);
820 + font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>;
821 + font-size:var(--submit-font-size);
822 + font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>;
823 + font-weight:var(--submit-weight);
762 824 }
763 -<?php } ?>
764 825
765 826 .horizontal_radio .frm_radio{
766 827 margin:0 5px 0 0;
767 828 }
@@ -767,9 +828,9 @@
767 828 }
768 829
769 830 .horizontal_radio .frm_checkbox{
770 831 margin:0;
771 - margin-right:12px;
832 + margin-right:5px;
772 833 }
773 834
774 835 .vertical_radio .frm_checkbox,
775 836 .vertical_radio .frm_radio,
@@ -784,13 +845,15 @@
784 845 padding-left: 0;
785 846 }
786 847
787 848 .with_frm_style .frm_radio{
788 - display: var(--radio-align)<?php echo esc_html( $important ); ?>;
849 + display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>;
850 + display:var(--radio-align)<?php echo esc_html( $important ); ?>;
789 851 }
790 852
791 853 .with_frm_style .frm_checkbox{
792 - display: var(--check-align)<?php echo esc_html( $important ); ?>;
854 + display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>;
855 + display:var(--check-align)<?php echo esc_html( $important ); ?>;
793 856 }
794 857
795 858 .with_frm_style .vertical_radio .frm_checkbox,
796 859 .with_frm_style .vertical_radio .frm_radio,
@@ -795,9 +858,8 @@
795 858 .with_frm_style .vertical_radio .frm_checkbox,
796 859 .with_frm_style .vertical_radio .frm_radio,
797 860 .vertical_radio .frm_catlevel_1{
798 861 display:block<?php echo esc_html( $important ); ?>;
799 - margin-bottom: 10px;
800 862 }
801 863
802 864 .with_frm_style .horizontal_radio .frm_checkbox,
803 865 .with_frm_style .horizontal_radio .frm_radio,
@@ -805,45 +867,40 @@
805 867 display:inline-block<?php echo esc_html( $important ); ?>;
806 868 }
807 869
808 870 .with_frm_style .frm_checkbox label,
809 -.with_frm_style .frm_radio label {
810 - display: inline-block;
811 - vertical-align: middle;
871 +.with_frm_style .frm_radio label{
872 + display: inline;
812 873 white-space:normal;
813 874 }
814 875
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 876 .with_frm_style .vertical_radio .frm_checkbox label,
826 877 .with_frm_style .vertical_radio .frm_radio label{
827 878 display: block;
828 - width: 100%;
879 + padding-left: 20px;
880 + text-indent: -20px;
829 881 }
830 882
831 883 .with_frm_style .frm_radio label,
832 -.with_frm_style .frm_checkbox label {
884 +.with_frm_style .frm_checkbox label{
833 885 <?php if ( ! empty( $defaults['font'] ) ) { ?>
834 - font-family: var(--font);
886 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
887 + font-family:var(--font);
835 888 <?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 ); ?>;
889 + font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
890 + font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
891 + color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>;
892 + color:var(--check-label-color)<?php echo esc_html( $important ); ?>;
893 + font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>;
894 + font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>;
839 895 line-height: 1.3;
840 896 }
841 897
842 898 .with_frm_style .frm_radio input[type=radio],
843 899 .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 ); ?>;
900 + font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>;
901 + font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>;
902 + position:static<?php echo esc_html( $important ); ?>;
846 903 }
847 904
848 905 .frm_file_container .frm_file_link,
849 906 .with_frm_style .frm_radio label .frm_file_container,
@@ -853,9 +910,9 @@
853 910 vertical-align:middle;
854 911 }
855 912
856 913 .with_frm_style .frm_radio input[type=radio]
857 -<?php if ( $pro_is_installed ) : ?>
914 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
858 915 , .with_frm_style .frm_scale input[type=radio]
859 916 <?php endif; ?>
860 917 {
861 918 border-radius:50%;
@@ -860,96 +917,62 @@
860 917 {
861 918 border-radius:50%;
862 919 }
863 920
864 -.with_frm_style .frm_checkbox input[type=checkbox] {
865 - border-radius: calc(var(--border-radius) / 2) !important;
921 +.with_frm_style .frm_checkbox input[type=checkbox]{
922 + border-radius:0;
866 923 }
867 924
868 925 .with_frm_style .frm_radio input[type=radio],
869 -<?php if ( $pro_is_installed ) : ?>
926 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
870 927 .with_frm_style .frm_scale input[type=radio],
871 928 <?php endif; ?>
872 929 .with_frm_style .frm_checkbox input[type=checkbox]{
930 + -webkit-appearance: none;
873 931 appearance: none;
874 932 background-color: var(--bg-color);
875 933 flex: none;
876 934 display:inline-block !important;
877 - width: 16px !important;
878 - min-width: 16px !important;
879 - height: 16px !important;
935 + margin: 0 5px 0 0;
880 936 color: var(--border-color);
937 + width: 18px;
938 + min-width: 18px;
939 + height: 18px;
881 940 border: 1px solid currentColor;
882 941 border-color: var(--border-color);
883 942 vertical-align: middle;
884 943 position: initial; /* override Bootstrap */
885 944 padding: 0;
886 - margin: 0;
887 945 }
888 946
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,
947 +.with_frm_style .frm_radio input[type=radio]:before,
948 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
949 +.with_frm_style .frm_scale input[type=radio]:before,
892 950 <?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;
951 +.with_frm_style .frm_checkbox input[type=checkbox]:before {
952 + content: '';
953 + width: 12px;
954 + height: 12px;
955 + border-radius: 50%;
956 + transform: scale(0);
957 + transition: 120ms transform ease-in-out;
958 + box-shadow: inset 10px 10px var(--text-color);
959 + display: block;
960 + margin: 2px 0 0 2px;
895 961 }
896 962
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;
963 +.with_frm_style .frm_checkbox input[type=checkbox]:before{
964 + clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
965 + border-radius: 0;
899 966 }
900 967
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 968 .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 969 .with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
918 - position: static !important; /* Override Style Preview */
919 - content: '';
920 - display: block;
970 + transform: scale(1);
921 971 }
922 972
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 973 .with_frm_style :invalid,
974 +.with_frm_style :-moz-submit-invalid,
952 975 .with_frm_style :-moz-ui-invalid{
953 976 box-shadow:none;
954 977 }
955 978
@@ -965,29 +988,33 @@
965 988
966 989 .with_frm_style .frm_error_style,
967 990 .with_frm_style .frm_message,
968 991 .frm_success_style{
992 + -moz-border-radius:4px;
993 + -webkit-border-radius:4px;
969 994 border-radius:4px;
970 995 padding:15px;
971 996 }
972 997
973 -.with_frm_style .frm_message p {
974 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
975 - margin-bottom: 0;
998 +.with_frm_style .frm_message p{
999 + margin-bottom:5px;
1000 + color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
1001 + color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
976 1002 }
977 1003
978 -.with_frm_style .frm_message > p:first-of-type {
979 - margin-top: 0;
980 -}
981 -
982 1004 .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 ); ?>;
1005 +.frm_success_style{
1006 + margin:5px 0 15px;
1007 + border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>;
1008 + border-color:var(--success-border-color);
1009 + background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>;
1010 + background-color:var(--success-bg-color);
1011 + color:<?php echo esc_html( $defaults['success_text_color'] ); ?>;
1012 + color:var(--success-text-color)<?php echo esc_html( $important ); ?>;
1013 + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1014 + border-radius:var(--border-radius);
1015 + font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>;
1016 + font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>;
990 1017 }
991 1018
992 1019 .with_frm_style .frm_plain_success .frm_message {
993 1020 background-color: transparent;
@@ -1023,9 +1050,10 @@
1023 1050 padding:5px;
1024 1051 border-width:1px;
1025 1052 border-style:solid;
1026 1053 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1027 - border-color: var(--border-color);
1054 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1055 + border-color:var(--border-color);
1028 1056 <?php } ?>
1029 1057 border-top:none;
1030 1058 border-left:none;
1031 1059 border-right:none;
@@ -1040,9 +1068,10 @@
1040 1068 }
1041 1069
1042 1070 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1043 1071 .with_frm_style .frm-alt-table{
1044 - border-color: var(--border-color);
1072 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1073 + border-color:var(--border-color);
1045 1074 }
1046 1075 <?php } ?>
1047 1076
1048 1077 .frm-alt-table th {
@@ -1065,28 +1094,27 @@
1065 1094 .frm-alt-table tr:nth-child(even) {
1066 1095 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1067 1096 }
1068 1097
1069 -<?php if ( $pro_is_installed ) { ?>
1070 1098 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 ); ?>;
1099 + border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>;
1100 + border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1101 + border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1074 1102 }
1075 1103
1076 1104 table.form_results.with_frm_style tr td{
1077 1105 text-align:left;
1078 1106 padding:7px 9px;
1079 - <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1080 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
1107 +<?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1108 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
1109 + color:var(--text-color)<?php echo esc_html( $important ); ?>;
1081 1110 <?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 ); ?>;
1111 +<?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1112 + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>;
1113 + border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>;
1114 + border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1086 1115 <?php } ?>
1087 1116 }
1088 -<?php } ?>
1089 1117
1090 1118 table.form_results.with_frm_style tr.frm_even,
1091 1119 .frm-grid .frm_even{
1092 1120 background-color:#fff;
@@ -1094,10 +1122,11 @@
1094 1122 }
1095 1123
1096 1124 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1097 1125 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 ); ?>;
1126 +.frm-grid .frm_odd{
1127 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1128 + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
1100 1129 }
1101 1130 <?php } ?>
1102 1131
1103 1132 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
@@ -1105,23 +1134,18 @@
1105 1134 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1106 1135 padding: 40px;
1107 1136 }
1108 1137
1109 - <?php if ( $pro_is_installed ) { ?>
1110 1138 .with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1111 1139 .frm_color_block.frm_section_heading h3 {
1112 1140 border-width: 0 !important;
1113 1141 }
1114 - <?php } ?>
1115 1142 <?php } ?>
1116 1143
1117 -<?php if ( $pro_is_installed ) { ?>
1118 1144 .frm_collapse .ui-icon{
1119 1145 display:inline-block;
1120 1146 }
1121 -<?php } ?>
1122 1147
1123 -<?php if ( $pro_is_installed ) { ?>
1124 1148 .frm_toggle_container{
1125 1149 /* Prevent the slide and bounce */
1126 1150 border:1px solid transparent;
1127 1151 }
@@ -1138,11 +1162,9 @@
1138 1162
1139 1163 .frm_toggle_container .frm_month_listing{
1140 1164 margin-left:40px;
1141 1165 }
1142 -<?php } ?>
1143 1166
1144 -<?php if ( $pro_is_installed ) { ?>
1145 1167 #frm_loading{
1146 1168 display:none;
1147 1169 position:fixed;
1148 1170 top:0;
@@ -1185,30 +1207,28 @@
1185 1207 #frm_loading .progress.active .progress-bar{
1186 1208 animation:2s linear 0s normal none infinite progress-bar-stripes;
1187 1209 }
1188 1210
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));
1211 +<?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1212 +#frm_loading .progress-striped .progress-bar{
1213 + <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1214 + 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 1215 <?php } ?>
1194 1216 background-size:40px 40px;
1195 1217 }
1196 1218 <?php } ?>
1197 1219
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%;
1220 +#frm_loading .progress-bar{
1221 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1222 + background-color:var(--bg-color);
1223 + box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset;
1224 + float:left;
1225 + height:100%;
1226 + line-height:20px;
1227 + text-align:center;
1228 + transition:width 0.6s ease 0s;
1229 + width:100%;
1207 1230 }
1208 - <?php
1209 -}//end if
1210 -?>
1211 1231
1212 1232 .frm_image_from_url{
1213 1233 height:50px;
1214 1234 }
@@ -1217,9 +1237,8 @@
1217 1237 background:url(../images/ajax_loader.gif) no-repeat center center;
1218 1238 padding:6px 12px;
1219 1239 }
1220 1240
1221 -<?php if ( $pro_is_installed ) { ?>
1222 1241 select.frm_loading_lookup{
1223 1242 background-image: url(../images/ajax_loader.gif) !important;
1224 1243 background-position: 10px;
1225 1244 background-repeat: no-repeat;
@@ -1224,25 +1243,22 @@
1224 1243 background-position: 10px;
1225 1244 background-repeat: no-repeat;
1226 1245 color: transparent !important;
1227 1246 }
1228 -<?php } ?>
1229 1247
1230 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
1248 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1231 1249
1232 -<?php if ( $pro_is_installed ) { ?>
1233 1250 .frm_conf_field.frm_left_container .frm_primary_label{
1234 1251 display:none;
1235 1252 }
1236 -<?php } ?>
1237 1253
1238 -<?php if ( $pro_is_installed ) { ?>
1239 1254 .wp-editor-wrap *,
1240 1255 .wp-editor-wrap *:after,
1241 1256 .wp-editor-wrap *:before{
1257 + -webkit-box-sizing:content-box;
1258 + -moz-box-sizing:content-box;
1242 1259 box-sizing:content-box;
1243 1260 }
1244 -<?php } ?>
1245 1261
1246 1262 .with_frm_style .frm_grid,
1247 1263 .with_frm_style .frm_grid_first,
1248 1264 .with_frm_style .frm_grid_odd{
@@ -1251,9 +1267,10 @@
1251 1267 padding:5px;
1252 1268 border-width:1px;
1253 1269 border-style:solid;
1254 1270 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1255 - border-color: var(--border-color)<?php echo esc_html( $important ); ?>;
1271 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1272 + border-color:var(--border-color)<?php echo esc_html( $important ); ?>;
1256 1273 <?php } ?>
1257 1274 border-left:none;
1258 1275 border-right:none;
1259 1276 }
@@ -1288,16 +1305,18 @@
1288 1305 }
1289 1306
1290 1307 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1291 1308 .frm_grid_first,
1292 -.frm_grid_odd {
1293 - background-color: var(--bg-color);
1309 +.frm_grid_odd{
1310 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1311 + background-color:var(--bg-color);
1294 1312 }
1295 1313 <?php } ?>
1296 1314
1297 1315 <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1298 -.frm_grid {
1299 - background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>;
1316 +.frm_grid{
1317 + background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>;
1318 + background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
1300 1319 }
1301 1320 <?php } ?>
1302 1321
1303 1322 .with_frm_style .frm_grid.frm_blank_field,
@@ -1302,10 +1321,12 @@
1302 1321
1303 1322 .with_frm_style .frm_grid.frm_blank_field,
1304 1323 .with_frm_style .frm_grid_first.frm_blank_field,
1305 1324 .with_frm_style .frm_grid_odd.frm_blank_field{
1325 + background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1306 1326 background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1307 - border-color: var(--error-border);
1327 + border-color:<?php echo esc_html( $defaults['error_border'] ); ?>;
1328 + border-color:var(--error-bg);
1308 1329 }
1309 1330
1310 1331 .frm_grid .frm_primary_label,
1311 1332 .frm_grid_first .frm_primary_label,
@@ -1327,10 +1348,9 @@
1327 1348 .frm_grid_odd .frm_radio label,
1328 1349 .frm_grid_first .frm_checkbox label,
1329 1350 .frm_grid .frm_checkbox label,
1330 1351 .frm_grid_odd .frm_checkbox label{
1331 - color:transparent;
1332 - text-indent: -9999px;
1352 + visibility:hidden;
1333 1353 white-space:nowrap;
1334 1354 text-align:left;
1335 1355 }
1336 1356
@@ -1456,18 +1476,8 @@
1456 1476 .frm_form_field.frm_left_container .frm_opt_container{
1457 1477 padding-top:4px;
1458 1478 }
1459 1479
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 1480 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1471 1481 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1472 1482 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1473 1483 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1502,9 +1512,11 @@
1502 1512 grid-column-end: span 1;
1503 1513 }
1504 1514
1505 1515 .frm_form_field .frm_checkbox,
1506 -.frm_form_field .frm_radio {
1516 +.frm_form_field .frm_checkbox + .frm_checkbox,
1517 +.frm_form_field .frm_radio,
1518 +.frm_form_field .frm_radio + .frm_radio{
1507 1519 margin-top: 0;
1508 1520 margin-bottom: 0;
1509 1521 }
1510 1522
@@ -1513,24 +1525,36 @@
1513 1525 overflow:auto;
1514 1526 }
1515 1527
1516 1528 .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);
1529 +.frm_form_field.frm_html_scroll_box{
1530 + height:100px;
1531 + overflow:auto;
1532 + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>;
1533 + background-color:var(--bg-color);
1534 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1535 + border-color:var(--border-color);
1536 + border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>;
1537 + border-width:var(--field-border-width);
1538 + border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>;
1539 + border-style:var(--field-border-style);
1540 + -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1541 + -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1542 + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>;
1543 + border-radius:var(--border-radius);
1544 + width:<?php echo esc_html( $defaults['field_width'] ); ?>;
1545 + width:var(--field-width);
1546 + max-width:100%;
1547 + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>;
1548 + font-size:var(--field-font-size);
1549 + padding:<?php echo esc_html( $defaults['field_pad'] ); ?>;
1550 + padding:var(--field-pad);
1551 + -webkit-box-sizing:border-box;
1552 + -moz-box-sizing:border-box;
1553 + box-sizing:border-box;
1554 + outline:none<?php echo esc_html( $important ); ?>;
1555 + font-weight:normal;
1556 + box-shadow:var(--box-shadow);
1533 1557 }
1534 1558
1535 1559 .frm_form_field.frm_total_big input,
1536 1560 .frm_form_field.frm_total_big textarea,
@@ -1539,8 +1563,10 @@
1539 1563 opacity:1;
1540 1564 background-color:transparent !important;
1541 1565 border:none !important;
1542 1566 font-weight:bold;
1567 + -moz-box-shadow:none;
1568 + -webkit-box-shadow:none;
1543 1569 width:auto !important;
1544 1570 height:auto !important;
1545 1571 box-shadow:none !important;
1546 1572 display:inline;
@@ -1560,8 +1586,10 @@
1560 1586 .frm_form_field.frm_total input:focus,
1561 1587 .frm_form_field.frm_total textarea:focus{
1562 1588 background-color:transparent;
1563 1589 border:none;
1590 + -moz-box-shadow:none;
1591 + -webkit-box-shadow:none;
1564 1592 box-shadow:none;
1565 1593 }
1566 1594
1567 1595 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1586,8 +1614,13 @@
1586 1614 .frm_clearfix{
1587 1615 display:block;
1588 1616 }
1589 1617
1618 +.with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before {
1619 + color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>;
1620 + color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1621 +}
1622 +
1590 1623 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1591 1624 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1592 1625 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1593 1626 margin-bottom: 0 !important;
@@ -1592,15 +1625,15 @@
1592 1625 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1593 1626 margin-bottom: 0 !important;
1594 1627 }
1595 1628
1629 +<?php
1630 +FrmStylesHelper::maybe_include_font_icon_css();
1596 1631
1597 -<?php
1598 1632 /**
1599 1633 * Call action so other plugins can add additional CSS.
1600 1634 *
1601 1635 * @param array $args {
1602 - *
1603 1636 * @type array $defaults
1604 1637 * }
1605 1638 */
1606 1639 do_action( 'frm_include_front_css', compact( 'defaults' ) );
@@ -1607,9 +1640,8 @@
1607 1640 ?>
1608 1641
1609 1642 /* Responsive */
1610 1643
1611 -<?php if ( $pro_is_installed ) { ?>
1612 1644 @media only screen and (max-width: 900px) {
1613 1645 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1614 1646 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1615 1647 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1615,9 +1647,8 @@
1615 1647 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1616 1648 display: block !important;
1617 1649 }
1618 1650 }
1619 -<?php } ?>
1620 1651
1621 1652 @media only screen and (max-width: 600px) {
1622 1653 .frm_form_field.frm_four_col .frm_opt_container{
1623 1654 grid-template-columns: repeat(2, 1fr);
@@ -1622,14 +1653,12 @@
1622 1653 .frm_form_field.frm_four_col .frm_opt_container{
1623 1654 grid-template-columns: repeat(2, 1fr);
1624 1655 }
1625 1656
1626 - <?php if ( $pro_is_installed ) { ?>
1627 1657 .with_frm_style .frm_repeat_inline,
1628 1658 .with_frm_style .frm_repeat_grid{
1629 1659 margin: 20px 0;
1630 1660 }
1631 - <?php } ?>
1632 1661 }
1633 1662
1634 1663 @media only screen and (max-width: 500px) {
1635 1664 .frm_form_field.frm_two_col .frm_radio,
@@ -1654,8 +1683,9 @@
1654 1683 max-width:302px;
1655 1684 border-right:1px solid #d3d3d3;
1656 1685 border-radius:4px;
1657 1686 box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1687 + -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08);
1658 1688 }
1659 1689
1660 1690 .with_frm_style .g-recaptcha iframe,
1661 1691 .with_frm_style .frm-g-recaptcha iframe{
@@ -1660,15 +1690,8 @@
1660 1690 .with_frm_style .g-recaptcha iframe,
1661 1691 .with_frm_style .frm-g-recaptcha iframe{
1662 1692 width:100%;
1663 1693 }
1664 -}
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 1694 }
1672 1695 <?php
1673 1696
1674 1697 echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped