From 0c90f9878889723622f15a0f86750dba1924667d Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 20 Nov 2008 08:30:35 +0000 Subject: [PATCH] formslib: MDL-13210 - partial - try to make validation errores less annoying. I have made them float right, and reduced the padding on the red box, so they don't cuause the height of the form to change so much, if the error fits to the right of the form control. I realise that some people may not like this, which I why I have done this in head only for now. I will revert this if told to. --- admin/roles/lib.php | 1 - theme/standard/styles_layout.css | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/roles/lib.php b/admin/roles/lib.php index 03ba396729..a2874e00c7 100644 --- a/admin/roles/lib.php +++ b/admin/roles/lib.php @@ -674,7 +674,6 @@ class define_role_table_advanced extends capability_table_with_risks { echo '
'; if (isset($this->errors[$name])) { formerr($this->errors[$name]); - echo '
'; } echo $field; echo '
'; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 51c4243881..cd1afd546c 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -669,10 +669,11 @@ fieldset.fdate_selector label { } .mform span.error, .mform span.required { color: red; + float: right; + margin-right: 0.3em; } .mform div.error,.mform fieldset.error { border: 1px solid red; - padding: 5px; color: inherit; } .mform .fcheckbox input { -- 2.39.5