* @param string $icon Image to display if needed
*/
function print_heading_with_help($text, $helppage, $module='moodle', $icon='', $return=false) {
- $output = '';
- $output .= '<h2 class="main help">'.$icon.stripslashes_safe($text);
+ $output = '<div class="heading-with-help">';
+ $output .= '<h2 class="main help">'.$icon.stripslashes_safe($text).'</h2>';
$output .= helpbutton($helppage, $text, $module, true, false, '', true);
- $output .= '</h2>';
+ $output .= '</div>';
if ($return) {
return $output;
margin: 0 0 10px 0;
font-size: 180%;
}
+.heading-with-help {
+ font-size:120%;
+}
+.heading-with-help h2.main {
+ font-size:100%;
+}
h2.main {
background-image: url(pix/header.png);
background-repeat: repeat-x;
color: #333333;
}
-h2 {
+h2,.heading-with-help {
background-color: #E3DFD4;
border-color:#C6BDA8;
}
+.heading-with-help h2 {
+ background:none;
+ border:none;
+}
h2.headingblock.header {
background: url(pix/grad/gradient_h.jpg);
font-weight: bold;
}
-h2 {
+h2, .heading-with-help {
font-size:1.15em;
}
+.heading-with-help h2 {
+ font-size:1.0em;
+}
h3 {
font-size:1.1em;
}
padding: 4px;
}
+.heading-with-help {
+ text-align:left;
+ padding:4px 4px 4px 5px;
+}
+.heading-with-help h2.main {
+ padding:0;
+}
h3 {
padding: 3px;
clear:both;
}
-h1, h2, h3, th.header {
+h1, h2, h3, th.header, .heading-with-help {
border-width: 1px;
border-style: solid;
}
.logininfo, .helplink, .minicalendar *, .link, .footer {
font-size: 9pt !important;
}
+.heading-with-help {
+ font-size:1.4em;
+}
+
+.heading-with-help h2 {
+ font-size:1em;
+}
h3.main,
h4.main,
h5.main,
-h6.main {
+h6.main,
+.heading-with-help {
margin-left:1em;
text-align:left
}
+.heading-with-help h2 {
+ margin:0;
+}
#content {
clear:both
}
font-weight:bold;
}
+.heading-with-help {
+ font-size:1.4em;
+}
+
+.heading-with-help h2.main {
+ font-size:1em;
+}
+
.helplink {
font-size:0.8em;
}
vertical-align: top;
}
+.heading-with-help {
+ text-align:center;
+ margin:0.83em 0;
+}
+
+.heading-with-help h2 {
+ margin:0;
+ display:inline;
+}
+
.helplink img {
vertical-align: middle;
margin: 0 2px;
div.header,
h2.header,
h2.main,
+.heading-with-help,
.sideblock .header,
.navbar,
table.files th,
background-position:bottom;
background-repeat:repeat;
}
+.heading-with-help h2.main {
+ border:none;
+ background:none;
+}
/** Places using the horizontal medium wood texture without borders **/