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