fix: css issues
This commit is contained in:
@@ -95,12 +95,12 @@
|
|||||||
.answer-table td.answer-cell-solution,
|
.answer-table td.answer-cell-solution,
|
||||||
.answer-table td.answer-cell-correct .answer-mark,
|
.answer-table td.answer-cell-correct .answer-mark,
|
||||||
.answer-table td.answer-cell-solution .answer-mark {
|
.answer-table td.answer-cell-solution .answer-mark {
|
||||||
background-color: #3bb583;
|
background-color: #3bb583 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer-table td.answer-cell-wrong,
|
.answer-table td.answer-cell-wrong,
|
||||||
.answer-table td.answer-cell-wrong .answer-mark {
|
.answer-table td.answer-cell-wrong .answer-mark {
|
||||||
background-color: #fe756c;
|
background-color: #fe756c !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.exam-question {
|
.exam-question {
|
||||||
|
|||||||
@@ -344,7 +344,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function answerCellClass(questionIndex, answerIndex) {
|
function answerCellClass(questionIndex, answerIndex) {
|
||||||
if (currentPart.value.status !== "evaluated") return "";
|
if (currentPart.value.status === "running") return "";
|
||||||
var question = currentPart.value.questions[questionIndex];
|
var question = currentPart.value.questions[questionIndex];
|
||||||
var sourceIndex = question.order[answerIndex];
|
var sourceIndex = question.order[answerIndex];
|
||||||
if (question.selected === answerIndex && sourceIndex === 0) return "answer-cell-correct";
|
if (question.selected === answerIndex && sourceIndex === 0) return "answer-cell-correct";
|
||||||
|
|||||||
@@ -127,7 +127,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="exam-paper-layout" :key="'exam-part-' + displayedPartIndex + '-' + currentPart.code">
|
<div class="exam-paper-layout"
|
||||||
|
:key="'exam-part-' + displayedPartIndex + '-' + currentPart.code + '-' + currentPart.status">
|
||||||
<main class="exam-questions course">
|
<main class="exam-questions course">
|
||||||
<template v-for="(questionState, questionIndex) in currentPart.questions" :key="questionState.id">
|
<template v-for="(questionState, questionIndex) in currentPart.questions" :key="questionState.id">
|
||||||
<article class="question exam-question" :class="'layout-' + questionData(questionState).layout"
|
<article class="question exam-question" :class="'layout-' + questionData(questionState).layout"
|
||||||
|
|||||||
Reference in New Issue
Block a user