Commit 3e3db962 by Filippo Valsorda

Restyle question feedback

parent 39f28df0
......@@ -32,6 +32,14 @@
clear: both;
}
.xblock--drag-and-drop .title1 {
color: rgb(85, 85, 85);
text-transform: uppercase;
font-weight: bold;
font-style: normal;
margin: 10px 0;
}
/** Draggable Items **/
.xblock--drag-and-drop .drag-container .items {
......@@ -133,10 +141,10 @@
}
/*** FEEDBACK ***/
.xblock--drag-and-drop .feedback p {
line-height: 1.5em;
font-weight: bold;
margin-bottom: 1.41575em;
.xblock--drag-and-drop .feedback {
margin-top: 20px;
border-top: solid 1px rgb(189, 189, 189);
padding-top: 20px;
}
.no-close .ui-dialog-titlebar-close {
......
......@@ -207,6 +207,8 @@ function DragAndDropBlock(runtime, element) {
feedback: {
// Update DOM with feedback
set: function(str) {
if ($.trim(str) === '') _fn.$feedback.parent().hide();
else _fn.$feedback.parent().show();
return _fn.$feedback.html(str);
},
......
......@@ -8,13 +8,8 @@
<div class="problem-progress">{{ max_score_string }}</div>
<section class="problem" role="application">
<p>
{{ question_text }}
</p>
</section>
<section class="feedback">
<p class="message"></p>
<div class="title1">Question</div>
<p>{{ question_text }}</p>
</section>
<section class="drag-container">
......@@ -26,4 +21,9 @@
<div class="clear"></div>
</section>
<section class="feedback">
<div class="title1">Feedback</div>
<p class="message"></p>
</section>
</section>
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