PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.01.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.01.02
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 +486 -207 6.354.01.02 View file →
@@ -1,28 +1,21 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
5 2
6 3 $settings = FrmStylesHelper::get_settings_for_output( $style );
7 -extract( $settings ); // phpcs:ignore WordPress.PHP.DontExtract
4 +extract( $settings );
8 5
9 -$is_loaded_via_ajax = $is_loaded_via_ajax ?? false;
10 -FrmStylesPreviewHelper::get_additional_preview_style( $settings, $is_loaded_via_ajax );
6 +$important = empty( $important_style ) ? '' : ' !important';
7 +$label_margin = (int) $width + 10;
11 8
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();
9 +$minus_icons = FrmStylesHelper::minus_icons();
10 +$arrow_icons = FrmStylesHelper::arrow_icons();
11 +
16 12 ?>
17 -.<?php echo esc_html( $style_class ); ?>{
18 -<?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
19 -}
20 13
21 14 .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 ) { ?>
15 + max-width:<?php echo esc_html( $form_width . $important ); ?>;
16 + direction:<?php echo esc_html( $direction . $important ); ?>;
17 + <?php if ( 'rtl' == $direction ) { ?>
25 18 unicode-bidi:embed;
26 19 <?php } ?>
27 20 <?php if ( $center_form ) { ?>
28 21 margin:0 auto;
@@ -28,8 +21,14 @@
28 21 margin:0 auto;
29 22 <?php } ?>
30 23 }
31 24
25 +.<?php echo esc_html( $style_class ); ?>,
26 +.<?php echo esc_html( $style_class ); ?> form,
27 +.<?php echo esc_html( $style_class ); ?> .frm-show-form div.frm_description p {
28 + text-align:<?php echo esc_html( $form_align . $important ); ?>;
29 +}
30 +
32 31 <?php if ( $center_form ) { ?>
33 32 .frm_inline_form.<?php echo esc_html( $style_class ); ?> form{
34 33 text-align:center;
35 34 }
@@ -34,56 +33,124 @@
34 33 text-align:center;
35 34 }
36 35 <?php } ?>
37 36
38 -<?php if ( ! empty( $field_margin ) ) { ?>
37 +.<?php echo esc_html( $style_class ); ?> .frm_form_fields > fieldset{
38 + border-width:<?php echo esc_html( $fieldset . $important ); ?>;
39 + border-style:solid;
40 + border-color:<?php echo esc_html( $fieldset_color . $important ); ?>;
41 + margin:0;
42 + padding:<?php echo esc_html( $fieldset_padding . $important ); ?>;
43 + background-color:<?php echo esc_html( $fieldset_bg_color ); ?>;
44 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
45 +}
46 +
47 +.<?php echo esc_html( $style_class ); ?> legend + h3,
48 +.<?php echo esc_html( $style_class ); ?> h3.frm_form_title{
49 + font-size:<?php echo esc_html( $title_size . $important ); ?>;
50 + color:<?php echo esc_html( $title_color . $important ); ?>;
51 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
52 + margin-top:<?php echo esc_html( $title_margin_top . $important ); ?>;
53 + margin-bottom:<?php echo esc_html( $title_margin_bottom . $important ); ?>;
54 +}
55 +
56 +.<?php echo esc_html( $style_class ); ?> .frm_primary_label{
57 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
58 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
59 + color:<?php echo esc_html( $label_color . $important ); ?>;
60 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
61 + text-align:<?php echo esc_html( $align . $important ); ?>;
62 + margin:0;
63 + padding:<?php echo esc_html( $label_padding . $important ); ?>;
64 + width:auto;
65 + display:block;
66 +}
67 +
68 +.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_html_container,
69 +.<?php echo esc_html( $style_class ); ?> .frm_form_field .frm_show_it{
70 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
71 + color:<?php echo esc_html( $form_desc_color . $important ); ?>;
72 +}
73 +
74 +.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_html_container{
75 + font-size:<?php echo esc_html( $form_desc_size . $important ); ?>;
76 +}
77 +
78 +.<?php echo esc_html( $style_class ); ?> .frm_form_field .frm_show_it{
79 + font-size:<?php echo esc_html( $field_font_size . $important ); ?>;
80 + font-weight:<?php echo esc_html( $field_weight ); ?>;
81 +}
82 +
83 +.<?php echo esc_html( $style_class ); ?> .frm_icon_font{
84 + color:<?php echo esc_html( $label_color . $important ); ?>;
85 +}
86 +
87 +.<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_minus_icon:before{
88 + content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['-'] : $minus_icons[1]['-'] ); ?>";
89 +}
90 +
91 +.<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_plus_icon:before{
92 + content:"\e<?php echo esc_html( isset( $minus_icons[ $repeat_icon ] ) ? $minus_icons[ $repeat_icon ]['+'] : $minus_icons[1]['+'] ); ?>";
93 +}
94 +
95 +.<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_minus_icon:before,
96 +.<?php echo esc_html( $style_class ); ?> .frm_icon_font.frm_plus_icon:before{
97 + color:<?php echo esc_html( $submit_text_color . $important ); ?>;
98 + vertical-align:middle;
99 +}
100 +
101 +.<?php echo esc_html( $style_class ); ?> .frm_trigger.active .frm_icon_font.frm_arrow_icon:before{
102 + content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['-'] : $arrow_icons[1]['-'] ); ?>";
103 + color:<?php echo esc_html( $section_color . $important ); ?>;
104 +}
105 +
106 +.<?php echo esc_html( $style_class ); ?> .frm_trigger .frm_icon_font.frm_arrow_icon:before{
107 + content:"\e<?php echo esc_html( isset( $arrow_icons[ $collapse_icon ] ) ? $arrow_icons[ $collapse_icon ]['+'] : $arrow_icons[1]['+'] ); ?>";
108 + color:<?php echo esc_html( $section_color . $important ); ?>;
109 +}
110 +
39 111 .<?php echo esc_html( $style_class ); ?> .form-field{
40 - margin-bottom:var(--field-margin)<?php echo esc_html( $important ); ?>;
112 + margin-bottom:<?php echo esc_html( $field_margin . $important ); ?>;
41 113 }
42 -<?php } ?>
43 -
44 -<?php if ( $pro_is_installed ) { ?>
114 +.<?php echo esc_html( $style_class ); ?> .frm_grid,
115 +.<?php echo esc_html( $style_class ); ?> .frm_grid_first,
116 +.<?php echo esc_html( $style_class ); ?> .frm_grid_odd {
117 + margin-bottom:0<?php echo esc_html( $important ); ?>;
118 +}
45 119 .<?php echo esc_html( $style_class ); ?> .form-field.frm_section_heading{
46 120 margin-bottom:0<?php echo esc_html( $important ); ?>;
47 121 }
48 -<?php } ?>
49 122
50 123 .<?php echo esc_html( $style_class ); ?> p.description,
51 124 .<?php echo esc_html( $style_class ); ?> div.description,
52 125 .<?php echo esc_html( $style_class ); ?> div.frm_description,
53 126 .<?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{
56 - <?php if ( ! empty( $description_margin ) ) { ?>
57 - margin:<?php echo esc_html( $description_margin . $important ); ?>;
58 - <?php } else { ?>
59 - margin-top: 6px;
60 - <?php } ?>
127 +.<?php echo esc_html( $style_class ); ?> .frm_error{
128 + margin:<?php echo esc_html( $description_margin . $important ); ?>;
61 129 padding:0;
62 - <?php if ( ! empty( $font ) ) { ?>
63 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
64 - <?php } ?>
65 - <?php if ( ! empty( $description_font_size ) ) { ?>
66 - font-size:<?php echo esc_html( $description_font_size . $important ); ?>;
67 - <?php } ?>
68 - <?php if ( ! empty( $description_color ) ) { ?>
69 - color:<?php echo esc_html( $description_color . $important ); ?>;
70 - <?php } ?>
71 - <?php if ( ! empty( $description_weight ) ) { ?>
72 - font-weight:<?php echo esc_html( $description_weight . $important ); ?>;
73 - <?php } ?>
74 - <?php if ( ! empty( $description_align ) ) { ?>
75 - text-align:<?php echo esc_html( $description_align . $important ); ?>;
76 - <?php } ?>
77 - <?php if ( ! empty( $description_style ) ) { ?>
78 - font-style:<?php echo esc_html( $description_style . $important ); ?>;
79 - <?php } ?>
130 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
131 + font-size:<?php echo esc_html( $description_font_size . $important ); ?>;
132 + color:<?php echo esc_html( $description_color . $important ); ?>;
133 + font-weight:<?php echo esc_html( $description_weight . $important ); ?>;
134 + text-align:<?php echo esc_html( $description_align . $important ); ?>;
135 + font-style:<?php echo esc_html( $description_style . $important ); ?>;
80 136 max-width:100%;
81 137 }
82 138
139 +/* Form description */
140 +.<?php echo esc_html( $style_class ); ?> .frm-show-form div.frm_description p{
141 + font-size:<?php echo esc_html( $form_desc_size . $important ); ?>;
142 + color:<?php echo esc_html( $form_desc_color . $important ); ?>;
143 + margin-top:<?php echo esc_html( $form_desc_margin_top . $important ); ?>;
144 + margin-bottom:<?php echo esc_html( $form_desc_margin_bottom . $important ); ?>;
145 +
146 +}
147 +
83 148 /* Left and right labels */
84 149 <?php
85 150
151 +$frm_settings = FrmAppHelper::get_settings();
152 +
86 153 if ( '' === $field_height || 'auto' === $field_height ) {
87 154 foreach ( array( 'left', 'right', 'inline' ) as $alignit ) {
88 155 ?>
89 156 .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=text],
@@ -96,9 +163,13 @@
96 163 .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container input[type=search],
97 164 .<?php echo esc_html( $style_class ); ?> .frm_<?php echo esc_html( $alignit ); ?>_container select,
98 165 <?php } ?>
99 166 .<?php echo esc_html( $style_class ); ?> .frm_left_container select{
100 - height:fit-content<?php echo esc_html( $important ); ?>;
167 + <?php if ( $frm_settings->old_css ) { ?>
168 + height:auto<?php echo esc_html( $important ); ?>;
169 + <?php } else { ?>
170 + height:fit-content<?php echo esc_html( $important ); ?>;
171 + <?php } ?>
101 172 }
102 173 <?php } ?>
103 174
104 175 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_left_container{
@@ -108,8 +179,12 @@
108 179 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_right_container{
109 180 grid-template-columns: auto <?php echo esc_html( $width ); ?>;
110 181 }
111 182
183 +.frm_form_field.frm_right_container{
184 + grid-template-columns: auto 25%;
185 +}
186 +
112 187 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_data_container,
113 188 .<?php echo esc_html( $style_class ); ?> .frm_inline_container.frm_dynamic_select_container .frm_opt_container{
114 189 display:inline<?php echo esc_html( $important ); ?>;
115 190 }
@@ -115,9 +190,9 @@
115 190 }
116 191
117 192 .<?php echo esc_html( $style_class ); ?> .frm_pos_right{
118 193 display:inline<?php echo esc_html( $important ); ?>;
119 - width:var(--width)<?php echo esc_html( $important ); ?>;
194 + width:<?php echo esc_html( $width . $important ); ?>;
120 195 }
121 196
122 197 .<?php echo esc_html( $style_class ); ?> .frm_none_container .frm_primary_label,
123 198 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
@@ -123,45 +198,185 @@
123 198 .<?php echo esc_html( $style_class ); ?> .frm_pos_none{
124 199 display:none<?php echo esc_html( $important ); ?>;
125 200 }
126 201
127 -<?php if ( $pro_is_installed ) : ?>
128 202 .<?php echo esc_html( $style_class ); ?> .frm_scale label{
129 - <?php if ( ! empty( $check_weight ) ) { ?>
130 - font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
131 - <?php } ?>
132 - <?php if ( ! empty( $font ) ) { ?>
133 - font-family:<?php FrmAppHelper::kses_echo( $font . $important ); ?>;
134 - <?php } ?>
135 - <?php if ( ! empty( $check_font_size ) ) { ?>
136 - font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
137 - <?php } ?>
138 - <?php if ( ! empty( $check_label_color ) ) { ?>
139 - color:<?php echo esc_html( $check_label_color . $important ); ?>;
140 - <?php } ?>
203 + font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
204 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
205 + font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
206 + color:<?php echo esc_html( $check_label_color . $important ); ?>;
141 207 }
142 -<?php endif; ?>
143 208
209 +.<?php echo esc_html( $style_class ); ?> .frm_required{
210 + color:<?php echo esc_html( $required_color . $important ); ?>;
211 + font-weight:<?php echo esc_html( $required_weight . $important ); ?>;
212 +}
213 +
214 +.<?php echo esc_html( $style_class ); ?> input[type=text],
215 +.<?php echo esc_html( $style_class ); ?> input[type=password],
216 +.<?php echo esc_html( $style_class ); ?> input[type=email],
217 +.<?php echo esc_html( $style_class ); ?> input[type=number],
218 +.<?php echo esc_html( $style_class ); ?> input[type=url],
219 +.<?php echo esc_html( $style_class ); ?> input[type=tel],
220 +.<?php echo esc_html( $style_class ); ?> input[type=search],
221 +.<?php echo esc_html( $style_class ); ?> select,
222 +.<?php echo esc_html( $style_class ); ?> textarea,
223 +.<?php echo esc_html( $style_class ); ?> .chosen-container{
224 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
225 + font-size:<?php echo esc_html( $field_font_size ); ?>;
226 + margin-bottom:0<?php echo esc_html( $important ); ?>;
227 +}
228 +
229 +.<?php echo esc_html( $style_class ); ?> textarea{
230 + vertical-align:top;
231 +}
232 +
233 +.<?php echo esc_html( $style_class ); ?> input[type=text],
234 +.<?php echo esc_html( $style_class ); ?> input[type=password],
235 +.<?php echo esc_html( $style_class ); ?> input[type=email],
236 +.<?php echo esc_html( $style_class ); ?> input[type=number],
237 +.<?php echo esc_html( $style_class ); ?> input[type=url],
238 +.<?php echo esc_html( $style_class ); ?> input[type=tel],
239 +.<?php echo esc_html( $style_class ); ?> input[type=phone],
240 +.<?php echo esc_html( $style_class ); ?> input[type=search],
241 +.<?php echo esc_html( $style_class ); ?> select,
242 +.<?php echo esc_html( $style_class ); ?> textarea,
243 +.frm_form_fields_style,
244 +.<?php echo esc_html( $style_class ); ?> .frm_scroll_box .frm_opt_container,
245 +.frm_form_fields_active_style,
246 +.frm_form_fields_error_style,
247 +.<?php echo esc_html( $style_class ); ?> .chosen-container-multi .chosen-choices,
248 +.<?php echo esc_html( $style_class ); ?> .chosen-container-single .chosen-single{
249 + color:<?php echo esc_html( $text_color . $important ); ?>;
250 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
251 +<?php
252 +if ( ! empty( $important ) ) {
253 + echo esc_html( 'background-image:none' . $important . ';' );
254 +}
255 +?>
256 + border-color: <?php echo esc_html( $border_color . $important ); ?>;
257 + border-width:<?php echo esc_html( $field_border_width . $important ); ?>;
258 + border-style:<?php echo esc_html( $field_border_style . $important ); ?>;
259 + -moz-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
260 + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
261 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
262 + width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ); ?>;
263 + max-width:100%;
264 + font-size:<?php echo esc_html( $field_font_size . $important ); ?>;
265 + padding:<?php echo esc_html( $field_pad . $important ); ?>;
266 + -webkit-box-sizing:border-box;
267 + -moz-box-sizing:border-box;
268 + box-sizing:border-box;
269 + outline:none<?php echo esc_html( $important ); ?>;
270 + font-weight:<?php echo esc_html( $field_weight ); ?>;
271 + box-shadow:<?php echo esc_html( ( isset( $remove_box_shadow ) && $remove_box_shadow ) ? 'none' : '0 1px 1px rgba(0, 0, 0, 0.075) inset' ) . esc_html( $important ); ?>;
272 +}
273 +
274 +.<?php echo esc_html( $style_class ); ?> input[type=radio],
275 +.<?php echo esc_html( $style_class ); ?> input[type=checkbox]{
276 + border-color: <?php echo esc_html( $border_color . $important ); ?>;
277 + box-shadow:<?php echo esc_html( ( isset( $remove_box_shadow ) && $remove_box_shadow ) ? 'none' : '0 1px 1px rgba(0, 0, 0, 0.075) inset' ) . esc_html( $important ); ?>;
278 +}
279 +
280 +.<?php echo esc_html( $style_class ); ?> input[type=text],
281 +.<?php echo esc_html( $style_class ); ?> input[type=password],
282 +.<?php echo esc_html( $style_class ); ?> input[type=email],
283 +.<?php echo esc_html( $style_class ); ?> input[type=number],
284 +.<?php echo esc_html( $style_class ); ?> input[type=url],
285 +.<?php echo esc_html( $style_class ); ?> input[type=tel],
286 +.<?php echo esc_html( $style_class ); ?> input[type=file],
287 +.<?php echo esc_html( $style_class ); ?> input[type=search],
288 +.<?php echo esc_html( $style_class ); ?> select{
289 + height:<?php echo esc_html( ( $field_height == '' ? 'auto' : $field_height ) . $important ); ?>;
290 + line-height:1.3<?php echo esc_html( $important ); ?>;
291 +}
292 +
293 +.<?php echo esc_html( $style_class ); ?> select[multiple="multiple"]{
294 + height:auto <?php echo esc_html( $important ); ?>;
295 +}
296 +
297 +.<?php echo esc_html( $style_class ); ?> input[type=file]{
298 + color: <?php echo esc_html( $text_color . $important ); ?>;
299 + padding:0px;
300 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
301 + font-size:<?php echo esc_html( $field_font_size . $important ); ?>;
302 +}
303 +
304 +.<?php echo esc_html( $style_class ); ?> input[type=file].frm_transparent{
305 + color:transparent<?php echo esc_html( $important ); ?>;
306 +}
307 +
308 +.<?php echo esc_html( $style_class ); ?> select{
309 + width:<?php echo esc_html( ( $auto_width ? 'auto' : $field_width ) . $important ); ?>;
310 + max-width:100%;
311 +}
312 +
313 +.<?php echo esc_html( $style_class ); ?> .wp-editor-wrap{
314 + width:<?php echo esc_html( $field_width . $important ); ?>;
315 + max-width:100%;
316 +}
317 +
318 +.<?php echo esc_html( $style_class ); ?> .wp-editor-container textarea{
319 + border:none<?php echo esc_html( $important ); ?>;
320 +}
321 +
322 +.<?php echo esc_html( $style_class ); ?> .mceIframeContainer{
323 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
324 +}
325 +
326 +.<?php echo esc_html( $style_class ); ?> .auto_width input,
327 +.<?php echo esc_html( $style_class ); ?> input.auto_width,
328 +.<?php echo esc_html( $style_class ); ?> select.auto_width,
329 +.<?php echo esc_html( $style_class ); ?> textarea.auto_width{
330 + width:auto<?php echo esc_html( $important ); ?>;
331 +}
332 +
333 +.<?php echo esc_html( $style_class ); ?> input[disabled],
334 +.<?php echo esc_html( $style_class ); ?> select[disabled],
335 +.<?php echo esc_html( $style_class ); ?> textarea[disabled],
336 +.<?php echo esc_html( $style_class ); ?> input[readonly],
337 +.<?php echo esc_html( $style_class ); ?> select[readonly],
338 +.<?php echo esc_html( $style_class ); ?> textarea[readonly]{
339 + background-color:<?php echo esc_html( $bg_color_disabled . $important ); ?>;
340 + color:<?php echo esc_html( $text_color_disabled . $important ); ?>;
341 + border-color:<?php echo esc_html( $border_color_disabled . $important ); ?>;
342 +}
343 +
344 +/* These do not work if they are combined */
144 345 .<?php echo esc_html( $style_class ); ?> input::placeholder,
145 346 .<?php echo esc_html( $style_class ); ?> textarea::placeholder{
146 - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>;
347 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
147 348 }
349 +.<?php echo esc_html( $style_class ); ?> input::-webkit-input-placeholder,
350 +.<?php echo esc_html( $style_class ); ?> textarea::-webkit-input-placeholder{
351 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
352 +}
353 +.<?php echo esc_html( $style_class ); ?> input::-moz-placeholder,
354 +.<?php echo esc_html( $style_class ); ?> textarea::-moz-placeholder{
355 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
356 +}
357 +.<?php echo esc_html( $style_class ); ?> input:-ms-input-placeholder,
358 +<?php echo esc_html( $style_class ); ?> textarea:-ms-input-placeholder{
359 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
360 +}
361 +.<?php echo esc_html( $style_class ); ?> input:-moz-placeholder,
362 +.<?php echo esc_html( $style_class ); ?> textarea:-moz-placeholder{
363 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
364 +}
148 365
149 366 .<?php echo esc_html( $style_class ); ?> .frm_default,
150 367 .<?php echo esc_html( $style_class ); ?> input.frm_default,
151 368 .<?php echo esc_html( $style_class ); ?> textarea.frm_default,
152 369 .<?php echo esc_html( $style_class ); ?> select.frm_default,
153 -<?php if ( $use_chosen_js ) { ?>
370 +.<?php echo esc_html( $style_class ); ?> .placeholder,
154 371 .<?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 ); ?>;
372 +.<?php echo esc_html( $style_class ); ?> .chosen-container-single .chosen-default{
373 + color: <?php echo esc_html( $text_color_disabled . $important ); ?>;
159 374 }
160 375
161 -.<?php echo esc_html( $style_class ); ?> .form-field input:not([type=file]):not([type=range]):not([readonly]):focus,
376 +.<?php echo esc_html( $style_class ); ?> .form-field input:not([type=file]):focus,
162 377 .<?php echo esc_html( $style_class ); ?> select:focus,
163 -.<?php echo esc_html( $style_class ); ?> .form-field textarea:focus,
378 +.<?php echo esc_html( $style_class ); ?> textarea:focus,
164 379 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=text],
165 380 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=password],
166 381 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=email],
167 382 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=number],
@@ -168,45 +383,27 @@
168 383 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=url],
169 384 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=tel],
170 385 .<?php echo esc_html( $style_class ); ?> .frm_focus_field input[type=search],
171 386 .frm_form_fields_active_style,
172 -<?php if ( $use_chosen_js ) { ?>
173 387 .<?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 ) ) { ?>
388 +.<?php echo esc_html( $style_class ); ?> .chosen-container-active .chosen-choices{
389 + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>;
390 + border-color:<?php echo esc_html( $border_color_active . $important ); ?>;
391 + <?php if ( isset( $remove_box_shadow_active ) && $remove_box_shadow_active ) { ?>
181 392 box-shadow:none;
182 - outline: none;
183 393 <?php } else { ?>
184 - box-shadow:0px 0px 5px 0px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $border_color_active ) ); ?>, 0.6);
394 + 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 395 <?php } ?>
186 396 }
187 397
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 398 <?php if ( ! $submit_style ) { ?>
197 - <?php if ( $pro_is_installed ) { ?>
198 399 .<?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 400 .<?php echo esc_html( $style_class ); ?> input[type=submit],
202 401 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button],
203 402 .<?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 ?>;
206 - <?php if ( ! empty( $font ) ) { ?>
207 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
208 - <?php } ?>
403 +.frm_form_submit_style{
404 + width:<?php echo esc_html( ( $submit_width == '' ? 'auto' : $submit_width ) . $important ); ?>;
405 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
209 406 font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
210 407 height:<?php echo esc_html( $submit_height . $important ); ?>;
211 408 line-height:normal<?php echo esc_html( $important ); ?>;
212 409 text-align:center;
@@ -212,66 +409,56 @@
212 409 text-align:center;
213 410 background:
214 411 <?php
215 412 echo esc_html( $submit_bg_color );
216 -
217 - if ( $submit_bg_img ) {
413 + if ( ! empty( $submit_bg_img ) ) {
218 414 echo esc_html( ' url(' . $submit_bg_img . ')' );
219 415 }
220 416 echo esc_html( $important );
221 417 ?>
222 418 ;
223 - <?php if ( '' !== $submit_border_width ) : ?>
224 419 border-width:<?php echo esc_html( $submit_border_width ); ?>;
225 - <?php endif; ?>
226 420 border-color: <?php echo esc_html( $submit_border_color . $important ); ?>;
227 421 border-style:solid;
228 422 color:<?php echo esc_html( $submit_text_color . $important ); ?>;
229 423 cursor:pointer;
230 424 font-weight:<?php echo esc_html( $submit_weight . $important ); ?>;
425 + -moz-border-radius:<?php echo esc_html( $submit_border_radius . $important ); ?>;
426 + -webkit-border-radius:<?php echo esc_html( $submit_border_radius . $important ); ?>;
231 427 border-radius:<?php echo esc_html( $submit_border_radius . $important ); ?>;
232 428 text-shadow:none;
233 429 padding:<?php echo esc_html( $submit_padding . $important ); ?>;
430 + -moz-box-sizing:border-box;
234 431 box-sizing:border-box;
432 + -ms-box-sizing:border-box;
235 433 <?php if ( ! empty( $submit_shadow_color ) ) { ?>
434 + -moz-box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>;
435 + -webkit-box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>;
236 436 box-shadow:0 1px 1px <?php echo esc_html( $submit_shadow_color ); ?>;
237 437 <?php } ?>
238 438 margin:<?php echo esc_html( $submit_margin ); ?>;
239 - <?php
240 - // For reverse compatibility... But allow "10px 10px".
241 - if ( ! str_contains( trim( $submit_margin ), ' ' ) ) {
242 - ?>
243 - margin-left:0;
244 - margin-right:0;
245 - <?php } ?>
439 + margin-left:0;
440 + margin-right:0;
246 441 vertical-align:middle;
247 442 }
248 443
249 - <?php if ( $pro_is_installed ) { ?>
250 444 .<?php echo esc_html( $style_class ); ?> .frm_compact .frm_dropzone.dz-clickable .dz-message{
251 445 margin:0;
252 446 }
253 - <?php } ?>
254 447
255 - <?php if ( ! $submit_bg_img ) { ?>
256 - <?php if ( $pro_is_installed ) { ?>
257 -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:hover,
258 - <?php } ?>
448 + <?php if ( empty( $submit_bg_img ) ) { ?>
259 449 .<?php echo esc_html( $style_class ); ?> input[type=submit]:hover,
260 450 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:hover,
261 451 .<?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 ); ?>;
452 + background: <?php echo esc_html( $submit_hover_bg_color . $important ); ?>;
453 + border-color: <?php echo esc_html( $submit_hover_border_color . $important ); ?>;
454 + color: <?php echo esc_html( $submit_hover_color . $important ); ?>;
265 455 }
266 456
267 457 .<?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 ) ); ?>;
458 + margin-bottom:<?php echo esc_html( $submit_margin ); ?>;
269 459 }
270 460
271 - <?php if ( $pro_is_installed ) { ?>
272 -.<?php echo esc_html( $style_class ); ?> .frm-edit-page-btn:focus,
273 - <?php } ?>
274 461 .<?php echo esc_html( $style_class ); ?> input[type=submit]:focus,
275 462 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:focus,
276 463 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
277 464 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
@@ -276,64 +463,45 @@
276 463 .<?php echo esc_html( $style_class ); ?> .frm_submit button:focus,
277 464 .<?php echo esc_html( $style_class ); ?> input[type=submit]:active,
278 465 .<?php echo esc_html( $style_class ); ?> .frm_submit input[type=button]:active,
279 466 .<?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;
467 + background: <?php echo esc_html( $submit_active_bg_color . $important ); ?>;
468 + border-color: <?php echo esc_html( $submit_active_border_color . $important ); ?>;
469 + color: <?php echo esc_html( $submit_active_color . $important ); ?>;
284 470 }
285 471
286 - <?php if ( $pro_is_installed ) { ?>
287 -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page,
288 -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:hover,
289 -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:active,
290 -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:focus,
291 - <?php } ?>
292 472 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit,
293 473 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:hover,
294 474 .<?php echo esc_html( $style_class ); ?> .frm_loading_form .frm_button_submit:active,
295 475 .<?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 ); ?>;
476 + color: transparent <?php echo esc_html( $important ); ?>;
477 + background: <?php echo esc_html( $submit_bg_color . $important ); ?>;
299 478 }
300 479
301 - <?php if ( $pro_is_installed ) { ?>
302 -.<?php echo esc_html( $style_class ); ?> .frm_loading_prev .frm_prev_page:before,
303 - <?php } ?>
304 480 .<?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 ); ?>;
481 + border-bottom-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
482 + border-right-color: <?php echo esc_html( $submit_text_color . $important ); ?>;
307 483 <?php if ( $submit_height !== 'auto' ) { ?>
308 - max-height:var(--submit-height)<?php echo esc_html( $important ); ?>;
484 + max-height:<?php echo esc_html( $submit_height ); ?>;
309 485 <?php } ?>
310 486 <?php if ( $submit_width !== 'auto' ) { ?>
311 - max-width:var(--submit-width)<?php echo esc_html( $important ); ?>;
487 + max-width:<?php echo esc_html( $submit_width ); ?>;
312 488 <?php } ?>
313 489 }
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;
490 + <?php
491 + }
319 492 }
320 - <?php
321 - }//end if
322 -}//end if
323 493 ?>
324 494
325 495 .<?php echo esc_html( $style_class ); ?>.frm_inline_top .frm_submit::before,
326 496 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit::before {
327 497 content:"before";
328 - <?php if ( ! empty( $font ) ) { ?>
329 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
330 - <?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 ); ?>;
498 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
499 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
500 + color:<?php echo esc_html( $label_color . $important ); ?>;
501 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
334 502 margin:0;
335 - padding:var(--label-padding)<?php echo esc_html( $important ); ?>;
503 + padding:<?php echo esc_html( $label_padding . $important ); ?>;
336 504 width:auto;
337 505 display:block;
338 506 visibility:hidden;
339 507 }
@@ -344,25 +512,56 @@
344 512 .<?php echo esc_html( $style_class ); ?> .frm_submit.frm_inline_submit button {
345 513 margin: 0 !important;
346 514 }
347 515
348 -<?php
349 -// Only include this CSS when the math captcha plugin is active.
350 -if ( class_exists( 'FrmCptController' ) ) :
351 - ?>
516 +.<?php echo esc_html( $style_class ); ?> a.frm_save_draft{
517 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
518 + font-size:<?php echo esc_html( $submit_font_size ); ?>;
519 + font-weight:<?php echo esc_html( $submit_weight ); ?>;
520 +}
521 +
352 522 .<?php echo esc_html( $style_class ); ?> #frm_field_cptch_number_container{
353 - <?php if ( ! empty( $font ) ) { ?>
354 - font-family:<?php FrmAppHelper::kses_echo( $font ); ?>;
355 - <?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 ); ?>;
523 + font-family:<?php echo FrmAppHelper::kses( $font ); // WPCS: XSS ok. ?>;
524 + font-size:<?php echo esc_html( $font_size . $important ); ?>;
525 + color:<?php echo esc_html( $label_color . $important ); ?>;
526 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
359 527 clear:both;
360 528 }
361 - <?php
362 -endif;
363 -?>
364 529
530 +.<?php echo esc_html( $style_class ); ?> .frm_radio{
531 + display:<?php echo esc_html( $radio_align . $important ); ?>;
532 +}
533 +
534 +.<?php echo esc_html( $style_class ); ?> .frm_checkbox{
535 + display:<?php echo esc_html( $check_align . $important ); ?>;
536 +}
537 +
538 +.<?php echo esc_html( $style_class ); ?> .vertical_radio .frm_checkbox,
539 +.<?php echo esc_html( $style_class ); ?> .vertical_radio .frm_radio,
540 +.vertical_radio .frm_catlevel_1{
541 + display:block<?php echo esc_html( $important ); ?>;
542 +}
543 +
544 +.<?php echo esc_html( $style_class ); ?> .horizontal_radio .frm_checkbox,
545 +.<?php echo esc_html( $style_class ); ?> .horizontal_radio .frm_radio,
546 +.horizontal_radio .frm_catlevel_1{
547 + display:inline-block<?php echo esc_html( $important ); ?>;
548 +}
549 +
550 +.<?php echo esc_html( $style_class ); ?> .frm_radio label,
551 +.<?php echo esc_html( $style_class ); ?> .frm_checkbox label{
552 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
553 + font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
554 + color:<?php echo esc_html( $check_label_color . $important ); ?>;
555 + font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
556 +}
557 +
558 +.<?php echo esc_html( $style_class ); ?> .frm_radio input[type=radio],
559 +.<?php echo esc_html( $style_class ); ?> .frm_checkbox input[type=checkbox] {
560 + font-size: <?php echo esc_html( $check_font_size . $important ); ?>;
561 + position: static<?php echo esc_html( $important ); ?>;
562 +}
563 +
365 564 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=text],
366 565 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=password],
367 566 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
368 567 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel],
@@ -367,70 +566,128 @@
367 566 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=url],
368 567 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=tel],
369 568 .<?php echo esc_html( $style_class ); ?> .frm_blank_field input[type=number],
370 569 .<?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 570 .<?php echo esc_html( $style_class ); ?> .frm_blank_field textarea,
374 -<?php if ( $pro_is_installed ) { ?>
375 571 .<?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),
572 +.<?php echo esc_html( $style_class ); ?> .frm_blank_field select,
378 573 .frm_form_fields_error_style,
379 574 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-g-recaptcha iframe,
380 575 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .g-recaptcha iframe,
381 -.<?php echo esc_html( $style_class ); ?> .frm_blank_field .frm-card-element.StripeElement,
382 -<?php if ( $use_chosen_js ) { ?>
383 576 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .chosen-container-multi .chosen-choices,
384 577 .<?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 ); ?>;
578 +.<?php echo esc_html( $style_class ); ?> .frm_form_field :invalid{
579 + color:<?php echo esc_html( $text_color_error . $important ); ?>;
580 + background-color:<?php echo esc_html( $bg_color_error . $important ); ?>;
581 + border-color:<?php echo esc_html( $border_color_error . $important ); ?>;
582 + border-width:<?php echo esc_html( $border_width_error . $important ); ?>;
583 + border-style:<?php echo esc_html( $border_style_error . $important ); ?>;
392 584 }
393 585
394 -<?php
395 -// Only include this style when the signatures add-on is active
396 -if ( class_exists( 'FrmSigField' ) ) :
397 - ?>
398 586 .<?php echo esc_html( $style_class ); ?> .frm_blank_field .sigWrapper{
399 - border-color:var(--border-color-error) !important;
587 + border-color:<?php echo esc_html( $border_color_error ); ?> !important;
400 588 }
401 - <?php
402 -endif;
403 -?>
404 589
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 ); ?>;
590 +.<?php echo esc_html( $style_class ); ?> .frm_error{
591 + font-weight:<?php echo esc_html( $weight . $important ); ?>;
409 592 }
410 593
594 +.<?php echo esc_html( $style_class ); ?> .frm_blank_field label,
595 +.<?php echo esc_html( $style_class ); ?> .frm_error{
596 + color:<?php echo esc_html( $border_color_error . $important ); ?>;
597 +}
598 +
411 599 .<?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 ); ?>;
600 + background-color:<?php echo esc_html( $error_bg . $important ); ?>;
601 + border:1px solid <?php echo esc_html( $error_border . $important ); ?>;
602 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
603 + color: <?php echo esc_html( $error_text . $important ); ?>;
604 + font-size:<?php echo esc_html( $error_font_size . $important ); ?>;
417 605 margin:0;
418 - margin-bottom:var(--field-margin);
606 + margin-bottom:<?php echo esc_html( $field_margin ); ?>;
419 607 }
420 608
421 -<?php if ( $pro_is_installed ) { ?>
609 +.<?php echo esc_html( $style_class ); ?> .frm_message,
610 +.frm_success_style{
611 + border:1px solid <?php echo esc_html( $success_border_color ); ?>;
612 + background-color:<?php echo esc_html( $success_bg_color . $important ); ?>;
613 + color:<?php echo esc_html( $success_text_color . $important ); ?>;
614 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
615 +}
616 +
617 +.<?php echo esc_html( $style_class ); ?> .frm_message p{
618 + color:<?php echo esc_html( $success_text_color . $important ); ?>;
619 +}
620 +
621 +.<?php echo esc_html( $style_class ); ?> .frm_message{
622 + margin:5px 0 15px;
623 + font-size:<?php echo esc_html( $success_font_size . $important ); ?>;
624 +}
625 +
626 +.<?php echo esc_html( $style_class ); ?> .frm-grid td,
627 +.frm-grid th{
628 + border-color:<?php echo esc_html( $border_color ); ?>;
629 +}
630 +
631 +.form_results.<?php echo esc_html( $style_class ); ?>{
632 + border:<?php echo esc_html( $field_border_width ); ?> solid <?php echo esc_html( $border_color . $important ); ?>;
633 +}
634 +
635 +.form_results.<?php echo esc_html( $style_class ); ?> tr td{
636 + color: <?php echo esc_html( $text_color . $important ); ?>;
637 + border-top:<?php echo esc_html( $field_border_width ); ?> solid <?php echo esc_html( $border_color . $important ); ?>;
638 +}
639 +
640 +.form_results.<?php echo esc_html( $style_class ); ?> tr.frm_even,
641 +.frm-grid .frm_even{
642 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
643 +}
644 +
422 645 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-striped .progress-bar{
423 646 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 647 }
425 648
426 649 .<?php echo esc_html( $style_class ); ?> #frm_loading .progress-bar{
427 - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>;
650 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
428 651 }
429 -<?php } ?>
430 652
431 -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big input,
432 -.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total_big textarea,
653 +.<?php echo esc_html( $style_class ); ?> .frm_grid,
654 +.<?php echo esc_html( $style_class ); ?> .frm_grid_first,
655 +.<?php echo esc_html( $style_class ); ?> .frm_grid_odd{
656 + border-color:<?php echo esc_html( $border_color ); ?>;
657 +}
658 +
659 +.<?php echo esc_html( $style_class ); ?> .frm_grid.frm_blank_field,
660 +.<?php echo esc_html( $style_class ); ?> .frm_grid_first.frm_blank_field,
661 +.<?php echo esc_html( $style_class ); ?> .frm_grid_odd.frm_blank_field{
662 + background-color:<?php echo esc_html( $error_bg . $important ); ?>;
663 + border-color:<?php echo esc_html( $error_border ); ?>;
664 +}
665 +
666 +.<?php echo esc_html( $style_class ); ?> .frm_grid_first,
667 +.<?php echo esc_html( $style_class ); ?> .frm_grid_odd{
668 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
669 +}
670 +
671 +.<?php echo esc_html( $style_class ); ?> .frm_grid{
672 + background-color:<?php echo esc_html( $bg_color_active . $important ); ?>;
673 +}
674 +
675 +.<?php echo esc_html( $style_class ); ?> .frm_html_container.frm_scroll_box,
676 +.<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_html_scroll_box{
677 + background-color:<?php echo esc_html( $bg_color . $important ); ?>;
678 + border-color: <?php echo esc_html( $border_color . $important ); ?>;
679 + border-width:<?php echo esc_html( $field_border_width . $important ); ?>;
680 + border-style:<?php echo esc_html( $field_border_style . $important ); ?>;
681 + -moz-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
682 + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
683 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
684 + width:<?php echo esc_html( ( $field_width == '' ? 'auto' : $field_width ) . $important ); ?>;
685 + font-size:<?php echo esc_html( $field_font_size . $important ); ?>;
686 + padding:<?php echo esc_html( $field_pad . $important ); ?>;
687 + outline:none<?php echo esc_html( $important ); ?>;
688 +}
689 +
433 690 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total input,
434 691 .<?php echo esc_html( $style_class ); ?> .frm_form_field.frm_total textarea{
435 692 color: <?php echo esc_html( $text_color . $important ); ?>;
436 693 background-color:transparent<?php echo esc_html( $important ); ?>;
@@ -439,6 +696,28 @@
439 696 width:auto<?php echo esc_html( $important ); ?>;
440 697 padding:0<?php echo esc_html( $important ); ?>;
441 698 }
442 699
443 -<?php echo strip_tags( FrmStylesController::get_custom_css( $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
700 +.<?php echo esc_html( $style_class ); ?> .frm_button{
701 + padding:<?php echo esc_html( $submit_padding . $important ); ?>;
702 + -moz-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
703 + -webkit-border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
704 + border-radius:<?php echo esc_html( $border_radius . $important ); ?>;
705 + font-size:<?php echo esc_html( $submit_font_size . $important ); ?>;
706 + font-family:<?php echo FrmAppHelper::kses( $font . $important ); // WPCS: XSS ok. ?>;
707 + font-weight:<?php echo esc_html( $submit_weight . $important ); ?>;
708 + color:<?php echo esc_html( $submit_text_color . $important ); ?>;
709 + background: <?php echo esc_html( $submit_bg_color . $important ); ?>;
710 + border-width:<?php echo esc_html( $submit_border_width ); ?>;
711 + border-color: <?php echo esc_html( $submit_border_color . $important ); ?>;
712 + height:<?php echo esc_html( $submit_height . $important ); ?>;
713 +}
714 +
444 715 <?php do_action( 'frm_output_single_style', $settings ); ?>
716 +
717 +@media only screen and (max-width: 600px){
718 + .<?php echo esc_html( $style_class ); ?> .frm_repeat_inline,
719 + .<?php echo esc_html( $style_class ); ?> .frm_repeat_grid{
720 + margin: 20px 0;
721 + }
722 +}
723 +