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