From 3533497b5857306167bf7120f3fa4ff6d2f2b347 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 27 Sep 2012 02:23:42 -0700 Subject: [PATCH 1/3] Restart server when xmodule css changes (run_watch_data) --- run_watch_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_watch_data.py b/run_watch_data.py index c6cdd4f0df..ff653cfa37 100755 --- a/run_watch_data.py +++ b/run_watch_data.py @@ -17,7 +17,7 @@ from watchdog.events import LoggingEventHandler, FileSystemEventHandler # watch fewer or more extensions, you can change EXTENSIONS. To watch all # extensions, add "*" to EXTENSIONS. -WATCH_DIRS = ["../data", "common/lib/xmodule/xmodule/js"] +WATCH_DIRS = ["../data", "common/lib/xmodule/xmodule/js", "common/lib/xmodule/xmodule/css"] EXTENSIONS = ["*", "xml", "js", "css", "coffee", "scss", "html"] WATCH_DIRS = [os.path.abspath(os.path.normpath(dir)) for dir in WATCH_DIRS] From 81bd0baf08b570aba7485d6dca3599c1921106b4 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 27 Sep 2012 02:24:01 -0700 Subject: [PATCH 2/3] Fix multiple choice style and multiple choice show answer style --- .../lib/capa/capa/templates/choicegroup.html | 20 ++++++++++--------- .../lib/xmodule/xmodule/css/capa/display.scss | 16 ++++++++------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/common/lib/capa/capa/templates/choicegroup.html b/common/lib/capa/capa/templates/choicegroup.html index 106694ea4a..ce1b6d9476 100644 --- a/common/lib/capa/capa/templates/choicegroup.html +++ b/common/lib/capa/capa/templates/choicegroup.html @@ -1,13 +1,15 @@
- % if state == 'unsubmitted': - - % elif state == 'correct': - - % elif state == 'incorrect': - - % elif state == 'incomplete': - - % endif +
+ % if state == 'unsubmitted': + + % elif state == 'correct': + + % elif state == 'incorrect': + + % elif state == 'incomplete': + + % endif +
% for choice_id, choice_description in choices: diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index 12046587a3..d5824f38cf 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -42,18 +42,21 @@ section.problem { content: url('../images/correct-icon.png'); } - > span { - padding-right: 20px; + min-width:100px; + width: auto !important; + width: 100px; + + .indicator_container { float: left; - background-position: 0 0 !important; + width: 25px; + margin-right: 15px; } fieldset { @include box-sizing(border-box); - float: left; border-left: 1px solid #ddd; padding-left: 20px; - margin: 20px 0; + margin: 0px 0px 20px; } input[type="radio"], @@ -63,8 +66,7 @@ section.problem { } text { - display: block; - margin-left: 25px; + margin-left: 5px; } } From 71923e7c1f4b8127e91baad56b76e0980c962623 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 27 Sep 2012 13:31:08 -0700 Subject: [PATCH 3/3] Add block display back for text --- common/lib/xmodule/xmodule/css/capa/display.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index d5824f38cf..df2058dbbe 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -38,8 +38,10 @@ section.problem { .choicegroup { @include clearfix; - label.choicegroup_correct:after { - content: url('../images/correct-icon.png'); + label.choicegroup_correct{ + text:after{ + content: url('../images/correct-icon.png'); + } } min-width:100px; @@ -66,7 +68,8 @@ section.problem { } text { - margin-left: 5px; + display: block; + margin-left: 25px; } }