From cb002abcc3b7990edf29e755e4a6f3e2d8722caf Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 5 Sep 2009 06:07:58 +0000 Subject: [PATCH] - Patch #412030 by stBorchert: fixed placement of descriptions on radios. --- modules/comment/comment.module | 8 ++++---- modules/system/system.css | 3 +++ themes/seven/style.css | 4 ++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 4d5dcd0e3f96..b17d3c71ffa1 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1023,7 +1023,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { COMMENT_NODE_OPEN => array( '#type' => 'radio', '#title' => t('Open'), - '#description' => theme('indentation') . t('Users with the "Post comments" permission can post comments.'), + '#description' => t('Users with the "Post comments" permission can post comments.'), '#return_value' => COMMENT_NODE_OPEN, '#default_value' => $comment_settings, '#id' => 'edit-comment-2', @@ -1032,7 +1032,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { COMMENT_NODE_CLOSED => array( '#type' => 'radio', '#title' => t('Closed'), - '#description' => theme('indentation') . t('Users cannot post comments, but existing comments will be displayed.'), + '#description' => t('Users cannot post comments, but existing comments will be displayed.'), '#return_value' => COMMENT_NODE_CLOSED, '#default_value' => $comment_settings, '#id' => 'edit-comment-1', @@ -1041,7 +1041,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { COMMENT_NODE_HIDDEN => array( '#type' => 'radio', '#title' => t('Hidden'), - '#description' => theme('indentation') . t('Comments are hidden from view.'), + '#description' => t('Comments are hidden from view.'), '#return_value' => COMMENT_NODE_HIDDEN, '#default_value' => $comment_settings, '#id' => 'edit-comment-0', @@ -1053,7 +1053,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { if (empty($comment_count)) { unset($form['comment_settings']['comment']['#options'][COMMENT_NODE_HIDDEN]); unset($form['comment_settings']['comment'][COMMENT_NODE_HIDDEN]); - $form['comment_settings']['comment'][COMMENT_NODE_CLOSED]['#description'] = theme('indentation') . t('Users cannot post comments.'); + $form['comment_settings']['comment'][COMMENT_NODE_CLOSED]['#description'] = t('Users cannot post comments.'); } } } diff --git a/modules/system/system.css b/modules/system/system.css index fe9fa5d767ff..acfc5071673c 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -150,6 +150,9 @@ tr.merge-up, tr.merge-up td, tr.merge-up th { margin-top: 0.4em; margin-bottom: 0.4em; } +.form-type-radio .description, .form-type-checkbox .description { + margin-left: 2.4em; +} .marker, .form-required { color: #f00; } diff --git a/themes/seven/style.css b/themes/seven/style.css index 829f2e1c0e1e..7a0226d58864 100644 --- a/themes/seven/style.css +++ b/themes/seven/style.css @@ -537,6 +537,10 @@ div.form-item div.description { color: #666; } +body div.form-type-radio div.description, body div.form-type-checkbox div.description { + margin-left: 1.5em; +} + /* Buttons */ input.form-submit { cursor: pointer; -- GitLab