Commit a18fda20 authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-20636 Split question-type specific styles into the separate plugins.

parent ef31a283
.que.calculated .answer {
padding: 0.3em;
width: auto;
display: inline;
}
.que.calculated .answer input {
width: 99%;
}
.que.multianswer .submit {
margin-top: 1em;
}
......@@ -128,7 +128,7 @@ abstract class qtype_multichoice_renderer_base extends qtype_with_combined_feedb
$result .= html_writer::start_tag('div', array('class' => 'answer'));
foreach ($radiobuttons as $key => $radio) {
$result .= html_writer::tag('span', $radio . ' ' . $feedbackimg[$key] . $feedback[$key],
$result .= html_writer::tag('div', $radio . ' ' . $feedbackimg[$key] . $feedback[$key],
array('class' => $classes[$key])) . "\n";
}
$result .= html_writer::end_tag('div'); // answer
......
......@@ -7,3 +7,7 @@
display: inline;
background: #FFF3BF;
}
.que.multichoice .answer div.r0,
.que.multichoice .answer div.r1 {
padding: 0.3em;
}
.que.numerical .answer {
padding: 0.3em;
width: auto;
display: inline;
}
.que.numerical .answer input {
width: 99%;
}
.que.shortanswer .answer {
padding: 0.3em;
width: auto;
display: inline;
}
.que.shortanswer .answer input {
width: 99%;
}
......@@ -105,9 +105,9 @@ class qtype_truefalse_renderer extends qtype_renderer {
array('class' => 'prompt'));
$result .= html_writer::start_tag('div', array('class' => 'answer'));
$result .= html_writer::tag('span', $radiotrue . ' ' . $truefeedbackimg,
$result .= html_writer::tag('div', $radiotrue . ' ' . $truefeedbackimg,
array('class' => 'r0' . $trueclass));
$result .= html_writer::tag('span', $radiofalse . ' ' . $falsefeedbackimg,
$result .= html_writer::tag('div', $radiofalse . ' ' . $falsefeedbackimg,
array('class' => 'r1' . $falseclass));
$result .= html_writer::end_tag('div'); // answer
......
.que.truefalse .answer div.r0,
.que.truefalse .answer div.r1 {
padding: 0.3em;
}
......@@ -80,24 +80,6 @@ body.jsenabled #qtypechoicecontainer {display: block;}
.que .history table {width: 100%;margin: 0;}
.que .history .current {font-weight: bold;}
.multianswer .submit {margin-top: 1em;}
.multichoice td.feedback {width: auto;vertical-align: top;padding-top: 0.3em;border-style: none;}
.multichoice .text {width: auto;}
.calculated .answer,
.numerical .answer,
.shortanswer .answer {padding: 0.3em;width: auto;display: inline;}
.calculated .answer input,
.numerical .answer input,
.shortanswer .answer input {width: 99%;}
.multichoice .answer span.r0,
.multichoice .answer span.r1,
.truefalse .answer span.r0,
.truefalse .answer span.r1 {display: block;padding: 0.3em;}
.importerror {margin-top: 10px;border-bottom: 1px solid #555;}
.mform .que.comment .fitemtitle {width: 20%;}
......
......@@ -7,7 +7,6 @@
.que .feedback {border-color: #DDD;}
.que .history {font-size:75%;}
.que .incorrect {background-color: #faa;}
.que.multianswer .incorrect {background-color: #faa;}
.que .partiallycorrect {background-color: #ff9;}
.que .r0 {background-color: #F5F5F5;}
.que .r1 {background-color: #EEE;}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment