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