Commit 97cff9c0 by Tom Giannattasio

Merge pull request #690 from MITx/feature/kfiedler/multiple-choice

styles for a slightly better multiple choice and solution span
parents 092403c1 0170fcc0
<form class="choicegroup capa_inputtype" id="inputtype_${id}"> <form class="choicegroup capa_inputtype" id="inputtype_${id}">
% if state == 'unsubmitted':
<span class="unanswered" style="display:inline-block;" id="status_${id}"></span>
% elif state == 'correct':
<span class="correct" id="status_${id}"></span>
% elif state == 'incorrect':
<span class="incorrect" id="status_${id}"></span>
% elif state == 'incomplete':
<span class="incorrect" id="status_${id}"></span>
% endif
<fieldset>
% for choice_id, choice_description in choices: % for choice_id, choice_description in choices:
<label for="input_${id}_${choice_id}"> <input type="${input_type}" name="input_${id}${name_array_suffix}" id="input_${id}_${choice_id}" value="${choice_id}" <label for="input_${id}_${choice_id}"> <input type="${input_type}" name="input_${id}${name_array_suffix}" id="input_${id}_${choice_id}" value="${choice_id}"
% if choice_id in value: % if choice_id in value:
...@@ -8,14 +18,6 @@ ...@@ -8,14 +18,6 @@
/> ${choice_description} </label> /> ${choice_description} </label>
% endfor % endfor
<span id="answer_${id}"></span> <span id="answer_${id}"></span>
</fieldset>
% if state == 'unsubmitted':
<span class="unanswered" style="display:inline-block;" id="status_${id}"></span>
% elif state == 'correct':
<span class="correct" id="status_${id}"></span>
% elif state == 'incorrect':
<span class="incorrect" id="status_${id}"></span>
% elif state == 'incomplete':
<span class="incorrect" id="status_${id}"></span>
% endif
</form> </form>
...@@ -36,9 +36,24 @@ section.problem { ...@@ -36,9 +36,24 @@ section.problem {
} }
.choicegroup { .choicegroup {
@include clearfix;
label.choicegroup_correct:after { label.choicegroup_correct:after {
content: url('../images/correct-icon.png'); content: url('../images/correct-icon.png');
} }
> span {
padding-right: 20px;
float: left;
background-position: 0 0 !important;
}
fieldset {
@include box-sizing(border-box);
float: left;
border-left: 1px solid #ddd;
padding-left: 20px;
}
} }
ol.enumerate { ol.enumerate {
...@@ -52,6 +67,23 @@ section.problem { ...@@ -52,6 +67,23 @@ section.problem {
} }
} }
.solution-span {
span {
margin: 20px 0;
display: block;
border: 1px solid #ddd;
padding: 9px 15px 20px;
background: #FFF;
position: relative;
@include box-shadow(inset 0 0 0 1px #eee);
@include border-radius(3px);
&:empty {
display: none;
}
}
}
div { div {
p { p {
&.answer { &.answer {
......
Markdown is supported
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