- Small improvement to the default style emitted by theme_form_element().

4.4.x
Dries Buytaert 2003-11-17 19:24:39 +00:00
parent fff2f548ac
commit 7a2514e789
2 changed files with 4 additions and 3 deletions

View File

@ -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";
}
/**

View File

@ -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;