mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Bug #5559: revised fix - using better CSS class names. Merged from MOODLE_16_STABLE.
This commit is contained in:
parent
93e779c236
commit
37611ee17c
@ -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;
|
||||
}
|
||||
|
@ -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 = '';
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user