Commit 65a1ece4 by Alan Boudreault

Some more work for a better styling

parent 0694b729
.mentoring .title {
display: inline-block;
}
.mentoring .messages { .mentoring .messages {
display: none; display: none;
margin-top: 10px; margin-top: 10px;
......
...@@ -52,11 +52,10 @@ ...@@ -52,11 +52,10 @@
.mentoring .questionnaire .choice-tips .close, .mentoring .questionnaire .choice-tips .close,
.mentoring .questionnaire .feedback .close { .mentoring .questionnaire .feedback .close {
background-image: url({{ close_icon_url }});
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
top: -10px; top: 5px;
right: -10px; right: 0px;
width: 18px; width: 18px;
height: 21px; height: 21px;
} }
......
...@@ -95,8 +95,8 @@ function MCQBlock(runtime, element) { ...@@ -95,8 +95,8 @@ function MCQBlock(runtime, element) {
}); });
if (_.isNull(result.submission)) { if (_.isNull(result.submission)) {
messageView.showMessage('<div class="message-content"><div class="close"></div>' + messageView.showMessage('<div class="message-content">You have not provided an answer.</div>' +
'You have not provided an answer.' + '</div>'); '<i class="close icon-remove-sign fa-times-circle"></i>');
} }
else if (result.tips) { else if (result.tips) {
var tips = _.find(result.tips, function(obj) { var tips = _.find(result.tips, function(obj) {
...@@ -109,7 +109,7 @@ function MCQBlock(runtime, element) { ...@@ -109,7 +109,7 @@ function MCQBlock(runtime, element) {
} }
} }
}, },
validate: function(){ validate: function(){
var checked = $('input[type=radio]:checked', element); var checked = $('input[type=radio]:checked', element);
if (checked.length) { if (checked.length) {
...@@ -140,8 +140,8 @@ function MRQBlock(runtime, element) { ...@@ -140,8 +140,8 @@ function MRQBlock(runtime, element) {
var messageView = MessageView(element); var messageView = MessageView(element);
if (result.message) { if (result.message) {
messageView.showMessage('<div class="message-content"><div class="close"></div>' + messageView.showMessage('<div class="message-content">' + result.message + '</div>'+
result.message + '</div>'); '<i class="close icon-remove-sign fa-times-circle"></i>');
} }
var questionnaireDOM = $('fieldset.questionnaire', element), var questionnaireDOM = $('fieldset.questionnaire', element),
......
...@@ -84,9 +84,7 @@ class QuestionnaireAbstractBlock(LightChild): ...@@ -84,9 +84,7 @@ class QuestionnaireAbstractBlock(LightChild):
fragment = Fragment(html) fragment = Fragment(html)
fragment.add_css(render_template('public/css/questionnaire.css', { fragment.add_css(render_template('public/css/questionnaire.css', {
'self': self, 'self': self
'close_icon_url': self.runtime.local_resource_url(self.xblock_container,
'public/img/close.png'),
})) }))
fragment.add_javascript_url(self.runtime.local_resource_url(self.xblock_container, fragment.add_javascript_url(self.runtime.local_resource_url(self.xblock_container,
'public/js/questionnaire.js')) 'public/js/questionnaire.js'))
......
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
attempting this step. attempting this step.
</div> </div>
{% if self.title %} {% if self.title %}
<h2>{{ self.title.content }} {% if self.weight %} ({{ self.weight }} Points Possible) {% endif %}</h2> <div class="title">
<h2 class="title main">{{ self.title.content }}</h2>
<span class="title weight">{% if self.weight %} ({{ self.weight }} Points Possible) {% endif %}</span>
</div>
{% endif %} {% endif %}
{% for name, c in named_children %} {% for name, c in named_children %}
{{c.body_html|safe}} {{c.body_html|safe}}
......
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