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