From e6f9f8d9b0b6fc6b8a3b7d8f0abd8296b225ff6c Mon Sep 17 00:00:00 2001 From: Kyle Fiedler Date: Fri, 31 Aug 2012 11:15:06 -0400 Subject: [PATCH] Add js to the problem and move around that css and js to accomodate Tonys new HTML Structure --- .../lib/xmodule/xmodule/css/capa/display.scss | 36 +++++++++---------- lms/templates/problem.html | 24 +++++++++++++ 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index e171d35513..a368167448 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -453,37 +453,33 @@ section.problem { } } - .longform, .shortform { + > section { border: 1px solid #ddd; - padding: 9px; + padding: 9px 9px 20px; margin-bottom: 10px; background: #FFF; + position: relative; @include box-shadow(inset 0 0 0 1px #eee); @include border-radius(3px); p:last-of-type { margin-bottom: 0; } - } - a.full { - @include position(absolute, 0 0 1px 0px); - font-size: .8em; - padding: 4px; - text-align: right; - width: 100%; - display: block; - background: #F3F3F3; - @include box-sizing(border-box); - } + .shortform { + margin-bottom: .6em; + } - .longform { - position: relative; - padding-bottom: 20px; - } - - .longform-header { - margin-bottom: .6em; + a.full { + @include position(absolute, 0 0 1px 0px); + font-size: .8em; + padding: 4px; + text-align: right; + width: 100%; + display: block; + background: #F3F3F3; + @include box-sizing(border-box); + } } } } diff --git a/lms/templates/problem.html b/lms/templates/problem.html index ed49b3bd5d..65b8193df9 100644 --- a/lms/templates/problem.html +++ b/lms/templates/problem.html @@ -32,3 +32,27 @@ +<%block name="js_extra"> + +