From 37611ee17c40a7b6f35aa60757f78ba41234e6ff Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 6 Jun 2006 17:10:04 +0000 Subject: [PATCH] Bug #5559: revised fix - using better CSS class names. Merged from MOODLE_16_STABLE. --- mod/quiz/styles.php | 9 --------- question/type/multianswer/questiontype.php | 6 +++--- theme/standard/styles_color.css | 9 +++++++++ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mod/quiz/styles.php b/mod/quiz/styles.php index 798b2df7e1..abe58e098d 100644 --- a/mod/quiz/styles.php +++ b/mod/quiz/styles.php @@ -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; -} diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 1b02974ad4..24d3b6aa80 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -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 = ''; diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index 1f3b3ae648..01a2350d71 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -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 -- 2.39.5