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