Fix CSS rules for matchin question

pull/4020/head
Angel Fernando Quiroz Campos 3 years ago
parent 4b2a244e63
commit 1d29c58a96
  1. 22
      assets/css/scss/_exercise.scss
  2. 2
      public/main/inc/lib/exercise.lib.php

@ -118,18 +118,18 @@
@apply border border-gray-400 rounded-sm p-2 cursor-move bg-gray-100;
}
.question-answer__items {
&--horizontal,
&--vertical {
@apply flex gap-4;
}
.question-answer {
&__items {
@apply flex gap-4;
&--horizontal {
@apply flex-row flex-wrap;
}
&--vertical {
@apply flex-col;
}
&--horizontal {
@apply flex-row flex-wrap;
}
&--vertical {
@apply flex-col;
}
}
}
.droppable-item {

@ -1373,7 +1373,7 @@ HTML;
$isVertical = 'v' == $objQuestionTmp->extra;
$s .= "</ul></div>";
$counterAnswer = 1;
$s .= '<div class="question-answer__items--'.($isVertical ? 'vertical' : 'horizontal').'">';
$s .= '<div class="question-answer__items question-answer__items--'.($isVertical ? 'vertical' : 'horizontal').'">';
for ($answerId = 1; $answerId <= $nbrAnswers; $answerId++) {
$answerCorrect = $objAnswerTmp->isCorrect($answerId);
$windowId = $questionId.'_'.$counterAnswer;

Loading…
Cancel
Save