| @@ -1,75 +1,37 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - die( 'You are not allowed to call this page directly.' ); | |
| 4 | -} | |
| 5 | - | |
| 6 | 2 | if ( ! isset( $saving ) ) { |
| 7 | 3 | header( 'Content-type: text/css' ); |
| 8 | 4 | |
| 9 | - if ( ! empty( $css ) ) { | |
| 10 | - echo strip_tags( $css, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 11 | - FrmStylesController::maybe_hide_sample_form_error_message(); | |
| 5 | + if ( isset( $css ) && $css ) { | |
| 6 | + echo strip_tags( $css, 'all' ); // WPCS: XSS ok. | |
| 12 | 7 | die(); |
| 13 | 8 | } |
| 14 | 9 | } |
| 15 | 10 | |
| 16 | 11 | if ( ! isset( $frm_style ) ) { |
| 17 | - $frm_style = new FrmStyle(); | |
| 12 | + $frm_style = new FrmStyle(); | |
| 18 | 13 | } |
| 19 | 14 | |
| 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(); | |
| 15 | +$styles = $frm_style->get_all(); | |
| 16 | +$default_style = $frm_style->get_default_style( $styles ); | |
| 17 | +$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 26 | 18 | |
| 27 | 19 | ?> |
| 28 | -.with_frm_style{ | |
| 29 | -<?php FrmStylesHelper::output_vars( $defaults ); ?> | |
| 30 | -} | |
| 31 | 20 | |
| 21 | +.frm_form_field .grecaptcha-badge, | |
| 32 | 22 | .frm_hidden, |
| 33 | -.frm_add_form_row.frm_hidden, | |
| 34 | 23 | .frm_remove_form_row.frm_hidden, |
| 35 | 24 | .with_frm_style .frm_button.frm_hidden{ |
| 36 | - display:none; | |
| 25 | + display:none; | |
| 37 | 26 | } |
| 38 | 27 | |
| 39 | -.with_frm_style, | |
| 40 | -.with_frm_style form, | |
| 41 | -.with_frm_style .frm-show-form div.frm_description p{ | |
| 42 | - text-align: var(--form-align)<?php echo esc_html( $important ); ?>; | |
| 28 | +form input.frm_verify{ | |
| 29 | + display:none !important; | |
| 43 | 30 | } |
| 44 | 31 | |
| 45 | -/* Keep this. This is used for Honeypot */ | |
| 46 | -input:-webkit-autofill { | |
| 47 | - -webkit-box-shadow: 0 0 0 30px white inset; | |
| 48 | -} | |
| 49 | - | |
| 50 | -/* Form description */ | |
| 51 | -.with_frm_style .frm-show-form div.frm_description p{ | |
| 52 | -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> | |
| 53 | - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 54 | -<?php } ?> | |
| 55 | -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> | |
| 56 | - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 57 | -<?php } ?> | |
| 58 | -<?php if ( ! empty( $defaults['form_desc_margin_top'] ) ) { ?> | |
| 59 | - margin-top: var(--form-desc-margin-top)<?php echo esc_html( $important ); ?>; | |
| 60 | -<?php } ?> | |
| 61 | -<?php if ( ! empty( $defaults['form_desc_margin_bottom'] ) ) { ?> | |
| 62 | - margin-bottom: var(--form-desc-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 63 | -<?php } ?> | |
| 64 | -<?php if ( isset( $defaults['form_desc_padding'] ) ) { ?> | |
| 65 | - padding: var(--form-desc-padding)<?php echo esc_html( $important ); ?>; | |
| 66 | -<?php } ?> | |
| 67 | -} | |
| 68 | - | |
| 69 | 32 | .with_frm_style fieldset{ |
| 70 | 33 | min-width:0; |
| 71 | - display: block; /* Override 2021 theme */ | |
| 72 | 34 | } |
| 73 | 35 | |
| 74 | 36 | .with_frm_style fieldset fieldset{ |
| 75 | 37 | border:none; |
| @@ -77,30 +39,10 @@ | ||
| 77 | 39 | padding:0; |
| 78 | 40 | background-color:transparent; |
| 79 | 41 | } |
| 80 | 42 | |
| 81 | -.with_frm_style .frm_form_fields > fieldset{ | |
| 82 | -<?php if ( isset( $defaults['fieldset'] ) && ( $defaults['fieldset'] || '0' === $defaults['fieldset'] ) ) { ?> | |
| 83 | - border-width: var(--fieldset)<?php echo esc_html( $important ); ?>; | |
| 84 | -<?php } ?> | |
| 85 | - border-style:solid; | |
| 86 | -<?php if ( ! empty( $defaults['fieldset_color'] ) ) { ?> | |
| 87 | - border-color: var(--fieldset-color)<?php echo esc_html( $important ); ?>; | |
| 88 | -<?php } ?> | |
| 89 | - margin:0; | |
| 90 | -<?php if ( ! empty( $defaults['fieldset_padding'] ) ) { ?> | |
| 91 | - padding: var(--fieldset-padding)<?php echo esc_html( $important ); ?>; | |
| 92 | -<?php } ?> | |
| 93 | -<?php if ( ! empty( $defaults['fieldset_bg_color'] ) ) { ?> | |
| 94 | - background-color: var(--fieldset-bg-color)<?php echo esc_html( $important ); ?>; | |
| 95 | -<?php } ?> | |
| 96 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 97 | - font-family:var(--font); | |
| 98 | -<?php } ?> | |
| 99 | -} | |
| 100 | - | |
| 101 | 43 | legend.frm_hidden{ |
| 102 | - display:none !important; | |
| 44 | + display:none !important; | |
| 103 | 45 | } |
| 104 | 46 | |
| 105 | 47 | .with_frm_style .frm_form_fields{ |
| 106 | 48 | opacity:1; |
| @@ -113,194 +55,9 @@ | ||
| 113 | 55 | .frm_transparent{ |
| 114 | 56 | color:transparent; |
| 115 | 57 | } |
| 116 | 58 | |
| 117 | -.with_frm_style legend + h3, | |
| 118 | -.with_frm_style h3.frm_form_title{ | |
| 119 | -<?php if ( ! empty( $defaults['title_size'] ) ) { ?> | |
| 120 | - font-size: var(--title-size)<?php echo esc_html( $important ); ?>; | |
| 121 | -<?php } ?> | |
| 122 | -<?php if ( ! empty( $defaults['title_color'] ) ) { ?> | |
| 123 | - color: var(--title-color)<?php echo esc_html( $important ); ?>; | |
| 124 | -<?php } ?> | |
| 125 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 126 | - font-family: var(--font); | |
| 127 | -<?php } ?> | |
| 128 | -<?php if ( ! empty( $defaults['title_margin_top'] ) ) { ?> | |
| 129 | - margin-top: var(--title-margin-top)<?php echo esc_html( $important ); ?>; | |
| 130 | -<?php } ?> | |
| 131 | -<?php if ( ! empty( $defaults['title_margin_bottom'] ) ) { ?> | |
| 132 | - margin-bottom: var(--title-margin-bottom)<?php echo esc_html( $important ); ?>; | |
| 133 | -<?php } ?> | |
| 134 | -} | |
| 135 | - | |
| 136 | -.with_frm_style .frm_form_field.frm_html_container, | |
| 137 | -.with_frm_style .frm_form_field .frm_show_it{ | |
| 138 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 139 | - font-family: var(--font); | |
| 140 | -<?php } ?> | |
| 141 | -<?php if ( ! empty( $defaults['form_desc_color'] ) ) { ?> | |
| 142 | - color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; | |
| 143 | -<?php } ?> | |
| 144 | -} | |
| 145 | - | |
| 146 | -<?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> | |
| 147 | -.with_frm_style .frm_form_field.frm_html_container{ | |
| 148 | - font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; | |
| 149 | -} | |
| 150 | -<?php } ?> | |
| 151 | - | |
| 152 | -.with_frm_style .frm_form_field .frm_show_it{ | |
| 153 | -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> | |
| 154 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 155 | -<?php } ?> | |
| 156 | -<?php if ( ! empty( $defaults['field_weight'] ) ) { ?> | |
| 157 | - font-weight: var(--field-weight)<?php echo esc_html( $important ); ?>; | |
| 158 | -<?php } ?> | |
| 159 | -} | |
| 160 | - | |
| 161 | -.with_frm_style .frm_required { | |
| 162 | -<?php if ( ! empty( $defaults['required_color'] ) ) { ?> | |
| 163 | - color: var(--required-color)<?php echo esc_html( $important ); ?>; | |
| 164 | -<?php } ?> | |
| 165 | -<?php if ( ! empty( $defaults['required_weight'] ) ) { ?> | |
| 166 | - font-weight: var(--required-weight)<?php echo esc_html( $important ); ?>; | |
| 167 | -<?php } ?> | |
| 168 | -} | |
| 169 | - | |
| 170 | -<?php if ( $use_chosen_js ) { ?> | |
| 171 | -.with_frm_style .chosen-container, | |
| 172 | -<?php } ?> | |
| 173 | -.with_frm_style input[type=text], | |
| 174 | -.with_frm_style input[type=password], | |
| 175 | -.with_frm_style input[type=email], | |
| 176 | -.with_frm_style input[type=number], | |
| 177 | -.with_frm_style input[type=url], | |
| 178 | -.with_frm_style input[type=tel], | |
| 179 | -.with_frm_style input[type=search], | |
| 180 | -.with_frm_style select, | |
| 181 | -.with_frm_style textarea, | |
| 182 | -.with_frm_style .frm-card-element.StripeElement { | |
| 183 | - font-family:var(--font)<?php echo esc_html( $important ); ?>; | |
| 184 | -<?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> | |
| 185 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 186 | -<?php } ?> | |
| 187 | - margin-bottom:0<?php echo esc_html( $important ); ?>; | |
| 188 | -} | |
| 189 | - | |
| 190 | -.with_frm_style textarea{ | |
| 191 | - vertical-align:top; | |
| 192 | - height:auto; | |
| 193 | -} | |
| 194 | - | |
| 195 | -.with_frm_style input[type=text], | |
| 196 | -.with_frm_style input[type=password], | |
| 197 | -.with_frm_style input[type=email], | |
| 198 | -.with_frm_style input[type=number], | |
| 199 | -.with_frm_style input[type=url], | |
| 200 | -.with_frm_style input[type=tel], | |
| 201 | -.with_frm_style input[type=phone], | |
| 202 | -.with_frm_style input[type=search], | |
| 203 | -.with_frm_style select, | |
| 204 | -.with_frm_style textarea, | |
| 205 | -.frm_form_fields_style, | |
| 206 | -.with_frm_style .frm_scroll_box .frm_opt_container, | |
| 207 | -.frm_form_fields_active_style, | |
| 208 | -.frm_form_fields_error_style, | |
| 209 | -.with_frm_style .frm-card-element.StripeElement, | |
| 210 | -<?php if ( $use_chosen_js ) { ?> | |
| 211 | -.with_frm_style .chosen-container-multi .chosen-choices, | |
| 212 | -.with_frm_style .chosen-container-single .chosen-single, | |
| 213 | -<?php } ?> | |
| 214 | -.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); | |
| 228 | -} | |
| 229 | - | |
| 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 } ?> | |
| 235 | -.with_frm_style input[type=text], | |
| 236 | -.with_frm_style input[type=password], | |
| 237 | -.with_frm_style input[type=email], | |
| 238 | -.with_frm_style input[type=number], | |
| 239 | -.with_frm_style input[type=url], | |
| 240 | -.with_frm_style input[type=tel], | |
| 241 | -.with_frm_style input[type=phone], | |
| 242 | -.with_frm_style input[type=search], | |
| 243 | -.with_frm_style textarea, | |
| 244 | -.frm_form_fields_style, | |
| 245 | -.with_frm_style .frm_scroll_box .frm_opt_container, | |
| 246 | -.frm_form_fields_active_style, | |
| 247 | -.frm_form_fields_error_style, | |
| 248 | -.with_frm_style .frm-card-element.StripeElement { | |
| 249 | - background-image:none !important; | |
| 250 | -} | |
| 251 | -<?php endif; ?> | |
| 252 | - | |
| 253 | -.with_frm_style select option { | |
| 254 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 255 | -} | |
| 256 | - | |
| 257 | -.with_frm_style select option.frm-select-placeholder { | |
| 258 | - color: var(--text-color-disabled)<?php echo esc_html( $important ); ?>; | |
| 259 | -} | |
| 260 | - | |
| 261 | -.with_frm_style input[type=radio], | |
| 262 | -.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 ); ?>; | |
| 265 | - float: none; | |
| 266 | -} | |
| 267 | - | |
| 268 | -.with_frm_style input[type=radio]:after, | |
| 269 | -.with_frm_style input[type=checkbox]:after { | |
| 270 | - display: none; /* 2021 conflict */ | |
| 271 | -} | |
| 272 | - | |
| 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 | -.with_frm_style input[type=text], | |
| 284 | -.with_frm_style input[type=password], | |
| 285 | -.with_frm_style input[type=email], | |
| 286 | -.with_frm_style input[type=number], | |
| 287 | -.with_frm_style input[type=url], | |
| 288 | -.with_frm_style input[type=tel], | |
| 289 | -.with_frm_style input[type=file], | |
| 290 | -.with_frm_style input[type=search], | |
| 291 | -.with_frm_style select, | |
| 292 | -.with_frm_style .frm-card-element.StripeElement{ | |
| 293 | - min-height: var(--field-height)<?php echo esc_html( $important ); ?>; | |
| 294 | - line-height:1.3<?php echo esc_html( $important ); ?>; | |
| 295 | -} | |
| 296 | - | |
| 297 | -.with_frm_style select[multiple=multiple]{ | |
| 298 | - height:auto<?php echo esc_html( $important ); ?>; | |
| 299 | -} | |
| 300 | - | |
| 301 | -.input[type=file].frm_transparent:focus, | |
| 302 | -.with_frm_style input[type=file]{ | |
| 59 | +.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{ | |
| 303 | 60 | background-color:transparent; |
| 304 | 61 | border:none; |
| 305 | 62 | outline:none; |
| 306 | 63 | box-shadow:none; |
| @@ -306,113 +63,47 @@ | ||
| 306 | 63 | box-shadow:none; |
| 307 | 64 | } |
| 308 | 65 | |
| 309 | 66 | .with_frm_style input[type=file]{ |
| 310 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 311 | - padding: 0px; | |
| 312 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 313 | - font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 314 | -<?php } ?> | |
| 315 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 316 | - display: initial; | |
| 67 | + display:initial; | |
| 317 | 68 | } |
| 318 | 69 | |
| 319 | -.with_frm_style input[type=file].frm_transparent{ | |
| 320 | - color:transparent<?php echo esc_html( $important ); ?>; | |
| 321 | -} | |
| 322 | - | |
| 323 | -.with_frm_style .wp-editor-wrap{ | |
| 324 | - width: var(--field-width)<?php echo esc_html( $important ); ?>; | |
| 325 | - max-width:100%; | |
| 326 | -} | |
| 327 | - | |
| 328 | -.with_frm_style .wp-editor-container textarea{ | |
| 329 | - border:none<?php echo esc_html( $important ); ?>; | |
| 330 | - box-shadow:none !important; | |
| 331 | -} | |
| 332 | - | |
| 333 | -.with_frm_style .mceIframeContainer{ | |
| 334 | - background-color: var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 335 | -} | |
| 336 | - | |
| 337 | -.with_frm_style select{ | |
| 338 | - width: var(--auto-width)<?php echo esc_html( $important ); ?>; | |
| 339 | - max-width:100%; | |
| 340 | - background-position-y: calc(50% + 3px); | |
| 341 | -} | |
| 342 | - | |
| 343 | -.with_frm_style input[disabled], | |
| 344 | -.with_frm_style select[disabled], | |
| 345 | -.with_frm_style textarea[disabled], | |
| 346 | -.with_frm_style input[readonly], | |
| 347 | -.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 ); ?>; | |
| 352 | -} | |
| 353 | - | |
| 354 | 70 | .frm_preview_page:before{ |
| 355 | - content:normal !important; | |
| 71 | + content:normal !important; | |
| 356 | 72 | } |
| 357 | 73 | |
| 358 | 74 | .frm_preview_page{ |
| 359 | - padding:25px; | |
| 75 | + padding:25px; | |
| 360 | 76 | } |
| 361 | 77 | |
| 362 | 78 | .with_frm_style .frm_primary_label{ |
| 363 | - max-width:100%; | |
| 364 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 365 | - font-family: var(--font); | |
| 366 | -<?php } ?> | |
| 367 | -<?php if ( ! empty( $defaults['font_size'] ) ) { ?> | |
| 368 | - font-size: var(--font-size)<?php echo esc_html( $important ); ?>; | |
| 369 | -<?php } ?> | |
| 370 | -<?php if ( ! empty( $defaults['label_color'] ) ) { ?> | |
| 371 | - color: var(--label-color)<?php echo esc_html( $important ); ?>; | |
| 372 | -<?php } ?> | |
| 373 | -<?php if ( ! empty( $defaults['weight'] ) ) { ?> | |
| 374 | - font-weight: var(--weight)<?php echo esc_html( $important ); ?>; | |
| 375 | -<?php } ?> | |
| 376 | -<?php if ( ! empty( $defaults['align'] ) ) { ?> | |
| 377 | - text-align: var(--align)<?php echo esc_html( $important ); ?>; | |
| 378 | -<?php } ?> | |
| 379 | -<?php if ( ! empty( $defaults['label_padding'] ) ) { ?> | |
| 380 | - padding: var(--label-padding)<?php echo esc_html( $important ); ?>; | |
| 381 | -<?php } ?> | |
| 382 | - margin:0; | |
| 383 | - width:auto; | |
| 384 | - display:block; | |
| 79 | + max-width:100%; | |
| 385 | 80 | } |
| 386 | 81 | |
| 387 | 82 | .with_frm_style .frm_top_container .frm_primary_label, |
| 388 | 83 | .with_frm_style .frm_hidden_container .frm_primary_label, |
| 389 | 84 | .with_frm_style .frm_pos_top{ |
| 390 | - display:block; | |
| 391 | - float:none; | |
| 392 | - width:auto; | |
| 85 | + display:block; | |
| 86 | + float:none; | |
| 87 | + width:auto; | |
| 393 | 88 | } |
| 394 | 89 | |
| 395 | 90 | .with_frm_style .frm_inline_container .frm_primary_label{ |
| 396 | - margin-right:10px; | |
| 91 | + margin-right:10px; | |
| 397 | 92 | } |
| 398 | 93 | |
| 399 | 94 | .with_frm_style .frm_right_container .frm_primary_label, |
| 400 | 95 | .with_frm_style .frm_pos_right{ |
| 401 | - display:inline; | |
| 402 | - float:right; | |
| 403 | - margin-left:10px; | |
| 96 | + display:inline; | |
| 97 | + float:right; | |
| 98 | + margin-left:10px; | |
| 404 | 99 | } |
| 405 | 100 | |
| 406 | -.with_frm_style .frm_pos_center { | |
| 407 | - text-align: center; | |
| 408 | -} | |
| 409 | - | |
| 410 | 101 | .with_frm_style .frm_none_container .frm_primary_label, |
| 411 | 102 | .with_frm_style .frm_pos_none, |
| 412 | 103 | .frm_pos_none, |
| 413 | 104 | .frm_none_container .frm_primary_label{ |
| 414 | - display:none; | |
| 105 | + display:none; | |
| 415 | 106 | } |
| 416 | 107 | |
| 417 | 108 | .with_frm_style .frm_section_heading.frm_hide_section{ |
| 418 | 109 | margin-top:0 !important; |
| @@ -420,96 +111,33 @@ | ||
| 420 | 111 | |
| 421 | 112 | .with_frm_style .frm_hidden_container .frm_primary_label, |
| 422 | 113 | .with_frm_style .frm_pos_hidden, |
| 423 | 114 | .frm_hidden_container .frm_primary_label{ |
| 424 | - visibility:hidden; | |
| 115 | + visibility:hidden; | |
| 425 | 116 | white-space:nowrap; |
| 426 | 117 | } |
| 427 | 118 | |
| 119 | +.with_frm_style .frm_inside_container .frm_primary_label{ | |
| 120 | + opacity:0; | |
| 121 | + transition: opacity 0.1s linear; | |
| 122 | +} | |
| 123 | + | |
| 124 | +.with_frm_style .frm_inside_container label.frm_visible, | |
| 428 | 125 | .frm_visible{ |
| 429 | 126 | opacity:1; |
| 430 | 127 | } |
| 431 | 128 | |
| 432 | -/* Floating labels */ | |
| 433 | -.with_frm_style .frm_inside_container { | |
| 434 | - position: relative; | |
| 435 | - padding-top: 18px; | |
| 436 | - padding-top: calc(0.5 * var(--field-height)); | |
| 437 | -} | |
| 438 | - | |
| 439 | -.with_frm_style .frm_inside_container > input, | |
| 440 | -.with_frm_style .frm_inside_container > select, | |
| 441 | -.with_frm_style .frm_inside_container > textarea { | |
| 442 | - display: block; | |
| 443 | -} | |
| 444 | - | |
| 445 | -.with_frm_style input::placeholder, | |
| 446 | -.with_frm_style textarea::placeholder { | |
| 447 | - font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; | |
| 448 | -} | |
| 449 | - | |
| 450 | -.with_frm_style .frm_inside_container > input::placeholder, | |
| 451 | -.with_frm_style .frm_inside_container > textarea::placeholder { | |
| 452 | - opacity: 0; | |
| 453 | - transition: opacity 0.3s ease-in; | |
| 454 | -} | |
| 455 | - | |
| 456 | -.with_frm_style .frm_inside_container > label { | |
| 457 | - transition: all 0.3s ease-in; | |
| 458 | - | |
| 459 | - position: absolute; | |
| 460 | - top: 19px; | |
| 461 | - top: calc(1px + .5 * var(--field-height)); | |
| 462 | - left: 3px; | |
| 463 | - width: 100%; | |
| 464 | - | |
| 465 | - line-height: 1.3; | |
| 466 | - text-overflow: ellipsis; | |
| 467 | - overflow: hidden; | |
| 468 | - white-space: nowrap; | |
| 469 | - | |
| 470 | - padding: 8px 12px; | |
| 471 | - padding: var(--field-pad); | |
| 472 | - | |
| 473 | - font-size: 14px; | |
| 474 | - font-size: var(--field-font-size); | |
| 475 | - font-weight: normal; | |
| 476 | - font-weight: var(--field-weight); | |
| 477 | - | |
| 478 | - pointer-events: none; | |
| 479 | -} | |
| 480 | - | |
| 481 | -.with_frm_style.frm_style_lines-no-boxes .frm_inside_container > label { | |
| 482 | - line-height: 1; | |
| 483 | -} | |
| 484 | - | |
| 485 | -.with_frm_style .frm_inside_container.frm_label_float_top > label { | |
| 486 | - top: 0; | |
| 487 | - left: 0; | |
| 488 | - padding: 0; | |
| 489 | - font-size: 12px; | |
| 490 | - font-size: calc(0.85 * var(--field-font-size)); | |
| 491 | -} | |
| 492 | - | |
| 493 | -.with_frm_style .frm_inside_container.frm_label_float_top > input::placeholder, | |
| 494 | -.with_frm_style .frm_inside_container.frm_label_float_top > textarea::placeholder { | |
| 495 | - opacity: 1; | |
| 496 | - transition: opacity 0.3s ease-in; | |
| 497 | -} | |
| 498 | -/* End floating label */ | |
| 499 | - | |
| 500 | -.with_frm_style .frm_description, | |
| 501 | -.with_frm_style .frm_pro_max_limit_desc{ | |
| 129 | +.with_frm_style .frm_description{ | |
| 502 | 130 | clear:both; |
| 503 | 131 | } |
| 504 | 132 | |
| 505 | 133 | .with_frm_style input[type=number][readonly]{ |
| 506 | - -moz-appearance: textfield; | |
| 134 | + -moz-appearance: textfield; | |
| 507 | 135 | } |
| 508 | 136 | |
| 509 | 137 | .with_frm_style select[multiple="multiple"]{ |
| 510 | - height:auto; | |
| 511 | - line-height:normal; | |
| 138 | + height:auto; | |
| 139 | + line-height:normal; | |
| 512 | 140 | } |
| 513 | 141 | |
| 514 | 142 | .with_frm_style .frm_catlevel_2, |
| 515 | 143 | .with_frm_style .frm_catlevel_3, |
| @@ -514,29 +142,33 @@ | ||
| 514 | 142 | .with_frm_style .frm_catlevel_2, |
| 515 | 143 | .with_frm_style .frm_catlevel_3, |
| 516 | 144 | .with_frm_style .frm_catlevel_4, |
| 517 | 145 | .with_frm_style .frm_catlevel_5{ |
| 518 | - margin-left:18px; | |
| 146 | + margin-left:18px; | |
| 519 | 147 | } |
| 520 | 148 | |
| 521 | 149 | .with_frm_style .wp-editor-container{ |
| 522 | - border:1px solid #e5e5e5; | |
| 150 | + border:1px solid #e5e5e5; | |
| 523 | 151 | } |
| 524 | 152 | |
| 525 | 153 | .with_frm_style .quicktags-toolbar input{ |
| 526 | - font-size:12px !important; | |
| 154 | + font-size:12px !important; | |
| 527 | 155 | } |
| 528 | 156 | |
| 529 | 157 | .with_frm_style .wp-editor-container textarea{ |
| 530 | - border:none; | |
| 158 | + border:none; | |
| 531 | 159 | } |
| 532 | 160 | |
| 161 | +.with_frm_style textarea{ | |
| 162 | + height:auto; | |
| 163 | +} | |
| 164 | + | |
| 533 | 165 | .with_frm_style .auto_width #loginform input, |
| 534 | 166 | .with_frm_style .auto_width input, |
| 535 | 167 | .with_frm_style input.auto_width, |
| 536 | 168 | .with_frm_style select.auto_width, |
| 537 | 169 | .with_frm_style textarea.auto_width{ |
| 538 | - width:auto<?php echo esc_html( $important ); ?>; | |
| 170 | + width:auto; | |
| 539 | 171 | } |
| 540 | 172 | |
| 541 | 173 | .with_frm_style .frm_repeat_buttons{ |
| 542 | 174 | white-space:nowrap; |
| @@ -542,55 +174,16 @@ | ||
| 542 | 174 | white-space:nowrap; |
| 543 | 175 | } |
| 544 | 176 | |
| 545 | 177 | .with_frm_style .frm_button{ |
| 546 | - text-decoration:none !important; | |
| 547 | - border:1px solid #eee; | |
| 548 | - display:inline-block; | |
| 549 | -<?php if ( ! empty( $defaults['submit_padding'] ) ) { ?> | |
| 550 | - padding: var(--submit-padding)<?php echo esc_html( $important ); ?>; | |
| 551 | -<?php } else { ?> | |
| 178 | + text-decoration:none; | |
| 179 | + border:1px solid #eee; | |
| 552 | 180 | padding:5px; |
| 553 | -<?php } ?> | |
| 554 | -<?php if ( ! empty( $defaults['border_radius'] ) ) { ?> | |
| 555 | - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 556 | - border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; | |
| 557 | -<?php } ?> | |
| 558 | -<?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?> | |
| 559 | - font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>; | |
| 560 | -<?php } ?> | |
| 561 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 562 | - font-family: var(--font)<?php echo esc_html( $important ); ?>; | |
| 563 | -<?php } ?> | |
| 564 | -<?php if ( ! empty( $defaults['submit_weight'] ) ) { ?> | |
| 565 | - font-weight: var(--submit-weight)<?php echo esc_html( $important ); ?>; | |
| 566 | -<?php } ?> | |
| 567 | -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> | |
| 568 | - color: var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 569 | -<?php } ?> | |
| 570 | -<?php if ( ! empty( $defaults['submit_bg_color'] ) ) { ?> | |
| 571 | - background: var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 572 | -<?php } ?> | |
| 573 | -<?php if ( ! empty( $defaults['submit_border_width'] ) ) { ?> | |
| 574 | - border-width: var(--submit-border-width)<?php echo esc_html( $important ); ?>; | |
| 575 | -<?php } ?> | |
| 576 | -<?php if ( ! empty( $defaults['submit_border_color'] ) ) { ?> | |
| 577 | - border-color: var(--submit-border-color)<?php echo esc_html( $important ); ?>; | |
| 578 | -<?php } ?> | |
| 579 | -<?php if ( ! empty( $defaults['submit_height'] ) ) { ?> | |
| 580 | - height: var(--submit-height)<?php echo esc_html( $important ); ?>; | |
| 581 | -<?php } ?> | |
| 181 | + display:inline; | |
| 582 | 182 | } |
| 583 | 183 | |
| 584 | -<?php if ( ! empty( $defaults['submit_text_color'] ) ) { ?> | |
| 585 | -.with_frm_style .frm_button.frm_inverse{ | |
| 586 | - color:var(--submit-bg-color)<?php echo esc_html( $important ); ?>; | |
| 587 | - background:var(--submit-text-color)<?php echo esc_html( $important ); ?>; | |
| 588 | -} | |
| 589 | -<?php } ?> | |
| 590 | - | |
| 591 | 184 | .with_frm_style .frm_submit{ |
| 592 | - clear:both; | |
| 185 | + clear:both; | |
| 593 | 186 | } |
| 594 | 187 | |
| 595 | 188 | .frm_inline_form .frm_form_field, |
| 596 | 189 | .frm_inline_form .frm_submit{ |
| @@ -608,39 +201,17 @@ | ||
| 608 | 201 | margin-top:0; |
| 609 | 202 | } |
| 610 | 203 | |
| 611 | 204 | .with_frm_style.frm_center_submit .frm_submit{ |
| 612 | - text-align:center; | |
| 205 | + text-align:center; | |
| 613 | 206 | } |
| 614 | 207 | |
| 615 | -.with_frm_style.frm_center_submit .frm_flex.frm_submit { | |
| 616 | - justify-content: center; | |
| 617 | -} | |
| 618 | - | |
| 619 | -.with_frm_style .frm_inline_success .frm_submit{ | |
| 620 | - display: flex; | |
| 621 | - flex-direction: row; | |
| 622 | - align-items: center; | |
| 623 | - margin: 0; | |
| 624 | -} | |
| 625 | - | |
| 626 | -.with_frm_style .frm_inline_success .frm_submit .frm_message{ | |
| 627 | - flex: 1; | |
| 628 | - margin: 0; | |
| 629 | - padding-left: 10px; | |
| 630 | -} | |
| 631 | - | |
| 632 | -.with_frm_style .frm_inline_success.frm_alignright_success .frm_submit .frm_message{ | |
| 633 | - text-align: right; | |
| 634 | -} | |
| 635 | - | |
| 636 | 208 | .with_frm_style.frm_center_submit .frm_submit input[type=submit], |
| 637 | 209 | .with_frm_style.frm_center_submit .frm_submit input[type=button], |
| 638 | 210 | .with_frm_style.frm_center_submit .frm_submit button{ |
| 639 | - margin-bottom:8px !important; | |
| 211 | + margin-bottom:8px !important; | |
| 640 | 212 | } |
| 641 | 213 | |
| 642 | -.with_frm_style .frm-edit-page-btn, | |
| 643 | 214 | .with_frm_style .frm_submit input[type=submit], |
| 644 | 215 | .with_frm_style .frm_submit input[type=button], |
| 645 | 216 | .with_frm_style .frm_submit button{ |
| 646 | 217 | -webkit-appearance: none; |
| @@ -647,459 +218,232 @@ | ||
| 647 | 218 | cursor: pointer; |
| 648 | 219 | } |
| 649 | 220 | |
| 650 | 221 | .with_frm_style.frm_center_submit .frm_submit .frm_ajax_loading{ |
| 651 | - display: block; | |
| 652 | - margin: 0 auto; | |
| 222 | + display: block; | |
| 223 | + margin: 0 auto; | |
| 653 | 224 | } |
| 654 | 225 | |
| 655 | -.with_frm_style .frm_loading_prev .frm_ajax_loading, | |
| 656 | 226 | .with_frm_style .frm_loading_form .frm_ajax_loading{ |
| 657 | 227 | /* keep this for reverse compatibility for old HTML */ |
| 658 | 228 | visibility:visible !important; |
| 659 | 229 | } |
| 660 | 230 | |
| 661 | -.with_frm_style .frm_loading_prev .frm_prev_page, | |
| 662 | 231 | .with_frm_style .frm_loading_form .frm_button_submit { |
| 663 | - position: relative; | |
| 664 | - color: transparent !important; | |
| 665 | - text-shadow: none !important; | |
| 232 | + position: relative; | |
| 233 | + opacity: .8; | |
| 234 | + color: transparent !important; | |
| 235 | + text-shadow: none !important; | |
| 666 | 236 | } |
| 667 | 237 | |
| 668 | -.with_frm_style .frm_loading_prev .frm_prev_page:hover, | |
| 669 | -.with_frm_style .frm_loading_prev .frm_prev_page:active, | |
| 670 | -.with_frm_style .frm_loading_prev .frm_prev_page:focus, | |
| 671 | 238 | .with_frm_style .frm_loading_form .frm_button_submit:hover, |
| 672 | 239 | .with_frm_style .frm_loading_form .frm_button_submit:active, |
| 673 | 240 | .with_frm_style .frm_loading_form .frm_button_submit:focus { |
| 674 | - cursor: not-allowed; | |
| 675 | - color: transparent; | |
| 676 | - outline: none !important; | |
| 677 | - box-shadow: none; | |
| 241 | + cursor: not-allowed; | |
| 242 | + color: transparent; | |
| 243 | + outline: none !important; | |
| 244 | + box-shadow: none; | |
| 678 | 245 | } |
| 679 | 246 | |
| 680 | -.with_frm_style .frm_loading_prev .frm_prev_page::before, | |
| 681 | 247 | .with_frm_style .frm_loading_form .frm_button_submit:before { |
| 682 | - content: ''; | |
| 683 | - display: inline-block; | |
| 684 | - position: absolute; | |
| 685 | - background: transparent; | |
| 686 | - border: 1px solid #fff; | |
| 687 | - border-top-color: transparent; | |
| 688 | - border-left-color: transparent; | |
| 689 | - border-radius: 50%; | |
| 690 | - box-sizing: border-box; | |
| 691 | - <?php $loader_size = 12; ?> | |
| 692 | - top: 50%; | |
| 693 | - left: 50%; | |
| 694 | - margin-top: -<?php echo absint( $loader_size / 2 ); ?>px; | |
| 695 | - margin-left: -<?php echo absint( $loader_size / 2 ); ?>px; | |
| 696 | - width: <?php echo absint( $loader_size ); ?>px; | |
| 697 | - height: <?php echo absint( $loader_size ); ?>px; | |
| 698 | - animation: spin 2s linear infinite; | |
| 699 | -} | |
| 248 | + content: ''; | |
| 249 | + display: inline-block; | |
| 700 | 250 | |
| 701 | -.with_frm_style .frm_submit.frm_flex { | |
| 702 | - align-items: center; | |
| 703 | - gap: 2%; | |
| 704 | -} | |
| 251 | + position: absolute; | |
| 252 | + background: transparent; | |
| 253 | + border: 1px solid #fff; | |
| 254 | + border-top-color: transparent; | |
| 255 | + border-left-color: transparent; | |
| 256 | + border-radius: 50%; | |
| 705 | 257 | |
| 706 | -.with_frm_style .frm_submit.frm_flex button.frm_button_submit ~ .frm_prev_page { | |
| 707 | - order: -1; | |
| 258 | + box-sizing: border-box; | |
| 259 | + <?php $loader_size = 20; ?> | |
| 260 | + top: 50%; | |
| 261 | + left: 50%; | |
| 262 | + margin-top: -<?php echo absint( $loader_size / 2 ) ?>px; | |
| 263 | + margin-left: -<?php echo absint( $loader_size / 2 ) ?>px; | |
| 264 | + width: <?php echo absint( $loader_size ) ?>px; | |
| 265 | + height: <?php echo absint( $loader_size ) ?>px; | |
| 266 | + | |
| 267 | + -webkit-animation: spin 2s linear infinite; | |
| 268 | + -moz-animation: spin 2s linear infinite; | |
| 269 | + -o-animation: spin 2s linear infinite; | |
| 270 | + animation: spin 2s linear infinite; | |
| 708 | 271 | } |
| 709 | 272 | |
| 710 | 273 | <?php |
| 711 | 274 | foreach ( $styles as $style ) { |
| 712 | - include __DIR__ . '/_single_theme.css.php'; | |
| 275 | + include( dirname( __FILE__ ) . '/_single_theme.css.php' ); | |
| 713 | 276 | unset( $style ); |
| 714 | 277 | } |
| 715 | - | |
| 716 | -// Set it again since it may have been overridden. | |
| 717 | -$important = empty( $defaults['important_style'] ) ? '' : ' !important'; | |
| 718 | 278 | ?> |
| 719 | 279 | |
| 720 | 280 | .frm_ajax_loading{ |
| 721 | - visibility:hidden; | |
| 281 | + visibility:hidden; | |
| 722 | 282 | width:auto; |
| 723 | 283 | } |
| 724 | 284 | |
| 725 | 285 | .frm_form_submit_style{ |
| 726 | - height:auto; | |
| 286 | + height:auto; | |
| 727 | 287 | } |
| 728 | 288 | |
| 729 | 289 | a.frm_save_draft{ |
| 730 | - cursor:pointer; | |
| 290 | + cursor:pointer; | |
| 731 | 291 | } |
| 732 | 292 | |
| 733 | -.with_frm_style a.frm_save_draft, | |
| 734 | -.with_frm_style a.frm_start_over{ | |
| 735 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 736 | - font-family: var(--font); | |
| 737 | -<?php } ?> | |
| 738 | - font-size: var(--submit-font-size); | |
| 739 | - font-weight: var(--submit-weight); | |
| 740 | -} | |
| 741 | - | |
| 742 | 293 | .horizontal_radio .frm_radio{ |
| 743 | - margin:0 5px 0 0; | |
| 294 | + margin:0 5px 0 0; | |
| 744 | 295 | } |
| 745 | 296 | |
| 746 | 297 | .horizontal_radio .frm_checkbox{ |
| 747 | - margin:0; | |
| 748 | - margin-right:12px; | |
| 298 | + margin:0; | |
| 299 | + margin-right:5px; | |
| 749 | 300 | } |
| 750 | 301 | |
| 751 | 302 | .vertical_radio .frm_checkbox, |
| 752 | 303 | .vertical_radio .frm_radio, |
| 753 | 304 | .vertical_radio .frm_catlevel_1{ |
| 754 | - display:block; | |
| 305 | + display:block; | |
| 755 | 306 | } |
| 756 | 307 | |
| 757 | 308 | .horizontal_radio .frm_checkbox, |
| 758 | 309 | .horizontal_radio .frm_radio, |
| 759 | 310 | .horizontal_radio .frm_catlevel_1{ |
| 760 | - display:inline-block; | |
| 761 | - padding-left: 0; | |
| 311 | + display:inline-block; | |
| 762 | 312 | } |
| 763 | 313 | |
| 764 | -.with_frm_style .frm_radio{ | |
| 765 | - display: var(--radio-align)<?php echo esc_html( $important ); ?>; | |
| 766 | -} | |
| 767 | - | |
| 768 | -.with_frm_style .frm_checkbox{ | |
| 769 | - display: var(--check-align)<?php echo esc_html( $important ); ?>; | |
| 770 | -} | |
| 771 | - | |
| 772 | -.with_frm_style .vertical_radio .frm_checkbox, | |
| 773 | -.with_frm_style .vertical_radio .frm_radio, | |
| 774 | -.vertical_radio .frm_catlevel_1{ | |
| 775 | - display:block<?php echo esc_html( $important ); ?>; | |
| 776 | - margin-bottom: 10px; | |
| 777 | -} | |
| 778 | - | |
| 779 | -.with_frm_style .horizontal_radio .frm_checkbox, | |
| 780 | -.with_frm_style .horizontal_radio .frm_radio, | |
| 781 | -.horizontal_radio .frm_catlevel_1{ | |
| 782 | - display:inline-block<?php echo esc_html( $important ); ?>; | |
| 783 | -} | |
| 784 | - | |
| 785 | 314 | .with_frm_style .frm_checkbox label, |
| 786 | -.with_frm_style .frm_radio label { | |
| 787 | - display: inline-block; | |
| 788 | - vertical-align: middle; | |
| 315 | +.with_frm_style .frm_radio label{ | |
| 316 | + display: inline; | |
| 789 | 317 | white-space:normal; |
| 790 | 318 | } |
| 791 | 319 | |
| 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 | 320 | .with_frm_style .vertical_radio .frm_checkbox label, |
| 803 | 321 | .with_frm_style .vertical_radio .frm_radio label{ |
| 804 | 322 | display: block; |
| 805 | - width: 100%; | |
| 323 | + padding-left: 20px; | |
| 324 | + text-indent: -20px; | |
| 806 | 325 | } |
| 807 | 326 | |
| 808 | -.with_frm_style .frm_radio label, | |
| 809 | -.with_frm_style .frm_checkbox label { | |
| 810 | -<?php if ( ! empty( $defaults['font'] ) ) { ?> | |
| 811 | - font-family: var(--font); | |
| 812 | -<?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 ); ?>; | |
| 816 | - line-height: 1.3; | |
| 817 | -} | |
| 818 | - | |
| 819 | -.with_frm_style .frm_radio input[type=radio], | |
| 820 | -.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 ); ?>; | |
| 823 | -} | |
| 824 | - | |
| 825 | 327 | .frm_file_container .frm_file_link, |
| 826 | 328 | .with_frm_style .frm_radio label .frm_file_container, |
| 827 | 329 | .with_frm_style .frm_checkbox label .frm_file_container{ |
| 828 | - display:inline-block; | |
| 829 | - margin:5px; | |
| 830 | - vertical-align:middle; | |
| 330 | + display:inline-block; | |
| 331 | + margin:5px; | |
| 332 | + vertical-align:middle; | |
| 831 | 333 | } |
| 832 | 334 | |
| 833 | -.with_frm_style .frm_radio input[type=radio] | |
| 834 | -<?php if ( $pro_is_installed ) : ?> | |
| 835 | -, .with_frm_style .frm_scale input[type=radio] | |
| 836 | -<?php endif; ?> | |
| 837 | -{ | |
| 335 | +.with_frm_style .frm_radio input[type=radio]{ | |
| 336 | + -webkit-appearance:radio; | |
| 838 | 337 | border-radius:50%; |
| 839 | 338 | } |
| 840 | 339 | |
| 841 | -.with_frm_style .frm_checkbox input[type=checkbox] { | |
| 842 | - border-radius: calc(var(--border-radius) / 2) !important; | |
| 340 | +.with_frm_style .frm_checkbox input[type=checkbox]{ | |
| 341 | + -webkit-appearance:checkbox; | |
| 342 | + border-radius:initial; | |
| 843 | 343 | } |
| 844 | 344 | |
| 845 | 345 | .with_frm_style .frm_radio input[type=radio], |
| 846 | -<?php if ( $pro_is_installed ) : ?> | |
| 847 | -.with_frm_style .frm_scale input[type=radio], | |
| 848 | -<?php endif; ?> | |
| 849 | 346 | .with_frm_style .frm_checkbox input[type=checkbox]{ |
| 850 | - appearance: none; | |
| 851 | - background-color: var(--bg-color); | |
| 852 | 347 | flex: none; |
| 853 | - display:inline-block !important; | |
| 854 | - width: 16px !important; | |
| 855 | - min-width: 16px !important; | |
| 856 | - height: 16px !important; | |
| 857 | - color: var(--border-color); | |
| 858 | - border: 1px solid currentColor; | |
| 859 | - border-color: var(--border-color); | |
| 860 | - vertical-align: middle; | |
| 348 | + display:inline-block; | |
| 349 | + margin:4px 5px 0 0; | |
| 350 | + width:auto; | |
| 351 | + border:none; | |
| 352 | + vertical-align:baseline; | |
| 861 | 353 | position: initial; /* override Bootstrap */ |
| 862 | - padding: 0; | |
| 863 | - margin: 0; | |
| 864 | 354 | } |
| 865 | 355 | |
| 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, | |
| 869 | -<?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; | |
| 872 | -} | |
| 873 | - | |
| 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; | |
| 876 | -} | |
| 877 | - | |
| 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 | -.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 | -.with_frm_style .frm_checkbox input[type=checkbox]:checked:before { | |
| 895 | - position: static !important; /* Override Style Preview */ | |
| 896 | - content: ''; | |
| 897 | - display: block; | |
| 898 | -} | |
| 899 | - | |
| 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 | 356 | .with_frm_style :invalid, |
| 357 | +.with_frm_style :-moz-submit-invalid, | |
| 929 | 358 | .with_frm_style :-moz-ui-invalid{ |
| 930 | - box-shadow:none; | |
| 359 | + box-shadow:none; | |
| 931 | 360 | } |
| 932 | 361 | |
| 933 | 362 | .with_frm_style .frm_error_style img{ |
| 934 | - padding-right:10px; | |
| 935 | - vertical-align:middle; | |
| 936 | - border:none; | |
| 363 | + padding-right:10px; | |
| 364 | + vertical-align:middle; | |
| 365 | + border:none; | |
| 937 | 366 | } |
| 938 | 367 | |
| 939 | 368 | .with_frm_style .frm_trigger{ |
| 940 | - cursor:pointer; | |
| 369 | + cursor:pointer; | |
| 941 | 370 | } |
| 942 | 371 | |
| 943 | 372 | .with_frm_style .frm_error_style, |
| 944 | 373 | .with_frm_style .frm_message, |
| 945 | 374 | .frm_success_style{ |
| 946 | - border-radius:4px; | |
| 947 | - padding:15px; | |
| 375 | + -moz-border-radius:4px; | |
| 376 | + -webkit-border-radius:4px; | |
| 377 | + border-radius:4px; | |
| 378 | + padding:15px; | |
| 948 | 379 | } |
| 949 | 380 | |
| 950 | -.with_frm_style .frm_message p { | |
| 951 | - color: var(--success-text-color)<?php echo esc_html( $important ); ?>; | |
| 952 | - margin-bottom: 0; | |
| 381 | +.with_frm_style .frm_message p{ | |
| 382 | + margin-bottom:5px; | |
| 953 | 383 | } |
| 954 | 384 | |
| 955 | -.with_frm_style .frm_message > p:first-of-type { | |
| 956 | - margin-top: 0; | |
| 957 | -} | |
| 958 | - | |
| 959 | -.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 ); ?>; | |
| 967 | -} | |
| 968 | - | |
| 969 | -.with_frm_style .frm_plain_success .frm_message { | |
| 970 | - background-color: transparent; | |
| 971 | - padding:0; | |
| 972 | - border:none; | |
| 973 | - font-size:inherit<?php echo esc_html( $important ); ?>; | |
| 974 | - color:inherit<?php echo esc_html( $important ); ?>; | |
| 975 | -} | |
| 976 | - | |
| 977 | -.with_frm_style .frm_plain_success .frm_message p { | |
| 978 | - color:inherit<?php echo esc_html( $important ); ?>; | |
| 979 | -} | |
| 980 | - | |
| 981 | 385 | .frm_form_fields_style, |
| 982 | 386 | .frm_form_fields_active_style, |
| 983 | 387 | .frm_form_fields_error_style, |
| 984 | 388 | .frm_form_submit_style{ |
| 985 | - width:auto; | |
| 389 | + width:auto; | |
| 986 | 390 | } |
| 987 | 391 | |
| 988 | 392 | .with_frm_style .frm_trigger span{ |
| 989 | - float:left; | |
| 393 | + float:left; | |
| 990 | 394 | } |
| 991 | 395 | |
| 992 | 396 | .with_frm_style table.frm-grid, |
| 993 | 397 | #content .with_frm_style table.frm-grid{ |
| 994 | - border-collapse:collapse; | |
| 995 | - border:none; | |
| 398 | + border-collapse:collapse; | |
| 399 | + border:none; | |
| 996 | 400 | } |
| 997 | 401 | |
| 998 | 402 | .frm-grid td, |
| 999 | 403 | .frm-grid th{ |
| 1000 | - padding:5px; | |
| 1001 | - border-width:1px; | |
| 1002 | - border-style:solid; | |
| 1003 | - <?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1004 | - border-color: var(--border-color); | |
| 1005 | - <?php } ?> | |
| 1006 | - border-top:none; | |
| 1007 | - border-left:none; | |
| 1008 | - border-right:none; | |
| 404 | + padding:5px; | |
| 405 | + border-width:1px; | |
| 406 | + border-style:solid; | |
| 407 | + border-color:<?php echo esc_html( $defaults['border_color'] ) ?>; | |
| 408 | + border-top:none; | |
| 409 | + border-left:none; | |
| 410 | + border-right:none; | |
| 1009 | 411 | } |
| 1010 | 412 | |
| 1011 | -.frm-alt-table { | |
| 1012 | - width:100%; | |
| 1013 | - border-collapse:separate; | |
| 1014 | - margin-top:0.5em; | |
| 1015 | - font-size:15px; | |
| 1016 | - border-width:1px; | |
| 1017 | -} | |
| 1018 | - | |
| 1019 | -<?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1020 | -.with_frm_style .frm-alt-table{ | |
| 1021 | - border-color: var(--border-color); | |
| 1022 | -} | |
| 1023 | -<?php } ?> | |
| 1024 | - | |
| 1025 | -.frm-alt-table th { | |
| 1026 | - width:200px; | |
| 1027 | -} | |
| 1028 | - | |
| 1029 | -.frm-alt-table tr { | |
| 1030 | - background-color:transparent; | |
| 1031 | -} | |
| 1032 | - | |
| 1033 | -.frm-alt-table th, | |
| 1034 | -.frm-alt-table td { | |
| 1035 | - background-color:transparent; | |
| 1036 | - vertical-align:top; | |
| 1037 | - text-align:left; | |
| 1038 | - padding:20px; | |
| 1039 | - border-color:transparent; | |
| 1040 | -} | |
| 1041 | - | |
| 1042 | -.frm-alt-table tr:nth-child(even) { | |
| 1043 | - background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; | |
| 1044 | -} | |
| 1045 | - | |
| 1046 | 413 | 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 ); ?>; | |
| 414 | + border:1px solid #ccc; | |
| 1050 | 415 | } |
| 1051 | 416 | |
| 1052 | 417 | table.form_results.with_frm_style tr td{ |
| 1053 | - text-align:left; | |
| 1054 | - padding:7px 9px; | |
| 1055 | -<?php if ( ! empty( $defaults['text_color'] ) ) { ?> | |
| 1056 | - color: var(--text-color)<?php echo esc_html( $important ); ?>; | |
| 1057 | -<?php } ?> | |
| 1058 | -<?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 ); ?>; | |
| 1062 | -<?php } ?> | |
| 418 | + text-align:left; | |
| 419 | + color:<?php echo esc_html( $defaults['text_color'] ) ?>; | |
| 420 | + padding:7px 9px; | |
| 421 | + border-top:1px solid <?php echo esc_html( $defaults['border_color'] ) ?>; | |
| 1063 | 422 | } |
| 1064 | 423 | |
| 1065 | 424 | table.form_results.with_frm_style tr.frm_even, |
| 1066 | 425 | .frm-grid .frm_even{ |
| 1067 | - background-color:#fff; | |
| 1068 | - background-color:var(--bg-color)<?php echo esc_html( $important ); ?>; | |
| 426 | + background-color:#fff; | |
| 1069 | 427 | } |
| 1070 | 428 | |
| 1071 | -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?> | |
| 1072 | 429 | 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 ); ?>; | |
| 430 | +.frm-grid .frm_odd{ | |
| 431 | + background-color:<?php echo esc_html( $defaults['bg_color_active'] ); ?>; | |
| 1075 | 432 | } |
| 1076 | -<?php } ?> | |
| 1077 | 433 | |
| 1078 | -<?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1079 | -.frm_color_block { | |
| 1080 | - background-color:<?php echo esc_html( FrmStylesHelper::adjust_brightness( $defaults['border_color'], 45 ) ); ?>; | |
| 1081 | - padding: 40px; | |
| 1082 | -} | |
| 1083 | - | |
| 1084 | -.with_frm_style .frm-show-form .frm_color_block.frm_section_heading h3, | |
| 1085 | -.frm_color_block.frm_section_heading h3 { | |
| 1086 | - border-width: 0 !important; | |
| 1087 | -} | |
| 1088 | -<?php } ?> | |
| 1089 | - | |
| 1090 | 434 | .frm_collapse .ui-icon{ |
| 1091 | - display:inline-block; | |
| 435 | + display:inline-block; | |
| 1092 | 436 | } |
| 1093 | 437 | |
| 1094 | 438 | .frm_toggle_container{ |
| 1095 | - /* Prevent the slide and bounce */ | |
| 1096 | - border:1px solid transparent; | |
| 439 | + /* Prevent the slide and bounce */ | |
| 440 | + border:1px solid transparent; | |
| 1097 | 441 | } |
| 1098 | 442 | |
| 1099 | 443 | .frm_toggle_container ul{ |
| 1100 | 444 | margin:5px 0; |
| 1101 | - padding-left:0; | |
| 445 | + padding-left:0; | |
| 1102 | 446 | list-style-type:none; |
| 1103 | 447 | } |
| 1104 | 448 | |
| 1105 | 449 | .frm_toggle_container .frm_month_heading{ |
| @@ -1110,69 +454,67 @@ | ||
| 1110 | 454 | margin-left:40px; |
| 1111 | 455 | } |
| 1112 | 456 | |
| 1113 | 457 | #frm_loading{ |
| 1114 | - display:none; | |
| 1115 | - position:fixed; | |
| 1116 | - top:0; | |
| 1117 | - left:0; | |
| 1118 | - width:100%; | |
| 1119 | - height:100%; | |
| 1120 | - z-index:99999; | |
| 458 | + display:none; | |
| 459 | + position:fixed; | |
| 460 | + top:0; | |
| 461 | + left:0; | |
| 462 | + width:100%; | |
| 463 | + height:100%; | |
| 464 | + z-index:99999; | |
| 1121 | 465 | } |
| 1122 | 466 | |
| 1123 | 467 | #frm_loading h3{ |
| 1124 | - font-weight:500; | |
| 1125 | - padding-bottom:15px; | |
| 1126 | - color:#fff; | |
| 1127 | - font-size:24px; | |
| 468 | + font-weight:500; | |
| 469 | + padding-bottom:15px; | |
| 470 | + color:#fff; | |
| 471 | + font-size:24px; | |
| 1128 | 472 | } |
| 1129 | 473 | |
| 1130 | 474 | #frm_loading_content{ |
| 1131 | - position:fixed; | |
| 1132 | - top:20%; | |
| 1133 | - left:33%; | |
| 1134 | - width:33%; | |
| 1135 | - text-align:center; | |
| 1136 | - padding-top:30px; | |
| 1137 | - font-weight:bold; | |
| 1138 | - z-index:9999999; | |
| 475 | + position:fixed; | |
| 476 | + top:20%; | |
| 477 | + left:33%; | |
| 478 | + width:33%; | |
| 479 | + text-align:center; | |
| 480 | + padding-top:30px; | |
| 481 | + font-weight:bold; | |
| 482 | + z-index:9999999; | |
| 1139 | 483 | } |
| 1140 | 484 | |
| 1141 | 485 | #frm_loading img{ |
| 1142 | - max-width:100%; | |
| 486 | + max-width:100%; | |
| 1143 | 487 | } |
| 1144 | 488 | |
| 1145 | 489 | #frm_loading .progress{ |
| 1146 | - border-radius:4px; | |
| 1147 | - box-shadow:0 1px 2px rgba(0, 0, 0, 0.1) inset; | |
| 1148 | - height:20px; | |
| 1149 | - margin-bottom:20px; | |
| 1150 | - overflow:hidden; | |
| 490 | + border-radius:4px; | |
| 491 | + box-shadow:0 1px 2px rgba(0, 0, 0, 0.1) inset; | |
| 492 | + height:20px; | |
| 493 | + margin-bottom:20px; | |
| 494 | + overflow:hidden; | |
| 1151 | 495 | } |
| 1152 | 496 | |
| 1153 | 497 | #frm_loading .progress.active .progress-bar{ |
| 1154 | - animation:2s linear 0s normal none infinite progress-bar-stripes; | |
| 498 | + animation:2s linear 0s normal none infinite progress-bar-stripes; | |
| 1155 | 499 | } |
| 1156 | 500 | |
| 1157 | 501 | <?php if ( ! empty( $defaults['bg_color'] ) ) { ?> |
| 1158 | -#frm_loading .progress-striped .progress-bar { | |
| 1159 | - <?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)); | |
| 1161 | - <?php } ?> | |
| 1162 | - background-size:40px 40px; | |
| 502 | +#frm_loading .progress-striped .progress-bar{ | |
| 503 | + 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)); | |
| 504 | + background-size:40px 40px; | |
| 1163 | 505 | } |
| 1164 | 506 | <?php } ?> |
| 1165 | 507 | |
| 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%; | |
| 508 | +#frm_loading .progress-bar{ | |
| 509 | + background-color:<?php echo esc_html( empty( $defaults['bg_color'] ) ? 'transparent' : $defaults['bg_color'] ); ?>; | |
| 510 | + box-shadow:0 -1px 0 rgba(0, 0, 0, 0.15) inset; | |
| 511 | + float:left; | |
| 512 | + height:100%; | |
| 513 | + line-height:20px; | |
| 514 | + text-align:center; | |
| 515 | + transition:width 0.6s ease 0s; | |
| 516 | + width:100%; | |
| 1175 | 517 | } |
| 1176 | 518 | |
| 1177 | 519 | .frm_image_from_url{ |
| 1178 | 520 | height:50px; |
| @@ -1178,20 +520,20 @@ | ||
| 1178 | 520 | height:50px; |
| 1179 | 521 | } |
| 1180 | 522 | |
| 1181 | 523 | .frm-loading-img{ |
| 1182 | - background:url(../images/ajax_loader.gif) no-repeat center center; | |
| 1183 | - padding:6px 12px; | |
| 524 | + background:url(../images/ajax_loader.gif) no-repeat center center; | |
| 525 | + padding:6px 12px; | |
| 1184 | 526 | } |
| 1185 | 527 | |
| 1186 | 528 | select.frm_loading_lookup{ |
| 1187 | - background-image: url(../images/ajax_loader.gif) !important; | |
| 1188 | - background-position: 10px; | |
| 1189 | - background-repeat: no-repeat; | |
| 1190 | - color: transparent !important; | |
| 529 | + background-image: url(../images/ajax_loader.gif) !important; | |
| 530 | + background-position: 10px; | |
| 531 | + background-repeat: no-repeat; | |
| 532 | + color: transparent !important; | |
| 1191 | 533 | } |
| 1192 | 534 | |
| 1193 | -<?php readfile( __DIR__ . '/frm_grids.css' ); ?> | |
| 535 | +<?php readfile( dirname( __FILE__ ) . '/frm_grids.css' ); ?> | |
| 1194 | 536 | |
| 1195 | 537 | .frm_conf_field.frm_left_container .frm_primary_label{ |
| 1196 | 538 | display:none; |
| 1197 | 539 | } |
| @@ -1198,75 +540,61 @@ | ||
| 1198 | 540 | |
| 1199 | 541 | .wp-editor-wrap *, |
| 1200 | 542 | .wp-editor-wrap *:after, |
| 1201 | 543 | .wp-editor-wrap *:before{ |
| 1202 | - box-sizing:content-box; | |
| 544 | + -webkit-box-sizing:content-box; | |
| 545 | + -moz-box-sizing:content-box; | |
| 546 | + box-sizing:content-box; | |
| 1203 | 547 | } |
| 1204 | 548 | |
| 1205 | 549 | .with_frm_style .frm_grid, |
| 1206 | 550 | .with_frm_style .frm_grid_first, |
| 1207 | 551 | .with_frm_style .frm_grid_odd{ |
| 1208 | - clear:both; | |
| 1209 | - margin-bottom:0 !important; | |
| 1210 | - padding:5px; | |
| 1211 | - border-width:1px; | |
| 1212 | - border-style:solid; | |
| 1213 | -<?php if ( ! empty( $defaults['border_color'] ) ) { ?> | |
| 1214 | - border-color: var(--border-color)<?php echo esc_html( $important ); ?>; | |
| 1215 | -<?php } ?> | |
| 1216 | - border-left:none; | |
| 1217 | - border-right:none; | |
| 552 | + clear:both; | |
| 553 | + margin-bottom:0 !important; | |
| 554 | + padding:5px; | |
| 555 | + border-width:1px; | |
| 556 | + border-style:solid; | |
| 557 | + border-color:<?php echo esc_html( $defaults['border_color'] ) ?>; | |
| 558 | + border-left:none; | |
| 559 | + border-right:none; | |
| 1218 | 560 | } |
| 1219 | 561 | |
| 1220 | 562 | .with_frm_style .frm_grid, |
| 1221 | 563 | .with_frm_style .frm_grid_odd{ |
| 1222 | - border-top:none; | |
| 564 | + border-top:none; | |
| 1223 | 565 | } |
| 1224 | 566 | |
| 1225 | 567 | .frm_grid .frm_error, |
| 1226 | 568 | .frm_grid_first .frm_error, |
| 1227 | -.frm_grid_odd .frm_error, | |
| 1228 | -.frm_grid .frm_limit_error, | |
| 1229 | -.frm_grid_first .frm_limit_error, | |
| 1230 | -.frm_grid_odd .frm_limit_error{ | |
| 1231 | - display:none; | |
| 569 | +.frm_grid_odd .frm_error{ | |
| 570 | + display:none; | |
| 1232 | 571 | } |
| 1233 | 572 | |
| 1234 | 573 | .frm_grid:after, |
| 1235 | 574 | .frm_grid_first:after, |
| 1236 | 575 | .frm_grid_odd:after{ |
| 1237 | - visibility:hidden; | |
| 1238 | - display:block; | |
| 1239 | - font-size:0; | |
| 1240 | - content:" "; | |
| 1241 | - clear:both; | |
| 1242 | - height:0; | |
| 576 | + visibility:hidden; | |
| 577 | + display:block; | |
| 578 | + font-size:0; | |
| 579 | + content:" "; | |
| 580 | + clear:both; | |
| 581 | + height:0; | |
| 1243 | 582 | } |
| 1244 | 583 | |
| 1245 | 584 | .frm_grid_first{ |
| 1246 | - margin-top:20px; | |
| 585 | + margin-top:20px; | |
| 1247 | 586 | } |
| 1248 | 587 | |
| 1249 | -<?php if ( ! empty( $defaults['bg_color'] ) ) { ?> | |
| 1250 | 588 | .frm_grid_first, |
| 1251 | -.frm_grid_odd { | |
| 1252 | - background-color: var(--bg-color); | |
| 589 | +.frm_grid_odd{ | |
| 590 | + background-color:<?php echo esc_html( $defaults['bg_color'] ) ?>; | |
| 1253 | 591 | } |
| 1254 | -<?php } ?> | |
| 1255 | 592 | |
| 1256 | -<?php if ( ! empty( $defaults['bg_color_active'] ) ) { ?> | |
| 1257 | -.frm_grid { | |
| 1258 | - background-color: var(--bg-color-active)<?php echo esc_html( $important ); ?>; | |
| 593 | +.frm_grid{ | |
| 594 | + background-color:<?php echo esc_html( $defaults['bg_color_active'] ); ?>; | |
| 1259 | 595 | } |
| 1260 | -<?php } ?> | |
| 1261 | 596 | |
| 1262 | -.with_frm_style .frm_grid.frm_blank_field, | |
| 1263 | -.with_frm_style .frm_grid_first.frm_blank_field, | |
| 1264 | -.with_frm_style .frm_grid_odd.frm_blank_field{ | |
| 1265 | - background-color:var(--error-bg)<?php echo esc_html( $important ); ?>; | |
| 1266 | - border-color: var(--error-border); | |
| 1267 | -} | |
| 1268 | - | |
| 1269 | 597 | .frm_grid .frm_primary_label, |
| 1270 | 598 | .frm_grid_first .frm_primary_label, |
| 1271 | 599 | .frm_grid_odd .frm_primary_label, |
| 1272 | 600 | .frm_grid .frm_radio, |
| @@ -1274,12 +602,12 @@ | ||
| 1274 | 602 | .frm_grid_odd .frm_radio, |
| 1275 | 603 | .frm_grid .frm_checkbox, |
| 1276 | 604 | .frm_grid_first .frm_checkbox, |
| 1277 | 605 | .frm_grid_odd .frm_checkbox{ |
| 1278 | - float:left !important; | |
| 1279 | - display:block; | |
| 1280 | - margin-top:0; | |
| 1281 | - margin-left:0 !important; | |
| 606 | + float:left !important; | |
| 607 | + display:block; | |
| 608 | + margin-top:0; | |
| 609 | + margin-left:0 !important; | |
| 1282 | 610 | } |
| 1283 | 611 | |
| 1284 | 612 | .frm_grid_first .frm_radio label, |
| 1285 | 613 | .frm_grid .frm_radio label, |
| @@ -1286,12 +614,11 @@ | ||
| 1286 | 614 | .frm_grid_odd .frm_radio label, |
| 1287 | 615 | .frm_grid_first .frm_checkbox label, |
| 1288 | 616 | .frm_grid .frm_checkbox label, |
| 1289 | 617 | .frm_grid_odd .frm_checkbox label{ |
| 1290 | - color:transparent; | |
| 1291 | - text-indent: -9999px; | |
| 1292 | - white-space:nowrap; | |
| 1293 | - text-align:left; | |
| 618 | + visibility:hidden; | |
| 619 | + white-space:nowrap; | |
| 620 | + text-align:left; | |
| 1294 | 621 | } |
| 1295 | 622 | |
| 1296 | 623 | .frm_grid_first .frm_radio label input, |
| 1297 | 624 | .frm_grid .frm_radio label input, |
| @@ -1298,11 +625,11 @@ | ||
| 1298 | 625 | .frm_grid_odd .frm_radio label input, |
| 1299 | 626 | .frm_grid_first .frm_checkbox label input, |
| 1300 | 627 | .frm_grid .frm_checkbox label input, |
| 1301 | 628 | .frm_grid_odd .frm_checkbox label input{ |
| 1302 | - visibility:visible; | |
| 1303 | - margin:2px 0 0; | |
| 1304 | - float:right; | |
| 629 | + visibility:visible; | |
| 630 | + margin:2px 0 0; | |
| 631 | + float:right; | |
| 1305 | 632 | } |
| 1306 | 633 | |
| 1307 | 634 | .frm_grid .frm_radio, |
| 1308 | 635 | .frm_grid_first .frm_radio, |
| @@ -1309,106 +636,106 @@ | ||
| 1309 | 636 | .frm_grid_odd .frm_radio, |
| 1310 | 637 | .frm_grid .frm_checkbox, |
| 1311 | 638 | .frm_grid_first .frm_checkbox, |
| 1312 | 639 | .frm_grid_odd .frm_checkbox{ |
| 1313 | - display:inline; | |
| 640 | + display:inline; | |
| 1314 | 641 | } |
| 1315 | 642 | |
| 1316 | 643 | .frm_grid_2 .frm_radio, |
| 1317 | 644 | .frm_grid_2 .frm_checkbox, |
| 1318 | 645 | .frm_grid_2 .frm_primary_label{ |
| 1319 | - width:48% !important; | |
| 646 | + width:48% !important; | |
| 1320 | 647 | } |
| 1321 | 648 | |
| 1322 | 649 | .frm_grid_2 .frm_radio, |
| 1323 | 650 | .frm_grid_2 .frm_checkbox{ |
| 1324 | - margin-right:4%; | |
| 651 | + margin-right:4%; | |
| 1325 | 652 | } |
| 1326 | 653 | |
| 1327 | 654 | .frm_grid_3 .frm_radio, |
| 1328 | 655 | .frm_grid_3 .frm_checkbox, |
| 1329 | 656 | .frm_grid_3 .frm_primary_label{ |
| 1330 | - width:30% !important; | |
| 657 | + width:30% !important; | |
| 1331 | 658 | } |
| 1332 | 659 | |
| 1333 | 660 | .frm_grid_3 .frm_radio, |
| 1334 | 661 | .frm_grid_3 .frm_checkbox{ |
| 1335 | - margin-right:3%; | |
| 662 | + margin-right:3%; | |
| 1336 | 663 | } |
| 1337 | 664 | |
| 1338 | 665 | .frm_grid_4 .frm_radio, |
| 1339 | 666 | .frm_grid_4 .frm_checkbox{ |
| 1340 | - width:20% !important; | |
| 667 | + width:20% !important; | |
| 1341 | 668 | } |
| 1342 | 669 | |
| 1343 | 670 | .frm_grid_4 .frm_primary_label{ |
| 1344 | - width:28% !important; | |
| 671 | + width:28% !important; | |
| 1345 | 672 | } |
| 1346 | 673 | |
| 1347 | 674 | .frm_grid_4 .frm_radio, |
| 1348 | 675 | .frm_grid_4 .frm_checkbox{ |
| 1349 | - margin-right:4%; | |
| 676 | + margin-right:4%; | |
| 1350 | 677 | } |
| 1351 | 678 | |
| 1352 | 679 | .frm_grid_5 .frm_primary_label, |
| 1353 | 680 | .frm_grid_7 .frm_primary_label{ |
| 1354 | - width:24% !important; | |
| 681 | + width:24% !important; | |
| 1355 | 682 | } |
| 1356 | 683 | |
| 1357 | 684 | .frm_grid_5 .frm_radio, |
| 1358 | 685 | .frm_grid_5 .frm_checkbox{ |
| 1359 | - width:17% !important; | |
| 1360 | - margin-right:2%; | |
| 686 | + width:17% !important; | |
| 687 | + margin-right:2%; | |
| 1361 | 688 | } |
| 1362 | 689 | |
| 1363 | 690 | .frm_grid_6 .frm_primary_label{ |
| 1364 | - width:25% !important; | |
| 691 | + width:25% !important; | |
| 1365 | 692 | } |
| 1366 | 693 | |
| 1367 | 694 | .frm_grid_6 .frm_radio, |
| 1368 | 695 | .frm_grid_6 .frm_checkbox{ |
| 1369 | - width:14% !important; | |
| 1370 | - margin-right:1%; | |
| 696 | + width:14% !important; | |
| 697 | + margin-right:1%; | |
| 1371 | 698 | } |
| 1372 | 699 | |
| 1373 | 700 | .frm_grid_7 .frm_primary_label{ |
| 1374 | - width:22% !important; | |
| 701 | + width:22% !important; | |
| 1375 | 702 | } |
| 1376 | 703 | |
| 1377 | 704 | .frm_grid_7 .frm_radio, |
| 1378 | 705 | .frm_grid_7 .frm_checkbox{ |
| 1379 | - width:12% !important; | |
| 1380 | - margin-right:1%; | |
| 706 | + width:12% !important; | |
| 707 | + margin-right:1%; | |
| 1381 | 708 | } |
| 1382 | 709 | |
| 1383 | 710 | .frm_grid_8 .frm_primary_label{ |
| 1384 | - width:23% !important; | |
| 711 | + width:23% !important; | |
| 1385 | 712 | } |
| 1386 | 713 | |
| 1387 | 714 | .frm_grid_8 .frm_radio, |
| 1388 | 715 | .frm_grid_8 .frm_checkbox{ |
| 1389 | - width:10% !important; | |
| 1390 | - margin-right:1%; | |
| 716 | + width:10% !important; | |
| 717 | + margin-right:1%; | |
| 1391 | 718 | } |
| 1392 | 719 | |
| 1393 | 720 | .frm_grid_9 .frm_primary_label{ |
| 1394 | - width:20% !important; | |
| 721 | + width:20% !important; | |
| 1395 | 722 | } |
| 1396 | 723 | |
| 1397 | 724 | .frm_grid_9 .frm_radio, |
| 1398 | 725 | .frm_grid_9 .frm_checkbox{ |
| 1399 | - width:9% !important; | |
| 1400 | - margin-right:1%; | |
| 726 | + width:9% !important; | |
| 727 | + margin-right:1%; | |
| 1401 | 728 | } |
| 1402 | 729 | |
| 1403 | 730 | .frm_grid_10 .frm_primary_label{ |
| 1404 | - width:19% !important; | |
| 731 | + width:19% !important; | |
| 1405 | 732 | } |
| 1406 | 733 | |
| 1407 | 734 | .frm_grid_10 .frm_radio, |
| 1408 | 735 | .frm_grid_10 .frm_checkbox{ |
| 1409 | - width:8% !important; | |
| 1410 | - margin-right:1%; | |
| 736 | + width:8% !important; | |
| 737 | + margin-right:1%; | |
| 1411 | 738 | } |
| 1412 | 739 | |
| 1413 | 740 | .frm_form_field.frm_inline_container .frm_opt_container, |
| 1414 | 741 | .frm_form_field.frm_right_container .frm_opt_container, |
| @@ -1415,18 +742,8 @@ | ||
| 1415 | 742 | .frm_form_field.frm_left_container .frm_opt_container{ |
| 1416 | 743 | padding-top:4px; |
| 1417 | 744 | } |
| 1418 | 745 | |
| 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 | 746 | .with_frm_style .frm_inline_container.frm_grid_first .frm_primary_label, |
| 1430 | 747 | .with_frm_style .frm_inline_container.frm_grid .frm_primary_label, |
| 1431 | 748 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label, |
| 1432 | 749 | .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container, |
| @@ -1431,18 +748,18 @@ | ||
| 1431 | 748 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_primary_label, |
| 1432 | 749 | .with_frm_style .frm_inline_container.frm_grid_first .frm_opt_container, |
| 1433 | 750 | .with_frm_style .frm_inline_container.frm_grid .frm_opt_container, |
| 1434 | 751 | .with_frm_style .frm_inline_container.frm_grid_odd .frm_opt_container{ |
| 1435 | - margin-right:0; | |
| 752 | + margin-right:0; | |
| 1436 | 753 | } |
| 1437 | 754 | |
| 1438 | 755 | .frm_form_field.frm_two_col .frm_opt_container, |
| 1439 | 756 | .frm_form_field.frm_three_col .frm_opt_container, |
| 1440 | 757 | .frm_form_field.frm_four_col .frm_opt_container{ |
| 1441 | - display: grid; | |
| 1442 | - grid-template-columns: repeat(2, 1fr); | |
| 1443 | - grid-auto-rows: max-content; | |
| 1444 | - grid-gap: 0 2.5%; | |
| 758 | + display: grid; | |
| 759 | + grid-template-columns: repeat(2, 1fr); | |
| 760 | + grid-auto-rows: max-content; | |
| 761 | + grid-gap: 0 2.5%; | |
| 1445 | 762 | } |
| 1446 | 763 | |
| 1447 | 764 | .frm_form_field.frm_three_col .frm_opt_container{ |
| 1448 | 765 | grid-template-columns: repeat(3, 1fr); |
| @@ -1457,71 +774,74 @@ | ||
| 1457 | 774 | .frm_form_field.frm_three_col .frm_radio, |
| 1458 | 775 | .frm_form_field.frm_three_col .frm_checkbox, |
| 1459 | 776 | .frm_form_field.frm_four_col .frm_radio, |
| 1460 | 777 | .frm_form_field.frm_four_col .frm_checkbox{ |
| 1461 | - grid-column-end: span 1; | |
| 778 | + grid-column-end: span 1; | |
| 1462 | 779 | } |
| 1463 | 780 | |
| 1464 | 781 | .frm_form_field .frm_checkbox, |
| 1465 | -.frm_form_field .frm_radio { | |
| 782 | +.frm_form_field .frm_checkbox + .frm_checkbox, | |
| 783 | +.frm_form_field .frm_radio, | |
| 784 | +.frm_form_field .frm_radio + .frm_radio{ | |
| 1466 | 785 | margin-top: 0; |
| 1467 | 786 | margin-bottom: 0; |
| 1468 | 787 | } |
| 1469 | 788 | |
| 1470 | 789 | .frm_form_field.frm_scroll_box .frm_opt_container{ |
| 1471 | - height:100px; | |
| 1472 | - overflow:auto; | |
| 790 | + height:100px; | |
| 791 | + overflow:auto; | |
| 1473 | 792 | } |
| 1474 | 793 | |
| 1475 | 794 | .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); | |
| 795 | +.frm_form_field.frm_html_scroll_box{ | |
| 796 | + height:100px; | |
| 797 | + overflow:auto; | |
| 798 | + background-color:<?php echo esc_html( $defaults['bg_color'] ) ?>; | |
| 799 | + border-color:<?php echo esc_html( $defaults['border_color'] ) ?>; | |
| 800 | + border-width:<?php echo esc_html( $defaults['field_border_width'] ) ?>; | |
| 801 | + border-style:<?php echo esc_html( $defaults['field_border_style'] ) ?>; | |
| 802 | + -moz-border-radius:<?php echo esc_html( $defaults['border_radius'] ) ?>; | |
| 803 | + -webkit-border-radius:<?php echo esc_html( $defaults['border_radius'] ) ?>; | |
| 804 | + border-radius:<?php echo esc_html( $defaults['border_radius'] ) ?>; | |
| 805 | + width:<?php echo esc_html( $defaults['field_width'] == '' ? 'auto' : $defaults['field_width'] ) ?>; | |
| 806 | + max-width:100%; | |
| 807 | + font-size:<?php echo esc_html( $defaults['field_font_size'] ) ?>; | |
| 808 | + padding:<?php echo esc_html( $defaults['field_pad'] ) ?>; | |
| 809 | + -webkit-box-sizing:border-box; | |
| 810 | + -moz-box-sizing:border-box; | |
| 811 | + box-sizing:border-box; | |
| 812 | + outline:none; | |
| 813 | + font-weight:normal; | |
| 814 | + box-shadow:0 1px 1px rgba(0, 0, 0, 0.075) inset; | |
| 1492 | 815 | } |
| 1493 | 816 | |
| 1494 | -.frm_form_field.frm_total_big input, | |
| 1495 | -.frm_form_field.frm_total_big textarea, | |
| 1496 | 817 | .frm_form_field.frm_total input, |
| 1497 | 818 | .frm_form_field.frm_total textarea{ |
| 1498 | - opacity:1; | |
| 1499 | - background-color:transparent !important; | |
| 1500 | - border:none !important; | |
| 1501 | - font-weight:bold; | |
| 1502 | - width:auto !important; | |
| 1503 | - height:auto !important; | |
| 1504 | - box-shadow:none !important; | |
| 1505 | - display:inline; | |
| 819 | + opacity:1; | |
| 820 | + background-color:transparent !important; | |
| 821 | + border:none !important; | |
| 822 | + font-weight:bold; | |
| 823 | + -moz-box-shadow:none; | |
| 824 | + -webkit-box-shadow:none; | |
| 825 | + width:auto !important; | |
| 826 | + box-shadow:none !important; | |
| 827 | + display:inline; | |
| 1506 | 828 | -moz-appearance:textfield; |
| 1507 | 829 | padding:0; |
| 1508 | 830 | } |
| 1509 | 831 | |
| 1510 | -.frm_form_field.frm_total_big input::-webkit-outer-spin-button, | |
| 1511 | -.frm_form_field.frm_total_big input::-webkit-inner-spin-button, | |
| 1512 | 832 | .frm_form_field.frm_total input::-webkit-outer-spin-button, |
| 1513 | 833 | .frm_form_field.frm_total input::-webkit-inner-spin-button { |
| 1514 | - -webkit-appearance: none; | |
| 834 | + -webkit-appearance: none; | |
| 1515 | 835 | } |
| 1516 | 836 | |
| 1517 | -.frm_form_field.frm_total_big input:focus, | |
| 1518 | -.frm_form_field.frm_total_big textarea:focus, | |
| 1519 | 837 | .frm_form_field.frm_total input:focus, |
| 1520 | 838 | .frm_form_field.frm_total textarea:focus{ |
| 1521 | - background-color:transparent; | |
| 1522 | - border:none; | |
| 1523 | - box-shadow:none; | |
| 839 | + background-color:transparent; | |
| 840 | + border:none; | |
| 841 | + -moz-box-shadow:none; | |
| 842 | + -webkit-box-shadow:none; | |
| 843 | + box-shadow:none; | |
| 1524 | 844 | } |
| 1525 | 845 | |
| 1526 | 846 | .frm_form_field.frm_label_justify .frm_primary_label{ |
| 1527 | 847 | text-align:justify !important; |
| @@ -1529,74 +849,61 @@ | ||
| 1529 | 849 | |
| 1530 | 850 | .frm_form_field.frm_capitalize input, |
| 1531 | 851 | .frm_form_field.frm_capitalize select, |
| 1532 | 852 | .frm_form_field.frm_capitalize .frm_opt_container label{ |
| 1533 | - text-transform:capitalize; | |
| 853 | + text-transform:capitalize; | |
| 1534 | 854 | } |
| 1535 | 855 | |
| 1536 | 856 | .frm_clearfix:after{ |
| 1537 | - content:"."; | |
| 1538 | - display:block; | |
| 1539 | - clear:both; | |
| 1540 | - visibility:hidden; | |
| 1541 | - line-height:0; | |
| 1542 | - height:0; | |
| 857 | + content:"."; | |
| 858 | + display:block; | |
| 859 | + clear:both; | |
| 860 | + visibility:hidden; | |
| 861 | + line-height:0; | |
| 862 | + height:0; | |
| 1543 | 863 | } |
| 1544 | 864 | |
| 1545 | 865 | .frm_clearfix{ |
| 1546 | - display:block; | |
| 866 | + display:block; | |
| 1547 | 867 | } |
| 1548 | 868 | |
| 1549 | -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first, | |
| 1550 | -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle, | |
| 1551 | -.with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last { | |
| 1552 | - margin-bottom: 0 !important; | |
| 869 | +/* Fonts */ | |
| 870 | +@font-face { | |
| 871 | + font-family:'s11-fp'; | |
| 872 | + src:url('../fonts/s11-fp.eot?v=<?php echo esc_attr( FrmAppHelper::$font_version ); ?>'); | |
| 873 | + src:local('☺'), url('../fonts/s11-fp.woff?v=<?php echo esc_attr( FrmAppHelper::$font_version ); ?>') format('woff'), url('../fonts/s11-fp.ttf?v=<?php echo esc_attr( FrmAppHelper::$font_version ); ?>') format('truetype'), url('../fonts/s11-fp.svg?v=<?php echo esc_attr( FrmAppHelper::$font_version ); ?>') format('svg'); | |
| 874 | + font-weight:normal; | |
| 875 | + font-style:normal; | |
| 1553 | 876 | } |
| 1554 | 877 | |
| 878 | +<?php readfile( FrmAppHelper::plugin_path() . '/css/font_icons.css' ); ?> | |
| 879 | +<?php do_action( 'frm_include_front_css', compact( 'defaults' ) ); ?> | |
| 1555 | 880 | |
| 1556 | -<?php | |
| 1557 | -/** | |
| 1558 | - * Call action so other plugins can add additional CSS. | |
| 1559 | - * | |
| 1560 | - * @param array $args { | |
| 1561 | - * | |
| 1562 | - * @type array $defaults | |
| 1563 | - * } | |
| 1564 | - */ | |
| 1565 | -do_action( 'frm_include_front_css', compact( 'defaults' ) ); | |
| 1566 | -?> | |
| 1567 | - | |
| 1568 | 881 | /* Responsive */ |
| 1569 | - | |
| 1570 | 882 | @media only screen and (max-width: 900px) { |
| 1571 | 883 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_sixth .frm_primary_label, |
| 1572 | 884 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_seventh .frm_primary_label, |
| 1573 | 885 | .frm_form_field .frm_repeat_grid .frm_form_field.frm_eighth .frm_primary_label{ |
| 1574 | - display: block !important; | |
| 886 | + display: block !important; | |
| 1575 | 887 | } |
| 1576 | 888 | } |
| 1577 | 889 | |
| 1578 | 890 | @media only screen and (max-width: 600px) { |
| 1579 | - .frm_form_field.frm_four_col .frm_opt_container{ | |
| 1580 | - grid-template-columns: repeat(2, 1fr); | |
| 1581 | - } | |
| 1582 | - | |
| 1583 | - .with_frm_style .frm_repeat_inline, | |
| 1584 | - .with_frm_style .frm_repeat_grid{ | |
| 1585 | - margin: 20px 0; | |
| 1586 | - } | |
| 891 | + .frm_form_field.frm_four_col .frm_opt_container{ | |
| 892 | + grid-template-columns: repeat(2, 1fr); | |
| 893 | + } | |
| 1587 | 894 | } |
| 1588 | 895 | |
| 1589 | 896 | @media only screen and (max-width: 500px) { |
| 1590 | - .frm_form_field.frm_two_col .frm_radio, | |
| 1591 | - .frm_form_field.frm_two_col .frm_checkbox, | |
| 1592 | - .frm_form_field.frm_three_col .frm_radio, | |
| 1593 | - .frm_form_field.frm_three_col .frm_checkbox{ | |
| 1594 | - width: auto; | |
| 1595 | - margin-right: 0; | |
| 1596 | - float: none; | |
| 1597 | - display:block; | |
| 1598 | - } | |
| 897 | + .frm_form_field.frm_two_col .frm_radio, | |
| 898 | + .frm_form_field.frm_two_col .frm_checkbox, | |
| 899 | + .frm_form_field.frm_three_col .frm_radio, | |
| 900 | + .frm_form_field.frm_three_col .frm_checkbox{ | |
| 901 | + width: auto; | |
| 902 | + margin-right: 0; | |
| 903 | + float: none; | |
| 904 | + display:block; | |
| 905 | + } | |
| 1599 | 906 | |
| 1600 | 907 | .frm_form_field input[type=file] { |
| 1601 | 908 | max-width:220px; |
| 1602 | 909 | } |
| @@ -1609,8 +916,9 @@ | ||
| 1609 | 916 | max-width:302px; |
| 1610 | 917 | border-right:1px solid #d3d3d3; |
| 1611 | 918 | border-radius:4px; |
| 1612 | 919 | box-shadow:2px 0px 4px -1px rgba(0,0,0,.08); |
| 920 | + -moz-box-shadow:2px 0px 4px -1px rgba(0,0,0,.08); | |
| 1613 | 921 | } |
| 1614 | 922 | |
| 1615 | 923 | .with_frm_style .g-recaptcha iframe, |
| 1616 | 924 | .with_frm_style .frm-g-recaptcha iframe{ |
| @@ -1616,14 +924,12 @@ | ||
| 1616 | 924 | .with_frm_style .frm-g-recaptcha iframe{ |
| 1617 | 925 | width:100%; |
| 1618 | 926 | } |
| 1619 | 927 | } |
| 928 | +<?php | |
| 1620 | 929 | |
| 1621 | -.frm-card-element .sq-card-wrapper .sq-card-message { | |
| 1622 | - margin-bottom: 0; | |
| 930 | +$frm_settings = FrmAppHelper::get_settings(); | |
| 931 | +if ( $frm_settings->old_css ) { | |
| 932 | + readfile( dirname( __FILE__ ) . '/frm_old_grids.css' ); | |
| 1623 | 933 | } |
| 1624 | -.frm-card-errors:empty { | |
| 1625 | - margin: 0; | |
| 1626 | -} | |
| 1627 | -<?php | |
| 1628 | 934 | |
| 1629 | -echo strip_tags( FrmStylesController::get_custom_css() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 935 | +echo strip_tags( $defaults['custom_css'] ); // WPCS: XSS ok. | |