Bug #5559: revised fix - using better CSS class names.

This commit is contained in:
tjhunt
2006-06-06 17:07:58 +00:00
parent ecf140979f
commit 44e2500992
3 changed files with 12 additions and 12 deletions
-9
View 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;
}
+3 -3
View 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 = '';
+9
View 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