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

This commit is contained in:
tjhunt 2006-06-06 17:10:04 +00:00
parent 93e779c236
commit 37611ee17c
3 changed files with 12 additions and 12 deletions

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;
}

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 = '';

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