diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-17 19:24:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-17 19:24:39 +0000 |
commit | 7a2514e789126279fb3b6964b887cdffb8c5673f (patch) | |
tree | 3bfe1cb843ed452799224e8a20004875a7f3a5b6 | |
parent | fff2f548ac77ac06da132edb013f2e7456cf4393 (diff) | |
download | brdo-7a2514e789126279fb3b6964b887cdffb8c5673f.tar.gz brdo-7a2514e789126279fb3b6964b887cdffb8c5673f.tar.bz2 |
- Small improvement to the default style emitted by theme_form_element().
-rw-r--r-- | includes/theme.inc | 2 | ||||
-rw-r--r-- | misc/drupal.css | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 6dfff30bd..46274ba8d 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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"; } /** diff --git a/misc/drupal.css b/misc/drupal.css index 06f2b8584..4c478e5be 100644 --- a/misc/drupal.css +++ b/misc/drupal.css @@ -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; |