Commit 7f14a151 by Jolyon Bloomfield

Modifying template for formulaequationinput and fixing CSS

parent 17e64535
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
</span> </span>
</span> </span>
<p id="answer_${id}" class="answer"></p>
<div id="input_${id}_preview" class="equation"> <div id="input_${id}_preview" class="equation">
\[\] \[\]
<img src="${STATIC_URL}images/spinner.gif" class="loading" alt="Loading"/> <img src="${STATIC_URL}images/spinner.gif" class="loading" alt="Loading"/>
</div> </div>
<p id="answer_${id}" class="answer"></p>
</div> </div>
<div class="script_placeholder" data-src="${previewer}"/> <div class="script_placeholder" data-src="${previewer}"/>
......
...@@ -406,7 +406,6 @@ div.problem { ...@@ -406,7 +406,6 @@ div.problem {
margin-top: 3px; margin-top: 3px;
.MathJax_Display { .MathJax_Display {
display: inline-block;
width: auto; width: auto;
} }
...@@ -429,6 +428,11 @@ div.problem { ...@@ -429,6 +428,11 @@ div.problem {
} }
} }
// Fix for formulaequationinput, overriding MathJax_Display default style to allow "loading" image to sit next to it
section.formulaequationinput div.equation .MathJax_Display {
display: inline-block !important;
}
// Hides equation previews in symbolic response problems when printing // Hides equation previews in symbolic response problems when printing
[id^='display'].equation { [id^='display'].equation {
@media print { @media print {
...@@ -713,13 +717,10 @@ div.problem { ...@@ -713,13 +717,10 @@ div.problem {
height: 46px; height: 46px;
} }
> .incorrect, .correct, .unanswered { .status {
display: inline-block;
.status { margin-top: ($baseline/2);
display: inline-block; background: none;
margin-top: ($baseline/2);
background: none;
}
} }
// CASE: incorrect answer // CASE: incorrect answer
...@@ -746,8 +747,8 @@ div.problem { ...@@ -746,8 +747,8 @@ div.problem {
} }
} }
// CASE: unanswered // CASE: unanswered and unsubmitted
> .unanswered { > .unanswered, > .unsubmitted {
input { input {
border: 2px solid $gray-l4; border: 2px solid $gray-l4;
......
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