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