PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8.1
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 +459 -354 6.356.8.1 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,36 @@
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 .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> {
73 + overflow: hidden;
74 + width: 0;
75 + height: 0;
76 + position: absolute;
77 +}
78 +
75 79 .with_frm_style fieldset{
76 80 min-width:0;
77 81 display: block; /* Override 2021 theme */
78 82 }
@@ -85,20 +89,24 @@
85 89 }
86 90
87 91 .with_frm_style .frm_form_fields > fieldset{
88 92 <?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?>
89 - 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 ); ?>;
90 95 <?php } ?>
91 96 border-style:solid;
92 97 <?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?>
93 - 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 ); ?>;
94 100 <?php } ?>
95 101 margin:0;
96 102 <?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?>
97 - 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 ); ?>;
98 105 <?php } ?>
99 106 <?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?>
100 - 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 ); ?>;
101 109 <?php } ?>
102 110 <?php if ( ! empty( $defaults['font'] ) ) { ?>
103 111 font-family:var(--font);
104 112 <?php } ?>
@@ -122,21 +130,26 @@
122 130
123 131 .with_frm_style legend + h3,
124 132 .with_frm_style h3.frm_form_title{
125 133 <?php if ( ! empty( $defaults['title_size'] ) ) { ?>
126 - 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 ); ?>;
127 136 <?php } ?>
128 137 <?php if ( ! empty( $defaults['title_color'] ) ) { ?>
129 - 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 ); ?>;
130 140 <?php } ?>
131 141 <?php if ( ! empty( $defaults['font'] ) ) { ?>
132 - font-family: var(--font);
142 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
143 + font-family:var(--font);
133 144 <?php } ?>
134 145 <?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?>
135 - 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 ); ?>;
136 148 <?php } ?>
137 149 <?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?>
138 - 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 ); ?>;
139 152 <?php } ?>
140 153 }
141 154
142 155 .with_frm_style .frm_form_field.frm_html_container,
@@ -141,43 +154,46 @@
141 154
142 155 .with_frm_style .frm_form_field.frm_html_container,
143 156 .with_frm_style .frm_form_field .frm_show_it{
144 157 <?php if ( ! empty( $defaults['font'] ) ) { ?>
145 - font-family: var(--font);
158 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
159 + font-family:var(--font);
146 160 <?php } ?>
147 161 <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?>
148 - 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 ); ?>;
149 164 <?php } ?>
150 165 }
151 166
167 +<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?>
152 168 .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 ); ?>;
169 + font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>;
170 + font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>;
171 +}
155 172 <?php } ?>
156 - overflow-wrap: break-word<?php echo esc_html( $important ); ?>;
157 -}
158 173
159 174 .with_frm_style .frm_form_field .frm_show_it{
160 175 <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
161 - 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 ); ?>;
162 178 <?php } ?>
163 179 <?php if ( ! empty( $defaults['field_weight'] ) ) { ?>
164 - 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 ); ?>;
165 182 <?php } ?>
166 183 }
167 184
168 -.with_frm_style .frm_required {
185 +.with_frm_style .frm_required{
169 186 <?php if ( ! empty( $defaults['required_color'] ) ) { ?>
170 - 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 ); ?>;
171 189 <?php } ?>
172 190 <?php if ( ! empty( $defaults['required_weight'] ) ) { ?>
173 - 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 ); ?>;
174 193 <?php } ?>
175 194 }
176 195
177 -<?php if ( $use_chosen_js ) { ?>
178 -.with_frm_style .chosen-container,
179 -<?php } ?>
180 196 .with_frm_style input[type=text],
181 197 .with_frm_style input[type=password],
182 198 .with_frm_style input[type=email],
183 199 .with_frm_style input[type=number],
@@ -185,12 +201,14 @@
185 201 .with_frm_style input[type=tel],
186 202 .with_frm_style input[type=search],
187 203 .with_frm_style select,
188 204 .with_frm_style textarea,
189 -.with_frm_style .frm-card-element.StripeElement {
205 +.with_frm_style .frm-card-element.StripeElement,
206 +.with_frm_style .chosen-container{
190 207 font-family:var(--font)<?php echo esc_html( $important ); ?>;
191 208 <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?>
192 - 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 ); ?>;
193 211 <?php } ?>
194 212 margin-bottom:0<?php echo esc_html( $important ); ?>;
195 213 }
196 214
@@ -198,14 +216,8 @@
198 216 vertical-align:top;
199 217 height:auto;
200 218 }
201 219
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 220 .with_frm_style input[type=text],
209 221 .with_frm_style input[type=password],
210 222 .with_frm_style input[type=email],
211 223 .with_frm_style input[type=number],
@@ -218,34 +230,43 @@
218 230 .frm_form_fields_style,
219 231 .with_frm_style .frm_scroll_box .frm_opt_container,
220 232 .frm_form_fields_active_style,
221 233 .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);
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 ); ?>;
236 266 }
237 267
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 } ?>
268 +<?php if ( ! empty( $important ) ) { ?>
248 269 .with_frm_style input[type=text],
249 270 .with_frm_style input[type=password],
250 271 .with_frm_style input[type=email],
251 272 .with_frm_style input[type=number],
@@ -257,25 +278,30 @@
257 278 .frm_form_fields_style,
258 279 .with_frm_style .frm_scroll_box .frm_opt_container,
259 280 .frm_form_fields_active_style,
260 281 .frm_form_fields_error_style,
261 -.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{
262 285 background-image:none !important;
263 286 }
264 -<?php endif; ?>
287 +<?php } ?>
265 288
266 289 .with_frm_style select option {
267 - 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 ); ?>;
268 292 }
269 293
270 294 .with_frm_style select option.frm-select-placeholder {
271 - 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 ); ?>;
272 297 }
273 298
274 299 .with_frm_style input[type=radio],
275 300 .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 ); ?>;
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 ); ?>;
278 304 float: none;
279 305 }
280 306
281 307 .with_frm_style input[type=radio]:after,
@@ -282,18 +308,8 @@
282 308 .with_frm_style input[type=checkbox]:after {
283 309 display: none; /* 2021 conflict */
284 310 }
285 311
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 312 .with_frm_style input[type=text],
297 313 .with_frm_style input[type=password],
298 314 .with_frm_style input[type=email],
299 315 .with_frm_style input[type=number],
@@ -302,9 +318,10 @@
302 318 .with_frm_style input[type=file],
303 319 .with_frm_style input[type=search],
304 320 .with_frm_style select,
305 321 .with_frm_style .frm-card-element.StripeElement{
306 - 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 ); ?>;
307 324 line-height:1.3<?php echo esc_html( $important ); ?>;
308 325 }
309 326
310 327 .with_frm_style select[multiple=multiple]{
@@ -319,15 +336,17 @@
319 336 box-shadow:none;
320 337 }
321 338
322 339 .with_frm_style input[type=file]{
323 - color: var(--text-color)<?php echo esc_html( $important ); ?>;
324 - padding: 0px;
340 + color:<?php echo esc_html( $defaults['text_color'] ); ?>;
341 + color:var(--text-color)<?php echo esc_html( $important ); ?>;
342 + padding:0px;
325 343 <?php if ( ! empty( $defaults['font'] ) ) { ?>
326 - font-family: var(--font)<?php echo esc_html( $important ); ?>;
344 + font-family:var(--font)<?php echo esc_html( $important ); ?>;
327 345 <?php } ?>
328 - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>;
329 - 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;
330 349 }
331 350
332 351 .with_frm_style input[type=file].frm_transparent{
333 352 color:transparent<?php echo esc_html( $important ); ?>;
@@ -332,11 +351,11 @@
332 351 .with_frm_style input[type=file].frm_transparent{
333 352 color:transparent<?php echo esc_html( $important ); ?>;
334 353 }
335 354
336 -<?php if ( $pro_is_installed ) { ?>
337 355 .with_frm_style .wp-editor-wrap{
338 - 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 ); ?>;
339 358 max-width:100%;
340 359 }
341 360
342 361 .with_frm_style .wp-editor-container textarea{
@@ -344,14 +363,15 @@
344 363 box-shadow:none !important;
345 364 }
346 365
347 366 .with_frm_style .mceIframeContainer{
348 - 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 ); ?>;
349 369 }
350 -<?php } ?>
351 370
352 371 .with_frm_style select{
353 - 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 ); ?>;
354 374 max-width:100%;
355 375 background-position-y: calc(50% + 3px);
356 376 }
357 377
@@ -359,12 +379,15 @@
359 379 .with_frm_style select[disabled],
360 380 .with_frm_style textarea[disabled],
361 381 .with_frm_style input[readonly],
362 382 .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 ); ?>;
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 ); ?>;
367 390 }
368 391
369 392 .frm_preview_page:before{
370 393 content:normal !important;
@@ -376,24 +399,30 @@
376 399
377 400 .with_frm_style .frm_primary_label{
378 401 max-width:100%;
379 402 <?php if ( ! empty( $defaults['font'] ) ) { ?>
380 - font-family: var(--font);
403 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
404 + font-family:var(--font);
381 405 <?php } ?>
382 406 <?php if ( ! empty( $defaults['font_size'] ) ) { ?>
383 - 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 ); ?>;
384 409 <?php } ?>
385 410 <?php if ( ! empty( $defaults['label_color'] ) ) { ?>
386 - 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 ); ?>;
387 413 <?php } ?>
388 414 <?php if ( ! empty( $defaults['weight'] ) ) { ?>
389 - 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 ); ?>;
390 417 <?php } ?>
391 418 <?php if ( ! empty( $defaults['align'] ) ) { ?>
392 - 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 ); ?>;
393 421 <?php } ?>
394 422 <?php if ( ! empty( $defaults['label_padding'] ) ) { ?>
395 - 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 ); ?>;
396 425 <?php } ?>
397 426 margin:0;
398 427 width:auto;
399 428 display:block;
@@ -428,13 +457,11 @@
428 457 .frm_none_container .frm_primary_label{
429 458 display:none;
430 459 }
431 460
432 -<?php if ( $pro_is_installed ) { ?>
433 461 .with_frm_style .frm_section_heading.frm_hide_section{
434 462 margin-top:0 !important;
435 463 }
436 -<?php } ?>
437 464
438 465 .with_frm_style .frm_hidden_container .frm_primary_label,
439 466 .with_frm_style .frm_pos_hidden,
440 467 .frm_hidden_container .frm_primary_label{
@@ -448,9 +475,9 @@
448 475
449 476 /* Floating labels */
450 477 .with_frm_style .frm_inside_container {
451 478 position: relative;
452 - padding-top: 18px;
479 + padding-top: 16px;
453 480 padding-top: calc(0.5 * var(--field-height));
454 481 }
455 482
456 483 .with_frm_style .frm_inside_container > input,
@@ -458,13 +485,21 @@
458 485 .with_frm_style .frm_inside_container > textarea {
459 486 display: block;
460 487 }
461 488
462 -.with_frm_style input::placeholder,
463 -.with_frm_style textarea::placeholder {
464 - 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;
465 494 }
466 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 +
467 502 .with_frm_style .frm_inside_container > input::placeholder,
468 503 .with_frm_style .frm_inside_container > textarea::placeholder {
469 504 opacity: 0;
470 505 transition: opacity 0.3s ease-in;
@@ -473,9 +508,9 @@
473 508 .with_frm_style .frm_inside_container > label {
474 509 transition: all 0.3s ease-in;
475 510
476 511 position: absolute;
477 - top: 19px;
512 + top: 17px;
478 513 top: calc(1px + .5 * var(--field-height));
479 514 left: 3px;
480 515 width: 100%;
481 516
@@ -483,9 +518,9 @@
483 518 text-overflow: ellipsis;
484 519 overflow: hidden;
485 520 white-space: nowrap;
486 521
487 - padding: 8px 12px;
522 + padding: 6px 10px;
488 523 padding: var(--field-pad);
489 524
490 525 font-size: 14px;
491 526 font-size: var(--field-font-size);
@@ -491,8 +526,9 @@
491 526 font-size: var(--field-font-size);
492 527 font-weight: normal;
493 528 font-weight: var(--field-weight);
494 529
530 + -ms-pointer-events: none;
495 531 pointer-events: none;
496 532 }
497 533
498 534 .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label {
@@ -506,8 +542,21 @@
506 542 font-size: 12px;
507 543 font-size: calc(0.85 * var(--field-font-size));
508 544 }
509 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 +
510 559 .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder,
511 560 .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder {
512 561 opacity: 1;
513 562 transition: opacity 0.3s ease-in;
@@ -518,9 +567,9 @@
518 567 .with_frm_style .frm_pro_max_limit_desc{
519 568 clear:both;
520 569 }
521 570
522 -.with_frm_style input[type=number][readonly] {
571 +.with_frm_style input[type=number][readonly]{
523 572 -moz-appearance: textfield;
524 573 }
525 574
526 575 .with_frm_style select[multiple="multiple"]{
@@ -527,9 +576,8 @@
527 576 height:auto;
528 577 line-height:normal;
529 578 }
530 579
531 -<?php if ( $pro_is_installed ) { ?>
532 580 .with_frm_style .frm_catlevel_2,
533 581 .with_frm_style .frm_catlevel_3,
534 582 .with_frm_style .frm_catlevel_4,
535 583 .with_frm_style .frm_catlevel_5{
@@ -534,11 +582,9 @@
534 582 .with_frm_style .frm_catlevel_4,
535 583 .with_frm_style .frm_catlevel_5{
536 584 margin-left:18px;
537 585 }
538 -<?php } ?>
539 586
540 -<?php if ( $pro_is_installed ) { ?>
541 587 .with_frm_style .wp-editor-container{
542 588 border:1px solid #e5e5e5;
543 589 }
544 590
@@ -548,9 +594,8 @@
548 594
549 595 .with_frm_style .wp-editor-container textarea{
550 596 border:none;
551 597 }
552 -<?php } ?>
553 598
554 599 .with_frm_style .auto_width #loginform input,
555 600 .with_frm_style .auto_width input,
556 601 .with_frm_style input.auto_width,
@@ -558,49 +603,59 @@
558 603 .with_frm_style textarea.auto_width{
559 604 width:auto<?php echo esc_html( $important ); ?>;
560 605 }
561 606
562 -<?php if ( $pro_is_installed ) { ?>
563 607 .with_frm_style .frm_repeat_buttons{
564 608 white-space:nowrap;
565 609 }
566 -<?php } ?>
567 610
568 611 .with_frm_style .frm_button{
569 - text-decoration:none !important;
612 + text-decoration:none !important;;
570 613 border:1px solid #eee;
571 614 display:inline-block;
572 615 <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?>
573 - 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 ); ?>;
574 618 <?php } else { ?>
575 619 padding:5px;
576 620 <?php } ?>
577 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 ); ?>;
624 + border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>;
578 625 border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
579 626 <?php } ?>
580 627 <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?>
581 - 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 ); ?>;
582 630 <?php } ?>
583 631 <?php if ( ! empty( $defaults['font'] ) ) { ?>
584 - 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 ); ?>;
585 634 <?php } ?>
586 635 <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?>
587 - 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 ); ?>;
588 638 <?php } ?>
589 639 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
590 - 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 ); ?>;
591 642 <?php } ?>
592 643 <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?>
593 - 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 ); ?>;
594 646 <?php } ?>
595 647 <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?>
596 - 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 ); ?>;
597 650 <?php } ?>
598 651 <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?>
599 - 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 ); ?>;
600 654 <?php } ?>
601 655 <?php if ( ! empty( $defaults['submit_height'] ) ) { ?>
602 - 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 ); ?>;
603 658 <?php } ?>
604 659 }
605 660
606 661 <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?>
@@ -660,11 +715,9 @@
660 715 .with_frm_style.frm_center_submit .frm_submit button{
661 716 margin-bottom:8px !important;
662 717 }
663 718
664 -<?php if ( $pro_is_installed ) { ?>
665 719 .with_frm_style .frm-edit-page-btn,
666 -<?php } ?>
667 720 .with_frm_style .frm_submit input[type=submit],
668 721 .with_frm_style .frm_submit input[type=button],
669 722 .with_frm_style .frm_submit button{
670 723 -webkit-appearance: none;
@@ -681,22 +734,19 @@
681 734 /* keep this for reverse compatibility for old HTML */
682 735 visibility:visible !important;
683 736 }
684 737
685 -<?php if ( $pro_is_installed ) { ?>
686 738 .with_frm_style .frm_loading_prev .frm_prev_page,
687 -<?php } ?>
688 739 .with_frm_style .frm_loading_form .frm_button_submit {
689 740 position: relative;
741 + opacity: .8;
690 742 color: transparent !important;
691 743 text-shadow: none !important;
692 744 }
693 745
694 -<?php if ( $pro_is_installed ) { ?>
695 746 .with_frm_style .frm_loading_prev .frm_prev_page:hover,
696 747 .with_frm_style .frm_loading_prev .frm_prev_page:active,
697 748 .with_frm_style .frm_loading_prev .frm_prev_page:focus,
698 -<?php } ?>
699 749 .with_frm_style .frm_loading_form .frm_button_submit:hover,
700 750 .with_frm_style .frm_loading_form .frm_button_submit:active,
701 751 .with_frm_style .frm_loading_form .frm_button_submit:focus {
702 752 cursor: not-allowed;
@@ -704,11 +754,9 @@
704 754 outline: none !important;
705 755 box-shadow: none;
706 756 }
707 757
708 -<?php if ( $pro_is_installed ) { ?>
709 758 .with_frm_style .frm_loading_prev .frm_prev_page::before,
710 -<?php } ?>
711 759 .with_frm_style .frm_loading_form .frm_button_submit:before {
712 760 content: '';
713 761 display: inline-block;
714 762 position: absolute;
@@ -717,9 +765,9 @@
717 765 border-top-color: transparent;
718 766 border-left-color: transparent;
719 767 border-radius: 50%;
720 768 box-sizing: border-box;
721 - <?php $loader_size = 12; ?>
769 + <?php $loader_size = 20; ?>
722 770 top: 50%;
723 771 left: 50%;
724 772 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
725 773 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
@@ -724,9 +772,12 @@
724 772 margin-top: -<?php echo absint( $loader_size / 2 ); ?>px;
725 773 margin-left: -<?php echo absint( $loader_size / 2 ); ?>px;
726 774 width: <?php echo absint( $loader_size ); ?>px;
727 775 height: <?php echo absint( $loader_size ); ?>px;
728 - 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;
729 780 }
730 781
731 782 .with_frm_style .frm_submit.frm_flex {
732 783 align-items: center;
@@ -732,22 +783,20 @@
732 783 align-items: center;
733 784 gap: 2%;
734 785 }
735 786
736 -<?php if ( $pro_is_installed ) { ?>
737 787 .with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page {
738 788 order: -1;
739 789 }
740 -<?php } ?>
741 790
742 791 <?php
743 792 foreach ( $styles as $style ) {
744 - include __DIR__ . '/_single_theme.css.php';
793 + include( dirname( __FILE__ ) . '/_single_theme.css.php' );
745 794 unset( $style );
746 795 }
747 796
748 797 // Set it again since it may have been overridden.
749 -$important = ! empty( $defaults['important_style'] ) ? ' !important' : '';
798 +$important = empty( $defaults['important_style'] ) ? '' : ' !important';
750 799 ?>
751 800
752 801 .frm_ajax_loading{
753 802 visibility:hidden;
@@ -761,18 +810,19 @@
761 810 a.frm_save_draft{
762 811 cursor:pointer;
763 812 }
764 813
765 -<?php if ( $pro_is_installed ) { ?>
766 814 .with_frm_style a.frm_save_draft,
767 815 .with_frm_style a.frm_start_over{
768 - <?php if ( ! empty( $defaults['font'] ) ) { ?>
769 - 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);
770 819 <?php } ?>
771 - font-size: var(--submit-font-size);
772 - 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);
773 824 }
774 -<?php } ?>
775 825
776 826 .horizontal_radio .frm_radio{
777 827 margin:0 5px 0 0;
778 828 }
@@ -778,9 +828,9 @@
778 828 }
779 829
780 830 .horizontal_radio .frm_checkbox{
781 831 margin:0;
782 - margin-right:12px;
832 + margin-right:5px;
783 833 }
784 834
785 835 .vertical_radio .frm_checkbox,
786 836 .vertical_radio .frm_radio,
@@ -795,13 +845,15 @@
795 845 padding-left: 0;
796 846 }
797 847
798 848 .with_frm_style .frm_radio{
799 - 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 ); ?>;
800 851 }
801 852
802 853 .with_frm_style .frm_checkbox{
803 - 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 ); ?>;
804 856 }
805 857
806 858 .with_frm_style .vertical_radio .frm_checkbox,
807 859 .with_frm_style .vertical_radio .frm_radio,
@@ -806,9 +858,8 @@
806 858 .with_frm_style .vertical_radio .frm_checkbox,
807 859 .with_frm_style .vertical_radio .frm_radio,
808 860 .vertical_radio .frm_catlevel_1{
809 861 display:block<?php echo esc_html( $important ); ?>;
810 - margin-bottom: 10px;
811 862 }
812 863
813 864 .with_frm_style .horizontal_radio .frm_checkbox,
814 865 .with_frm_style .horizontal_radio .frm_radio,
@@ -816,45 +867,40 @@
816 867 display:inline-block<?php echo esc_html( $important ); ?>;
817 868 }
818 869
819 870 .with_frm_style .frm_checkbox label,
820 -.with_frm_style .frm_radio label {
821 - display: inline-block;
822 - vertical-align: middle;
871 +.with_frm_style .frm_radio label{
872 + display: inline;
823 873 white-space:normal;
824 874 }
825 875
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 876 .with_frm_style .vertical_radio .frm_checkbox label,
837 877 .with_frm_style .vertical_radio .frm_radio label{
838 878 display: block;
839 - width: 100%;
879 + padding-left: 20px;
880 + text-indent: -20px;
840 881 }
841 882
842 883 .with_frm_style .frm_radio label,
843 -.with_frm_style .frm_checkbox label {
884 +.with_frm_style .frm_checkbox label{
844 885 <?php if ( ! empty( $defaults['font'] ) ) { ?>
845 - font-family: var(--font);
886 + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
887 + font-family:var(--font);
846 888 <?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 ); ?>;
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 ); ?>;
850 895 line-height: 1.3;
851 896 }
852 897
853 898 .with_frm_style .frm_radio input[type=radio],
854 899 .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 ); ?>;
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 ); ?>;
857 903 }
858 904
859 905 .frm_file_container .frm_file_link,
860 906 .with_frm_style .frm_radio label .frm_file_container,
@@ -864,9 +910,9 @@
864 910 vertical-align:middle;
865 911 }
866 912
867 913 .with_frm_style .frm_radio input[type=radio]
868 -<?php if ( $pro_is_installed ) : ?>
914 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
869 915 , .with_frm_style .frm_scale input[type=radio]
870 916 <?php endif; ?>
871 917 {
872 918 border-radius:50%;
@@ -871,96 +917,62 @@
871 917 {
872 918 border-radius:50%;
873 919 }
874 920
875 -.with_frm_style .frm_checkbox input[type=checkbox] {
876 - border-radius: calc(var(--border-radius) / 2) !important;
921 +.with_frm_style .frm_checkbox input[type=checkbox]{
922 + border-radius:0;
877 923 }
878 924
879 925 .with_frm_style .frm_radio input[type=radio],
880 -<?php if ( $pro_is_installed ) : ?>
926 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
881 927 .with_frm_style .frm_scale input[type=radio],
882 928 <?php endif; ?>
883 929 .with_frm_style .frm_checkbox input[type=checkbox]{
930 + -webkit-appearance: none;
884 931 appearance: none;
885 932 background-color: var(--bg-color);
886 933 flex: none;
887 934 display:inline-block !important;
888 - width: 16px !important;
889 - min-width: 16px !important;
890 - height: 16px !important;
935 + margin: 0 5px 0 0;
891 936 color: var(--border-color);
937 + width: 18px;
938 + min-width: 18px;
939 + height: 18px;
892 940 border: 1px solid currentColor;
893 941 border-color: var(--border-color);
894 942 vertical-align: middle;
895 943 position: initial; /* override Bootstrap */
896 944 padding: 0;
897 - margin: 0;
898 945 }
899 946
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,
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,
903 950 <?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;
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;
906 961 }
907 962
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;
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;
910 966 }
911 967
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 968 .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 969 .with_frm_style .frm_checkbox input[type=checkbox]:checked:before {
929 - position: static !important; /* Override Style Preview */
930 - content: '';
931 - display: block;
970 + transform: scale(1);
932 971 }
933 972
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 973 .with_frm_style :invalid,
974 +.with_frm_style :-moz-submit-invalid,
963 975 .with_frm_style :-moz-ui-invalid{
964 976 box-shadow:none;
965 977 }
966 978
@@ -976,29 +988,33 @@
976 988
977 989 .with_frm_style .frm_error_style,
978 990 .with_frm_style .frm_message,
979 991 .frm_success_style{
992 + -moz-border-radius:4px;
993 + -webkit-border-radius:4px;
980 994 border-radius:4px;
981 995 padding:15px;
982 996 }
983 997
984 -.with_frm_style .frm_message p {
985 - color: var(--success-text-color)<?php echo esc_html( $important ); ?>;
986 - 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 ); ?>;
987 1002 }
988 1003
989 -.with_frm_style .frm_message > p:first-of-type {
990 - margin-top: 0;
991 -}
992 -
993 1004 .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 ); ?>;
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 ); ?>;
1001 1017 }
1002 1018
1003 1019 .with_frm_style .frm_plain_success .frm_message {
1004 1020 background-color: transparent;
@@ -1034,9 +1050,10 @@
1034 1050 padding:5px;
1035 1051 border-width:1px;
1036 1052 border-style:solid;
1037 1053 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1038 - border-color: var(--border-color);
1054 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1055 + border-color:var(--border-color);
1039 1056 <?php } ?>
1040 1057 border-top:none;
1041 1058 border-left:none;
1042 1059 border-right:none;
@@ -1051,9 +1068,10 @@
1051 1068 }
1052 1069
1053 1070 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1054 1071 .with_frm_style .frm-alt-table{
1055 - border-color: var(--border-color);
1072 + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>;
1073 + border-color:var(--border-color);
1056 1074 }
1057 1075 <?php } ?>
1058 1076
1059 1077 .frm-alt-table th {
@@ -1076,28 +1094,27 @@
1076 1094 .frm-alt-table tr:nth-child(even) {
1077 1095 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1078 1096 }
1079 1097
1080 -<?php if ( $pro_is_installed ) { ?>
1081 1098 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 ); ?>;
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 ); ?>;
1085 1102 }
1086 1103
1087 1104 table.form_results.with_frm_style tr td{
1088 1105 text-align:left;
1089 1106 padding:7px 9px;
1090 - <?php if ( ! empty( $defaults['text_color'] ) ) { ?>
1091 - 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 ); ?>;
1092 1110 <?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 ); ?>;
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 ); ?>;
1097 1115 <?php } ?>
1098 1116 }
1099 -<?php } ?>
1100 1117
1101 1118 table.form_results.with_frm_style tr.frm_even,
1102 1119 .frm-grid .frm_even{
1103 1120 background-color:#fff;
@@ -1105,10 +1122,11 @@
1105 1122 }
1106 1123
1107 1124 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1108 1125 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 ); ?>;
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 ); ?>;
1111 1129 }
1112 1130 <?php } ?>
1113 1131
1114 1132 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
@@ -1116,23 +1134,18 @@
1116 1134 background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>;
1117 1135 padding: 40px;
1118 1136 }
1119 1137
1120 - <?php if ( $pro_is_installed ) { ?>
1121 1138 .with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3,
1122 1139 .frm_color_block.frm_section_heading h3 {
1123 1140 border-width: 0 !important;
1124 1141 }
1125 - <?php } ?>
1126 1142 <?php } ?>
1127 1143
1128 -<?php if ( $pro_is_installed ) { ?>
1129 1144 .frm_collapse .ui-icon{
1130 1145 display:inline-block;
1131 1146 }
1132 -<?php } ?>
1133 1147
1134 -<?php if ( $pro_is_installed ) { ?>
1135 1148 .frm_toggle_container{
1136 1149 /* Prevent the slide and bounce */
1137 1150 border:1px solid transparent;
1138 1151 }
@@ -1149,11 +1162,9 @@
1149 1162
1150 1163 .frm_toggle_container .frm_month_listing{
1151 1164 margin-left:40px;
1152 1165 }
1153 -<?php } ?>
1154 1166
1155 -<?php if ( $pro_is_installed ) { ?>
1156 1167 #frm_loading{
1157 1168 display:none;
1158 1169 position:fixed;
1159 1170 top:0;
@@ -1196,30 +1207,28 @@
1196 1207 #frm_loading .progress.active .progress-bar{
1197 1208 animation:2s linear 0s normal none infinite progress-bar-stripes;
1198 1209 }
1199 1210
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));
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));
1204 1215 <?php } ?>
1205 1216 background-size:40px 40px;
1206 1217 }
1207 1218 <?php } ?>
1208 1219
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%;
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%;
1218 1230 }
1219 - <?php
1220 -}//end if
1221 -?>
1222 1231
1223 1232 .frm_image_from_url{
1224 1233 height:50px;
1225 1234 }
@@ -1228,9 +1237,8 @@
1228 1237 background:url(../images/ajax_loader.gif) no-repeat center center;
1229 1238 padding:6px 12px;
1230 1239 }
1231 1240
1232 -<?php if ( $pro_is_installed ) { ?>
1233 1241 select.frm_loading_lookup{
1234 1242 background-image: url(../images/ajax_loader.gif) !important;
1235 1243 background-position: 10px;
1236 1244 background-repeat: no-repeat;
@@ -1235,25 +1243,22 @@
1235 1243 background-position: 10px;
1236 1244 background-repeat: no-repeat;
1237 1245 color: transparent !important;
1238 1246 }
1239 -<?php } ?>
1240 1247
1241 -<?php readfile( __DIR__ . '/frm_grids.css' ); ?>
1248 +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
1242 1249
1243 -<?php if ( $pro_is_installed ) { ?>
1244 1250 .frm_conf_field.frm_left_container .frm_primary_label{
1245 1251 display:none;
1246 1252 }
1247 -<?php } ?>
1248 1253
1249 -<?php if ( $pro_is_installed ) { ?>
1250 1254 .wp-editor-wrap *,
1251 1255 .wp-editor-wrap *:after,
1252 1256 .wp-editor-wrap *:before{
1257 + -webkit-box-sizing:content-box;
1258 + -moz-box-sizing:content-box;
1253 1259 box-sizing:content-box;
1254 1260 }
1255 -<?php } ?>
1256 1261
1257 1262 .with_frm_style .frm_grid,
1258 1263 .with_frm_style .frm_grid_first,
1259 1264 .with_frm_style .frm_grid_odd{
@@ -1262,9 +1267,10 @@
1262 1267 padding:5px;
1263 1268 border-width:1px;
1264 1269 border-style:solid;
1265 1270 <?php if ( ! empty( $defaults['border_color'] ) ) { ?>
1266 - 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 ); ?>;
1267 1273 <?php } ?>
1268 1274 border-left:none;
1269 1275 border-right:none;
1270 1276 }
@@ -1299,16 +1305,18 @@
1299 1305 }
1300 1306
1301 1307 <?php if ( ! empty( $defaults['bg_color'] ) ) { ?>
1302 1308 .frm_grid_first,
1303 -.frm_grid_odd {
1304 - 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);
1305 1312 }
1306 1313 <?php } ?>
1307 1314
1308 1315 <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?>
1309 -.frm_grid {
1310 - 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 ); ?>;
1311 1319 }
1312 1320 <?php } ?>
1313 1321
1314 1322 .with_frm_style .frm_grid.frm_blank_field,
@@ -1313,10 +1321,12 @@
1313 1321
1314 1322 .with_frm_style .frm_grid.frm_blank_field,
1315 1323 .with_frm_style .frm_grid_first.frm_blank_field,
1316 1324 .with_frm_style .frm_grid_odd.frm_blank_field{
1325 + background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>;
1317 1326 background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
1318 - border-color: var(--error-border);
1327 + border-color:<?php echo esc_html( $defaults['error_border'] ); ?>;
1328 + border-color:var(--error-bg);
1319 1329 }
1320 1330
1321 1331 .frm_grid .frm_primary_label,
1322 1332 .frm_grid_first .frm_primary_label,
@@ -1338,10 +1348,9 @@
1338 1348 .frm_grid_odd .frm_radio label,
1339 1349 .frm_grid_first .frm_checkbox label,
1340 1350 .frm_grid .frm_checkbox label,
1341 1351 .frm_grid_odd .frm_checkbox label{
1342 - color:transparent;
1343 - text-indent: -9999px;
1352 + visibility:hidden;
1344 1353 white-space:nowrap;
1345 1354 text-align:left;
1346 1355 }
1347 1356
@@ -1364,8 +1373,105 @@
1364 1373 .frm_grid_odd .frm_checkbox{
1365 1374 display:inline;
1366 1375 }
1367 1376
1377 +.frm_grid_2 .frm_radio,
1378 +.frm_grid_2 .frm_checkbox,
1379 +.frm_grid_2 .frm_primary_label{
1380 + width:48% !important;
1381 +}
1382 +
1383 +.frm_grid_2 .frm_radio,
1384 +.frm_grid_2 .frm_checkbox{
1385 + margin-right:4%;
1386 +}
1387 +
1388 +.frm_grid_3 .frm_radio,
1389 +.frm_grid_3 .frm_checkbox,
1390 +.frm_grid_3 .frm_primary_label{
1391 + width:30% !important;
1392 +}
1393 +
1394 +.frm_grid_3 .frm_radio,
1395 +.frm_grid_3 .frm_checkbox{
1396 + margin-right:3%;
1397 +}
1398 +
1399 +.frm_grid_4 .frm_radio,
1400 +.frm_grid_4 .frm_checkbox{
1401 + width:20% !important;
1402 +}
1403 +
1404 +.frm_grid_4 .frm_primary_label{
1405 + width:28% !important;
1406 +}
1407 +
1408 +.frm_grid_4 .frm_radio,
1409 +.frm_grid_4 .frm_checkbox{
1410 + margin-right:4%;
1411 +}
1412 +
1413 +.frm_grid_5 .frm_primary_label,
1414 +.frm_grid_7 .frm_primary_label{
1415 + width:24% !important;
1416 +}
1417 +
1418 +.frm_grid_5 .frm_radio,
1419 +.frm_grid_5 .frm_checkbox{
1420 + width:17% !important;
1421 + margin-right:2%;
1422 +}
1423 +
1424 +.frm_grid_6 .frm_primary_label{
1425 + width:25% !important;
1426 +}
1427 +
1428 +.frm_grid_6 .frm_radio,
1429 +.frm_grid_6 .frm_checkbox{
1430 + width:14% !important;
1431 + margin-right:1%;
1432 +}
1433 +
1434 +.frm_grid_7 .frm_primary_label{
1435 + width:22% !important;
1436 +}
1437 +
1438 +.frm_grid_7 .frm_radio,
1439 +.frm_grid_7 .frm_checkbox{
1440 + width:12% !important;
1441 + margin-right:1%;
1442 +}
1443 +
1444 +.frm_grid_8 .frm_primary_label{
1445 + width:23% !important;
1446 +}
1447 +
1448 +.frm_grid_8 .frm_radio,
1449 +.frm_grid_8 .frm_checkbox{
1450 + width:10% !important;
1451 + margin-right:1%;
1452 +}
1453 +
1454 +.frm_grid_9 .frm_primary_label{
1455 + width:20% !important;
1456 +}
1457 +
1458 +.frm_grid_9 .frm_radio,
1459 +.frm_grid_9 .frm_checkbox{
1460 + width:9% !important;
1461 + margin-right:1%;
1462 +}
1463 +
1464 +.frm_grid_10 .frm_primary_label{
1465 + width:19% !important;
1466 +}
1467 +
1468 +.frm_grid_10 .frm_radio,
1469 +.frm_grid_10 .frm_checkbox{
1470 + width:8% !important;
1471 + margin-right:1%;
1472 +}
1473 +
1368 1474 .frm_form_field.frm_inline_container .frm_opt_container,
1369 1475 .frm_form_field.frm_right_container .frm_opt_container,
1370 1476 .frm_form_field.frm_left_container .frm_opt_container{
1371 1477 padding-top:4px;
@@ -1370,18 +1476,8 @@
1370 1476 .frm_form_field.frm_left_container .frm_opt_container{
1371 1477 padding-top:4px;
1372 1478 }
1373 1479
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 1480 .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label,
1385 1481 .with_frm_style .frm_inline_container.frm_grid .frm_primary_label,
1386 1482 .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label,
1387 1483 .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container,
@@ -1416,9 +1512,11 @@
1416 1512 grid-column-end: span 1;
1417 1513 }
1418 1514
1419 1515 .frm_form_field .frm_checkbox,
1420 -.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{
1421 1519 margin-top: 0;
1422 1520 margin-bottom: 0;
1423 1521 }
1424 1522
@@ -1427,24 +1525,36 @@
1427 1525 overflow:auto;
1428 1526 }
1429 1527
1430 1528 .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);
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);
1447 1557 }
1448 1558
1449 1559 .frm_form_field.frm_total_big input,
1450 1560 .frm_form_field.frm_total_big textarea,
@@ -1453,8 +1563,10 @@
1453 1563 opacity:1;
1454 1564 background-color:transparent !important;
1455 1565 border:none !important;
1456 1566 font-weight:bold;
1567 + -moz-box-shadow:none;
1568 + -webkit-box-shadow:none;
1457 1569 width:auto !important;
1458 1570 height:auto !important;
1459 1571 box-shadow:none !important;
1460 1572 display:inline;
@@ -1474,8 +1586,10 @@
1474 1586 .frm_form_field.frm_total input:focus,
1475 1587 .frm_form_field.frm_total textarea:focus{
1476 1588 background-color:transparent;
1477 1589 border:none;
1590 + -moz-box-shadow:none;
1591 + -webkit-box-shadow:none;
1478 1592 box-shadow:none;
1479 1593 }
1480 1594
1481 1595 .frm_form_field.frm_label_justify .frm_primary_label{
@@ -1500,8 +1614,13 @@
1500 1614 .frm_clearfix{
1501 1615 display:block;
1502 1616 }
1503 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 +
1504 1623 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1505 1624 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1506 1625 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1507 1626 margin-bottom: 0 !important;
@@ -1506,15 +1625,15 @@
1506 1625 .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1507 1626 margin-bottom: 0 !important;
1508 1627 }
1509 1628
1629 +<?php
1630 +FrmStylesHelper::maybe_include_font_icon_css();
1510 1631
1511 -<?php
1512 1632 /**
1513 1633 * Call action so other plugins can add additional CSS.
1514 1634 *
1515 1635 * @param array $args {
1516 - *
1517 1636 * @type array $defaults
1518 1637 * }
1519 1638 */
1520 1639 do_action( 'frm_include_front_css', compact( 'defaults' ) );
@@ -1521,9 +1640,8 @@
1521 1640 ?>
1522 1641
1523 1642 /* Responsive */
1524 1643
1525 -<?php if ( $pro_is_installed ) { ?>
1526 1644 @media only screen and (max-width: 900px) {
1527 1645 .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label,
1528 1646 .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label,
1529 1647 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
@@ -1529,9 +1647,8 @@
1529 1647 .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{
1530 1648 display: block !important;
1531 1649 }
1532 1650 }
1533 -<?php } ?>
1534 1651
1535 1652 @media only screen and (max-width: 600px) {
1536 1653 .frm_form_field.frm_four_col .frm_opt_container{
1537 1654 grid-template-columns: repeat(2, 1fr);
@@ -1536,14 +1653,12 @@
1536 1653 .frm_form_field.frm_four_col .frm_opt_container{
1537 1654 grid-template-columns: repeat(2, 1fr);
1538 1655 }
1539 1656
1540 - <?php if ( $pro_is_installed ) { ?>
1541 1657 .with_frm_style .frm_repeat_inline,
1542 1658 .with_frm_style .frm_repeat_grid{
1543 1659 margin: 20px 0;
1544 1660 }
1545 - <?php } ?>
1546 1661 }
1547 1662
1548 1663 @media only screen and (max-width: 500px) {
1549 1664 .frm_form_field.frm_two_col .frm_radio,
@@ -1568,8 +1683,9 @@
1568 1683 max-width:302px;
1569 1684 border-right:1px solid #d3d3d3;
1570 1685 border-radius:4px;
1571 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);
1572 1688 }
1573 1689
1574 1690 .with_frm_style .g-recaptcha iframe,
1575 1691 .with_frm_style .frm-g-recaptcha iframe{
@@ -1575,18 +1691,7 @@
1575 1691 .with_frm_style .frm-g-recaptcha iframe{
1576 1692 width:100%;
1577 1693 }
1578 1694 }
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 1695 <?php
1587 1696
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 -}
1697 +echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped