]> git.mjollnir.org Git - moodle.git/commitdiff
SOme tidying upup of CSS MDL-9628
authormoodler <moodler>
Mon, 16 Jul 2007 06:24:09 +0000 (06:24 +0000)
committermoodler <moodler>
Mon, 16 Jul 2007 06:24:09 +0000 (06:24 +0000)
grade/report/grader/lib.php
theme/standard/styles_layout.css

index e08d9f29cbe30aee870ae82e14359a81ab81bb39..739a845b967b63fc9d217b290e70d4ee6eb86bfa 100644 (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>';
         }
index 988fb03a14f04891275e99328f25f09e26c6f193..df34fb9756cb40a5559bcd92d54010f945789062 100644 (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;
 }
 
+