diff --git a/problem_builder/public/css/questionnaire.css b/problem_builder/public/css/questionnaire.css index f7b1af8b..4c4124f8 100644 --- a/problem_builder/public/css/questionnaire.css +++ b/problem_builder/public/css/questionnaire.css @@ -37,7 +37,7 @@ font-family: arial; font-size: 14px; opacity: 0.9; - padding: 22px 10px; + padding: 22px 10px 10px 10px; width: 300px; min-height: 40px; z-index: 10000; @@ -78,10 +78,13 @@ display: table-cell; vertical-align: top; width: 28px; + padding-top: 3px; + padding-right: 5px; } .mentoring .choice-label { display: table-cell; vertical-align: top; line-height: 1.3; + padding-top: 4px; } diff --git a/problem_builder/public/themes/apros.css b/problem_builder/public/themes/apros.css index e69de29b..1d3da512 100644 --- a/problem_builder/public/themes/apros.css +++ b/problem_builder/public/themes/apros.css @@ -0,0 +1,9 @@ +.mentoring .questionnaire .choice-tips, +.mentoring .questionnaire .feedback { + box-sizing: content-box; /* Avoid a global reset to border-box found on Apros */ +} + +.themed-xblock.mentoring .choices-list .choice-selector { + padding: 4px 3px 0 3px; + font-size: 16px; +} diff --git a/problem_builder/public/themes/lms.css b/problem_builder/public/themes/lms.css index dba07c95..15c33a46 100644 --- a/problem_builder/public/themes/lms.css +++ b/problem_builder/public/themes/lms.css @@ -42,7 +42,6 @@ div.course-wrapper section.course-content .themed-xblock.mentoring p:empty { vertical-align: middle; width: 100%; padding-bottom: 10px; - padding-top: 2px; } .themed-xblock.mentoring .choice-label span.low { diff --git a/problem_builder/questionnaire.py b/problem_builder/questionnaire.py index b2a352fd..d57e3e41 100644 --- a/problem_builder/questionnaire.py +++ b/problem_builder/questionnaire.py @@ -21,10 +21,10 @@ # Imports ########################################################### from django.utils.safestring import mark_safe -import logging -from lxml import etree +from lazy import lazy +import uuid from xblock.core import XBlock -from xblock.fields import Scope, String, Float, List, UNIQUE_ID +from xblock.fields import Scope, String, Float, UNIQUE_ID from xblock.fragment import Fragment from xblock.validation import ValidationMessage from xblockutils.helpers import child_isinstance @@ -90,14 +90,14 @@ def _(self, text): """ translate text """ return self.runtime.service(self, "i18n").ugettext(text) - @property + @lazy def html_id(self): """ A short, simple ID string used to uniquely identify this question. This is only used by templates for matching and