Commit 7a2514e7 authored by Dries's avatar Dries

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

parent fff2f548
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment