diff --git a/common/lib/capa/capa/templates/textbox.html b/common/lib/capa/capa/templates/textbox.html index 19c43482a8..7800e6031e 100644 --- a/common/lib/capa/capa/templates/textbox.html +++ b/common/lib/capa/capa/templates/textbox.html @@ -7,26 +7,28 @@ - % if state == 'unsubmitted': - - % elif state == 'correct': - - % elif state == 'incorrect': - - % elif state == 'queued': - - - % endif - % if hidden: -
- % endif -
- -
- ${msg|n} -
+
+ % if state == 'unsubmitted': + Unanswered + % elif state == 'correct': + Correct + % elif state == 'incorrect': + Incorrect + % elif state == 'queued': + Queued + + % endif -
+ % if hidden: +
+ % endif + +

${state}

+
+ +
+ ${msg|n} +
- diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index e7b2250f02..cca951ce08 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -16,6 +16,7 @@ h2 { } } + section.problem { @media print { display: block; @@ -171,6 +172,30 @@ section.problem { top: 6px; } } + + .grader-status { + padding: 9px; + background: #F6F6F6; + border: 1px solid #ddd; + border-top: 0; + margin-bottom: 20px; + @include clearfix; + + span { + text-indent: -9999px; + overflow: hidden; + display: block; + float: left; + margin: -7px 7px 0 0; + } + + p { + line-height: 20px; + text-transform: capitalize; + margin-bottom: 0; + float: left; + } + } } ul { @@ -246,6 +271,69 @@ section.problem { } + code { + margin: 0 2px; + padding: 0px 5px; + white-space: nowrap; + border: 1px solid #EAEAEA; + background-color: #F8F8F8; + @include border-radius(3px); + font-size: .9em; + } + + pre { + background-color: #F8F8F8; + border: 1px solid #CCC; + font-size: .9em; + line-height: 1.4; + overflow: auto; + padding: 6px 10px; + @include border-radius(3px); + + > code { + margin: 0; + padding: 0; + white-space: pre; + border: none; + background: transparent; + } + } + + .CodeMirror { + border: 1px solid black; + font-size: 14px; + line-height: 18px; + resize: both; + + pre { + @include border-radius(0); + border-radius: 0; + border-width: 0; + margin: 0; + padding: 0; + background: transparent; + font-family: inherit; + font-size: inherit; + white-space: pre; + word-wrap: normal; + overflow: hidden; + resize: none; + + &.CodeMirror-cursor { + z-index: 10; + position: absolute; + visibility: hidden; + border-left: 1px solid black; + border-right: none; + width: 0; + } + } + } + + .CodeMirror-focused pre.CodeMirror-cursor { + visibility: visible; + } + hr { background: #ddd; border: none; @@ -308,7 +396,7 @@ section.problem { a { display: block; padding: 9px; - background: #f3f3f3; + background: #F6F6F6; @include box-shadow(inset 0 0 0 1px #fff); } } @@ -318,4 +406,44 @@ section.problem { } } } + + .test { + border-top: 1px solid #aaa; + padding-top: 18px; + + header { + margin-bottom: 12px; + } + + .shortform, .longform { + border: 1px solid #d3d3d3; + padding: 9px; + margin-bottom: 12px; + @include box-shadow(inset 0 0 0 1px #f3f3f3); + + p:last-of-type { + margin-bottom: 0; + } + } + + a.full { + @include position(absolute, 0 0 0px 0px); + font-size: .8em; + padding: 4px; + text-align: right; + width: 100%; + display: block; + background: #F3F3F3; + @include box-sizing(border-box); + } + + .longform { + position: relative; + padding-bottom: 20px; + } + + .longform-header { + margin-bottom: lh(); + } + } }