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