From 510ccc552137dcc79b67d654156be6f43f52f32f Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 14 Nov 2012 17:41:15 +0800 Subject: [PATCH 1/2] MDL-36564 usability: Repositioned help/info icon --- lib/formslib.php | 8 ++++---- theme/base/style/core.css | 14 +++++++++++++- 2 files changed, 17 insertions(+), 5 deletions(-) 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".'
  • {error}
    {element}
  • '); $this->_elementTemplates = array( - 'default'=>"\n\t\t".'
    {error}
    {element}
    ', + 'default'=>"\n\t\t".'
    {error}
    {element}
    ', 'actionbuttons'=>"\n\t\t".'
    {element}
    ', - 'fieldset'=>"\n\t\t".'
    {error}
    {element}
    ', + 'fieldset'=>"\n\t\t".'
    {error}
    {element}
    ', - 'static'=>"\n\t\t".'
    {error}
    {element} 
    ', + 'static'=>"\n\t\t".'
    {error}
    {element} 
    ', -'warning'=>"\n\t\t".'
    {element}
    ', + 'warning'=>"\n\t\t".'
    {element}
    ', 'nodisplay'=>''); diff --git a/theme/base/style/core.css b/theme/base/style/core.css index a7b16b40693..f3c9f5347e5 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.icontoggle {height:17px;vertical-align:middle;width:50px;} img.iconkbhelp {height:17px;width:49px;} @@ -120,6 +120,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;} @@ -180,6 +186,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;} @@ -237,6 +245,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;} From 8f8f8f5a1e6f5bc8078f03b3d82b175f10ae9548 Mon Sep 17 00:00:00 2001 From: Barbara Ramiro Date: Thu, 15 Nov 2012 09:46:21 +0800 Subject: [PATCH 2/2] MDL-36564 usability: New icon docs --- pix/docs.png | Bin 0 -> 327 bytes pix/docs.svg | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pix/docs.png create mode 100644 pix/docs.svg diff --git a/pix/docs.png b/pix/docs.png new file mode 100644 index 0000000000000000000000000000000000000000..40478412139f1de7ca1fc57a21930337a3f34a69 GIT binary patch literal 327 zcmV-N0l5B&P)A`iB6G9g{Y-d9LINwouqJ?bzOJYp;6S?(o->p5C#qw zM67g}6y9yythlMrk_140DN5c=v0`3kr?U9TL}91bPx#iMJBDk5AgTzn<~}vj6s!|MQuSeCM|S Z0{}cyWkp*O;A#K>002ovPDHLkV1lKhhtmK6 literal 0 HcmV?d00001 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 @@ + + + +]> + + + + +