SOme tidying upup of CSS MDL-9628

This commit is contained in:
moodler
2007-07-16 06:24:09 +00:00
parent 622474db27
commit fbb004324a
2 changed files with 25 additions and 33 deletions
+2 -2
View File
@@ -858,9 +858,9 @@ class grade_report_grader extends grade_report {
function get_scalehtml() {
$scalehtml = '';
if ($this->get_pref('showranges')) {
$scalehtml = '<tr><td>'.$this->get_lang_string('range','grade').'</td>';
$scalehtml = '<tr><th class="range">'.$this->get_lang_string('range','grades').'</th>';
foreach ($this->items as $item) {
$scalehtml .= '<td>'. $this->get_grade_clean($item->grademin).'-'. $this->get_grade_clean($item->grademax).'</td>';
$scalehtml .= '<th class="range">'. $this->get_grade_clean($item->grademin).'-'. $this->get_grade_clean($item->grademax).'</th>';
}
$scalehtml .= '</tr>';
}
+23 -31
View File
@@ -604,6 +604,14 @@ div.phpinfo .center th {
text-align: center;
}
.backup-form-instances {
margin:0px 20px 0px 20px;
}
.restore-form-instances {
margin:0px 20px 0px 20px;
}
/***
*** Header
***/
@@ -2028,37 +2036,6 @@ body#doc-contents ul {
*** Grades
***/
body#grade-index .grades {
border-width:1px;
border-style:solid;
border-collapse: separate;
}
body#grade-index .grades td {
border-width:0 1px 0 1px;
border-style:solid;
border-collapse: collapse;
}
body#grade-index .grades .header {
vertical-align: top;
}
body#grade-index .grades .points,
body#grade-index .grades .percent,
body#grade-index .grades .weighted {
text-align: right;
}
.backup-form-instances {
margin:0px 20px 0px 20px;
}
.restore-form-instances {
margin:0px 20px 0px 20px;
}
/* new grades CSS */
#grade-report table {
border-width:1px;
@@ -2128,6 +2105,20 @@ body#grade-index .grades .weighted {
margin-right:auto;
}
#grade-report .gradestable th.user {
text-align:left;
}
#grade-report .gradestable td {
text-align:right;
}
#grade-report th.range {
border-width:1px 1px 1px 1px;
border-style:solid;
}
/* gradebook edit tree */
#grade-edit-edit_tree .gradetreebox {
@@ -3671,3 +3662,4 @@ wikiadminactions {
text-align:center;
}