diff --git a/lib/formslib.php b/lib/formslib.php
index 5e39e77f603..e5e1830f7e1 100644
--- a/lib/formslib.php
+++ b/lib/formslib.php
@@ -2227,15 +2227,15 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
// switch next two lines for ol li containers for form items.
// $this->_elementTemplates=array('default'=>"\n\t\t".'
{label}{help}{req} {error} {element}
');
$this->_elementTemplates = array(
- 'default'=>"\n\t\t".'{label}{req}{advancedimg} {help}
{error} {element}
',
+ 'default'=>"\n\t\t".'{label}{req}{advancedimg}{help}
{error} {element}
',
'actionbuttons'=>"\n\t\t".'',
- 'fieldset'=>"\n\t\t".'{label}{req}{advancedimg} {help}
{error} {element} ',
+ 'fieldset'=>"\n\t\t".'{label}{req}{advancedimg}{help}
{error} {element} ',
- 'static'=>"\n\t\t".'{label}{req}{advancedimg} {help}
{error} {element}
',
+ 'static'=>"\n\t\t".'{label}{req}{advancedimg}{help}
{error} {element}
',
-'warning'=>"\n\t\t".'{element}
',
+ 'warning'=>"\n\t\t".'{element}
',
'nodisplay'=>'');
diff --git a/pix/docs.png b/pix/docs.png
new file mode 100644
index 00000000000..40478412139
Binary files /dev/null and b/pix/docs.png differ
diff --git a/pix/docs.svg b/pix/docs.svg
new file mode 100644
index 00000000000..f322a5cd846
--- /dev/null
+++ b/pix/docs.svg
@@ -0,0 +1,15 @@
+
+
+
+]>
+
+
+
+
+
diff --git a/theme/base/style/core.css b/theme/base/style/core.css
index 471c7f4d9c2..d759d35db20 100644
--- a/theme/base/style/core.css
+++ b/theme/base/style/core.css
@@ -92,7 +92,7 @@ img.resize {height: 1em;width: 1em;}
img.icon {height:16px;vertical-align:text-bottom;width:16px;padding: 2px 6px 2px 0;}
.dir-rtl img.icon {padding: 2px 0 2px 6px;}
img.iconsmall {height:12px;margin-right:3px;vertical-align:middle;width:12px;}
-img.iconhelp, .helplink img {height:16px; padding-left:3px;vertical-align:middle;width:16px;}
+img.iconhelp, .helplink img {height:16px; padding-left:3px;vertical-align:text-bottom;width:16px;}
img.iconlarge {height: 24px; width: 24px; vertical-align:middle;}
img.iconsort { vertical-align: text-bottom; padding-left: .3em; margin-bottom: .15em;}
.dir-rtl img.iconsort { padding-right: .3em; padding-left: 0;}
@@ -122,6 +122,12 @@ img.emoticon {vertical-align: middle;width: 15px;height: 15px;}
form.popupform,
form.popupform div {display: inline;}
.arrow_button input {overflow:hidden;}
+h1.main img,
+h2.main img,
+h3.main img,
+h4.main img,
+h5.main img,
+h6.main img {vertical-align: middle;}
/** The 1-pixel padding is there to avoid phantom scroll bars on OS X (FF, Safari and Chrome)**/
.no-overflow {overflow:auto;padding-bottom:1px;}
@@ -182,6 +188,8 @@ a.skip:active {position: static;display: block;}
#page-footer .logininfo,
#page-footer .sitelink,
#page-footer .helplink {margin:0px 10px;}
+#page-footer .helplink img.iconhelp { margin: 0 .45em 0 0 ; padding: 0;}
+.dir-rtl #page-footer .helplink img.iconhelp { margin: 0 0 0 .45em ;}
#page-footer .performanceinfo {text-align:center;margin:10px 20%;}
#page-footer .performanceinfo span {display:block;}
#page-footer .validators {margin-top:40px;padding-top:5px;border-top: 1px dotted gray;}
@@ -239,6 +247,10 @@ a.skip:active {position: static;display: block;}
.mform fieldset.fdate_selector label {display:inline;float: none;width: auto;}
.mform .ftags label.accesshide {display: block;position: static;}
.mform .ftags select {margin-bottom: 0.7em;min-width: 22em;}
+.mform .helplink img { margin: 0 0 0 .45em; padding: 0;}
+.dir-rtl .mform .helplink img { margin: 0 .45em 0 0; padding: 0;}
+.mform legend .helplink img { margin-right: .2em; }
+.dir-rtl .mform legend .helplink img { margin: 0 .45em 0 .2em; }
input#id_externalurl {direction:ltr;}