$radiobuttons[] = $hidden . html_writer::empty_tag('input', $inputattributes) .
html_writer::tag('label',
html_writer::span($this->number_in_style($value, $question->answernumbering), 'answernumber') .
- $question->make_html_inline($question->format_text(
- $ans->answer, $ans->answerformat,
- $qa, 'question', 'answer', $ansid)),
- array('for' => $inputattributes['id'], 'class' => 'ml-1'));
+ html_writer::tag('div',
+ $question->format_text(
+ $ans->answer, $ans->answerformat,
+ $qa, 'question', 'answer', $ansid),
+ array('class' => 'flex-fill ml-1')),
+ array('for' => $inputattributes['id'], 'class' => 'd-flex w-100'));
// Param $options->suppresschoicefeedback is a hack specific to the
// oumultiresponse question type. It would be good to refactor to
.que.multichoice .answer div.r0,
.que.multichoice .answer div.r1 {
- padding: 0.3em 0 0.3em 25px;
- text-indent: -25px;
+ display: flex;
+ margin: 0.25rem 0;
+ align-items: flex-start;
}
.que.multichoice .answer div.r0 label,
.que.multichoice .answer div.r0 input,
.que.multichoice .answer div.r1 input {
- margin: 0 5px;
- padding: 0;
- width: 15px;
+ margin: 0.4rem 0.5rem;
}
/* Editing form. */