| @@ -16,14 +16,12 @@ | ||
| 16 | 16 | if ( ! isset( $frm_style ) ) { |
| 17 | 17 | $frm_style = new FrmStyle(); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | -$styles = $frm_style->get_all(); | |
| 21 | -$default_style = $frm_style->get_default_style( $styles ); | |
| 22 | -$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 23 | -$important = empty( $defaults['important_style'] ) ? '' : ' !important'; | |
| 24 | -$pro_is_installed = FrmAppHelper::pro_is_installed(); | |
| 25 | -$use_chosen_js = FrmStylesHelper::use_chosen_js(); | |
| 20 | +$styles = $frm_style->get_all(); | |
| 21 | +$default_style = $frm_style->get_default_style( $styles ); | |
| 22 | +$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 23 | +$important = empty( $defaults['important_style'] ) ? '' : ' !important'; | |
| 26 | 24 | |
| 27 | 25 | ?> |
| 28 | 26 | .with_frm_style{ |
| 29 | 27 | <?php FrmStylesHelper::output_vars( $defaults ); ?> |
| @@ -38,9 +36,10 @@ | ||
| 38 | 36 | |
| 39 | 37 | .with_frm_style, |
| 40 | 38 | .with_frm_style form, |
| 41 | 39 | .with_frm_style .frm-show-form div.frm_description p{ |
| 42 | - text-align: var(--form-align)<?php echo esc_html( $important ); ?>; | |
| 40 | + text-align:<?php echo esc_html( $defaults['form_align'] . $important ); ?>; | |
| 41 | + text-align:var(--form-align)<?php echo esc_html( $important ); ?>; | |
| 43 | 42 | } |
| 44 | 43 | |
| 45 | 44 | /* Keep this. This is used for Honeypot */ |
| 46 | 45 | input:-webkit-autofill { |
| @@ -49,24 +48,36 @@ | ||
| 49 | 48 | |
| 50 | 49 | /* Form description */ |
| 51 | 50 | .with_frm_style .frm-show-form div.frm_description p{ |
| 52 | 51 | <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> |
| 53 | - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 52 | + font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>; | |
| 53 | + font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 54 | 54 | <?php } ?> |
| 55 | 55 | <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> |
| 56 | - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 56 | + color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>; | |
| 57 | + color:var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 57 | 58 | <?php } ?> |
| 58 | 59 | <?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?> |
| 59 | - margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>; | |
| 60 | + margin-top:<?php echo esc_html( $defaults['form_desc_margin_top'] . $important ); ?>; | |
| 61 | + margin-top:var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>; | |
| 60 | 62 | <?php } ?> |
| 61 | 63 | <?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?> |
| 62 | - margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 64 | + margin-bottom:<?php echo esc_html( $defaults['form_desc_margin_bottom'] . $important ); ?>; | |
| 65 | + margin-bottom:var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 63 | 66 | <?php } ?> |
| 64 | 67 | <?php if ( isset( $defaults['form_desc_padding'] ) ) { ?> |
| 65 | - padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>; | |
| 68 | + padding:<?php echo esc_html( $defaults['form_desc_padding'] . $important ); ?>; | |
| 69 | + padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>; | |
| 66 | 70 | <?php } ?> |
| 67 | 71 | } |
| 68 | 72 | |
| 73 | +form .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> { | |
| 74 | + overflow: hidden; | |
| 75 | + width: 0; | |
| 76 | + height: 0; | |
| 77 | + position: absolute; | |
| 78 | +} | |
| 79 | + | |
| 69 | 80 | .with_frm_style fieldset{ |
| 70 | 81 | min-width:0; |
| 71 | 82 | display: block; /* Override 2021 theme */ |
| 72 | 83 | } |
| @@ -79,20 +90,24 @@ | ||
| 79 | 90 | } |
| 80 | 91 | |
| 81 | 92 | .with_frm_style .frm_form_fields > fieldset{ |
| 82 | 93 | <?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?> |
| 83 | - border-width: var(--fieldset)<?php echo esc_html( $important ); ?>; | |
| 94 | + border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>; | |
| 95 | + border-width:var(--fieldset)<?php echo esc_html( $important ); ?>; | |
| 84 | 96 | <?php } ?> |
| 85 | 97 | border-style:solid; |
| 86 | 98 | <?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?> |
| 87 | - border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>; | |
| 99 | + border-color:<?php echo esc_html( $defaults['fieldset_color'] . $important ); ?>; | |
| 100 | + border-color:var(--fieldset-color)<?php echo esc_html( $important ); ?>; | |
| 88 | 101 | <?php } ?> |
| 89 | 102 | margin:0; |
| 90 | 103 | <?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?> |
| 91 | - padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>; | |
| 104 | + padding:<?php echo esc_html( $defaults['fieldset_padding'] . $important ); ?>; | |
| 105 | + padding:var(--fieldset-padding)<?php echo esc_html( $important ); ?>; | |
| 92 | 106 | <?php } ?> |
| 93 | 107 | <?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?> |
| 94 | - background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>; | |
| 108 | + background-color:<?php echo esc_html( $defaults['fieldset_bg_color'] ); ?>; | |
| 109 | + background-color:var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>; | |
| 95 | 110 | <?php } ?> |
| 96 | 111 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 97 | 112 | font-family:var(--font); |
| 98 | 113 | <?php } ?> |
| @@ -116,21 +131,26 @@ | ||
| 116 | 131 | |
| 117 | 132 | .with_frm_style legend + h3, |
| 118 | 133 | .with_frm_style h3.frm_form_title{ |
| 119 | 134 | <?php if ( ! empty( $defaults['title_size'] ) ) { ?> |
| 120 | - font-size: var(--title-size)<?php echo esc_html( $important ); ?>; | |
| 135 | + font-size:<?php echo esc_html( $defaults['title_size'] . $important ); ?>; | |
| 136 | + font-size:var(--title-size)<?php echo esc_html( $important ); ?>; | |
| 121 | 137 | <?php } ?> |
| 122 | 138 | <?php if ( ! empty( $defaults['title_color'] ) ) { ?> |
| 123 | - color: var(--title-color)<?php echo esc_html( $important ); ?>; | |
| 139 | + color:<?php echo esc_html( $defaults['title_color'] . $important ); ?>; | |
| 140 | + color:var(--title-color)<?php echo esc_html( $important ); ?>; | |
| 124 | 141 | <?php } ?> |
| 125 | 142 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 126 | - font-family: var(--font); | |
| 143 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 144 | + font-family:var(--font); | |
| 127 | 145 | <?php } ?> |
| 128 | 146 | <?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?> |
| 129 | - margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>; | |
| 147 | + margin-top:<?php echo esc_html( $defaults['title_margin_top'] . $important ); ?>; | |
| 148 | + margin-top:var(--title-margin-top)<?php echo esc_html( $important ); ?>; | |
| 130 | 149 | <?php } ?> |
| 131 | 150 | <?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?> |
| 132 | - margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 151 | + margin-bottom:<?php echo esc_html( $defaults['title_margin_bottom'] . $important ); ?>; | |
| 152 | + margin-bottom:var(--title-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 133 | 153 | <?php } ?> |
| 134 | 154 | } |
| 135 | 155 | |
| 136 | 156 | .with_frm_style .frm_form_field.frm_html_container, |
| @@ -135,42 +155,46 @@ | ||
| 135 | 155 | |
| 136 | 156 | .with_frm_style .frm_form_field.frm_html_container, |
| 137 | 157 | .with_frm_style .frm_form_field .frm_show_it{ |
| 138 | 158 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 139 | - font-family: var(--font); | |
| 159 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 160 | + font-family:var(--font); | |
| 140 | 161 | <?php } ?> |
| 141 | 162 | <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> |
| 142 | - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 163 | + color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>; | |
| 164 | + color:var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 143 | 165 | <?php } ?> |
| 144 | 166 | } |
| 145 | 167 | |
| 146 | 168 | <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> |
| 147 | 169 | .with_frm_style .frm_form_field.frm_html_container{ |
| 148 | - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 170 | + font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>; | |
| 171 | + font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 149 | 172 | } |
| 150 | 173 | <?php } ?> |
| 151 | 174 | |
| 152 | 175 | .with_frm_style .frm_form_field .frm_show_it{ |
| 153 | 176 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 154 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 177 | + font-size:<?php echo esc_html( $defaults['field_font_size'] . $important ); ?>; | |
| 178 | + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 155 | 179 | <?php } ?> |
| 156 | 180 | <?php if ( ! empty( $defaults['field_weight'] ) ) { ?> |
| 157 | - font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>; | |
| 181 | + font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>; | |
| 182 | + font-weight:var(--field-weight)<?php echo esc_html( $important ); ?>; | |
| 158 | 183 | <?php } ?> |
| 159 | 184 | } |
| 160 | 185 | |
| 161 | -.with_frm_style .frm_required { | |
| 186 | +.with_frm_style .frm_required{ | |
| 162 | 187 | <?php if ( ! empty( $defaults['required_color'] ) ) { ?> |
| 163 | - color: var(--required-color)<?php echo esc_html( $important ); ?>; | |
| 188 | + color:<?php echo esc_html( $defaults['required_color'] . $important ); ?>; | |
| 189 | + color:var(--required-color)<?php echo esc_html( $important ); ?>; | |
| 164 | 190 | <?php } ?> |
| 165 | 191 | <?php if ( ! empty( $defaults['required_weight'] ) ) { ?> |
| 166 | - font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>; | |
| 192 | + font-weight:<?php echo esc_html( $defaults['required_weight'] . $important ); ?>; | |
| 193 | + font-weight:var(--required-weight)<?php echo esc_html( $important ); ?>; | |
| 167 | 194 | <?php } ?> |
| 168 | 195 | } |
| 169 | 196 | |
| 170 | -<?php if ( $use_chosen_js ) { ?> | |
| 171 | -.with_frm_style .chosen-container, | |
| 172 | -<?php } ?> | |
| 173 | 197 | .with_frm_style input[type=text], |
| 174 | 198 | .with_frm_style input[type=password], |
| 175 | 199 | .with_frm_style input[type=email], |
| 176 | 200 | .with_frm_style input[type=number], |
| @@ -178,12 +202,14 @@ | ||
| 178 | 202 | .with_frm_style input[type=tel], |
| 179 | 203 | .with_frm_style input[type=search], |
| 180 | 204 | .with_frm_style select, |
| 181 | 205 | .with_frm_style textarea, |
| 182 | -.with_frm_style .frm-card-element.StripeElement { | |
| 206 | +.with_frm_style .frm-card-element.StripeElement, | |
| 207 | +.with_frm_style .chosen-container{ | |
| 183 | 208 | font-family:var(--font)<?php echo esc_html( $important ); ?>; |
| 184 | 209 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 185 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 210 | + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 211 | + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 186 | 212 | <?php } ?> |
| 187 | 213 | margin-bottom:0<?php echo esc_html( $important ); ?>; |
| 188 | 214 | } |
| 189 | 215 | |
| @@ -206,33 +232,38 @@ | ||
| 206 | 232 | .with_frm_style .frm_scroll_box .frm_opt_container, |
| 207 | 233 | .frm_form_fields_active_style, |
| 208 | 234 | .frm_form_fields_error_style, |
| 209 | 235 | .with_frm_style .frm-card-element.StripeElement, |
| 210 | -<?php if ( $use_chosen_js ) { ?> | |
| 211 | 236 | .with_frm_style .chosen-container-multi .chosen-choices, |
| 212 | 237 | .with_frm_style .chosen-container-single .chosen-single, |
| 213 | -<?php } ?> | |
| 214 | 238 | .with_frm_style .frm_slimselect.ss-main { |
| 215 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 216 | - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 217 | - border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 218 | - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 219 | - border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>; | |
| 220 | - border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>; | |
| 221 | - width: var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 222 | - max-width: 100%; | |
| 223 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 224 | - padding: var(--field-pad)<?php echo esc_html( $important ); ?>; | |
| 225 | - box-sizing: border-box; | |
| 226 | - outline: none<?php echo esc_html( $important ); ?>; | |
| 227 | - font-weight: var(--field-weight); | |
| 239 | + color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 240 | + color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 241 | + background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; | |
| 242 | + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 243 | + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 244 | + border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 245 | + border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>; | |
| 246 | + border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 247 | + border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>; | |
| 248 | + border-style:var(--field-border-style)<?php echo esc_html( $important ); ?>; | |
| 249 | + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 250 | + border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; | |
| 251 | + width:<?php echo esc_html( $defaults['field_width'] ); ?>; | |
| 252 | + width:var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 253 | + max-width:100%; | |
| 254 | + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 255 | + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 256 | + padding:<?php echo esc_html( $defaults['field_pad'] ); ?>; | |
| 257 | + padding:var(--field-pad)<?php echo esc_html( $important ); ?>; | |
| 258 | + box-sizing:border-box; | |
| 259 | + outline:none<?php echo esc_html( $important ); ?>; | |
| 260 | + font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>; | |
| 261 | + font-weight:var(--field-weight); | |
| 262 | + box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 228 | 263 | } |
| 229 | 264 | |
| 230 | -<?php if ( ! empty( $important ) ) : ?> | |
| 231 | - <?php if ( $use_chosen_js ) { ?> | |
| 232 | - .with_frm_style .chosen-container-multi .chosen-choices, | |
| 233 | - .with_frm_style .chosen-container-single .chosen-single, | |
| 234 | - <?php } ?> | |
| 265 | +<?php if ( ! empty( $important ) ) { ?> | |
| 235 | 266 | .with_frm_style input[type=text], |
| 236 | 267 | .with_frm_style input[type=password], |
| 237 | 268 | .with_frm_style input[type=email], |
| 238 | 269 | .with_frm_style input[type=number], |
| @@ -244,25 +275,30 @@ | ||
| 244 | 275 | .frm_form_fields_style, |
| 245 | 276 | .with_frm_style .frm_scroll_box .frm_opt_container, |
| 246 | 277 | .frm_form_fields_active_style, |
| 247 | 278 | .frm_form_fields_error_style, |
| 248 | -.with_frm_style .frm-card-element.StripeElement { | |
| 279 | +.with_frm_style .frm-card-element.StripeElement, | |
| 280 | +.with_frm_style .chosen-container-multi .chosen-choices, | |
| 281 | +.with_frm_style .chosen-container-single .chosen-single{ | |
| 249 | 282 | background-image:none !important; |
| 250 | 283 | } |
| 251 | -<?php endif; ?> | |
| 284 | +<?php } ?> | |
| 252 | 285 | |
| 253 | 286 | .with_frm_style select option { |
| 254 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 287 | + color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 288 | + color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 255 | 289 | } |
| 256 | 290 | |
| 257 | 291 | .with_frm_style select option.frm-select-placeholder { |
| 258 | - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 292 | + color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 293 | + color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 259 | 294 | } |
| 260 | 295 | |
| 261 | 296 | .with_frm_style input[type=radio], |
| 262 | 297 | .with_frm_style input[type=checkbox]{ |
| 263 | - border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 264 | - box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 298 | + border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>; | |
| 299 | + border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 300 | + box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 265 | 301 | float: none; |
| 266 | 302 | } |
| 267 | 303 | |
| 268 | 304 | .with_frm_style input[type=radio]:after, |
| @@ -269,18 +305,8 @@ | ||
| 269 | 305 | .with_frm_style input[type=checkbox]:after { |
| 270 | 306 | display: none; /* 2021 conflict */ |
| 271 | 307 | } |
| 272 | 308 | |
| 273 | -.with_frm_style input[type=radio]:not(:checked):focus, | |
| 274 | -.with_frm_style input[type=checkbox]:not(:checked):focus { | |
| 275 | - border-color: var(--border-color) !important; | |
| 276 | -} | |
| 277 | - | |
| 278 | -.with_frm_style input[type=radio]:focus, | |
| 279 | -.with_frm_style input[type=checkbox]:focus { | |
| 280 | - box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important; | |
| 281 | -} | |
| 282 | - | |
| 283 | 309 | .with_frm_style input[type=text], |
| 284 | 310 | .with_frm_style input[type=password], |
| 285 | 311 | .with_frm_style input[type=email], |
| 286 | 312 | .with_frm_style input[type=number], |
| @@ -289,9 +315,10 @@ | ||
| 289 | 315 | .with_frm_style input[type=file], |
| 290 | 316 | .with_frm_style input[type=search], |
| 291 | 317 | .with_frm_style select, |
| 292 | 318 | .with_frm_style .frm-card-element.StripeElement{ |
| 293 | - min-height: var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 319 | + min-height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 320 | + min-height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 294 | 321 | line-height:1.3<?php echo esc_html( $important ); ?>; |
| 295 | 322 | } |
| 296 | 323 | |
| 297 | 324 | .with_frm_style select[multiple=multiple]{ |
| @@ -306,15 +333,17 @@ | ||
| 306 | 333 | box-shadow:none; |
| 307 | 334 | } |
| 308 | 335 | |
| 309 | 336 | .with_frm_style input[type=file]{ |
| 310 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 311 | - padding: 0px; | |
| 337 | + color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 338 | + color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 339 | + padding:0px; | |
| 312 | 340 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 313 | - font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 341 | + font-family:var(--font)<?php echo esc_html( $important ); ?>; | |
| 314 | 342 | <?php } ?> |
| 315 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 316 | - display: initial; | |
| 343 | + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 344 | + font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 345 | + display:initial; | |
| 317 | 346 | } |
| 318 | 347 | |
| 319 | 348 | .with_frm_style input[type=file].frm_transparent{ |
| 320 | 349 | color:transparent<?php echo esc_html( $important ); ?>; |
| @@ -320,9 +349,10 @@ | ||
| 320 | 349 | color:transparent<?php echo esc_html( $important ); ?>; |
| 321 | 350 | } |
| 322 | 351 | |
| 323 | 352 | .with_frm_style .wp-editor-wrap{ |
| 324 | - width: var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 353 | + width:<?php echo esc_html( $defaults['field_width'] . $important ); ?>; | |
| 354 | + width:var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 325 | 355 | max-width:100%; |
| 326 | 356 | } |
| 327 | 357 | |
| 328 | 358 | .with_frm_style .wp-editor-container textarea{ |
| @@ -330,13 +360,15 @@ | ||
| 330 | 360 | box-shadow:none !important; |
| 331 | 361 | } |
| 332 | 362 | |
| 333 | 363 | .with_frm_style .mceIframeContainer{ |
| 334 | - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 364 | + background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; | |
| 365 | + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 335 | 366 | } |
| 336 | 367 | |
| 337 | 368 | .with_frm_style select{ |
| 338 | - width: var(--auto-width)<?php echo esc_html( $important ); ?>; | |
| 369 | + width:<?php echo esc_html( $defaults['auto_width'] ); ?>; | |
| 370 | + width:var(--auto-width)<?php echo esc_html( $important ); ?>; | |
| 339 | 371 | max-width:100%; |
| 340 | 372 | background-position-y: calc(50% + 3px); |
| 341 | 373 | } |
| 342 | 374 | |
| @@ -344,12 +376,15 @@ | ||
| 344 | 376 | .with_frm_style select[disabled], |
| 345 | 377 | .with_frm_style textarea[disabled], |
| 346 | 378 | .with_frm_style input[readonly], |
| 347 | 379 | .with_frm_style select[readonly], |
| 348 | -.with_frm_style textarea[readonly] { | |
| 349 | - background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 350 | - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 351 | - border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 380 | +.with_frm_style textarea[readonly]{ | |
| 381 | + background-color:<?php echo esc_html( $defaults['bg_color_disabled'] ); ?>; | |
| 382 | + background-color:var(--bg-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 383 | + color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 384 | + color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 385 | + border-color:<?php echo esc_html( $defaults['border_color_disabled'] ); ?>; | |
| 386 | + border-color:var(--border-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 352 | 387 | } |
| 353 | 388 | |
| 354 | 389 | .frm_preview_page:before{ |
| 355 | 390 | content:normal !important; |
| @@ -361,24 +396,30 @@ | ||
| 361 | 396 | |
| 362 | 397 | .with_frm_style .frm_primary_label{ |
| 363 | 398 | max-width:100%; |
| 364 | 399 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 365 | - font-family: var(--font); | |
| 400 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 401 | + font-family:var(--font); | |
| 366 | 402 | <?php } ?> |
| 367 | 403 | <?php if ( ! empty( $defaults['font_size'] ) ) { ?> |
| 368 | - font-size: var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 404 | + font-size:<?php echo esc_html( $defaults['font_size'] . $important ); ?>; | |
| 405 | + font-size:var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 369 | 406 | <?php } ?> |
| 370 | 407 | <?php if ( ! empty( $defaults['label_color'] ) ) { ?> |
| 371 | - color: var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 408 | + color:<?php echo esc_html( $defaults['label_color'] . $important ); ?>; | |
| 409 | + color:var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 372 | 410 | <?php } ?> |
| 373 | 411 | <?php if ( ! empty( $defaults['weight'] ) ) { ?> |
| 374 | - font-weight: var(--weight)<?php echo esc_html( $important ); ?>; | |
| 412 | + font-weight:<?php echo esc_html( $defaults['weight'] . $important ); ?>; | |
| 413 | + font-weight:var(--weight)<?php echo esc_html( $important ); ?>; | |
| 375 | 414 | <?php } ?> |
| 376 | 415 | <?php if ( ! empty( $defaults['align'] ) ) { ?> |
| 377 | - text-align: var(--align)<?php echo esc_html( $important ); ?>; | |
| 416 | + text-align:<?php echo esc_html( $defaults['align'] . $important ); ?>; | |
| 417 | + text-align:var(--align)<?php echo esc_html( $important ); ?>; | |
| 378 | 418 | <?php } ?> |
| 379 | 419 | <?php if ( ! empty( $defaults['label_padding'] ) ) { ?> |
| 380 | - padding: var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 420 | + padding:<?php echo esc_html( $defaults['label_padding'] . $important ); ?>; | |
| 421 | + padding:var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 381 | 422 | <?php } ?> |
| 382 | 423 | margin:0; |
| 383 | 424 | width:auto; |
| 384 | 425 | display:block; |
| @@ -431,9 +472,9 @@ | ||
| 431 | 472 | |
| 432 | 473 | /* Floating labels */ |
| 433 | 474 | .with_frm_style .frm_inside_container { |
| 434 | 475 | position: relative; |
| 435 | - padding-top: 18px; | |
| 476 | + padding-top: 16px; | |
| 436 | 477 | padding-top: calc(0.5 * var(--field-height)); |
| 437 | 478 | } |
| 438 | 479 | |
| 439 | 480 | .with_frm_style .frm_inside_container > input, |
| @@ -441,13 +482,21 @@ | ||
| 441 | 482 | .with_frm_style .frm_inside_container > textarea { |
| 442 | 483 | display: block; |
| 443 | 484 | } |
| 444 | 485 | |
| 445 | -.with_frm_style input::placeholder, | |
| 446 | -.with_frm_style textarea::placeholder { | |
| 447 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 486 | +/* These do not work if they are combined */ | |
| 487 | +.with_frm_style .frm_inside_container > input::-moz-placeholder, | |
| 488 | +.with_frm_style .frm_inside_container > textarea::-moz-placeholder { | |
| 489 | + opacity: 0 !important; | |
| 490 | + transition: opacity 0.3s ease-in; | |
| 448 | 491 | } |
| 449 | 492 | |
| 493 | +.with_frm_style .frm_inside_container > input:-ms-input-placeholder, | |
| 494 | +.with_frm_style .frm_inside_container > textarea:-ms-input-placeholder { | |
| 495 | + opacity: 0; | |
| 496 | + transition: opacity 0.3s ease-in; | |
| 497 | +} | |
| 498 | + | |
| 450 | 499 | .with_frm_style .frm_inside_container > input::placeholder, |
| 451 | 500 | .with_frm_style .frm_inside_container > textarea::placeholder { |
| 452 | 501 | opacity: 0; |
| 453 | 502 | transition: opacity 0.3s ease-in; |
| @@ -456,9 +505,9 @@ | ||
| 456 | 505 | .with_frm_style .frm_inside_container > label { |
| 457 | 506 | transition: all 0.3s ease-in; |
| 458 | 507 | |
| 459 | 508 | position: absolute; |
| 460 | - top: 19px; | |
| 509 | + top: 17px; | |
| 461 | 510 | top: calc(1px + .5 * var(--field-height)); |
| 462 | 511 | left: 3px; |
| 463 | 512 | width: 100%; |
| 464 | 513 | |
| @@ -466,9 +515,9 @@ | ||
| 466 | 515 | text-overflow: ellipsis; |
| 467 | 516 | overflow: hidden; |
| 468 | 517 | white-space: nowrap; |
| 469 | 518 | |
| 470 | - padding: 8px 12px; | |
| 519 | + padding: 6px 10px; | |
| 471 | 520 | padding: var(--field-pad); |
| 472 | 521 | |
| 473 | 522 | font-size: 14px; |
| 474 | 523 | font-size: var(--field-font-size); |
| @@ -474,8 +523,9 @@ | ||
| 474 | 523 | font-size: var(--field-font-size); |
| 475 | 524 | font-weight: normal; |
| 476 | 525 | font-weight: var(--field-weight); |
| 477 | 526 | |
| 527 | + -ms-pointer-events: none; | |
| 478 | 528 | pointer-events: none; |
| 479 | 529 | } |
| 480 | 530 | |
| 481 | 531 | .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label { |
| @@ -489,8 +539,21 @@ | ||
| 489 | 539 | font-size: 12px; |
| 490 | 540 | font-size: calc(0.85 * var(--field-font-size)); |
| 491 | 541 | } |
| 492 | 542 | |
| 543 | +/* These do not work if they are combined */ | |
| 544 | +.with_frm_style .frm_inside_container.frm_label_float_top > input::-moz-placeholder, | |
| 545 | +.with_frm_style .frm_inside_container.frm_label_float_top > textarea::-moz-placeholder { | |
| 546 | + opacity: 1 !important; | |
| 547 | + transition: opacity 0.3s ease-in; | |
| 548 | +} | |
| 549 | + | |
| 550 | +.with_frm_style .frm_inside_container.frm_label_float_top > input:-ms-input-placeholder, | |
| 551 | +.with_frm_style .frm_inside_container.frm_label_float_top > textarea:-ms-input-placeholder { | |
| 552 | + opacity: 1; | |
| 553 | + transition: opacity 0.3s ease-in; | |
| 554 | +} | |
| 555 | + | |
| 493 | 556 | .with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder, |
| 494 | 557 | .with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { |
| 495 | 558 | opacity: 1; |
| 496 | 559 | transition: opacity 0.3s ease-in; |
| @@ -542,13 +605,14 @@ | ||
| 542 | 605 | white-space:nowrap; |
| 543 | 606 | } |
| 544 | 607 | |
| 545 | 608 | .with_frm_style .frm_button{ |
| 546 | - text-decoration:none !important; | |
| 609 | + text-decoration:none !important;; | |
| 547 | 610 | border:1px solid #eee; |
| 548 | 611 | display:inline-block; |
| 549 | 612 | <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?> |
| 550 | - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>; | |
| 613 | + padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>; | |
| 614 | + padding:var(--submit-padding)<?php echo esc_html( $important ); ?>; | |
| 551 | 615 | <?php } else { ?> |
| 552 | 616 | padding:5px; |
| 553 | 617 | <?php } ?> |
| 554 | 618 | <?php if ( ! empty( $defaults['border_radius'] ) ) { ?> |
| @@ -555,30 +619,38 @@ | ||
| 555 | 619 | border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; |
| 556 | 620 | border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; |
| 557 | 621 | <?php } ?> |
| 558 | 622 | <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?> |
| 559 | - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>; | |
| 623 | + font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>; | |
| 624 | + font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>; | |
| 560 | 625 | <?php } ?> |
| 561 | 626 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 562 | - font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 627 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 628 | + font-family:var(--font)<?php echo esc_html( $important ); ?>; | |
| 563 | 629 | <?php } ?> |
| 564 | 630 | <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?> |
| 565 | - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>; | |
| 631 | + font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>; | |
| 632 | + font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>; | |
| 566 | 633 | <?php } ?> |
| 567 | 634 | <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> |
| 568 | - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 635 | + color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>; | |
| 636 | + color:var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 569 | 637 | <?php } ?> |
| 570 | 638 | <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?> |
| 571 | - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 639 | + background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>; | |
| 640 | + background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 572 | 641 | <?php } ?> |
| 573 | 642 | <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?> |
| 574 | - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>; | |
| 643 | + border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>; | |
| 644 | + border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>; | |
| 575 | 645 | <?php } ?> |
| 576 | 646 | <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?> |
| 577 | - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>; | |
| 647 | + border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>; | |
| 648 | + border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>; | |
| 578 | 649 | <?php } ?> |
| 579 | 650 | <?php if ( ! empty( $defaults['submit_height'] ) ) { ?> |
| 580 | - height: var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 651 | + height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>; | |
| 652 | + height:var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 581 | 653 | <?php } ?> |
| 582 | 654 | } |
| 583 | 655 | |
| 584 | 656 | <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> |
| @@ -660,8 +732,9 @@ | ||
| 660 | 732 | |
| 661 | 733 | .with_frm_style .frm_loading_prev .frm_prev_page, |
| 662 | 734 | .with_frm_style .frm_loading_form .frm_button_submit { |
| 663 | 735 | position: relative; |
| 736 | + opacity: .8; | |
| 664 | 737 | color: transparent !important; |
| 665 | 738 | text-shadow: none !important; |
| 666 | 739 | } |
| 667 | 740 | |
| @@ -687,9 +760,9 @@ | ||
| 687 | 760 | border-top-color: transparent; |
| 688 | 761 | border-left-color: transparent; |
| 689 | 762 | border-radius: 50%; |
| 690 | 763 | box-sizing: border-box; |
| 691 | - <?php $loader_size = 12; ?> | |
| 764 | + <?php $loader_size = 20; ?> | |
| 692 | 765 | top: 50%; |
| 693 | 766 | left: 50%; |
| 694 | 767 | margin-top: -<?php echo absint( $loader_size / 2 ); ?>px; |
| 695 | 768 | margin-left: -<?php echo absint( $loader_size / 2 ); ?>px; |
| @@ -732,12 +805,15 @@ | ||
| 732 | 805 | |
| 733 | 806 | .with_frm_style a.frm_save_draft, |
| 734 | 807 | .with_frm_style a.frm_start_over{ |
| 735 | 808 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 736 | - font-family: var(--font); | |
| 809 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 810 | + font-family:var(--font); | |
| 737 | 811 | <?php } ?> |
| 738 | - font-size: var(--submit-font-size); | |
| 739 | - font-weight: var(--submit-weight); | |
| 812 | + font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>; | |
| 813 | + font-size:var(--submit-font-size); | |
| 814 | + font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>; | |
| 815 | + font-weight:var(--submit-weight); | |
| 740 | 816 | } |
| 741 | 817 | |
| 742 | 818 | .horizontal_radio .frm_radio{ |
| 743 | 819 | margin:0 5px 0 0; |
| @@ -744,9 +820,9 @@ | ||
| 744 | 820 | } |
| 745 | 821 | |
| 746 | 822 | .horizontal_radio .frm_checkbox{ |
| 747 | 823 | margin:0; |
| 748 | - margin-right:12px; | |
| 824 | + margin-right:5px; | |
| 749 | 825 | } |
| 750 | 826 | |
| 751 | 827 | .vertical_radio .frm_checkbox, |
| 752 | 828 | .vertical_radio .frm_radio, |
| @@ -761,13 +837,15 @@ | ||
| 761 | 837 | padding-left: 0; |
| 762 | 838 | } |
| 763 | 839 | |
| 764 | 840 | .with_frm_style .frm_radio{ |
| 765 | - display: var(--radio-align)<?php echo esc_html( $important ); ?>; | |
| 841 | + display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>; | |
| 842 | + display:var(--radio-align)<?php echo esc_html( $important ); ?>; | |
| 766 | 843 | } |
| 767 | 844 | |
| 768 | 845 | .with_frm_style .frm_checkbox{ |
| 769 | - display: var(--check-align)<?php echo esc_html( $important ); ?>; | |
| 846 | + display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>; | |
| 847 | + display:var(--check-align)<?php echo esc_html( $important ); ?>; | |
| 770 | 848 | } |
| 771 | 849 | |
| 772 | 850 | .with_frm_style .vertical_radio .frm_checkbox, |
| 773 | 851 | .with_frm_style .vertical_radio .frm_radio, |
| @@ -772,9 +850,8 @@ | ||
| 772 | 850 | .with_frm_style .vertical_radio .frm_checkbox, |
| 773 | 851 | .with_frm_style .vertical_radio .frm_radio, |
| 774 | 852 | .vertical_radio .frm_catlevel_1{ |
| 775 | 853 | display:block<?php echo esc_html( $important ); ?>; |
| 776 | - margin-bottom: 10px; | |
| 777 | 854 | } |
| 778 | 855 | |
| 779 | 856 | .with_frm_style .horizontal_radio .frm_checkbox, |
| 780 | 857 | .with_frm_style .horizontal_radio .frm_radio, |
| @@ -782,45 +859,40 @@ | ||
| 782 | 859 | display:inline-block<?php echo esc_html( $important ); ?>; |
| 783 | 860 | } |
| 784 | 861 | |
| 785 | 862 | .with_frm_style .frm_checkbox label, |
| 786 | -.with_frm_style .frm_radio label { | |
| 787 | - display: inline-block; | |
| 788 | - vertical-align: middle; | |
| 863 | +.with_frm_style .frm_radio label{ | |
| 864 | + display: inline; | |
| 789 | 865 | white-space:normal; |
| 790 | 866 | } |
| 791 | 867 | |
| 792 | -.with_frm_style .frm_checkbox label input[type=checkbox], | |
| 793 | -.with_frm_style .frm_radio label input[type=radio] { | |
| 794 | - margin-right: 4px; | |
| 795 | -} | |
| 796 | - | |
| 797 | -.with_frm_style .frm_checkbox label:not(.frm-label-disabled), | |
| 798 | -.with_frm_style .frm_radio label:not(.frm-label-disabled) { | |
| 799 | - cursor: pointer; | |
| 800 | -} | |
| 801 | - | |
| 802 | 868 | .with_frm_style .vertical_radio .frm_checkbox label, |
| 803 | 869 | .with_frm_style .vertical_radio .frm_radio label{ |
| 804 | 870 | display: block; |
| 805 | - width: 100%; | |
| 871 | + padding-left: 20px; | |
| 872 | + text-indent: -20px; | |
| 806 | 873 | } |
| 807 | 874 | |
| 808 | 875 | .with_frm_style .frm_radio label, |
| 809 | -.with_frm_style .frm_checkbox label { | |
| 876 | +.with_frm_style .frm_checkbox label{ | |
| 810 | 877 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 811 | - font-family: var(--font); | |
| 878 | + font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 879 | + font-family:var(--font); | |
| 812 | 880 | <?php } ?> |
| 813 | - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 814 | - color: var(--check-label-color)<?php echo esc_html( $important ); ?>; | |
| 815 | - font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>; | |
| 881 | + font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>; | |
| 882 | + font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 883 | + color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>; | |
| 884 | + color:var(--check-label-color)<?php echo esc_html( $important ); ?>; | |
| 885 | + font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>; | |
| 886 | + font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>; | |
| 816 | 887 | line-height: 1.3; |
| 817 | 888 | } |
| 818 | 889 | |
| 819 | 890 | .with_frm_style .frm_radio input[type=radio], |
| 820 | 891 | .with_frm_style .frm_checkbox input[type=checkbox] { |
| 821 | - font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 822 | - position: static<?php echo esc_html( $important ); ?>; | |
| 892 | + font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>; | |
| 893 | + font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 894 | + position:static<?php echo esc_html( $important ); ?>; | |
| 823 | 895 | } |
| 824 | 896 | |
| 825 | 897 | .frm_file_container .frm_file_link, |
| 826 | 898 | .with_frm_style .frm_radio label .frm_file_container, |
| @@ -830,9 +902,9 @@ | ||
| 830 | 902 | vertical-align:middle; |
| 831 | 903 | } |
| 832 | 904 | |
| 833 | 905 | .with_frm_style .frm_radio input[type=radio] |
| 834 | -<?php if ( $pro_is_installed ) : ?> | |
| 906 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 835 | 907 | , .with_frm_style .frm_scale input[type=radio] |
| 836 | 908 | <?php endif; ?> |
| 837 | 909 | { |
| 838 | 910 | border-radius:50%; |
| @@ -837,14 +909,14 @@ | ||
| 837 | 909 | { |
| 838 | 910 | border-radius:50%; |
| 839 | 911 | } |
| 840 | 912 | |
| 841 | -.with_frm_style .frm_checkbox input[type=checkbox] { | |
| 842 | - border-radius: calc(var(--border-radius) / 2) !important; | |
| 913 | +.with_frm_style .frm_checkbox input[type=checkbox]{ | |
| 914 | + border-radius:0; | |
| 843 | 915 | } |
| 844 | 916 | |
| 845 | 917 | .with_frm_style .frm_radio input[type=radio], |
| 846 | -<?php if ( $pro_is_installed ) : ?> | |
| 918 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 847 | 919 | .with_frm_style .frm_scale input[type=radio], |
| 848 | 920 | <?php endif; ?> |
| 849 | 921 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 850 | 922 | appearance: none; |
| @@ -850,83 +922,48 @@ | ||
| 850 | 922 | appearance: none; |
| 851 | 923 | background-color: var(--bg-color); |
| 852 | 924 | flex: none; |
| 853 | 925 | display:inline-block !important; |
| 854 | - width: 16px !important; | |
| 855 | - min-width: 16px !important; | |
| 856 | - height: 16px !important; | |
| 926 | + margin: 0 5px 0 0; | |
| 857 | 927 | color: var(--border-color); |
| 928 | + width: 18px; | |
| 929 | + min-width: 18px; | |
| 930 | + height: 18px; | |
| 858 | 931 | border: 1px solid currentColor; |
| 859 | 932 | border-color: var(--border-color); |
| 860 | 933 | vertical-align: middle; |
| 861 | 934 | position: initial; /* override Bootstrap */ |
| 862 | 935 | padding: 0; |
| 863 | - margin: 0; | |
| 864 | 936 | } |
| 865 | 937 | |
| 866 | -.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked, | |
| 867 | -<?php if ( $pro_is_installed ) : ?> | |
| 868 | -.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked, | |
| 938 | +.with_frm_style .frm_radio input[type=radio]:before, | |
| 939 | +<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 940 | +.with_frm_style .frm_scale input[type=radio]:before, | |
| 869 | 941 | <?php endif; ?> |
| 870 | -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked { | |
| 871 | - border-color: var(--border-color-active) !important; | |
| 942 | +.with_frm_style .frm_checkbox input[type=checkbox]:before { | |
| 943 | + content: ''; | |
| 944 | + width: 12px; | |
| 945 | + height: 12px; | |
| 946 | + border-radius: 50%; | |
| 947 | + transform: scale(0); | |
| 948 | + transition: 120ms transform ease-in-out; | |
| 949 | + box-shadow: inset 10px 10px var(--text-color); | |
| 950 | + display: block; | |
| 951 | + margin: 2px 0 0 2px; | |
| 872 | 952 | } |
| 873 | 953 | |
| 874 | -.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked { | |
| 875 | - background-color: var(--border-color-active) !important; | |
| 954 | +.with_frm_style .frm_checkbox input[type=checkbox]:before{ | |
| 955 | + clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); | |
| 956 | + border-radius: 0; | |
| 876 | 957 | } |
| 877 | 958 | |
| 878 | -.with_frm_style .frm_radio input[type=radio][disabled]:checked, | |
| 879 | -<?php if ( $pro_is_installed ) : ?> | |
| 880 | -.with_frm_style .frm_scale input[type=radio][disabled]:checked, | |
| 881 | -<?php endif; ?> | |
| 882 | -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked { | |
| 883 | - border-color: var(--border-color) !important; /* Override Style Preview */ | |
| 884 | -} | |
| 885 | - | |
| 886 | -.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked { | |
| 887 | - background-color: var(--border-color) !important; | |
| 888 | -} | |
| 889 | - | |
| 890 | 959 | .with_frm_style .frm_radio input[type=radio]:checked:before, |
| 891 | -<?php if ( $pro_is_installed ) { ?> | |
| 892 | -.with_frm_style .frm_scale input[type=radio]:checked:before, | |
| 893 | -<?php } ?> | |
| 894 | 960 | .with_frm_style .frm_checkbox input[type=checkbox]:checked:before { |
| 895 | - position: static !important; /* Override Style Preview */ | |
| 896 | - content: ''; | |
| 897 | - display: block; | |
| 961 | + transform: scale(1); | |
| 898 | 962 | } |
| 899 | 963 | |
| 900 | -.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before { | |
| 901 | - width: 100% !important; | |
| 902 | - height: 100% !important; | |
| 903 | - background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6667 1.5L4.25001 7.91667L1.33334 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") !important; | |
| 904 | - background-size: 9px !important; | |
| 905 | - background-repeat: no-repeat !important; | |
| 906 | - background-position: center !important; | |
| 907 | - margin: 0; | |
| 908 | -} | |
| 909 | - | |
| 910 | -<?php if ( $pro_is_installed ) { ?> | |
| 911 | -.with_frm_style .frm_scale input[type=radio]:before, | |
| 912 | -<?php } ?> | |
| 913 | -.with_frm_style .frm_radio input[type=radio]:before { | |
| 914 | - width: 8px; | |
| 915 | - height: 8px; | |
| 916 | - border-radius: 50%; | |
| 917 | - background-color: var(--border-color-active); | |
| 918 | - margin: 3px; | |
| 919 | -} | |
| 920 | - | |
| 921 | -<?php if ( $pro_is_installed ) { ?> | |
| 922 | -.with_frm_style .frm_scale input[type=radio][disabled]:before, | |
| 923 | -<?php } ?> | |
| 924 | -.with_frm_style .frm_radio input[type=radio][disabled]:before { | |
| 925 | - background-color: var(--border-color); | |
| 926 | -} | |
| 927 | - | |
| 928 | 964 | .with_frm_style :invalid, |
| 965 | +.with_frm_style :-moz-submit-invalid, | |
| 929 | 966 | .with_frm_style :-moz-ui-invalid{ |
| 930 | 967 | box-shadow:none; |
| 931 | 968 | } |
| 932 | 969 | |
| @@ -946,25 +983,27 @@ | ||
| 946 | 983 | border-radius:4px; |
| 947 | 984 | padding:15px; |
| 948 | 985 | } |
| 949 | 986 | |
| 950 | -.with_frm_style .frm_message p { | |
| 951 | - color: var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 952 | - margin-bottom: 0; | |
| 987 | +.with_frm_style .frm_message p{ | |
| 988 | + margin-bottom:5px; | |
| 989 | + color:<?php echo esc_html( $defaults['success_text_color'] ); ?>; | |
| 990 | + color:var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 953 | 991 | } |
| 954 | 992 | |
| 955 | -.with_frm_style .frm_message > p:first-of-type { | |
| 956 | - margin-top: 0; | |
| 957 | -} | |
| 958 | - | |
| 959 | 993 | .with_frm_style .frm_message, |
| 960 | -.frm_success_style { | |
| 961 | - margin: 5px 0 15px; | |
| 962 | - border: 1px solid var(--success-border-color); | |
| 963 | - background-color: var(--success-bg-color); | |
| 964 | - color: var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 965 | - border-radius: var(--border-radius); | |
| 966 | - font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>; | |
| 994 | +.frm_success_style{ | |
| 995 | + margin:5px 0 15px; | |
| 996 | + border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>; | |
| 997 | + border-color:var(--success-border-color); | |
| 998 | + background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>; | |
| 999 | + background-color:var(--success-bg-color); | |
| 1000 | + color:<?php echo esc_html( $defaults['success_text_color'] ); ?>; | |
| 1001 | + color:var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 1002 | + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1003 | + border-radius:var(--border-radius); | |
| 1004 | + font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>; | |
| 1005 | + font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>; | |
| 967 | 1006 | } |
| 968 | 1007 | |
| 969 | 1008 | .with_frm_style .frm_plain_success .frm_message { |
| 970 | 1009 | background-color: transparent; |
| @@ -1000,9 +1039,10 @@ | ||
| 1000 | 1039 | padding:5px; |
| 1001 | 1040 | border-width:1px; |
| 1002 | 1041 | border-style:solid; |
| 1003 | 1042 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1004 | - border-color: var(--border-color); | |
| 1043 | + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1044 | + border-color:var(--border-color); | |
| 1005 | 1045 | <?php } ?> |
| 1006 | 1046 | border-top:none; |
| 1007 | 1047 | border-left:none; |
| 1008 | 1048 | border-right:none; |
| @@ -1017,9 +1057,10 @@ | ||
| 1017 | 1057 | } |
| 1018 | 1058 | |
| 1019 | 1059 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1020 | 1060 | .with_frm_style .frm-alt-table{ |
| 1021 | - border-color: var(--border-color); | |
| 1061 | + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1062 | + border-color:var(--border-color); | |
| 1022 | 1063 | } |
| 1023 | 1064 | <?php } ?> |
| 1024 | 1065 | |
| 1025 | 1066 | .frm-alt-table th { |
| @@ -1043,11 +1084,11 @@ | ||
| 1043 | 1084 | background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; |
| 1044 | 1085 | } |
| 1045 | 1086 | |
| 1046 | 1087 | table.form_results.with_frm_style{ |
| 1047 | - border-style: solid; | |
| 1048 | - border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1049 | - border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1088 | + border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>; | |
| 1089 | + border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1090 | + border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1050 | 1091 | } |
| 1051 | 1092 | |
| 1052 | 1093 | table.form_results.with_frm_style tr td{ |
| 1053 | 1094 | text-align:left; |
| @@ -1052,14 +1093,15 @@ | ||
| 1052 | 1093 | table.form_results.with_frm_style tr td{ |
| 1053 | 1094 | text-align:left; |
| 1054 | 1095 | padding:7px 9px; |
| 1055 | 1096 | <?php if ( ! empty( $defaults['text_color'] ) ) { ?> |
| 1056 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 1097 | + color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 1098 | + color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 1057 | 1099 | <?php } ?> |
| 1058 | 1100 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1059 | - border-top-style: solid; | |
| 1060 | - border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1061 | - border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1101 | + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1102 | + border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1103 | + border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1062 | 1104 | <?php } ?> |
| 1063 | 1105 | } |
| 1064 | 1106 | |
| 1065 | 1107 | table.form_results.with_frm_style tr.frm_even, |
| @@ -1069,10 +1111,11 @@ | ||
| 1069 | 1111 | } |
| 1070 | 1112 | |
| 1071 | 1113 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1072 | 1114 | table.form_results.with_frm_style tr.frm_odd, |
| 1073 | -.frm-grid .frm_odd { | |
| 1074 | - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 1115 | +.frm-grid .frm_odd{ | |
| 1116 | + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1117 | + background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 1075 | 1118 | } |
| 1076 | 1119 | <?php } ?> |
| 1077 | 1120 | |
| 1078 | 1121 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| @@ -1154,25 +1197,26 @@ | ||
| 1154 | 1197 | animation:2s linear 0s normal none infinite progress-bar-stripes; |
| 1155 | 1198 | } |
| 1156 | 1199 | |
| 1157 | 1200 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1158 | -#frm_loading .progress-striped .progress-bar { | |
| 1201 | +#frm_loading .progress-striped .progress-bar{ | |
| 1159 | 1202 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1160 | - background-image: linear-gradient(45deg, var(--border-color) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, var(--border-color) 50%, var(--border-color) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); | |
| 1203 | + background-image:linear-gradient(45deg, <?php echo esc_html( $defaults['border_color'] ); ?> 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, <?php echo esc_html( $defaults['border_color'] ); ?> 50%, <?php echo esc_html( $defaults['border_color'] ); ?> 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)); | |
| 1161 | 1204 | <?php } ?> |
| 1162 | 1205 | background-size:40px 40px; |
| 1163 | 1206 | } |
| 1164 | 1207 | <?php } ?> |
| 1165 | 1208 | |
| 1166 | -#frm_loading .progress-bar { | |
| 1167 | - background-color: var(--bg-color); | |
| 1168 | - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset; | |
| 1169 | - float: left; | |
| 1170 | - height: 100%; | |
| 1171 | - line-height: 20px; | |
| 1172 | - text-align: center; | |
| 1173 | - transition: width 0.6s ease 0s; | |
| 1174 | - width: 100%; | |
| 1209 | +#frm_loading .progress-bar{ | |
| 1210 | + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1211 | + background-color:var(--bg-color); | |
| 1212 | + box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset; | |
| 1213 | + float:left; | |
| 1214 | + height:100%; | |
| 1215 | + line-height:20px; | |
| 1216 | + text-align:center; | |
| 1217 | + transition:width 0.6s ease 0s; | |
| 1218 | + width:100%; | |
| 1175 | 1219 | } |
| 1176 | 1220 | |
| 1177 | 1221 | .frm_image_from_url{ |
| 1178 | 1222 | height:50px; |
| @@ -1210,9 +1254,10 @@ | ||
| 1210 | 1254 | padding:5px; |
| 1211 | 1255 | border-width:1px; |
| 1212 | 1256 | border-style:solid; |
| 1213 | 1257 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1214 | - border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1258 | + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1259 | + border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1215 | 1260 | <?php } ?> |
| 1216 | 1261 | border-left:none; |
| 1217 | 1262 | border-right:none; |
| 1218 | 1263 | } |
| @@ -1247,16 +1292,18 @@ | ||
| 1247 | 1292 | } |
| 1248 | 1293 | |
| 1249 | 1294 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1250 | 1295 | .frm_grid_first, |
| 1251 | -.frm_grid_odd { | |
| 1252 | - background-color: var(--bg-color); | |
| 1296 | +.frm_grid_odd{ | |
| 1297 | + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1298 | + background-color:var(--bg-color); | |
| 1253 | 1299 | } |
| 1254 | 1300 | <?php } ?> |
| 1255 | 1301 | |
| 1256 | 1302 | <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?> |
| 1257 | -.frm_grid { | |
| 1258 | - background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 1303 | +.frm_grid{ | |
| 1304 | + background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>; | |
| 1305 | + background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 1259 | 1306 | } |
| 1260 | 1307 | <?php } ?> |
| 1261 | 1308 | |
| 1262 | 1309 | .with_frm_style .frm_grid.frm_blank_field, |
| @@ -1261,10 +1308,12 @@ | ||
| 1261 | 1308 | |
| 1262 | 1309 | .with_frm_style .frm_grid.frm_blank_field, |
| 1263 | 1310 | .with_frm_style .frm_grid_first.frm_blank_field, |
| 1264 | 1311 | .with_frm_style .frm_grid_odd.frm_blank_field{ |
| 1312 | + background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>; | |
| 1265 | 1313 | background-color:var(--error-bg)<?php echo esc_html( $important ); ?>; |
| 1266 | - border-color: var(--error-border); | |
| 1314 | + border-color:<?php echo esc_html( $defaults['error_border'] ); ?>; | |
| 1315 | + border-color:var(--error-bg); | |
| 1267 | 1316 | } |
| 1268 | 1317 | |
| 1269 | 1318 | .frm_grid .frm_primary_label, |
| 1270 | 1319 | .frm_grid_first .frm_primary_label, |
| @@ -1286,10 +1335,9 @@ | ||
| 1286 | 1335 | .frm_grid_odd .frm_radio label, |
| 1287 | 1336 | .frm_grid_first .frm_checkbox label, |
| 1288 | 1337 | .frm_grid .frm_checkbox label, |
| 1289 | 1338 | .frm_grid_odd .frm_checkbox label{ |
| 1290 | - color:transparent; | |
| 1291 | - text-indent: -9999px; | |
| 1339 | + visibility:hidden; | |
| 1292 | 1340 | white-space:nowrap; |
| 1293 | 1341 | text-align:left; |
| 1294 | 1342 | } |
| 1295 | 1343 | |
| @@ -1415,18 +1463,8 @@ | ||
| 1415 | 1463 | .frm_form_field.frm_left_container .frm_opt_container{ |
| 1416 | 1464 | padding-top:4px; |
| 1417 | 1465 | } |
| 1418 | 1466 | |
| 1419 | -.with_frm_style .frm_left_container > select.auto_width, | |
| 1420 | -.with_frm_style .frm_right_container > select.auto_width { | |
| 1421 | - width: max-content<?php echo esc_html( $important ); ?>; | |
| 1422 | -} | |
| 1423 | - | |
| 1424 | -.with_frm_style .frm_right_container > .frm_primary_label, | |
| 1425 | -.with_frm_style .frm_right_container > select.auto_width { | |
| 1426 | - margin-left: auto<?php echo esc_html( $important ); ?>; | |
| 1427 | -} | |
| 1428 | - | |
| 1429 | 1467 | .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label, |
| 1430 | 1468 | .with_frm_style .frm_inline_container.frm_grid .frm_primary_label, |
| 1431 | 1469 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label, |
| 1432 | 1470 | .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container, |
| @@ -1461,9 +1499,11 @@ | ||
| 1461 | 1499 | grid-column-end: span 1; |
| 1462 | 1500 | } |
| 1463 | 1501 | |
| 1464 | 1502 | .frm_form_field .frm_checkbox, |
| 1465 | -.frm_form_field .frm_radio { | |
| 1503 | +.frm_form_field .frm_checkbox + .frm_checkbox, | |
| 1504 | +.frm_form_field .frm_radio, | |
| 1505 | +.frm_form_field .frm_radio + .frm_radio{ | |
| 1466 | 1506 | margin-top: 0; |
| 1467 | 1507 | margin-bottom: 0; |
| 1468 | 1508 | } |
| 1469 | 1509 | |
| @@ -1472,24 +1512,32 @@ | ||
| 1472 | 1512 | overflow:auto; |
| 1473 | 1513 | } |
| 1474 | 1514 | |
| 1475 | 1515 | .frm_html_container.frm_scroll_box, |
| 1476 | -.frm_form_field.frm_html_scroll_box { | |
| 1477 | - height: 100px; | |
| 1478 | - overflow: auto; | |
| 1479 | - background-color: var(--bg-color); | |
| 1480 | - border-color: var(--border-color); | |
| 1481 | - border-width: var(--field-border-width); | |
| 1482 | - border-style: var(--field-border-style); | |
| 1483 | - border-radius: var(--border-radius); | |
| 1484 | - width: var(--field-width); | |
| 1485 | - max-width: 100%; | |
| 1486 | - font-size: var(--field-font-size); | |
| 1487 | - padding: var(--field-pad); | |
| 1488 | - box-sizing: border-box; | |
| 1489 | - outline: none<?php echo esc_html( $important ); ?>; | |
| 1490 | - font-weight: normal; | |
| 1491 | - box-shadow: var(--box-shadow); | |
| 1516 | +.frm_form_field.frm_html_scroll_box{ | |
| 1517 | + height:100px; | |
| 1518 | + overflow:auto; | |
| 1519 | + background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1520 | + background-color:var(--bg-color); | |
| 1521 | + border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1522 | + border-color:var(--border-color); | |
| 1523 | + border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>; | |
| 1524 | + border-width:var(--field-border-width); | |
| 1525 | + border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>; | |
| 1526 | + border-style:var(--field-border-style); | |
| 1527 | + border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1528 | + border-radius:var(--border-radius); | |
| 1529 | + width:<?php echo esc_html( $defaults['field_width'] ); ?>; | |
| 1530 | + width:var(--field-width); | |
| 1531 | + max-width:100%; | |
| 1532 | + font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 1533 | + font-size:var(--field-font-size); | |
| 1534 | + padding:<?php echo esc_html( $defaults['field_pad'] ); ?>; | |
| 1535 | + padding:var(--field-pad); | |
| 1536 | + box-sizing:border-box; | |
| 1537 | + outline:none<?php echo esc_html( $important ); ?>; | |
| 1538 | + font-weight:normal; | |
| 1539 | + box-shadow:var(--box-shadow); | |
| 1492 | 1540 | } |
| 1493 | 1541 | |
| 1494 | 1542 | .frm_form_field.frm_total_big input, |
| 1495 | 1543 | .frm_form_field.frm_total_big textarea, |
| @@ -1545,8 +1593,13 @@ | ||
| 1545 | 1593 | .frm_clearfix{ |
| 1546 | 1594 | display:block; |
| 1547 | 1595 | } |
| 1548 | 1596 | |
| 1597 | +.with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before { | |
| 1598 | + color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>; | |
| 1599 | + color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>; | |
| 1600 | +} | |
| 1601 | + | |
| 1549 | 1602 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first, |
| 1550 | 1603 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle, |
| 1551 | 1604 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last { |
| 1552 | 1605 | margin-bottom: 0 !important; |
| @@ -1557,9 +1610,8 @@ | ||
| 1557 | 1610 | /** |
| 1558 | 1611 | * Call action so other plugins can add additional CSS. |
| 1559 | 1612 | * |
| 1560 | 1613 | * @param array $args { |
| 1561 | - * | |
| 1562 | 1614 | * @type array $defaults |
| 1563 | 1615 | * } |
| 1564 | 1616 | */ |
| 1565 | 1617 | do_action( 'frm_include_front_css', compact( 'defaults' ) ); |
| @@ -1615,15 +1667,8 @@ | ||
| 1615 | 1667 | .with_frm_style .g-recaptcha iframe, |
| 1616 | 1668 | .with_frm_style .frm-g-recaptcha iframe{ |
| 1617 | 1669 | width:100%; |
| 1618 | 1670 | } |
| 1619 | -} | |
| 1620 | - | |
| 1621 | -.frm-card-element .sq-card-wrapper .sq-card-message { | |
| 1622 | - margin-bottom: 0; | |
| 1623 | -} | |
| 1624 | -.frm-card-errors:empty { | |
| 1625 | - margin: 0; | |
| 1626 | 1671 | } |
| 1627 | 1672 | <?php |
| 1628 | 1673 | |
| 1629 | 1674 | echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |