diff --git a/problem_builder/public/css/problem-builder.css b/problem_builder/public/css/problem-builder.css index a4bc5a11..cc5cc80e 100644 --- a/problem_builder/public/css/problem-builder.css +++ b/problem_builder/public/css/problem-builder.css @@ -138,19 +138,10 @@ vertical-align: top; } -.mentoring .choice-label { - display: table-cell; - vertical-align: middle; -} - .mentoring .choice-label span.low { line-height: inherit; } -.mentoring .choice-tips-container .choice-tips { - position: relative; -} - .mentoring .choice .choice-tips-container.with-tips { border-left: 2px solid #ddd; } @@ -170,9 +161,24 @@ } .mentoring .choice-result { - display: block; - float: left; - height: 33.33px; + display: none !important; + height: 17px; +} + +.mentoring .checkmark-correct, +.mentoring .checkmark-incorrect, +.mentoring .checkmark-partially-correct { + display: inline-block !important; + margin: -7px 0 0 -35px; +} + +.mentoring .sb-review-score .checkmark-correct, +.mentoring .sb-review-score .checkmark-incorrect, +.mentoring .sb-review-score .checkmark-partially-correct, +.mentoring .submit .checkmark-correct, +.mentoring .submit .checkmark-incorrect, +.mentoring .submit .checkmark-partially-correct{ + margin: 0; } .mentoring .checkmark-correct::before { @@ -243,7 +249,7 @@ } .mentoring .results-section { - margin-left: 50px; + display: inline-block; } .mentoring .results-section p { diff --git a/problem_builder/public/css/questionnaire.css b/problem_builder/public/css/questionnaire.css index 18550a04..16ec5b8d 100644 --- a/problem_builder/public/css/questionnaire.css +++ b/problem_builder/public/css/questionnaire.css @@ -8,11 +8,14 @@ } .mentoring .questionnaire .choice-result { - display: table-cell; + display: inline-block; width: 34px; - vertical-align: top; + vertical-align: middle; cursor: pointer; - float: none; + border: 0; + padding: 0; + background: 0 0; + box-shadow: none !important; } .mentoring .questionnaire .feedback { @@ -23,15 +26,15 @@ .mentoring div[data-block-type=pb-mrq] .questionnaire .choice-result { display: inline-block; padding: 0; - margin: 0 5px; background: none; border: none; outline: none; } .mentoring .questionnaire .choice { - overflow-y: hidden; - display: table-row; + padding: 0 0 0 30px; + /*line-height: 0.5;*/ + clear: both; } .mentoring .questionnaire .choice-result.checkmark-correct, @@ -44,7 +47,7 @@ .mentoring .questionnaire .feedback { display: none; color: #3c3c3c; - position: absolute; + position: static; top: 0; right: 0; background: transparent; @@ -52,7 +55,7 @@ font-size: 14px; padding: 0 20px; width: 300px; - min-height: 40px; + min-height: 33px; max-height: 180px; z-index: 10000; } @@ -83,6 +86,7 @@ .mentoring .questionnaire .choice-tips p, .mentoring .questionnaire .feedback p { color: #3c3c3c; + margin: 5px 0; } .mentoring .questionnaire .choice-tips .close, @@ -106,22 +110,31 @@ } .mentoring .choices-list .choice-selector { - display: table-cell; + display: inline-block; + vertical-align: top; } .mentoring .choices-list .choice-label-text { - display: table-cell; + display: inline-block; + vertical-align: middle; padding-left: 0.4em; padding-right: 0.4em; + width: calc(100% - 47px); +} +.mentoring .choice-tips-container{ + width: calc(50% - 10px) !important; } - .mentoring .choice-tips-container, .mentoring .choice-label { - display: table-cell; - vertical-align: top; + display: inline-block; + vertical-align: middle; width: 50%; + min-height: 33px; } +.mentoring .choice-tips{ top: 0 !important;} + + /*RTL Specified CSS*/ .rtl .mentoring .questionnaire .choice-tips, diff --git a/problem_builder/public/js/questionnaire.js b/problem_builder/public/js/questionnaire.js index 9550ed46..4b3d96de 100644 --- a/problem_builder/public/js/questionnaire.js +++ b/problem_builder/public/js/questionnaire.js @@ -131,6 +131,7 @@ function MCQBlock(runtime, element) { // We're showing previous answers, so go ahead and display results as well if (choiceInputDOM.prop('checked')) { + choiceResultDOM.find('span.sr-only').remove(); display_message(result.message, messageView, options.checkmark); if (result.status === "correct") { choiceDOM.addClass('correct'); @@ -230,7 +231,7 @@ function MRQBlock(runtime, element) { var choiceDOM = choiceInputDOM.closest('.choice'); var choiceResultDOM = $('.choice-result', choiceDOM); var choiceTipsDOM = $('.choice-tips', choiceDOM); - + choiceResultDOM.find('span.sr-only').remove(); /* show hint if checked or max_attempts is disabled */ if (!hide_results && (result.completed || choiceInputDOM.prop('checked') || options.max_attempts <= 0)) { diff --git a/problem_builder/templates/html/mcqblock.html b/problem_builder/templates/html/mcqblock.html index b7804ffe..c8268aa4 100644 --- a/problem_builder/templates/html/mcqblock.html +++ b/problem_builder/templates/html/mcqblock.html @@ -10,10 +10,10 @@