From 8ef1aa40d13ee65202a87bd48cc6d5ec38b4f87e Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Sun, 27 Oct 2013 09:42:00 +0800 Subject: [PATCH] MDL-40975 Theme: Standardise size of icons in headings --- lib/outputrenderers.php | 2 +- theme/base/style/core.css | 5 ++++- theme/bootstrapbase/less/moodle/core.less | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 135ad351121..72f911544ec 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2064,7 +2064,7 @@ class core_renderer extends renderer_base { public function heading_with_help($text, $helpidentifier, $component = 'moodle', $icon = '', $iconalt = '', $level = 2, $classnames = null) { $image = ''; if ($icon) { - $image = $this->pix_icon($icon, $iconalt, $component, array('class'=>'icon')); + $image = $this->pix_icon($icon, $iconalt, $component, array('class'=>'icon iconlarge')); } $help = ''; diff --git a/theme/base/style/core.css b/theme/base/style/core.css index 22a351db9e1..3a865317094 100644 --- a/theme/base/style/core.css +++ b/theme/base/style/core.css @@ -149,7 +149,10 @@ h4 img.iconhelp, h5 img.icon, h5 img.iconhelp, h6 img.icon, -h6 img.iconhelp {vertical-align: middle;} +h6 img.iconhelp { + vertical-align: middle; + padding: 4px; +} /** 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;} diff --git a/theme/bootstrapbase/less/moodle/core.less b/theme/bootstrapbase/less/moodle/core.less index 2e182cc42c6..a62926b9d25 100644 --- a/theme/bootstrapbase/less/moodle/core.less +++ b/theme/bootstrapbase/less/moodle/core.less @@ -225,6 +225,7 @@ h4 img.iconhelp, h4 img.icon, h5 img.iconhelp, h5 img.icon, h6 img.iconhelp, h6 img.icon { vertical-align: middle; + padding: 4px; } .dir-rtl img.iconhelp, .dir-rtl .helplink img { padding-right: 3px;