Commit 49d9213f by gradyward

Merge pull request #546 from edx/grady/fix-alert

Fixed the behavior of the alert
parents bde2b6e6 b991aee7
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
</a> </a>
</div> </div>
<div id="openassessment_rubric_content_editor">
<div id="openassessment_rubric_instructions"> <div id="openassessment_rubric_instructions">
<p class = openassessment_description> <p class = openassessment_description>
{% trans "For open response problems, assessment is rubric-based. Rubric criterion have point breakdowns and explanations to help students with peer and self assessment steps. For more information on how to build your rubric, see our online help documentation."%} {% trans "For open response problems, assessment is rubric-based. Rubric criterion have point breakdowns and explanations to help students with peer and self assessment steps. For more information on how to build your rubric, see our online help documentation."%}
...@@ -56,5 +57,6 @@ ...@@ -56,5 +57,6 @@
</ul> </ul>
</div> </div>
</div>
</div> </div>
{% endspaceless %} {% endspaceless %}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,6 +11,7 @@ Returns: ...@@ -11,6 +11,7 @@ Returns:
OpenAssessment.ValidationAlert = function (element) { OpenAssessment.ValidationAlert = function (element) {
var alert = this; var alert = this;
this.element = element; this.element = element;
this.rubricContentElement = $('#openassessment_rubric_content_editor');
this.title = $(".openassessment_alert_title", this.element); this.title = $(".openassessment_alert_title", this.element);
this.message = $(".openassessment_alert_message", this.element); this.message = $(".openassessment_alert_message", this.element);
$(".openassessment_alert_close", element).click(function(eventObject) { $(".openassessment_alert_close", element).click(function(eventObject) {
...@@ -27,6 +28,7 @@ OpenAssessment.ValidationAlert.prototype = { ...@@ -27,6 +28,7 @@ OpenAssessment.ValidationAlert.prototype = {
*/ */
hide: function() { hide: function() {
this.element.addClass('is--hidden'); this.element.addClass('is--hidden');
this.rubricContentElement.removeClass('openassessment_alert_shown');
}, },
/** /**
...@@ -34,6 +36,7 @@ OpenAssessment.ValidationAlert.prototype = { ...@@ -34,6 +36,7 @@ OpenAssessment.ValidationAlert.prototype = {
*/ */
show : function() { show : function() {
this.element.removeClass('is--hidden'); this.element.removeClass('is--hidden');
this.rubricContentElement.addClass('openassessment_alert_shown');
}, },
/** /**
......
...@@ -230,12 +230,13 @@ ...@@ -230,12 +230,13 @@
} }
.oa_editor_content_wrapper { .oa_editor_content_wrapper {
height: 100%; height: Calc(100% - 1px);
width: 100%; width: 100%;
border-radius: 3px; border-radius: 3px;
border: 1px solid $edx-gray-d1; border: 1px solid $edx-gray-d1;
background-color: white; background-color: white;
overflow-y: scroll; overflow-y: scroll;
position: absolute;
} }
#openassessment_prompt_editor { #openassessment_prompt_editor {
...@@ -426,20 +427,17 @@ ...@@ -426,20 +427,17 @@
#oa_rubric_editor_wrapper{ #oa_rubric_editor_wrapper{
#openassessment_rubric_validation_alert{ #openassessment_rubric_validation_alert{
-webkit-animation: notificationSlideDown 1s ease-in-out 1;
-moz-animation: notificationSlideDown 1s ease-in-out 1;
animation: notificationSlideDown 1s ease-in-out 1;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
animation-fill-mode: forwards;
background-color: #323232;
height: auto; height: auto;
width: 100%;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
background-color: #323232;
border-bottom: 3px solid rgb(192, 172, 0); border-bottom: 3px solid rgb(192, 172, 0);
padding: 10px; padding: 10px;
position: absolute; position: absolute;
z-index: 10; z-index: 10;
width: 100%; min-height: 70px;
@include transition (color 0.50s ease-in-out 0s);
.openassessment_alert_icon:before{ .openassessment_alert_icon:before{
font-family: FontAwesome; font-family: FontAwesome;
...@@ -448,7 +446,7 @@ ...@@ -448,7 +446,7 @@
color: rgb(192, 172, 0); color: rgb(192, 172, 0);
float: left; float: left;
font-size: 200%; font-size: 200%;
margin: 20px 0px 0px 25px; margin: 1.5% 0px 0px 2%;
} }
.openassessment_alert_header { .openassessment_alert_header {
width: 85%; width: 85%;
...@@ -470,11 +468,11 @@ ...@@ -470,11 +468,11 @@
display: inline-block; display: inline-block;
position: absolute; position: absolute;
top: 0px; top: 0px;
right: 10px; right: 0px;
color: #e9e9e9; color: #e9e9e9;
background: #323232; background: #323232;
text-align: center; text-align: center;
padding: 2px 5px; margin: 5px 10px;
[class^="icon"] { [class^="icon"] {
width: auto; width: auto;
...@@ -488,6 +486,17 @@ ...@@ -488,6 +486,17 @@
} }
} }
#openassessment_rubric_content_editor{
height: 100%;
overflow-y: scroll;
}
#openassessment_rubric_content_editor.openassessment_alert_shown{
height: Calc(100% - 70px);
position: absolute;
bottom: 0;
}
.wrapper-comp-settings{ .wrapper-comp-settings{
display: initial; display: initial;
} }
......
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