]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5559: revised fix - using better CSS class names. Merged from MOODLE_16_STABLE.
authortjhunt <tjhunt>
Tue, 6 Jun 2006 17:10:04 +0000 (17:10 +0000)
committertjhunt <tjhunt>
Tue, 6 Jun 2006 17:10:04 +0000 (17:10 +0000)
mod/quiz/styles.php
question/type/multianswer/questiontype.php
theme/standard/styles_color.css

index 798b2df7e192b409161d567ea269794e6f3b1547..abe58e098d2a621f1242e9c1c3b803d82956658a 100644 (file)
@@ -100,12 +100,3 @@ body#mod-quiz-grading table#grading td
 #question-preview .essay .answer textarea {
   width: 400px;
 }
-.incorrecthighlight {
-    background-color: #faa;
-}
-.partialcorrecthighlight {
-    background-color: #ff9;
-}
-.correcthighlight {
-    background-color: #afa;
-}
index 1b02974ad4467a1245bbd75007dbdef6fd51dc8e..24d3b6aa803680ad08d2b396db706b54085e6198 100644 (file)
@@ -286,15 +286,15 @@ class embedded_cloze_qtype extends default_questiontype {
                     if (!isset($chosenanswer->fraction)
                             || $chosenanswer->fraction <= 0.0) {
                         // The response must have been totally wrong:
-                        $style = 'class="incorrecthighlight"';
+                        $style = 'class="incorrect"';
 
                     } else if ($chosenanswer->fraction >= 1.0) {
                         // The response was correct!!
-                        $style = 'class="correcthighlight"';
+                        $style = 'class="correct"';
 
                     } else {
                         // This response did at least give some credit:
-                        $style = 'class="partialcorrecthighlight"';
+                        $style = 'class="partialcorrect"';
                     }
                 } else {
                     $style = '';
index 1f3b3ae648ca67232a5580a79bd03804a4f8bdf2..01a2350d71fb1dff2d2970858caaf9857fec13f0 100644 (file)
@@ -618,6 +618,15 @@ table.message_search_results td {
 .truefalse .feedback {
   border-color: #DDD;
 }      
+.que.multianswer .incorrect {
+    background-color: #faa;
+}
+.que.multianswer .partiallycorrect {
+    background-color: #ff9;
+}
+.que.multianswer .correct {
+    background-color: #afa;
+}
 
 /***
  *** Logs