mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed custom styles for row;
This commit is contained in:
@@ -112,6 +112,10 @@ div.uimob800 .um-account-side li a.current:hover
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
.um .um-row.um-customized-row .um-field-label {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.um .um-form input[type=text],
|
||||
.um .um-form input[type=tel],
|
||||
.um .um-form input[type=number],
|
||||
|
||||
@@ -248,7 +248,9 @@ if ( $form_field_label ) {
|
||||
.um .um-field-label {
|
||||
color: $form_field_label;
|
||||
}
|
||||
";
|
||||
.um .um-row.um-customized-row .um-field-label {
|
||||
color: inherit;
|
||||
} ";
|
||||
}
|
||||
|
||||
$form_border = UM()->options()->get( 'form_border' );
|
||||
|
||||
@@ -4017,19 +4017,34 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$css_text_color = '';
|
||||
|
||||
// row css rules
|
||||
if ($padding) $css_padding = 'padding: ' . $padding . ';';
|
||||
if ($margin) {
|
||||
if ( $padding ) {
|
||||
$css_padding = 'padding: ' . $padding . ';';
|
||||
}
|
||||
if ( $margin ) {
|
||||
$css_margin = 'margin: ' . $margin . ';';
|
||||
} else {
|
||||
$css_margin = 'margin: 0 0 30px 0;';
|
||||
}
|
||||
|
||||
if ($background) $css_background = 'background-color: ' . $background . ';';
|
||||
if ($borderradius) $css_borderradius = 'border-radius: 0px 0px ' . $borderradius . ' ' . $borderradius . ';';
|
||||
if ($border) $css_border = 'border-width: ' . $border . ';';
|
||||
if ($bordercolor) $css_bordercolor = 'border-color: ' . $bordercolor . ';';
|
||||
if ($borderstyle) $css_borderstyle = 'border-style: ' . $borderstyle . ';';
|
||||
if ($text_color) $css_text_color = 'color: ' . $text_color . ' !important;';
|
||||
if ( $background ) {
|
||||
$css_background = 'background-color: ' . $background . ';';
|
||||
}
|
||||
if ( $borderradius ) {
|
||||
$css_borderradius = 'border-radius: 0px 0px ' . $borderradius . ' ' . $borderradius . ';';
|
||||
}
|
||||
if ( $border ) {
|
||||
$css_border = 'border-width: ' . $border . ';';
|
||||
}
|
||||
if ( $bordercolor ) {
|
||||
$css_bordercolor = 'border-color: ' . $bordercolor . ';';
|
||||
}
|
||||
if ( $borderstyle ) {
|
||||
$css_borderstyle = 'border-style: ' . $borderstyle . ';';
|
||||
}
|
||||
if ( $text_color ) {
|
||||
$css_text_color = 'color: ' . $text_color . ' !important;';
|
||||
$css_class .= ' um-customized-row';
|
||||
}
|
||||
|
||||
// show the heading
|
||||
if ( $heading ) {
|
||||
|
||||
Reference in New Issue
Block a user