- Small improvement to the default style emitted by theme_form_element().
parent
fff2f548ac
commit
7a2514e789
|
|
@ -156,7 +156,7 @@ function _theme_table_cell($cell, $header = 0) {
|
|||
**/
|
||||
|
||||
function theme_form_element($title, $value, $description = 0) {
|
||||
return "<div class=\"form-item\">". ($title ? "<label>$title:</label>" : "") . $value . ($description ? "<div class=\"description\">$description</div>" : "") ."</div>\n";
|
||||
return "<div class=\"form-item\">". ($title ? "<label>$title:</label><br />" : "") . $value . ($description ? "<div class=\"description\">$description</div>" : "") ."</div>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -110,13 +110,14 @@ fieldset {
|
|||
.container-inline .form-submit {
|
||||
margin: 0;
|
||||
}
|
||||
.form-item {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.form-item .description {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
.form-item label {
|
||||
font-weight: bold;
|
||||
margin-top: 1.1em;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.form-submit {
|
||||
margin: 0.5em 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue