| @@ -18,13 +18,19 @@ | ||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | $styles = $frm_style->get_all(); |
| 21 | 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 | 22 | $pro_is_installed = FrmAppHelper::pro_is_installed(); |
| 25 | -$use_chosen_js = FrmStylesHelper::use_chosen_js(); | |
| 26 | 23 | |
| 24 | +if ( ! $pro_is_installed && $default_style ) { | |
| 25 | + // Per-form styles are a Pro feature, so only the default style is ever used without Pro. | |
| 26 | + $styles = array( $default_style->ID => $default_style ); | |
| 27 | +} | |
| 28 | + | |
| 29 | +$defaults = FrmStylesHelper::get_settings_for_output( $default_style ); | |
| 30 | +$important = ! empty( $defaults['important_style'] ) ? ' !important' : ''; | |
| 31 | +$use_chosen_js = FrmStylesHelper::use_chosen_js(); | |
| 32 | + | |
| 27 | 33 | ?> |
| 28 | 34 | .with_frm_style{ |
| 29 | 35 | <?php FrmStylesHelper::output_vars( $defaults ); ?> |
| 30 | 36 | } |
| @@ -142,13 +148,14 @@ | ||
| 142 | 148 | color: var(--form-desc-color)<?php echo esc_html( $important ); ?>; |
| 143 | 149 | <?php } ?> |
| 144 | 150 | } |
| 145 | 151 | |
| 152 | +.with_frm_style .frm_form_field.frm_html_container{ | |
| 146 | 153 | <?php if ( ! empty( $defaults['form_desc_size'] ) ) { ?> |
| 147 | -.with_frm_style .frm_form_field.frm_html_container{ | |
| 148 | 154 | font-size: var(--form-desc-size)<?php echo esc_html( $important ); ?>; |
| 155 | +<?php } ?> | |
| 156 | + overflow-wrap: break-word<?php echo esc_html( $important ); ?>; | |
| 149 | 157 | } |
| 150 | -<?php } ?> | |
| 151 | 158 | |
| 152 | 159 | .with_frm_style .frm_form_field .frm_show_it{ |
| 153 | 160 | <?php if ( ! empty( $defaults['field_font_size'] ) ) { ?> |
| 154 | 161 | font-size: var(--field-font-size)<?php echo esc_html( $important ); ?>; |
| @@ -567,9 +574,8 @@ | ||
| 567 | 574 | <?php } else { ?> |
| 568 | 575 | padding:5px; |
| 569 | 576 | <?php } ?> |
| 570 | 577 | <?php if ( ! empty( $defaults['border_radius'] ) ) { ?> |
| 571 | - border-radius:<?php echo esc_html( $defaults['border_radius'] . $important ); ?>; | |
| 572 | 578 | border-radius:var(--border-radius)<?php echo esc_html( $important ); ?>; |
| 573 | 579 | <?php } ?> |
| 574 | 580 | <?php if ( ! empty( $defaults['submit_font_size'] ) ) { ?> |
| 575 | 581 | font-size: var(--submit-font-size)<?php echo esc_html( $important ); ?>; |
| @@ -1356,105 +1362,8 @@ | ||
| 1356 | 1362 | .frm_grid .frm_checkbox, |
| 1357 | 1363 | .frm_grid_first .frm_checkbox, |
| 1358 | 1364 | .frm_grid_odd .frm_checkbox{ |
| 1359 | 1365 | display:inline; |
| 1360 | -} | |
| 1361 | - | |
| 1362 | -.frm_grid_2 .frm_radio, | |
| 1363 | -.frm_grid_2 .frm_checkbox, | |
| 1364 | -.frm_grid_2 .frm_primary_label{ | |
| 1365 | - width:48% !important; | |
| 1366 | -} | |
| 1367 | - | |
| 1368 | -.frm_grid_2 .frm_radio, | |
| 1369 | -.frm_grid_2 .frm_checkbox{ | |
| 1370 | - margin-right:4%; | |
| 1371 | -} | |
| 1372 | - | |
| 1373 | -.frm_grid_3 .frm_radio, | |
| 1374 | -.frm_grid_3 .frm_checkbox, | |
| 1375 | -.frm_grid_3 .frm_primary_label{ | |
| 1376 | - width:30% !important; | |
| 1377 | -} | |
| 1378 | - | |
| 1379 | -.frm_grid_3 .frm_radio, | |
| 1380 | -.frm_grid_3 .frm_checkbox{ | |
| 1381 | - margin-right:3%; | |
| 1382 | -} | |
| 1383 | - | |
| 1384 | -.frm_grid_4 .frm_radio, | |
| 1385 | -.frm_grid_4 .frm_checkbox{ | |
| 1386 | - width:20% !important; | |
| 1387 | -} | |
| 1388 | - | |
| 1389 | -.frm_grid_4 .frm_primary_label{ | |
| 1390 | - width:28% !important; | |
| 1391 | -} | |
| 1392 | - | |
| 1393 | -.frm_grid_4 .frm_radio, | |
| 1394 | -.frm_grid_4 .frm_checkbox{ | |
| 1395 | - margin-right:4%; | |
| 1396 | -} | |
| 1397 | - | |
| 1398 | -.frm_grid_5 .frm_primary_label, | |
| 1399 | -.frm_grid_7 .frm_primary_label{ | |
| 1400 | - width:24% !important; | |
| 1401 | -} | |
| 1402 | - | |
| 1403 | -.frm_grid_5 .frm_radio, | |
| 1404 | -.frm_grid_5 .frm_checkbox{ | |
| 1405 | - width:17% !important; | |
| 1406 | - margin-right:2%; | |
| 1407 | -} | |
| 1408 | - | |
| 1409 | -.frm_grid_6 .frm_primary_label{ | |
| 1410 | - width:25% !important; | |
| 1411 | -} | |
| 1412 | - | |
| 1413 | -.frm_grid_6 .frm_radio, | |
| 1414 | -.frm_grid_6 .frm_checkbox{ | |
| 1415 | - width:14% !important; | |
| 1416 | - margin-right:1%; | |
| 1417 | -} | |
| 1418 | - | |
| 1419 | -.frm_grid_7 .frm_primary_label{ | |
| 1420 | - width:22% !important; | |
| 1421 | -} | |
| 1422 | - | |
| 1423 | -.frm_grid_7 .frm_radio, | |
| 1424 | -.frm_grid_7 .frm_checkbox{ | |
| 1425 | - width:12% !important; | |
| 1426 | - margin-right:1%; | |
| 1427 | -} | |
| 1428 | - | |
| 1429 | -.frm_grid_8 .frm_primary_label{ | |
| 1430 | - width:23% !important; | |
| 1431 | -} | |
| 1432 | - | |
| 1433 | -.frm_grid_8 .frm_radio, | |
| 1434 | -.frm_grid_8 .frm_checkbox{ | |
| 1435 | - width:10% !important; | |
| 1436 | - margin-right:1%; | |
| 1437 | -} | |
| 1438 | - | |
| 1439 | -.frm_grid_9 .frm_primary_label{ | |
| 1440 | - width:20% !important; | |
| 1441 | -} | |
| 1442 | - | |
| 1443 | -.frm_grid_9 .frm_radio, | |
| 1444 | -.frm_grid_9 .frm_checkbox{ | |
| 1445 | - width:9% !important; | |
| 1446 | - margin-right:1%; | |
| 1447 | -} | |
| 1448 | - | |
| 1449 | -.frm_grid_10 .frm_primary_label{ | |
| 1450 | - width:19% !important; | |
| 1451 | -} | |
| 1452 | - | |
| 1453 | -.frm_grid_10 .frm_radio, | |
| 1454 | -.frm_grid_10 .frm_checkbox{ | |
| 1455 | - width:8% !important; | |
| 1456 | - margin-right:1%; | |
| 1457 | 1366 | } |
| 1458 | 1367 | |
| 1459 | 1368 | .frm_form_field.frm_inline_container .frm_opt_container, |
| 1460 | 1369 | .frm_form_field.frm_right_container .frm_opt_container, |