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