| @@ -16,12 +16,14 @@ | ||
| 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'; | |
| 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(); | |
| 24 | 26 | |
| 25 | 27 | ?> |
| 26 | 28 | .with_frm_style{ |
| 27 | 29 | <?php FrmStylesHelper::output_vars( $defaults ); ?> |
| @@ -36,12 +38,12 @@ | ||
| 36 | 38 | |
| 37 | 39 | .with_frm_style, |
| 38 | 40 | .with_frm_style form, |
| 39 | 41 | .with_frm_style .frm-show-form div.frm_description p{ |
| 40 | - text-align:<?php echo esc_html( $defaults['form_align'] . $important ); ?>; | |
| 41 | - text-align:var(--form-align)<?php echo esc_html( $important ); ?>; | |
| 42 | + text-align: var(--form-align)<?php echo esc_html( $important ); ?>; | |
| 42 | 43 | } |
| 43 | 44 | |
| 45 | +/* Keep this. This is used for Honeypot */ | |
| 44 | 46 | input:-webkit-autofill { |
| 45 | 47 | -webkit-box-shadow: 0 0 0 30px white inset; |
| 46 | 48 | } |
| 47 | 49 | |
| @@ -47,26 +49,21 @@ | ||
| 47 | 49 | |
| 48 | 50 | /* Form description */ |
| 49 | 51 | .with_frm_style .frm-show-form div.frm_description p{ |
| 50 | 52 | <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> |
| 51 | - font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>; | |
| 52 | - font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 53 | + font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 53 | 54 | <?php } ?> |
| 54 | 55 | <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> |
| 55 | - color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>; | |
| 56 | - color:var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 56 | + color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 57 | 57 | <?php } ?> |
| 58 | 58 | <?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?> |
| 59 | - margin-top:<?php echo esc_html( $defaults['form_desc_margin_top'] . $important ); ?>; | |
| 60 | - margin-top:var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>; | |
| 59 | + margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>; | |
| 61 | 60 | <?php } ?> |
| 62 | 61 | <?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?> |
| 63 | - margin-bottom:<?php echo esc_html( $defaults['form_desc_margin_bottom'] . $important ); ?>; | |
| 64 | - margin-bottom:var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 62 | + margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 65 | 63 | <?php } ?> |
| 66 | 64 | <?php if ( isset( $defaults['form_desc_padding'] ) ) { ?> |
| 67 | - padding:<?php echo esc_html( $defaults['form_desc_padding'] . $important ); ?>; | |
| 68 | - padding:var(--form-desc-padding)<?php echo esc_html( $important ); ?>; | |
| 65 | + padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>; | |
| 69 | 66 | <?php } ?> |
| 70 | 67 | } |
| 71 | 68 | |
| 72 | 69 | form .<?php echo esc_html( FrmHoneypot::generate_class_name() ); ?> { |
| @@ -89,24 +86,20 @@ | ||
| 89 | 86 | } |
| 90 | 87 | |
| 91 | 88 | .with_frm_style .frm_form_fields > fieldset{ |
| 92 | 89 | <?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?> |
| 93 | - border-width:<?php echo esc_html( $defaults['fieldset'] . $important ); ?>; | |
| 94 | - border-width:var(--fieldset)<?php echo esc_html( $important ); ?>; | |
| 90 | + border-width: var(--fieldset)<?php echo esc_html( $important ); ?>; | |
| 95 | 91 | <?php } ?> |
| 96 | 92 | border-style:solid; |
| 97 | 93 | <?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?> |
| 98 | - border-color:<?php echo esc_html( $defaults['fieldset_color'] . $important ); ?>; | |
| 99 | - border-color:var(--fieldset-color)<?php echo esc_html( $important ); ?>; | |
| 94 | + border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>; | |
| 100 | 95 | <?php } ?> |
| 101 | 96 | margin:0; |
| 102 | 97 | <?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?> |
| 103 | - padding:<?php echo esc_html( $defaults['fieldset_padding'] . $important ); ?>; | |
| 104 | - padding:var(--fieldset-padding)<?php echo esc_html( $important ); ?>; | |
| 98 | + padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>; | |
| 105 | 99 | <?php } ?> |
| 106 | 100 | <?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?> |
| 107 | - background-color:<?php echo esc_html( $defaults['fieldset_bg_color'] ); ?>; | |
| 108 | - background-color:var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>; | |
| 101 | + background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>; | |
| 109 | 102 | <?php } ?> |
| 110 | 103 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 111 | 104 | font-family:var(--font); |
| 112 | 105 | <?php } ?> |
| @@ -130,26 +123,21 @@ | ||
| 130 | 123 | |
| 131 | 124 | .with_frm_style legend + h3, |
| 132 | 125 | .with_frm_style h3.frm_form_title{ |
| 133 | 126 | <?php if ( ! empty( $defaults['title_size'] ) ) { ?> |
| 134 | - font-size:<?php echo esc_html( $defaults['title_size'] . $important ); ?>; | |
| 135 | - font-size:var(--title-size)<?php echo esc_html( $important ); ?>; | |
| 127 | + font-size: var(--title-size)<?php echo esc_html( $important ); ?>; | |
| 136 | 128 | <?php } ?> |
| 137 | 129 | <?php if ( ! empty( $defaults['title_color'] ) ) { ?> |
| 138 | - color:<?php echo esc_html( $defaults['title_color'] . $important ); ?>; | |
| 139 | - color:var(--title-color)<?php echo esc_html( $important ); ?>; | |
| 130 | + color: var(--title-color)<?php echo esc_html( $important ); ?>; | |
| 140 | 131 | <?php } ?> |
| 141 | 132 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 142 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 143 | - font-family:var(--font); | |
| 133 | + font-family: var(--font); | |
| 144 | 134 | <?php } ?> |
| 145 | 135 | <?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?> |
| 146 | - margin-top:<?php echo esc_html( $defaults['title_margin_top'] . $important ); ?>; | |
| 147 | - margin-top:var(--title-margin-top)<?php echo esc_html( $important ); ?>; | |
| 136 | + margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>; | |
| 148 | 137 | <?php } ?> |
| 149 | 138 | <?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?> |
| 150 | - margin-bottom:<?php echo esc_html( $defaults['title_margin_bottom'] . $important ); ?>; | |
| 151 | - margin-bottom:var(--title-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 139 | + margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 152 | 140 | <?php } ?> |
| 153 | 141 | } |
| 154 | 142 | |
| 155 | 143 | .with_frm_style .frm_form_field.frm_html_container, |
| @@ -154,46 +142,42 @@ | ||
| 154 | 142 | |
| 155 | 143 | .with_frm_style .frm_form_field.frm_html_container, |
| 156 | 144 | .with_frm_style .frm_form_field .frm_show_it{ |
| 157 | 145 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 158 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 159 | - font-family:var(--font); | |
| 146 | + font-family: var(--font); | |
| 160 | 147 | <?php } ?> |
| 161 | 148 | <?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> |
| 162 | - color:<?php echo esc_html( $defaults['form_desc_color'] . $important ); ?>; | |
| 163 | - color:var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 149 | + color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 164 | 150 | <?php } ?> |
| 165 | 151 | } |
| 166 | 152 | |
| 167 | 153 | <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> |
| 168 | 154 | .with_frm_style .frm_form_field.frm_html_container{ |
| 169 | - font-size:<?php echo esc_html( $defaults['form_desc_size'] . $important ); ?>; | |
| 170 | - font-size:var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 155 | + font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 171 | 156 | } |
| 172 | 157 | <?php } ?> |
| 173 | 158 | |
| 174 | 159 | .with_frm_style .frm_form_field .frm_show_it{ |
| 175 | 160 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 176 | - font-size:<?php echo esc_html( $defaults['field_font_size'] . $important ); ?>; | |
| 177 | - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 161 | + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 178 | 162 | <?php } ?> |
| 179 | 163 | <?php if ( ! empty( $defaults['field_weight'] ) ) { ?> |
| 180 | - font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>; | |
| 181 | - font-weight:var(--field-weight)<?php echo esc_html( $important ); ?>; | |
| 164 | + font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>; | |
| 182 | 165 | <?php } ?> |
| 183 | 166 | } |
| 184 | 167 | |
| 185 | -.with_frm_style .frm_required{ | |
| 168 | +.with_frm_style .frm_required { | |
| 186 | 169 | <?php if ( ! empty( $defaults['required_color'] ) ) { ?> |
| 187 | - color:<?php echo esc_html( $defaults['required_color'] . $important ); ?>; | |
| 188 | - color:var(--required-color)<?php echo esc_html( $important ); ?>; | |
| 170 | + color: var(--required-color)<?php echo esc_html( $important ); ?>; | |
| 189 | 171 | <?php } ?> |
| 190 | 172 | <?php if ( ! empty( $defaults['required_weight'] ) ) { ?> |
| 191 | - font-weight:<?php echo esc_html( $defaults['required_weight'] . $important ); ?>; | |
| 192 | - font-weight:var(--required-weight)<?php echo esc_html( $important ); ?>; | |
| 173 | + font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>; | |
| 193 | 174 | <?php } ?> |
| 194 | 175 | } |
| 195 | 176 | |
| 177 | +<?php if ( $use_chosen_js ) { ?> | |
| 178 | +.with_frm_style .chosen-container, | |
| 179 | +<?php } ?> | |
| 196 | 180 | .with_frm_style input[type=text], |
| 197 | 181 | .with_frm_style input[type=password], |
| 198 | 182 | .with_frm_style input[type=email], |
| 199 | 183 | .with_frm_style input[type=number], |
| @@ -201,14 +185,12 @@ | ||
| 201 | 185 | .with_frm_style input[type=tel], |
| 202 | 186 | .with_frm_style input[type=search], |
| 203 | 187 | .with_frm_style select, |
| 204 | 188 | .with_frm_style textarea, |
| 205 | -.with_frm_style .frm-card-element.StripeElement, | |
| 206 | -.with_frm_style .chosen-container{ | |
| 189 | +.with_frm_style .frm-card-element.StripeElement { | |
| 207 | 190 | font-family:var(--font)<?php echo esc_html( $important ); ?>; |
| 208 | 191 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 209 | - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 210 | - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 192 | + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 211 | 193 | <?php } ?> |
| 212 | 194 | margin-bottom:0<?php echo esc_html( $important ); ?>; |
| 213 | 195 | } |
| 214 | 196 | |
| @@ -231,41 +213,33 @@ | ||
| 231 | 213 | .with_frm_style .frm_scroll_box .frm_opt_container, |
| 232 | 214 | .frm_form_fields_active_style, |
| 233 | 215 | .frm_form_fields_error_style, |
| 234 | 216 | .with_frm_style .frm-card-element.StripeElement, |
| 217 | +<?php if ( $use_chosen_js ) { ?> | |
| 235 | 218 | .with_frm_style .chosen-container-multi .chosen-choices, |
| 236 | -.with_frm_style .chosen-container-single .chosen-single{ | |
| 237 | - color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 238 | - color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 239 | - background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; | |
| 240 | - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 241 | - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 242 | - border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 243 | - border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>; | |
| 244 | - border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 245 | - border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>; | |
| 246 | - border-style:var(--field-border-style)<?php echo esc_html( $important ); ?>; | |
| 247 | - -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 248 | - -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $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 | - -webkit-box-sizing:border-box; | |
| 259 | - -moz-box-sizing:border-box; | |
| 260 | - box-sizing:border-box; | |
| 261 | - outline:none<?php echo esc_html( $important ); ?>; | |
| 262 | - font-weight:<?php echo esc_html( $defaults['field_weight'] ); ?>; | |
| 263 | - font-weight:var(--field-weight); | |
| 264 | - box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 219 | +.with_frm_style .chosen-container-single .chosen-single, | |
| 220 | +<?php } ?> | |
| 221 | +.with_frm_style .frm_slimselect.ss-main { | |
| 222 | + color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 223 | + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 224 | + border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 225 | + border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 226 | + border-style: var(--field-border-style)<?php echo esc_html( $important ); ?>; | |
| 227 | + border-radius: var(--border-radius)<?php echo esc_html( $important ); ?>; | |
| 228 | + width: var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 229 | + max-width: 100%; | |
| 230 | + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 231 | + padding: var(--field-pad)<?php echo esc_html( $important ); ?>; | |
| 232 | + box-sizing: border-box; | |
| 233 | + outline: none<?php echo esc_html( $important ); ?>; | |
| 234 | + font-weight: var(--field-weight); | |
| 265 | 235 | } |
| 266 | 236 | |
| 267 | -<?php if ( ! empty( $important ) ) { ?> | |
| 237 | +<?php if ( ! empty( $important ) ) : ?> | |
| 238 | + <?php if ( $use_chosen_js ) { ?> | |
| 239 | + .with_frm_style .chosen-container-multi .chosen-choices, | |
| 240 | + .with_frm_style .chosen-container-single .chosen-single, | |
| 241 | + <?php } ?> | |
| 268 | 242 | .with_frm_style input[type=text], |
| 269 | 243 | .with_frm_style input[type=password], |
| 270 | 244 | .with_frm_style input[type=email], |
| 271 | 245 | .with_frm_style input[type=number], |
| @@ -277,30 +251,25 @@ | ||
| 277 | 251 | .frm_form_fields_style, |
| 278 | 252 | .with_frm_style .frm_scroll_box .frm_opt_container, |
| 279 | 253 | .frm_form_fields_active_style, |
| 280 | 254 | .frm_form_fields_error_style, |
| 281 | -.with_frm_style .frm-card-element.StripeElement, | |
| 282 | -.with_frm_style .chosen-container-multi .chosen-choices, | |
| 283 | -.with_frm_style .chosen-container-single .chosen-single{ | |
| 255 | +.with_frm_style .frm-card-element.StripeElement { | |
| 284 | 256 | background-image:none !important; |
| 285 | 257 | } |
| 286 | -<?php } ?> | |
| 258 | +<?php endif; ?> | |
| 287 | 259 | |
| 288 | 260 | .with_frm_style select option { |
| 289 | - color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 290 | - color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 261 | + color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 291 | 262 | } |
| 292 | 263 | |
| 293 | 264 | .with_frm_style select option.frm-select-placeholder { |
| 294 | - color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 295 | - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 265 | + color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 296 | 266 | } |
| 297 | 267 | |
| 298 | 268 | .with_frm_style input[type=radio], |
| 299 | 269 | .with_frm_style input[type=checkbox]{ |
| 300 | - border-color:<?php echo esc_html( $defaults['border_color'] . $important ); ?>; | |
| 301 | - border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 302 | - box-shadow:var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 270 | + border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 271 | + box-shadow: var(--box-shadow)<?php echo esc_html( $important ); ?>; | |
| 303 | 272 | float: none; |
| 304 | 273 | } |
| 305 | 274 | |
| 306 | 275 | .with_frm_style input[type=radio]:after, |
| @@ -307,8 +276,18 @@ | ||
| 307 | 276 | .with_frm_style input[type=checkbox]:after { |
| 308 | 277 | display: none; /* 2021 conflict */ |
| 309 | 278 | } |
| 310 | 279 | |
| 280 | +.with_frm_style input[type=radio]:not(:checked):focus, | |
| 281 | +.with_frm_style input[type=checkbox]:not(:checked):focus { | |
| 282 | + border-color: var(--border-color) !important; | |
| 283 | +} | |
| 284 | + | |
| 285 | +.with_frm_style input[type=radio]:focus, | |
| 286 | +.with_frm_style input[type=checkbox]:focus { | |
| 287 | + box-shadow:0px 0px 0px 3px rgba(<?php echo esc_html( FrmStylesHelper::hex2rgb( $defaults['border_color_active'] ) ); ?>, 0.4) !important; | |
| 288 | +} | |
| 289 | + | |
| 311 | 290 | .with_frm_style input[type=text], |
| 312 | 291 | .with_frm_style input[type=password], |
| 313 | 292 | .with_frm_style input[type=email], |
| 314 | 293 | .with_frm_style input[type=number], |
| @@ -317,10 +296,9 @@ | ||
| 317 | 296 | .with_frm_style input[type=file], |
| 318 | 297 | .with_frm_style input[type=search], |
| 319 | 298 | .with_frm_style select, |
| 320 | 299 | .with_frm_style .frm-card-element.StripeElement{ |
| 321 | - min-height:<?php echo esc_html( $defaults['field_height'] ); ?>; | |
| 322 | - min-height:var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 300 | + min-height: var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 323 | 301 | line-height:1.3<?php echo esc_html( $important ); ?>; |
| 324 | 302 | } |
| 325 | 303 | |
| 326 | 304 | .with_frm_style select[multiple=multiple]{ |
| @@ -335,17 +313,15 @@ | ||
| 335 | 313 | box-shadow:none; |
| 336 | 314 | } |
| 337 | 315 | |
| 338 | 316 | .with_frm_style input[type=file]{ |
| 339 | - color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 340 | - color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 341 | - padding:0px; | |
| 317 | + color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 318 | + padding: 0px; | |
| 342 | 319 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 343 | - font-family:var(--font)<?php echo esc_html( $important ); ?>; | |
| 320 | + font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 344 | 321 | <?php } ?> |
| 345 | - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 346 | - font-size:var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 347 | - display:initial; | |
| 322 | + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 323 | + display: initial; | |
| 348 | 324 | } |
| 349 | 325 | |
| 350 | 326 | .with_frm_style input[type=file].frm_transparent{ |
| 351 | 327 | color:transparent<?php echo esc_html( $important ); ?>; |
| @@ -351,10 +327,9 @@ | ||
| 351 | 327 | color:transparent<?php echo esc_html( $important ); ?>; |
| 352 | 328 | } |
| 353 | 329 | |
| 354 | 330 | .with_frm_style .wp-editor-wrap{ |
| 355 | - width:<?php echo esc_html( $defaults['field_width'] . $important ); ?>; | |
| 356 | - width:var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 331 | + width: var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 357 | 332 | max-width:100%; |
| 358 | 333 | } |
| 359 | 334 | |
| 360 | 335 | .with_frm_style .wp-editor-container textarea{ |
| @@ -362,17 +337,15 @@ | ||
| 362 | 337 | box-shadow:none !important; |
| 363 | 338 | } |
| 364 | 339 | |
| 365 | 340 | .with_frm_style .mceIframeContainer{ |
| 366 | - background-color:<?php echo esc_html( $defaults['bg_color'] . $important ); ?>; | |
| 367 | - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 341 | + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 368 | 342 | } |
| 369 | 343 | |
| 370 | 344 | .with_frm_style select{ |
| 371 | - width:<?php echo esc_html( $defaults['auto_width'] ); ?>; | |
| 372 | - width:var(--auto-width)<?php echo esc_html( $important ); ?>; | |
| 345 | + width: var(--auto-width)<?php echo esc_html( $important ); ?>; | |
| 373 | 346 | max-width:100%; |
| 374 | - background-position-y: center; | |
| 347 | + background-position-y: calc(50% + 3px); | |
| 375 | 348 | } |
| 376 | 349 | |
| 377 | 350 | .with_frm_style input[disabled], |
| 378 | 351 | .with_frm_style select[disabled], |
| @@ -378,15 +351,12 @@ | ||
| 378 | 351 | .with_frm_style select[disabled], |
| 379 | 352 | .with_frm_style textarea[disabled], |
| 380 | 353 | .with_frm_style input[readonly], |
| 381 | 354 | .with_frm_style select[readonly], |
| 382 | -.with_frm_style textarea[readonly]{ | |
| 383 | - background-color:<?php echo esc_html( $defaults['bg_color_disabled'] ); ?>; | |
| 384 | - background-color:var(--bg-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 385 | - color:<?php echo esc_html( $defaults['text_color_disabled'] ); ?>; | |
| 386 | - color:var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 387 | - border-color:<?php echo esc_html( $defaults['border_color_disabled'] ); ?>; | |
| 388 | - border-color:var(--border-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 355 | +.with_frm_style textarea[readonly] { | |
| 356 | + background-color: var(--bg-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 357 | + color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 358 | + border-color: var(--border-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 389 | 359 | } |
| 390 | 360 | |
| 391 | 361 | .frm_preview_page:before{ |
| 392 | 362 | content:normal !important; |
| @@ -398,30 +368,24 @@ | ||
| 398 | 368 | |
| 399 | 369 | .with_frm_style .frm_primary_label{ |
| 400 | 370 | max-width:100%; |
| 401 | 371 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 402 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 403 | - font-family:var(--font); | |
| 372 | + font-family: var(--font); | |
| 404 | 373 | <?php } ?> |
| 405 | 374 | <?php if ( ! empty( $defaults['font_size'] ) ) { ?> |
| 406 | - font-size:<?php echo esc_html( $defaults['font_size'] . $important ); ?>; | |
| 407 | - font-size:var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 375 | + font-size: var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 408 | 376 | <?php } ?> |
| 409 | 377 | <?php if ( ! empty( $defaults['label_color'] ) ) { ?> |
| 410 | - color:<?php echo esc_html( $defaults['label_color'] . $important ); ?>; | |
| 411 | - color:var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 378 | + color: var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 412 | 379 | <?php } ?> |
| 413 | 380 | <?php if ( ! empty( $defaults['weight'] ) ) { ?> |
| 414 | - font-weight:<?php echo esc_html( $defaults['weight'] . $important ); ?>; | |
| 415 | - font-weight:var(--weight)<?php echo esc_html( $important ); ?>; | |
| 381 | + font-weight: var(--weight)<?php echo esc_html( $important ); ?>; | |
| 416 | 382 | <?php } ?> |
| 417 | 383 | <?php if ( ! empty( $defaults['align'] ) ) { ?> |
| 418 | - text-align:<?php echo esc_html( $defaults['align'] . $important ); ?>; | |
| 419 | - text-align:var(--align)<?php echo esc_html( $important ); ?>; | |
| 384 | + text-align: var(--align)<?php echo esc_html( $important ); ?>; | |
| 420 | 385 | <?php } ?> |
| 421 | 386 | <?php if ( ! empty( $defaults['label_padding'] ) ) { ?> |
| 422 | - padding:<?php echo esc_html( $defaults['label_padding'] . $important ); ?>; | |
| 423 | - padding:var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 387 | + padding: var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 424 | 388 | <?php } ?> |
| 425 | 389 | margin:0; |
| 426 | 390 | width:auto; |
| 427 | 391 | display:block; |
| @@ -474,9 +438,9 @@ | ||
| 474 | 438 | |
| 475 | 439 | /* Floating labels */ |
| 476 | 440 | .with_frm_style .frm_inside_container { |
| 477 | 441 | position: relative; |
| 478 | - padding-top: 16px; | |
| 442 | + padding-top: 18px; | |
| 479 | 443 | padding-top: calc(0.5 * var(--field-height)); |
| 480 | 444 | } |
| 481 | 445 | |
| 482 | 446 | .with_frm_style .frm_inside_container > input, |
| @@ -485,8 +449,13 @@ | ||
| 485 | 449 | display: block; |
| 486 | 450 | } |
| 487 | 451 | |
| 488 | 452 | /* These do not work if they are combined */ |
| 453 | +.with_frm_style input::placeholder, | |
| 454 | +.with_frm_style textarea::placeholder { | |
| 455 | + font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 456 | +} | |
| 457 | + | |
| 489 | 458 | .with_frm_style .frm_inside_container > input::-moz-placeholder, |
| 490 | 459 | .with_frm_style .frm_inside_container > textarea::-moz-placeholder { |
| 491 | 460 | opacity: 0 !important; |
| 492 | 461 | transition: opacity 0.3s ease-in; |
| @@ -507,9 +476,9 @@ | ||
| 507 | 476 | .with_frm_style .frm_inside_container > label { |
| 508 | 477 | transition: all 0.3s ease-in; |
| 509 | 478 | |
| 510 | 479 | position: absolute; |
| 511 | - top: 17px; | |
| 480 | + top: 19px; | |
| 512 | 481 | top: calc(1px + .5 * var(--field-height)); |
| 513 | 482 | left: 3px; |
| 514 | 483 | width: 100%; |
| 515 | 484 | |
| @@ -517,9 +486,9 @@ | ||
| 517 | 486 | text-overflow: ellipsis; |
| 518 | 487 | overflow: hidden; |
| 519 | 488 | white-space: nowrap; |
| 520 | 489 | |
| 521 | - padding: 6px 10px; | |
| 490 | + padding: 8px 12px; | |
| 522 | 491 | padding: var(--field-pad); |
| 523 | 492 | |
| 524 | 493 | font-size: 14px; |
| 525 | 494 | font-size: var(--field-font-size); |
| @@ -525,9 +494,8 @@ | ||
| 525 | 494 | font-size: var(--field-font-size); |
| 526 | 495 | font-weight: normal; |
| 527 | 496 | font-weight: var(--field-weight); |
| 528 | 497 | |
| 529 | - -ms-pointer-events: none; | |
| 530 | 498 | pointer-events: none; |
| 531 | 499 | } |
| 532 | 500 | |
| 533 | 501 | .with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label { |
| @@ -611,50 +579,39 @@ | ||
| 611 | 579 | text-decoration:none !important;; |
| 612 | 580 | border:1px solid #eee; |
| 613 | 581 | display:inline-block; |
| 614 | 582 | <?php if ( ! empty( $defaults['submit_padding'] ) ) { ?> |
| 615 | - padding:<?php echo esc_html( $defaults['submit_padding'] . $important ); ?>; | |
| 616 | - padding:var(--submit-padding)<?php echo esc_html( $important ); ?>; | |
| 583 | + padding: var(--submit-padding)<?php echo esc_html( $important ); ?>; | |
| 617 | 584 | <?php } else { ?> |
| 618 | 585 | padding:5px; |
| 619 | 586 | <?php } ?> |
| 620 | 587 | <?php if ( ! empty( $defaults['border_radius'] ) ) { ?> |
| 621 | - -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 622 | - -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 623 | 588 | border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; |
| 624 | 589 | border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; |
| 625 | 590 | <?php } ?> |
| 626 | 591 | <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?> |
| 627 | - font-size:<?php echo esc_html( $defaults['submit_font_size'] . $important ); ?>; | |
| 628 | - font-size:var(--submit-font-size)<?php echo esc_html( $important ); ?>; | |
| 592 | + font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>; | |
| 629 | 593 | <?php } ?> |
| 630 | 594 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 631 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 632 | - font-family:var(--font)<?php echo esc_html( $important ); ?>; | |
| 595 | + font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 633 | 596 | <?php } ?> |
| 634 | 597 | <?php if ( ! empty( $defaults['submit_weight'] ) ) { ?> |
| 635 | - font-weight:<?php echo esc_html( $defaults['submit_weight'] . $important ); ?>; | |
| 636 | - font-weight:var(--submit-weight)<?php echo esc_html( $important ); ?>; | |
| 598 | + font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>; | |
| 637 | 599 | <?php } ?> |
| 638 | 600 | <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> |
| 639 | - color:<?php echo esc_html( $defaults['submit_text_color'] . $important ); ?>; | |
| 640 | - color:var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 601 | + color: var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 641 | 602 | <?php } ?> |
| 642 | 603 | <?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?> |
| 643 | - background:<?php echo esc_html( $defaults['submit_bg_color'] . $important ); ?>; | |
| 644 | - background:var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 604 | + background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 645 | 605 | <?php } ?> |
| 646 | 606 | <?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?> |
| 647 | - border-width:<?php echo esc_html( $defaults['submit_border_width'] ); ?>; | |
| 648 | - border-width:var(--submit-border-width)<?php echo esc_html( $important ); ?>; | |
| 607 | + border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>; | |
| 649 | 608 | <?php } ?> |
| 650 | 609 | <?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?> |
| 651 | - border-color:<?php echo esc_html( $defaults['submit_border_color'] . $important ); ?>; | |
| 652 | - border-color:var(--submit-border-color)<?php echo esc_html( $important ); ?>; | |
| 610 | + border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>; | |
| 653 | 611 | <?php } ?> |
| 654 | 612 | <?php if ( ! empty( $defaults['submit_height'] ) ) { ?> |
| 655 | - height:<?php echo esc_html( $defaults['submit_height'] . $important ); ?>; | |
| 656 | - height:var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 613 | + height: var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 657 | 614 | <?php } ?> |
| 658 | 615 | } |
| 659 | 616 | |
| 660 | 617 | <?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> |
| @@ -687,8 +644,12 @@ | ||
| 687 | 644 | .with_frm_style.frm_center_submit .frm_submit{ |
| 688 | 645 | text-align:center; |
| 689 | 646 | } |
| 690 | 647 | |
| 648 | +.with_frm_style.frm_center_submit .frm_flex.frm_submit { | |
| 649 | + justify-content: center; | |
| 650 | +} | |
| 651 | + | |
| 691 | 652 | .with_frm_style .frm_inline_success .frm_submit{ |
| 692 | 653 | display: flex; |
| 693 | 654 | flex-direction: row; |
| 694 | 655 | align-items: center; |
| @@ -732,9 +693,8 @@ | ||
| 732 | 693 | |
| 733 | 694 | .with_frm_style .frm_loading_prev .frm_prev_page, |
| 734 | 695 | .with_frm_style .frm_loading_form .frm_button_submit { |
| 735 | 696 | position: relative; |
| 736 | - opacity: .8; | |
| 737 | 697 | color: transparent !important; |
| 738 | 698 | text-shadow: none !important; |
| 739 | 699 | } |
| 740 | 700 | |
| @@ -760,9 +720,9 @@ | ||
| 760 | 720 | border-top-color: transparent; |
| 761 | 721 | border-left-color: transparent; |
| 762 | 722 | border-radius: 50%; |
| 763 | 723 | box-sizing: border-box; |
| 764 | - <?php $loader_size = 20; ?> | |
| 724 | + <?php $loader_size = 12; ?> | |
| 765 | 725 | top: 50%; |
| 766 | 726 | left: 50%; |
| 767 | 727 | margin-top: -<?php echo absint( $loader_size / 2 ); ?>px; |
| 768 | 728 | margin-left: -<?php echo absint( $loader_size / 2 ); ?>px; |
| @@ -767,17 +727,23 @@ | ||
| 767 | 727 | margin-top: -<?php echo absint( $loader_size / 2 ); ?>px; |
| 768 | 728 | margin-left: -<?php echo absint( $loader_size / 2 ); ?>px; |
| 769 | 729 | width: <?php echo absint( $loader_size ); ?>px; |
| 770 | 730 | height: <?php echo absint( $loader_size ); ?>px; |
| 771 | - -webkit-animation: spin 2s linear infinite; | |
| 772 | - -moz-animation: spin 2s linear infinite; | |
| 773 | - -o-animation: spin 2s linear infinite; | |
| 774 | - animation: spin 2s linear infinite; | |
| 731 | + animation: spin 2s linear infinite; | |
| 775 | 732 | } |
| 776 | 733 | |
| 734 | +.with_frm_style .frm_submit.frm_flex { | |
| 735 | + align-items: center; | |
| 736 | + gap: 2%; | |
| 737 | +} | |
| 738 | + | |
| 739 | +.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page { | |
| 740 | + order: -1; | |
| 741 | +} | |
| 742 | + | |
| 777 | 743 | <?php |
| 778 | 744 | foreach ( $styles as $style ) { |
| 779 | - include( dirname( __FILE__ ) . '/_single_theme.css.php' ); | |
| 745 | + include __DIR__ . '/_single_theme.css.php'; | |
| 780 | 746 | unset( $style ); |
| 781 | 747 | } |
| 782 | 748 | |
| 783 | 749 | // Set it again since it may have been overridden. |
| @@ -799,15 +765,12 @@ | ||
| 799 | 765 | |
| 800 | 766 | .with_frm_style a.frm_save_draft, |
| 801 | 767 | .with_frm_style a.frm_start_over{ |
| 802 | 768 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 803 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 804 | - font-family:var(--font); | |
| 769 | + font-family: var(--font); | |
| 805 | 770 | <?php } ?> |
| 806 | - font-size:<?php echo esc_html( $defaults['submit_font_size'] ); ?>; | |
| 807 | - font-size:var(--submit-font-size); | |
| 808 | - font-weight:<?php echo esc_html( $defaults['submit_weight'] ); ?>; | |
| 809 | - font-weight:var(--submit-weight); | |
| 771 | + font-size: var(--submit-font-size); | |
| 772 | + font-weight: var(--submit-weight); | |
| 810 | 773 | } |
| 811 | 774 | |
| 812 | 775 | .horizontal_radio .frm_radio{ |
| 813 | 776 | margin:0 5px 0 0; |
| @@ -814,9 +777,9 @@ | ||
| 814 | 777 | } |
| 815 | 778 | |
| 816 | 779 | .horizontal_radio .frm_checkbox{ |
| 817 | 780 | margin:0; |
| 818 | - margin-right:5px; | |
| 781 | + margin-right:12px; | |
| 819 | 782 | } |
| 820 | 783 | |
| 821 | 784 | .vertical_radio .frm_checkbox, |
| 822 | 785 | .vertical_radio .frm_radio, |
| @@ -831,15 +794,13 @@ | ||
| 831 | 794 | padding-left: 0; |
| 832 | 795 | } |
| 833 | 796 | |
| 834 | 797 | .with_frm_style .frm_radio{ |
| 835 | - display:<?php echo esc_html( $defaults['radio_align'] . $important ); ?>; | |
| 836 | - display:var(--radio-align)<?php echo esc_html( $important ); ?>; | |
| 798 | + display: var(--radio-align)<?php echo esc_html( $important ); ?>; | |
| 837 | 799 | } |
| 838 | 800 | |
| 839 | 801 | .with_frm_style .frm_checkbox{ |
| 840 | - display:<?php echo esc_html( $defaults['check_align'] . $important ); ?>; | |
| 841 | - display:var(--check-align)<?php echo esc_html( $important ); ?>; | |
| 802 | + display: var(--check-align)<?php echo esc_html( $important ); ?>; | |
| 842 | 803 | } |
| 843 | 804 | |
| 844 | 805 | .with_frm_style .vertical_radio .frm_checkbox, |
| 845 | 806 | .with_frm_style .vertical_radio .frm_radio, |
| @@ -844,8 +805,9 @@ | ||
| 844 | 805 | .with_frm_style .vertical_radio .frm_checkbox, |
| 845 | 806 | .with_frm_style .vertical_radio .frm_radio, |
| 846 | 807 | .vertical_radio .frm_catlevel_1{ |
| 847 | 808 | display:block<?php echo esc_html( $important ); ?>; |
| 809 | + margin-bottom: 10px; | |
| 848 | 810 | } |
| 849 | 811 | |
| 850 | 812 | .with_frm_style .horizontal_radio .frm_checkbox, |
| 851 | 813 | .with_frm_style .horizontal_radio .frm_radio, |
| @@ -853,40 +815,45 @@ | ||
| 853 | 815 | display:inline-block<?php echo esc_html( $important ); ?>; |
| 854 | 816 | } |
| 855 | 817 | |
| 856 | 818 | .with_frm_style .frm_checkbox label, |
| 857 | -.with_frm_style .frm_radio label{ | |
| 858 | - display: inline; | |
| 819 | +.with_frm_style .frm_radio label { | |
| 820 | + display: inline-block; | |
| 821 | + vertical-align: middle; | |
| 859 | 822 | white-space:normal; |
| 860 | 823 | } |
| 861 | 824 | |
| 825 | +.with_frm_style .frm_checkbox label input[type=checkbox], | |
| 826 | +.with_frm_style .frm_radio label input[type=radio] { | |
| 827 | + margin-right: 4px; | |
| 828 | +} | |
| 829 | + | |
| 830 | +.with_frm_style .frm_checkbox label:not(.frm-label-disabled), | |
| 831 | +.with_frm_style .frm_radio label:not(.frm-label-disabled) { | |
| 832 | + cursor: pointer; | |
| 833 | +} | |
| 834 | + | |
| 862 | 835 | .with_frm_style .vertical_radio .frm_checkbox label, |
| 863 | 836 | .with_frm_style .vertical_radio .frm_radio label{ |
| 864 | 837 | display: block; |
| 865 | - padding-left: 20px; | |
| 866 | - text-indent: -20px; | |
| 838 | + width: 100%; | |
| 867 | 839 | } |
| 868 | 840 | |
| 869 | 841 | .with_frm_style .frm_radio label, |
| 870 | -.with_frm_style .frm_checkbox label{ | |
| 842 | +.with_frm_style .frm_checkbox label { | |
| 871 | 843 | <?php if ( ! empty( $defaults['font'] ) ) { ?> |
| 872 | - font-family:<?php echo FrmAppHelper::kses( $defaults['font'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>; | |
| 873 | - font-family:var(--font); | |
| 844 | + font-family: var(--font); | |
| 874 | 845 | <?php } ?> |
| 875 | - font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>; | |
| 876 | - font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 877 | - color:<?php echo esc_html( $defaults['check_label_color'] . $important ); ?>; | |
| 878 | - color:var(--check-label-color)<?php echo esc_html( $important ); ?>; | |
| 879 | - font-weight:<?php echo esc_html( $defaults['check_weight'] . $important ); ?>; | |
| 880 | - font-weight:var(--check-weight)<?php echo esc_html( $important ); ?>; | |
| 846 | + font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 847 | + color: var(--check-label-color)<?php echo esc_html( $important ); ?>; | |
| 848 | + font-weight: var(--check-weight)<?php echo esc_html( $important ); ?>; | |
| 881 | 849 | line-height: 1.3; |
| 882 | 850 | } |
| 883 | 851 | |
| 884 | 852 | .with_frm_style .frm_radio input[type=radio], |
| 885 | 853 | .with_frm_style .frm_checkbox input[type=checkbox] { |
| 886 | - font-size:<?php echo esc_html( $defaults['check_font_size'] . $important ); ?>; | |
| 887 | - font-size:var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 888 | - position:static<?php echo esc_html( $important ); ?>; | |
| 854 | + font-size: var(--check-font-size)<?php echo esc_html( $important ); ?>; | |
| 855 | + position: static<?php echo esc_html( $important ); ?>; | |
| 889 | 856 | } |
| 890 | 857 | |
| 891 | 858 | .frm_file_container .frm_file_link, |
| 892 | 859 | .with_frm_style .frm_radio label .frm_file_container, |
| @@ -896,9 +863,9 @@ | ||
| 896 | 863 | vertical-align:middle; |
| 897 | 864 | } |
| 898 | 865 | |
| 899 | 866 | .with_frm_style .frm_radio input[type=radio] |
| 900 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 867 | +<?php if ( $pro_is_installed ) : ?> | |
| 901 | 868 | , .with_frm_style .frm_scale input[type=radio] |
| 902 | 869 | <?php endif; ?> |
| 903 | 870 | { |
| 904 | 871 | border-radius:50%; |
| @@ -903,62 +870,96 @@ | ||
| 903 | 870 | { |
| 904 | 871 | border-radius:50%; |
| 905 | 872 | } |
| 906 | 873 | |
| 907 | -.with_frm_style .frm_checkbox input[type=checkbox]{ | |
| 908 | - border-radius:0; | |
| 874 | +.with_frm_style .frm_checkbox input[type=checkbox] { | |
| 875 | + border-radius: calc(var(--border-radius) / 2) !important; | |
| 909 | 876 | } |
| 910 | 877 | |
| 911 | 878 | .with_frm_style .frm_radio input[type=radio], |
| 912 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 879 | +<?php if ( $pro_is_installed ) : ?> | |
| 913 | 880 | .with_frm_style .frm_scale input[type=radio], |
| 914 | 881 | <?php endif; ?> |
| 915 | 882 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 916 | - -webkit-appearance: none; | |
| 917 | 883 | appearance: none; |
| 918 | 884 | background-color: var(--bg-color); |
| 919 | 885 | flex: none; |
| 920 | 886 | display:inline-block !important; |
| 921 | - margin: 0 5px 0 0; | |
| 887 | + width: 16px !important; | |
| 888 | + min-width: 16px !important; | |
| 889 | + height: 16px !important; | |
| 922 | 890 | color: var(--border-color); |
| 923 | - width: 18px; | |
| 924 | - min-width: 18px; | |
| 925 | - height: 18px; | |
| 926 | 891 | border: 1px solid currentColor; |
| 927 | 892 | border-color: var(--border-color); |
| 928 | 893 | vertical-align: middle; |
| 929 | 894 | position: initial; /* override Bootstrap */ |
| 930 | 895 | padding: 0; |
| 896 | + margin: 0; | |
| 931 | 897 | } |
| 932 | 898 | |
| 933 | -.with_frm_style .frm_radio input[type=radio]:before, | |
| 934 | -<?php if ( FrmAppHelper::pro_is_installed() ) : ?> | |
| 935 | -.with_frm_style .frm_scale input[type=radio]:before, | |
| 899 | +.frm_forms.with_frm_style .frm_fields_container .frm_radio input[type=radio]:not([disabled]):checked, | |
| 900 | +<?php if ( $pro_is_installed ) : ?> | |
| 901 | +.frm_forms.with_frm_style .frm_fields_container .frm_scale input[type=radio]:not([disabled]):checked, | |
| 936 | 902 | <?php endif; ?> |
| 937 | -.with_frm_style .frm_checkbox input[type=checkbox]:before { | |
| 903 | +.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked { | |
| 904 | + border-color: var(--border-color-active) !important; | |
| 905 | +} | |
| 906 | + | |
| 907 | +.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked { | |
| 908 | + background-color: var(--border-color-active) !important; | |
| 909 | +} | |
| 910 | + | |
| 911 | +.with_frm_style .frm_radio input[type=radio][disabled]:checked, | |
| 912 | +<?php if ( $pro_is_installed ) : ?> | |
| 913 | +.with_frm_style .frm_scale input[type=radio][disabled]:checked, | |
| 914 | +<?php endif; ?> | |
| 915 | +.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked { | |
| 916 | + border-color: var(--border-color) !important; /* Override Style Preview */ | |
| 917 | +} | |
| 918 | + | |
| 919 | +.with_frm_style .frm_checkbox input[type=checkbox][disabled]:checked { | |
| 920 | + background-color: var(--border-color) !important; | |
| 921 | +} | |
| 922 | + | |
| 923 | +.with_frm_style .frm_radio input[type=radio]:checked:before, | |
| 924 | +<?php if ( $pro_is_installed ) { ?> | |
| 925 | +.with_frm_style .frm_scale input[type=radio]:checked:before, | |
| 926 | +<?php } ?> | |
| 927 | +.with_frm_style .frm_checkbox input[type=checkbox]:checked:before { | |
| 928 | + position: static !important; /* Override Style Preview */ | |
| 938 | 929 | content: ''; |
| 939 | - width: 12px; | |
| 940 | - height: 12px; | |
| 941 | - border-radius: 50%; | |
| 942 | - transform: scale(0); | |
| 943 | - transition: 120ms transform ease-in-out; | |
| 944 | - box-shadow: inset 10px 10px var(--text-color); | |
| 945 | 930 | display: block; |
| 946 | - margin: 2px 0 0 2px; | |
| 947 | 931 | } |
| 948 | 932 | |
| 949 | -.with_frm_style .frm_checkbox input[type=checkbox]:before{ | |
| 950 | - clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); | |
| 951 | - border-radius: 0; | |
| 933 | +.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]:before { | |
| 934 | + width: 100% !important; | |
| 935 | + height: 100% !important; | |
| 936 | + 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; | |
| 937 | + background-size: 9px !important; | |
| 938 | + background-repeat: no-repeat !important; | |
| 939 | + background-position: center !important; | |
| 940 | + margin: 0; | |
| 952 | 941 | } |
| 953 | 942 | |
| 954 | -.with_frm_style .frm_radio input[type=radio]:checked:before, | |
| 955 | -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before { | |
| 956 | - transform: scale(1); | |
| 943 | +<?php if ( $pro_is_installed ) { ?> | |
| 944 | +.with_frm_style .frm_scale input[type=radio]:before, | |
| 945 | +<?php } ?> | |
| 946 | +.with_frm_style .frm_radio input[type=radio]:before { | |
| 947 | + width: 8px; | |
| 948 | + height: 8px; | |
| 949 | + border-radius: 50%; | |
| 950 | + background-color: var(--border-color-active); | |
| 951 | + margin: 3px; | |
| 957 | 952 | } |
| 958 | 953 | |
| 954 | +<?php if ( $pro_is_installed ) { ?> | |
| 955 | +.with_frm_style .frm_scale input[type=radio][disabled]:before, | |
| 956 | +<?php } ?> | |
| 957 | +.with_frm_style .frm_radio input[type=radio][disabled]:before { | |
| 958 | + background-color: var(--border-color); | |
| 959 | +} | |
| 960 | + | |
| 959 | 961 | .with_frm_style :invalid, |
| 960 | -.with_frm_style :-moz-submit-invalid, | |
| 961 | 962 | .with_frm_style :-moz-ui-invalid{ |
| 962 | 963 | box-shadow:none; |
| 963 | 964 | } |
| 964 | 965 | |
| @@ -974,33 +975,25 @@ | ||
| 974 | 975 | |
| 975 | 976 | .with_frm_style .frm_error_style, |
| 976 | 977 | .with_frm_style .frm_message, |
| 977 | 978 | .frm_success_style{ |
| 978 | - -moz-border-radius:4px; | |
| 979 | - -webkit-border-radius:4px; | |
| 980 | 979 | border-radius:4px; |
| 981 | 980 | padding:15px; |
| 982 | 981 | } |
| 983 | 982 | |
| 984 | -.with_frm_style .frm_message p{ | |
| 985 | - margin-bottom:5px; | |
| 986 | - color:<?php echo esc_html( $defaults['success_text_color'] ); ?>; | |
| 987 | - color:var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 983 | +.with_frm_style .frm_message p { | |
| 984 | + margin-bottom: 5px; | |
| 985 | + color: var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 988 | 986 | } |
| 989 | 987 | |
| 990 | 988 | .with_frm_style .frm_message, |
| 991 | -.frm_success_style{ | |
| 992 | - margin:5px 0 15px; | |
| 993 | - border:1px solid <?php echo esc_html( $defaults['success_border_color'] ); ?>; | |
| 994 | - border-color:var(--success-border-color); | |
| 995 | - background-color:<?php echo esc_html( $defaults['success_bg_color'] ); ?>; | |
| 996 | - background-color:var(--success-bg-color); | |
| 997 | - color:<?php echo esc_html( $defaults['success_text_color'] ); ?>; | |
| 998 | - color:var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 999 | - border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1000 | - border-radius:var(--border-radius); | |
| 1001 | - font-size:<?php echo esc_html( $defaults['success_font_size'] ); ?>; | |
| 1002 | - font-size:var(--success-font-size)<?php echo esc_html( $important ); ?>; | |
| 989 | +.frm_success_style { | |
| 990 | + margin: 5px 0 15px; | |
| 991 | + border: 1px solid var(--success-border-color); | |
| 992 | + background-color: var(--success-bg-color); | |
| 993 | + color: var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 994 | + border-radius: var(--border-radius); | |
| 995 | + font-size: var(--success-font-size)<?php echo esc_html( $important ); ?>; | |
| 1003 | 996 | } |
| 1004 | 997 | |
| 1005 | 998 | .with_frm_style .frm_plain_success .frm_message { |
| 1006 | 999 | background-color: transparent; |
| @@ -1036,10 +1029,9 @@ | ||
| 1036 | 1029 | padding:5px; |
| 1037 | 1030 | border-width:1px; |
| 1038 | 1031 | border-style:solid; |
| 1039 | 1032 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1040 | - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1041 | - border-color:var(--border-color); | |
| 1033 | + border-color: var(--border-color); | |
| 1042 | 1034 | <?php } ?> |
| 1043 | 1035 | border-top:none; |
| 1044 | 1036 | border-left:none; |
| 1045 | 1037 | border-right:none; |
| @@ -1054,10 +1046,9 @@ | ||
| 1054 | 1046 | } |
| 1055 | 1047 | |
| 1056 | 1048 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1057 | 1049 | .with_frm_style .frm-alt-table{ |
| 1058 | - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1059 | - border-color:var(--border-color); | |
| 1050 | + border-color: var(--border-color); | |
| 1060 | 1051 | } |
| 1061 | 1052 | <?php } ?> |
| 1062 | 1053 | |
| 1063 | 1054 | .frm-alt-table th { |
| @@ -1081,11 +1072,11 @@ | ||
| 1081 | 1072 | background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; |
| 1082 | 1073 | } |
| 1083 | 1074 | |
| 1084 | 1075 | table.form_results.with_frm_style{ |
| 1085 | - border:<?php echo esc_html( $defaults['field_border_width'] ); ?> solid <?php echo esc_html( $defaults['border_color'] . $important ); ?>; | |
| 1086 | - border-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1087 | - border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1076 | + border-style: solid; | |
| 1077 | + border-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1078 | + border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1088 | 1079 | } |
| 1089 | 1080 | |
| 1090 | 1081 | table.form_results.with_frm_style tr td{ |
| 1091 | 1082 | text-align:left; |
| @@ -1090,15 +1081,14 @@ | ||
| 1090 | 1081 | table.form_results.with_frm_style tr td{ |
| 1091 | 1082 | text-align:left; |
| 1092 | 1083 | padding:7px 9px; |
| 1093 | 1084 | <?php if ( ! empty( $defaults['text_color'] ) ) { ?> |
| 1094 | - color:<?php echo esc_html( $defaults['text_color'] ); ?>; | |
| 1095 | - color:var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 1085 | + color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 1096 | 1086 | <?php } ?> |
| 1097 | 1087 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1098 | - border-top:1px solid <?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1099 | - border-top-width:var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1100 | - border-top-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1088 | + border-top-style: solid; | |
| 1089 | + border-top-width: var(--field-border-width)<?php echo esc_html( $important ); ?>; | |
| 1090 | + border-top-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1101 | 1091 | <?php } ?> |
| 1102 | 1092 | } |
| 1103 | 1093 | |
| 1104 | 1094 | table.form_results.with_frm_style tr.frm_even, |
| @@ -1108,11 +1098,10 @@ | ||
| 1108 | 1098 | } |
| 1109 | 1099 | |
| 1110 | 1100 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1111 | 1101 | table.form_results.with_frm_style tr.frm_odd, |
| 1112 | -.frm-grid .frm_odd{ | |
| 1113 | - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1114 | - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 1102 | +.frm-grid .frm_odd { | |
| 1103 | + background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 1115 | 1104 | } |
| 1116 | 1105 | <?php } ?> |
| 1117 | 1106 | |
| 1118 | 1107 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| @@ -1194,26 +1183,25 @@ | ||
| 1194 | 1183 | animation:2s linear 0s normal none infinite progress-bar-stripes; |
| 1195 | 1184 | } |
| 1196 | 1185 | |
| 1197 | 1186 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1198 | -#frm_loading .progress-striped .progress-bar{ | |
| 1187 | +#frm_loading .progress-striped .progress-bar { | |
| 1199 | 1188 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1200 | - 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)); | |
| 1189 | + 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)); | |
| 1201 | 1190 | <?php } ?> |
| 1202 | 1191 | background-size:40px 40px; |
| 1203 | 1192 | } |
| 1204 | 1193 | <?php } ?> |
| 1205 | 1194 | |
| 1206 | -#frm_loading .progress-bar{ | |
| 1207 | - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1208 | - background-color:var(--bg-color); | |
| 1209 | - box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset; | |
| 1210 | - float:left; | |
| 1211 | - height:100%; | |
| 1212 | - line-height:20px; | |
| 1213 | - text-align:center; | |
| 1214 | - transition:width 0.6s ease 0s; | |
| 1215 | - width:100%; | |
| 1195 | +#frm_loading .progress-bar { | |
| 1196 | + background-color: var(--bg-color); | |
| 1197 | + box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset; | |
| 1198 | + float: left; | |
| 1199 | + height: 100%; | |
| 1200 | + line-height: 20px; | |
| 1201 | + text-align: center; | |
| 1202 | + transition: width 0.6s ease 0s; | |
| 1203 | + width: 100%; | |
| 1216 | 1204 | } |
| 1217 | 1205 | |
| 1218 | 1206 | .frm_image_from_url{ |
| 1219 | 1207 | height:50px; |
| @@ -1230,9 +1218,9 @@ | ||
| 1230 | 1218 | background-repeat: no-repeat; |
| 1231 | 1219 | color: transparent !important; |
| 1232 | 1220 | } |
| 1233 | 1221 | |
| 1234 | -<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?> | |
| 1222 | +<?php readfile( __DIR__ . '/frm_grids.css' ); ?> | |
| 1235 | 1223 | |
| 1236 | 1224 | .frm_conf_field.frm_left_container .frm_primary_label{ |
| 1237 | 1225 | display:none; |
| 1238 | 1226 | } |
| @@ -1239,10 +1227,8 @@ | ||
| 1239 | 1227 | |
| 1240 | 1228 | .wp-editor-wrap *, |
| 1241 | 1229 | .wp-editor-wrap *:after, |
| 1242 | 1230 | .wp-editor-wrap *:before{ |
| 1243 | - -webkit-box-sizing:content-box; | |
| 1244 | - -moz-box-sizing:content-box; | |
| 1245 | 1231 | box-sizing:content-box; |
| 1246 | 1232 | } |
| 1247 | 1233 | |
| 1248 | 1234 | .with_frm_style .frm_grid, |
| @@ -1253,10 +1239,9 @@ | ||
| 1253 | 1239 | padding:5px; |
| 1254 | 1240 | border-width:1px; |
| 1255 | 1241 | border-style:solid; |
| 1256 | 1242 | <?php if ( ! empty( $defaults['border_color'] ) ) { ?> |
| 1257 | - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1258 | - border-color:var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1243 | + border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1259 | 1244 | <?php } ?> |
| 1260 | 1245 | border-left:none; |
| 1261 | 1246 | border-right:none; |
| 1262 | 1247 | } |
| @@ -1291,18 +1276,16 @@ | ||
| 1291 | 1276 | } |
| 1292 | 1277 | |
| 1293 | 1278 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1294 | 1279 | .frm_grid_first, |
| 1295 | -.frm_grid_odd{ | |
| 1296 | - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1297 | - background-color:var(--bg-color); | |
| 1280 | +.frm_grid_odd { | |
| 1281 | + background-color: var(--bg-color); | |
| 1298 | 1282 | } |
| 1299 | 1283 | <?php } ?> |
| 1300 | 1284 | |
| 1301 | 1285 | <?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?> |
| 1302 | -.frm_grid{ | |
| 1303 | - background-color:<?php echo esc_html( $defaults['bg_color_active'] . $important ); ?>; | |
| 1304 | - background-color:var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 1286 | +.frm_grid { | |
| 1287 | + background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 1305 | 1288 | } |
| 1306 | 1289 | <?php } ?> |
| 1307 | 1290 | |
| 1308 | 1291 | .with_frm_style .frm_grid.frm_blank_field, |
| @@ -1307,12 +1290,10 @@ | ||
| 1307 | 1290 | |
| 1308 | 1291 | .with_frm_style .frm_grid.frm_blank_field, |
| 1309 | 1292 | .with_frm_style .frm_grid_first.frm_blank_field, |
| 1310 | 1293 | .with_frm_style .frm_grid_odd.frm_blank_field{ |
| 1311 | - background-color:<?php echo esc_html( $defaults['error_bg'] . $important ); ?>; | |
| 1312 | 1294 | background-color:var(--error-bg)<?php echo esc_html( $important ); ?>; |
| 1313 | - border-color:<?php echo esc_html( $defaults['error_border'] ); ?>; | |
| 1314 | - border-color:var(--error-bg); | |
| 1295 | + border-color: var(--error-border); | |
| 1315 | 1296 | } |
| 1316 | 1297 | |
| 1317 | 1298 | .frm_grid .frm_primary_label, |
| 1318 | 1299 | .frm_grid_first .frm_primary_label, |
| @@ -1334,9 +1315,10 @@ | ||
| 1334 | 1315 | .frm_grid_odd .frm_radio label, |
| 1335 | 1316 | .frm_grid_first .frm_checkbox label, |
| 1336 | 1317 | .frm_grid .frm_checkbox label, |
| 1337 | 1318 | .frm_grid_odd .frm_checkbox label{ |
| 1338 | - visibility:hidden; | |
| 1319 | + color:transparent; | |
| 1320 | + text-indent: -9999px; | |
| 1339 | 1321 | white-space:nowrap; |
| 1340 | 1322 | text-align:left; |
| 1341 | 1323 | } |
| 1342 | 1324 | |
| @@ -1462,8 +1444,18 @@ | ||
| 1462 | 1444 | .frm_form_field.frm_left_container .frm_opt_container{ |
| 1463 | 1445 | padding-top:4px; |
| 1464 | 1446 | } |
| 1465 | 1447 | |
| 1448 | +.with_frm_style .frm_left_container > select.auto_width, | |
| 1449 | +.with_frm_style .frm_right_container > select.auto_width { | |
| 1450 | + width: max-content<?php echo esc_html( $important ); ?>; | |
| 1451 | +} | |
| 1452 | + | |
| 1453 | +.with_frm_style .frm_right_container > .frm_primary_label, | |
| 1454 | +.with_frm_style .frm_right_container > select.auto_width { | |
| 1455 | + margin-left: auto<?php echo esc_html( $important ); ?>; | |
| 1456 | +} | |
| 1457 | + | |
| 1466 | 1458 | .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label, |
| 1467 | 1459 | .with_frm_style .frm_inline_container.frm_grid .frm_primary_label, |
| 1468 | 1460 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label, |
| 1469 | 1461 | .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container, |
| @@ -1498,11 +1490,9 @@ | ||
| 1498 | 1490 | grid-column-end: span 1; |
| 1499 | 1491 | } |
| 1500 | 1492 | |
| 1501 | 1493 | .frm_form_field .frm_checkbox, |
| 1502 | -.frm_form_field .frm_checkbox + .frm_checkbox, | |
| 1503 | -.frm_form_field .frm_radio, | |
| 1504 | -.frm_form_field .frm_radio + .frm_radio{ | |
| 1494 | +.frm_form_field .frm_radio { | |
| 1505 | 1495 | margin-top: 0; |
| 1506 | 1496 | margin-bottom: 0; |
| 1507 | 1497 | } |
| 1508 | 1498 | |
| @@ -1511,36 +1501,24 @@ | ||
| 1511 | 1501 | overflow:auto; |
| 1512 | 1502 | } |
| 1513 | 1503 | |
| 1514 | 1504 | .frm_html_container.frm_scroll_box, |
| 1515 | -.frm_form_field.frm_html_scroll_box{ | |
| 1516 | - height:100px; | |
| 1517 | - overflow:auto; | |
| 1518 | - background-color:<?php echo esc_html( $defaults['bg_color'] ); ?>; | |
| 1519 | - background-color:var(--bg-color); | |
| 1520 | - border-color:<?php echo esc_html( $defaults['border_color'] ); ?>; | |
| 1521 | - border-color:var(--border-color); | |
| 1522 | - border-width:<?php echo esc_html( $defaults['field_border_width'] ); ?>; | |
| 1523 | - border-width:var(--field-border-width); | |
| 1524 | - border-style:<?php echo esc_html( $defaults['field_border_style'] ); ?>; | |
| 1525 | - border-style:var(--field-border-style); | |
| 1526 | - -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1527 | - -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1528 | - border-radius:<?php echo esc_html( $defaults['border_radius'] ); ?>; | |
| 1529 | - border-radius:var(--border-radius); | |
| 1530 | - width:<?php echo esc_html( $defaults['field_width'] ); ?>; | |
| 1531 | - width:var(--field-width); | |
| 1532 | - max-width:100%; | |
| 1533 | - font-size:<?php echo esc_html( $defaults['field_font_size'] ); ?>; | |
| 1534 | - font-size:var(--field-font-size); | |
| 1535 | - padding:<?php echo esc_html( $defaults['field_pad'] ); ?>; | |
| 1536 | - padding:var(--field-pad); | |
| 1537 | - -webkit-box-sizing:border-box; | |
| 1538 | - -moz-box-sizing:border-box; | |
| 1539 | - box-sizing:border-box; | |
| 1540 | - outline:none<?php echo esc_html( $important ); ?>; | |
| 1541 | - font-weight:normal; | |
| 1542 | - box-shadow:var(--box-shadow); | |
| 1505 | +.frm_form_field.frm_html_scroll_box { | |
| 1506 | + height: 100px; | |
| 1507 | + overflow: auto; | |
| 1508 | + background-color: var(--bg-color); | |
| 1509 | + border-color: var(--border-color); | |
| 1510 | + border-width: var(--field-border-width); | |
| 1511 | + border-style: var(--field-border-style); | |
| 1512 | + border-radius: var(--border-radius); | |
| 1513 | + width: var(--field-width); | |
| 1514 | + max-width: 100%; | |
| 1515 | + font-size: var(--field-font-size); | |
| 1516 | + padding: var(--field-pad); | |
| 1517 | + box-sizing: border-box; | |
| 1518 | + outline: none<?php echo esc_html( $important ); ?>; | |
| 1519 | + font-weight: normal; | |
| 1520 | + box-shadow: var(--box-shadow); | |
| 1543 | 1521 | } |
| 1544 | 1522 | |
| 1545 | 1523 | .frm_form_field.frm_total_big input, |
| 1546 | 1524 | .frm_form_field.frm_total_big textarea, |
| @@ -1549,10 +1527,8 @@ | ||
| 1549 | 1527 | opacity:1; |
| 1550 | 1528 | background-color:transparent !important; |
| 1551 | 1529 | border:none !important; |
| 1552 | 1530 | font-weight:bold; |
| 1553 | - -moz-box-shadow:none; | |
| 1554 | - -webkit-box-shadow:none; | |
| 1555 | 1531 | width:auto !important; |
| 1556 | 1532 | height:auto !important; |
| 1557 | 1533 | box-shadow:none !important; |
| 1558 | 1534 | display:inline; |
| @@ -1572,10 +1548,8 @@ | ||
| 1572 | 1548 | .frm_form_field.frm_total input:focus, |
| 1573 | 1549 | .frm_form_field.frm_total textarea:focus{ |
| 1574 | 1550 | background-color:transparent; |
| 1575 | 1551 | border:none; |
| 1576 | - -moz-box-shadow:none; | |
| 1577 | - -webkit-box-shadow:none; | |
| 1578 | 1552 | box-shadow:none; |
| 1579 | 1553 | } |
| 1580 | 1554 | |
| 1581 | 1555 | .frm_form_field.frm_label_justify .frm_primary_label{ |
| @@ -1600,13 +1574,8 @@ | ||
| 1600 | 1574 | .frm_clearfix{ |
| 1601 | 1575 | display:block; |
| 1602 | 1576 | } |
| 1603 | 1577 | |
| 1604 | -.with_frm_style .frm_repeat_sec .frm_form_field.frm_repeat_buttons .frm_icon_font::before { | |
| 1605 | - color:<?php echo esc_html( $defaults['repeat_icon_color'] . $important ); ?>; | |
| 1606 | - color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>; | |
| 1607 | -} | |
| 1608 | - | |
| 1609 | 1578 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first, |
| 1610 | 1579 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle, |
| 1611 | 1580 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last { |
| 1612 | 1581 | margin-bottom: 0 !important; |
| @@ -1611,11 +1580,10 @@ | ||
| 1611 | 1580 | .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last { |
| 1612 | 1581 | margin-bottom: 0 !important; |
| 1613 | 1582 | } |
| 1614 | 1583 | |
| 1584 | + | |
| 1615 | 1585 | <?php |
| 1616 | -FrmStylesHelper::maybe_include_font_icon_css(); | |
| 1617 | - | |
| 1618 | 1586 | /** |
| 1619 | 1587 | * Call action so other plugins can add additional CSS. |
| 1620 | 1588 | * |
| 1621 | 1589 | * @param array $args { |
| @@ -1669,9 +1637,8 @@ | ||
| 1669 | 1637 | max-width:302px; |
| 1670 | 1638 | border-right:1px solid #d3d3d3; |
| 1671 | 1639 | border-radius:4px; |
| 1672 | 1640 | box-shadow:2px 0px 4px -1px rgba(0,0,0,.08); |
| 1673 | - -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08); | |
| 1674 | 1641 | } |
| 1675 | 1642 | |
| 1676 | 1643 | .with_frm_style .g-recaptcha iframe, |
| 1677 | 1644 | .with_frm_style .frm-g-recaptcha iframe{ |