Skip to content

Commit

Permalink
Fix border styles for underline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdiTolesa committed Oct 4, 2024
1 parent 90cd8b1 commit dadfde2
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions css/_single_theme.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,29 @@
}

<?php if ( FrmAppHelper::pro_is_installed() ) : ?>
.<?php echo esc_html( $style_class ); ?> .frm_scale label{
<?php if ( ! empty( $check_weight ) ) { ?>
font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
<?php } ?>
<?php if ( ! empty( $font ) ) { ?>
font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
<?php } ?>
<?php if ( ! empty( $check_font_size ) ) { ?>
font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
<?php } ?>
<?php if ( ! empty( $check_label_color ) ) { ?>
color:<?php echo esc_html( $check_label_color . $important ); ?>;
.<?php echo esc_html( $style_class ); ?> .frm_scale label{
<?php if ( ! empty( $check_weight ) ) { ?>
font-weight:<?php echo esc_html( $check_weight . $important ); ?>;
<?php } ?>
<?php if ( ! empty( $font ) ) { ?>
font-family:<?php echo FrmAppHelper::kses( $font . $important ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
<?php } ?>
<?php if ( ! empty( $check_font_size ) ) { ?>
font-size:<?php echo esc_html( $check_font_size . $important ); ?>;
<?php } ?>
<?php if ( ! empty( $check_label_color ) ) { ?>
color:<?php echo esc_html( $check_label_color . $important ); ?>;
<?php } ?>
}
<?php
if ( ! empty( $field_border_width ) && false !== strpos( $field_border_width, ' ' ) ) {
$border_width = explode( ' ', str_replace( 'px', '', $field_border_width ) );
$border_width = max( $border_width ) . 'px';
?>
.<?php echo esc_html( $style_class ); ?> .frm_image_options .frm_image_option_container {
border-width:<?php echo esc_html( $border_width . $important ); ?>;
}
<?php } ?>
}
<?php endif; ?>

/* These do not work if they are combined */
Expand Down

0 comments on commit dadfde2

Please sign in to comment.