Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions css/_single_theme.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
$pro_is_installed = $pro_is_installed ?? FrmAppHelper::pro_is_installed();
?>
.<?php echo esc_html( $style_class ); ?>{
<?php FrmStylesHelper::output_vars( $settings, $defaults ); ?>
<?php
FrmStylesHelper::output_vars( $settings, $defaults );

if ( ! $submit_style && ! empty( $font ) ) {
echo '--frm-submit-font-family:var(--font);';
}
?>
}

.frm_forms.<?php echo esc_html( $style_class ); ?>{
Expand Down Expand Up @@ -210,7 +216,7 @@
.frm_form_submit_style {
width:var(--submit-width,<?php echo esc_html( '' === $submit_width ? 'auto' : $submit_width ); ?>)<?php echo esc_html( $important ); ?>;
<?php if ( ! empty( $font ) ) { ?>
font-family:var(--font,<?php FrmAppHelper::kses_echo( $font ); ?>);
font-family:var(--frm-submit-font-family,<?php FrmAppHelper::kses_echo( $font ); ?>);
<?php } ?>
<?php
// These use CSS variables so the styler preview can update them without new CSS from the server.
Expand Down