Merge pull request #307 from MITx/kimth/lms-coderesponse

Kimth/lms coderesponse
This commit is contained in:
Calen Pennington
2012-07-27 05:37:57 -07:00
2 changed files with 9 additions and 5 deletions

View File

@@ -27,9 +27,6 @@
<br/>
<script type="text/javascript" src="${ settings.LIB_URL }CodeMirror/codemirror.js"></script>
<script type="text/javascript" src="${ settings.LIB_URL }CodeMirror/python.js"></script>
<link rel="stylesheet" href="${ settings.LIB_URL }CodeMirror/codemirror.css" />
<script>
// Note: We need to make the area follow the CodeMirror for this to work.
$(function(){
@@ -42,7 +39,10 @@
});
</script>
<style type="text/css">
.CodeMirror {border-style: solid;
border-width: 1px;}
.CodeMirror {
border: 2px solid black;
font-size: 14px;
line-height: 18px;
}
</style>
</section>

View File

@@ -43,6 +43,10 @@ p {
span {
font: normal 1em/1.6em $sans-serif;
}
/* Fix for CodeMirror: prevent top-level span from affecting deeply-embedded span in CodeMirror */
.CodeMirror span {
font: inherit;
}
p + p, ul + p, ol + p {
margin-top: 20px;