PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.16
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.16
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/_single_theme.css.php +90 -114 6.356.16 View file →
@@ -5,15 +5,18 @@
5 5
6 6 $settings = FrmStylesHelper::get_settings_for_output( $style );
7 7 extract( $settings ); // phpcs:ignore WordPress.PHP.DontExtract
8 8
9 -$is_loaded_via_ajax = $is_loaded_via_ajax ?? false;
9 +$is_loaded_via_ajax = isset( $is_loaded_via_ajax ) ? $is_loaded_via_ajax : false;
10 10 FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax );
11 11
12 -$important = ! empty( $important_style ) ? ' !important' : '';
13 -$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings );
14 -$use_chosen_js = $use_chosen_js ?? FrmStylesHelper::use_chosen_js();
15 -$pro_is_installed = $pro_is_installed ?? FrmAppHelper::pro_is_installed();
12 +$important = empty( $important_style ) ? '' : ' !important';
13 +
14 +$minus_icons = FrmStylesHelper::minus_icons();
15 +$arrow_icons = FrmStylesHelper::arrow_icons();
16 +$submit_bg_img = FrmStylesHelper::get_submit_image_bg_url( $settings );
17 +$use_chosen_js = FrmStylesHelper::use_chosen_js();
18 +
16 19 ?>
17 20 .<?php echo esc_html( $style_class ); ?>{
18 21 <?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
19 22 }
@@ -18,10 +21,10 @@
18 21 <?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
19 22 }
20 23
21 24 .frm_forms.<?php echo esc_html( $style_class ); ?>{
22 - max-width:var(--form-width)<?php echo esc_html( $important ); ?>;
23 - direction:var(--direction)<?php echo esc_html( $important ); ?>;
25 + max-width:<?php echo esc_html( $form_width . $important ); ?>;
26 + direction:<?php echo esc_html( $direction . $important ); ?>;
24 27 <?php if ( 'rtl' === $direction ) { ?>
25 28 unicode-bidi:embed;
26 29 <?php } ?>
27 30 <?php if ( $center_form ) { ?>
@@ -36,17 +39,15 @@
36 39 <?php } ?>
37 40
38 41 <?php if ( ! empty( $field_margin ) ) { ?>
39 42 .<?php echo esc_html( $style_class ); ?> .form-field{
40 - margin-bottom:var(--field-margin)<?php echo esc_html( $important ); ?>;
43 + margin-bottom:<?php echo esc_html( $field_margin . $important ); ?>;
41 44 }
42 45 <?php } ?>
43 46
44 -<?php if ( $pro_is_installed ) { ?>
45 47 .<?php echo esc_html( $style_class ); ?> .form-field.frm_section_heading{
46 48 margin-bottom:0<?php echo esc_html( $important ); ?>;
47 49 }
48 -<?php } ?>
49 50
50 51 .<?php echo esc_html( $style_class ); ?> p.description,
51 52 .<?php echo esc_html( $style_class ); ?> div.description,
52 53 .<?php echo esc_html( $style_class ); ?> div.frm_description,
@@ -59,9 +60,9 @@
59 60 margin-top: 6px;
60 61 <?php } ?>
61 62 padding:0;
62 63 <?php if ( ! empty( $font ) ) { ?>
63 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
64 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
64 65 <?php } ?>
65 66 <?php if ( ! empty( $description_font_size ) ) { ?>
66 67 font-size:<?php echo esc_html( $description_font_size . $important ); ?>;
67 68 <?php } ?>
@@ -82,8 +83,10 @@
82 83
83 84 /* Left and right labels */
84 85 <?php
85 86
87 +$frm_settings = FrmAppHelper::get_settings();
88 +
86 89 if ( '' === $field_height || 'auto' === $field_height ) {
87 90 foreach ( array( 'left', 'right', 'inline' ) as $alignit ) {
88 91 ?>
89 92 .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=text],
@@ -108,8 +111,12 @@
108 111 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_right_container{
109 112 grid-template-columns: auto <?php echo esc_html( $width ); ?>;
110 113 }
111 114
115 +.frm_form_field.frm_right_container{
116 + grid-template-columns: auto 25%;
117 +}
118 +
112 119 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_data_container,
113 120 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_opt_container{
114 121 display:inline<?php echo esc_html( $important ); ?>;
115 122 }
@@ -115,9 +122,9 @@
115 122 }
116 123
117 124 .<?php echo esc_html( $style_class ); ?> .frm_pos_right{
118 125 display:inline<?php echo esc_html( $important ); ?>;
119 - width:var(--width)<?php echo esc_html( $important ); ?>;
126 + width:<?php echo esc_html( $width . $important ); ?>;
120 127 }
121 128
122 129 .<?php echo esc_html( $style_class ); ?> .frm_none_container .frm_primary_label,
123 130 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
@@ -123,15 +130,15 @@
123 130 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
124 131 display:none<?php echo esc_html( $important ); ?>;
125 132 }
126 133
127 -<?php if ( $pro_is_installed ) : ?>
134 +<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
128 135 .<?php echo esc_html( $style_class ); ?> .frm_scale label{
129 136 <?php if ( ! empty( $check_weight ) ) { ?>
130 137 font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
131 138 <?php } ?>
132 139 <?php if ( ! empty( $font ) ) { ?>
133 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
140 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
134 141 <?php } ?>
135 142 <?php if ( ! empty( $check_font_size ) ) { ?>
136 143 font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
137 144 <?php } ?>
@@ -140,12 +147,25 @@
140 147 <?php } ?>
141 148 }
142 149 <?php endif; ?>
143 150
151 +/* These do not work if they are combined */
144 152 .<?php echo esc_html( $style_class ); ?> input::placeholder,
145 153 .<?php echo esc_html( $style_class ); ?> textarea::placeholder{
146 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
154 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
147 155 }
156 +.<?php echo esc_html( $style_class ); ?> input::-webkit-input-placeholder,
157 +.<?php echo esc_html( $style_class ); ?> textarea::-webkit-input-placeholder{
158 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
159 +}
160 +.<?php echo esc_html( $style_class ); ?> input::-moz-placeholder,
161 +.<?php echo esc_html( $style_class ); ?> textarea::-moz-placeholder{
162 + opacity: 1;
163 +}
164 +.<?php echo esc_html( $style_class ); ?> input:-ms-input-placeholder,
165 +<?php echo esc_html( $style_class ); ?> textarea:-ms-input-placeholder{
166 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
167 +}
148 168
149 169 .<?php echo esc_html( $style_class ); ?> .frm_default,
150 170 .<?php echo esc_html( $style_class ); ?> input.frm_default,
151 171 .<?php echo esc_html( $style_class ); ?> textarea.frm_default,
@@ -154,14 +174,14 @@
154 174 .<?php echo esc_html( $style_class ); ?> .chosen-container-multi .chosen-choices li.search-field .default,
155 175 .<?php echo esc_html( $style_class ); ?> .chosen-container-single .chosen-default,
156 176 <?php } ?>
157 177 .<?php echo esc_html( $style_class ); ?> .placeholder {
158 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
178 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
159 179 }
160 180
161 181 .<?php echo esc_html( $style_class ); ?> .form-field input:not([type=file]):not([type=range]):not([readonly]):focus,
162 182 .<?php echo esc_html( $style_class ); ?> select:focus,
163 -.<?php echo esc_html( $style_class ); ?> .form-field textarea:focus,
183 +.<?php echo esc_html( $style_class ); ?> textarea:focus,
164 184 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=text],
165 185 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=password],
166 186 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=email],
167 187 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=number],
@@ -173,12 +193,12 @@
173 193 .<?php echo esc_html( $style_class ); ?> .chosen-container-single.chosen-container-active .chosen-single,
174 194 .<?php echo esc_html( $style_class ); ?> .chosen-container-active .chosen-choices,
175 195 <?php } ?>
176 196 .<?php echo esc_html( $style_class ); ?> .frm_focus_field .frm-card-element.StripeElement {
177 - background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>;
178 - border-color:var(--border-color-active)<?php echo esc_html( $important ); ?>;
179 - color:var(--text-color);
180 - <?php if ( ! empty( $remove_box_shadow_active ) ) { ?>
197 + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>;
198 + border-color:<?php echo esc_html( $border_color_active . $important ); ?>;
199 + color: var(--text-color);
200 + <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?>
181 201 box-shadow:none;
182 202 outline: none;
183 203 <?php } else { ?>
184 204 box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
@@ -184,28 +204,18 @@
184 204 box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
185 205 <?php } ?>
186 206 }
187 207
188 -.<?php echo esc_html( $style_class ); ?> input:-webkit-autofill {
189 - <?php if ( ! empty( $remove_box_shadow_active ) ) { ?>
190 - -webkit-box-shadow: none<?php echo esc_html( $important ); ?>;
191 - <?php } else { ?>
192 - -webkit-box-shadow: 0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
193 - <?php } ?>
194 -}
195 -
196 208 <?php if ( ! $submit_style ) { ?>
197 - <?php if ( $pro_is_installed ) { ?>
198 209 .<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message,
199 -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn,
200 - <?php } ?>
201 210 .<?php echo esc_html( $style_class ); ?> input[type=submit],
202 211 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button],
203 212 .<?php echo esc_html( $style_class ); ?> .frm_submit button,
204 -.frm_form_submit_style {
205 - width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); // phpcs:ignore Universal.Operators.StrictComparisons ?>;
213 +.frm_form_submit_style,
214 +.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn {
215 + width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); ?>;
206 216 <?php if ( ! empty( $font ) ) { ?>
207 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
217 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
208 218 <?php } ?>
209 219 font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
210 220 height:<?php echo esc_html( $submit_height . $important ); ?>;
211 221 line-height:normal<?php echo esc_html( $important ); ?>;
@@ -212,10 +222,9 @@
212 222 text-align:center;
213 223 background:
214 224 <?php
215 225 echo esc_html( $submit_bg_color );
216 -
217 - if ( $submit_bg_img ) {
226 + if ( ! empty( $submit_bg_img ) ) {
218 227 echo esc_html( ' url(' . $submit_bg_img . ')' );
219 228 }
220 229 echo esc_html( $important );
221 230 ?>
@@ -237,9 +246,9 @@
237 246 <?php } ?>
238 247 margin:<?php echo esc_html( $submit_margin ); ?>;
239 248 <?php
240 249 // For reverse compatibility... But allow "10px 10px".
241 - if ( ! str_contains( trim( $submit_margin ), ' ' ) ) {
250 + if ( strpos( trim( $submit_margin ), ' ' ) === false ) {
242 251 ?>
243 252 margin-left:0;
244 253 margin-right:0;
245 254 <?php } ?>
@@ -245,33 +254,27 @@
245 254 <?php } ?>
246 255 vertical-align:middle;
247 256 }
248 257
249 - <?php if ( $pro_is_installed ) { ?>
250 258 .<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{
251 259 margin:0;
252 260 }
253 - <?php } ?>
254 261
255 - <?php if ( ! $submit_bg_img ) { ?>
256 - <?php if ( $pro_is_installed ) { ?>
262 + <?php if ( empty( $submit_bg_img ) ) { ?>
257 263 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:hover,
258 - <?php } ?>
259 264 .<?php echo esc_html( $style_class ); ?> input[type=submit]:hover,
260 265 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover,
261 266 .<?php echo esc_html( $style_class ); ?> .frm_submit button:hover{
262 - background:var(--submit-hover-bg-color)<?php echo esc_html( $important ); ?>;
263 - border-color:var(--submit-hover-border-color)<?php echo esc_html( $important ); ?>;
264 - color:var(--submit-hover-color)<?php echo esc_html( $important ); ?>;
267 + background: <?php echo esc_html( $submit_hover_bg_color . $important ); ?>;
268 + border-color: <?php echo esc_html( $submit_hover_border_color . $important ); ?>;
269 + color: <?php echo esc_html( $submit_hover_color . $important ); ?>;
265 270 }
266 271
267 272 .<?php echo esc_html( $style_class ); ?>.frm_center_submit .frm_submit .frm_ajax_loading{
268 - margin-bottom:<?php echo esc_html( FrmStylesHelper::get_bottom_value( $submit_margin ) ); ?>;
273 + margin-bottom:<?php echo esc_html( $submit_margin ); ?>;
269 274 }
270 275
271 - <?php if ( $pro_is_installed ) { ?>
272 276 .<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:focus,
273 - <?php } ?>
274 277 .<?php echo esc_html( $style_class ); ?> input[type=submit]:focus,
275 278 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:focus,
276 279 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
277 280 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
@@ -276,48 +279,38 @@
276 279 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
277 280 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
278 281 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:active,
279 282 .<?php echo esc_html( $style_class ); ?> .frm_submit button:active{
280 - background:var(--submit-active-bg-color)<?php echo esc_html( $important ); ?>;
281 - border-color:var(--submit-active-border-color)<?php echo esc_html( $important ); ?>;
282 - color:var(--submit-active-color)<?php echo esc_html( $important ); ?>;
283 + background: <?php echo esc_html( $submit_active_bg_color . $important ); ?>;
284 + border-color: <?php echo esc_html( $submit_active_border_color . $important ); ?>;
285 + color: <?php echo esc_html( $submit_active_color . $important ); ?>;
283 286 outline: none;
284 287 }
285 288
286 - <?php if ( $pro_is_installed ) { ?>
287 289 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page,
288 290 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:hover,
289 291 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:active,
290 292 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:focus,
291 - <?php } ?>
292 293 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit,
293 294 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:hover,
294 295 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:active,
295 296 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:focus{
296 - color: transparent<?php echo esc_html( $important ); ?>;
297 - background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
298 - border-color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>;
297 + color: transparent <?php echo esc_html( $important ); ?>;
298 + background: <?php echo esc_html( $submit_bg_color . $important ); ?>;
299 + border-color: <?php echo esc_html( $submit_bg_color . $important ); ?>;
299 300 }
300 301
301 - <?php if ( $pro_is_installed ) { ?>
302 302 .<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:before,
303 - <?php } ?>
304 303 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:before {
305 - border-bottom-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
306 - border-right-color:var(--submit-text-color)<?php echo esc_html( $important ); ?>;
304 + border-bottom-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
305 + border-right-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
307 306 <?php if ( $submit_height !== 'auto' ) { ?>
308 - max-height:var(--submit-height)<?php echo esc_html( $important ); ?>;
307 + max-height:<?php echo esc_html( $submit_height ); ?>;
309 308 <?php } ?>
310 309 <?php if ( $submit_width !== 'auto' ) { ?>
311 - max-width:var(--submit-width)<?php echo esc_html( $important ); ?>;
310 + max-width:<?php echo esc_html( $submit_width ); ?>;
312 311 <?php } ?>
313 312 }
314 -.<?php echo esc_html( $style_class ); ?> input[type=submit][disabled],
315 -.<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button][disabled],
316 -.<?php echo esc_html( $style_class ); ?> .frm_submit button[disabled] {
317 - opacity: 0.5;
318 - cursor: not-allowed;
319 -}
320 313 <?php
321 314 }//end if
322 315 }//end if
323 316 ?>
@@ -325,15 +318,15 @@
325 318 .<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before,
326 319 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before {
327 320 content:"before";
328 321 <?php if ( ! empty( $font ) ) { ?>
329 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
322 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
330 323 <?php } ?>
331 - font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
332 - color:var(--label-color)<?php echo esc_html( $important ); ?>;
333 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
324 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
325 + color:<?php echo esc_html( $label_color . $important ); ?>;
326 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
334 327 margin:0;
335 - padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
328 + padding:<?php echo esc_html( $label_padding . $important ); ?>;
336 329 width:auto;
337 330 display:block;
338 331 visibility:hidden;
339 332 }
@@ -344,24 +337,17 @@
344 337 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit button {
345 338 margin: 0 !important;
346 339 }
347 340
348 -<?php
349 -// Only include this CSS when the math captcha plugin is active.
350 -if ( class_exists( 'FrmCptController' ) ) :
351 - ?>
352 341 .<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{
353 342 <?php if ( ! empty( $font ) ) { ?>
354 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
343 + font-family:<?php echo FrmAppHelper::kses( $font ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
355 344 <?php } ?>
356 - font-size:var(--font-size)<?php echo esc_html( $important ); ?>;
357 - color:var(--label-color)<?php echo esc_html( $important ); ?>;
358 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
345 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
346 + color:<?php echo esc_html( $label_color . $important ); ?>;
347 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
359 348 clear:both;
360 349 }
361 - <?php
362 -endif;
363 -?>
364 350
365 351 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=text],
366 352 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=password],
367 353 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
@@ -367,14 +353,10 @@
367 353 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
368 354 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel],
369 355 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number],
370 356 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=email],
371 -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=checkbox],
372 -.<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=radio],
373 357 .<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea,
374 -<?php if ( $pro_is_installed ) { ?>
375 358 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .mce-edit-area iframe,
376 -<?php } ?>
377 359 .<?php echo esc_html( $style_class ); ?> .frm_blank_field select:not(.ui-datepicker-month):not(.ui-datepicker-year),
378 360 .frm_form_fields_error_style,
379 361 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe,
380 362 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe,
@@ -383,51 +365,46 @@
383 365 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-multi .chosen-choices,
384 366 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-single .chosen-single,
385 367 <?php } ?>
386 368 .<?php echo esc_html( $style_class ); ?> .frm_form_field :invalid {
387 - color:var(--text-color-error)<?php echo esc_html( $important ); ?>;
388 - background-color:var(--bg-color-error)<?php echo esc_html( $important ); ?>;
389 - border-color:var(--border-color-error)<?php echo esc_html( $important ); ?>;
390 - border-width:var(--border-width-error)<?php echo esc_html( $important ); ?>;
391 - border-style:var(--border-style-error)<?php echo esc_html( $important ); ?>;
369 + color:<?php echo esc_html( $text_color_error . $important ); ?>;
370 + background-color:<?php echo esc_html( $bg_color_error . $important ); ?>;
371 + border-color:<?php echo esc_html( $border_color_error . $important ); ?>;
372 + border-width:var(--border-width-error) <?php echo esc_html( $important ); ?>;
373 + border-style:<?php echo esc_html( $border_style_error . $important ); ?>;
392 374 }
393 375
394 -<?php
395 -// Only include this style when the signatures add-on is active
396 -if ( class_exists( 'FrmSigField' ) ) :
397 - ?>
398 376 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{
399 - border-color:var(--border-color-error) !important;
377 + border-color:<?php echo esc_html( $border_color_error ); ?> !important;
400 378 }
401 - <?php
402 -endif;
403 -?>
404 379
405 380 .<?php echo esc_html( $style_class ); ?> .frm_error,
406 381 .<?php echo esc_html( $style_class ); ?> .frm_limit_error{
407 - font-weight:var(--weight)<?php echo esc_html( $important ); ?>;
408 - color:var(--border-color-error)<?php echo esc_html( $important ); ?>;
382 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
409 383 }
410 384
385 +.<?php echo esc_html( $style_class ); ?> .frm_error,
386 +.<?php echo esc_html( $style_class ); ?> .frm_limit_error{
387 + color:<?php echo esc_html( $text_color_error . $important ); ?>;
388 +}
389 +
411 390 .<?php echo esc_html( $style_class ); ?> .frm_error_style{
412 - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>;
413 - border:1px solid var(--error-border)<?php echo esc_html( $important ); ?>;
414 - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>;
415 - color:var(--error-text)<?php echo esc_html( $important ); ?>;
416 - font-size:var(--error-font-size)<?php echo esc_html( $important ); ?>;
391 + background-color:<?php echo esc_html( $error_bg . $important ); ?>;
392 + border:1px solid <?php echo esc_html( $error_border . $important ); ?>;
393 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
394 + color: <?php echo esc_html( $error_text . $important ); ?>;
395 + font-size:<?php echo esc_html( $error_font_size . $important ); ?>;
417 396 margin:0;
418 - margin-bottom:var(--field-margin);
397 + margin-bottom:<?php echo esc_html( $field_margin ); ?>;
419 398 }
420 399
421 -<?php if ( $pro_is_installed ) { ?>
422 400 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{
423 401 background-image:linear-gradient(45deg, <?php echo esc_html( $border_color ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $border_color ); ?> 50%, <?php echo esc_html( $border_color ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
424 402 }
425 403
426 404 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{
427 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
405 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
428 406 }
429 -<?php } ?>
430 407
431 408 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input,
432 409 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea,
433 410 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total input,
@@ -439,6 +416,5 @@
439 416 width:auto<?php echo esc_html( $important ); ?>;
440 417 padding:0<?php echo esc_html( $important ); ?>;
441 418 }
442 419
443 -<?php echo strip_tags( FrmStylesController::get_custom_css( $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
444 420 <?php do_action( 'frm_output_single_style', $settings ); ?>