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