Commit 3e3db962 by Filippo Valsorda

Restyle question feedback

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