/* --------------------------------------------------------------- HCQuiz layout */ #hc-title-container { h1.quiz-head { font-size: 24px; line-height: 28px; padding-bottom: 5px; padding-top: 6px; .quiztitle { float: left; margin-bottom: 10px; } .quiztitle, .questiontitle { display: inline-block; } .questiontitle { float: right; font-weight: 400; margin-right: 15px; max-width: 270px; text-align: right; .questionnum, .details { display: inline-block; } .questionnum { margin-bottom: 5px; } .details { font-size: 75%; font-style: italic; font-weight: 700; margin-bottom: 10px; margin-left: 15px; } } .dijitProgressBar { margin-right: 0 !important; .dijitProgressBarLabel { display: none; } } } } @media screen and (max-width: 991px) { #hc-title-container { h1.quiz-head { position: relative; .questiontitle { margin-top: 10px; } } } } @media screen and (max-width: 619px) { #hc-title-container { h1.quiz-head { .quiztitle { float: none; } .questiontitle { display: block; float: none; margin: 0 0 10px; opacity: 0.75; padding-left: 0; text-align: left; } } } } .hcquiz4, ui-container-layout.quiz-view { line-height: 1; overflow: visible; .dijitLayoutContainer { overflow: visible; position: static; } form { line-height: 1.33; overflow: visible; padding-left: 0; padding-top: 0.25em; position: relative; } .formFields { position: relative; } table { border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; td, th { border: 1px solid #eee; padding: 0.25em 5px; } th { font-size: 12px; font-weight: bold; } } .dgrid-header, .dgrid-row { table { margin-bottom: 0; } } .recommended-reading { background: $accent-grey; border-left: 3px solid $dark-grey; border-top-right-radius: 3px; border-bottom-right-radius: 3px; padding: 1em; color: $dark-grey; margin-bottom: 1em; h3 { margin-top: 0; text-transform: uppercase; } } } /* --------------------------------------------------------------- Progress bar */ #qf-question-progress { background: #fff; border: 1px solid $neutral-light; border-radius: 2px; clear: right; float: right; height: 10px; margin-right: 15px; right: 15px; width: 170px; #qf-progress-indicator { background: #337AB7; display: block; height: 10px; min-width: 1px; -webkit-transition: width 1s; -moz-transition: width 1s; transition: width 1s; } } @media screen and (max-width: $screen-sm-max) { #qf-question-progress { background: transparent; border: 0; bottom: -1px; height: 2px; left: -15px; margin-right: 0; position: absolute; right: 0; width: auto; #qf-progress-indicator { height: 2px; } } } /* --------------------------------------------------------------- Feedback indicators */ .flag { border-radius: 2px; color: #fff; display: inline-block; height: 16px; margin: 0 10px; padding: 1px 9px; position: relative; top: -2px; vertical-align: middle; white-space: nowrap; &:after { display: block; font-size: 8px; letter-spacing: 1px; line-height: 14px; text-transform: uppercase; text-align: center; width: 100%; } &.correct, .correct & { background-color: #44A928; &:after { content: $correct_en; } } &.incorrect, .incorrect &, .chosen-answer & { background-color: #C31400; &:after { content: $incorrect_en; } } &.chose-better, .chose-better & { background-color: desaturate(#44A928, 10%); &:after { content: $acceptable_en; } } &.chose-good, .chose-good & { background-color: desaturate(#44A928, 10%); &:after { content: $acceptable_en; } } &.chose-best, .chose-best & { background-color: #44A928; &:after { content: $preferred_en; } } &.correct-answer, .correct-answer & { background-color: #8D8D8D; &:after { content: $correct_missed_en; } } .correct-better & { background-color: #adadad; &:after { content: $acceptable_missed_en; } } .correct-good & { background-color: #adadad; &:after { content: $acceptable_missed_en; } } .correct-best & { background-color: #8D8D8D; &:after { content: $preferred_missed_en; } } } .lang-fr { .flag.correct, .correct .flag { &:after { content: $correct_fr; } } .flag.incorrect, .incorrect .flag, .chosen-answer .flag { &:after { content: $incorrect_fr; } } .flag.chose-better, .chose-better .flag { &:after { content: $acceptable_fr; } } .flag.chose-good, .chose-good .flag { &:after { content: $acceptable_fr; } } .flag.chose-best, .chose-best .flag { &:after { content: $preferred_fr; } } .flag.correct-answer, .correct-answer .flag { &:after { content: $correct_missed_fr; } } .correct-better .flag { &:after { content: $acceptable_missed_fr; } } .correct-good .flag { &:after { content: $acceptable_missed_fr; } } .correct-best .flag { &:after { content: $preferred_missed_fr; } } } .lang-es { .flag.correct, .correct .flag { &:after { content: $correct_es; } } .flag.incorrect, .incorrect .flag, .chosen-answer .flag { &:after { content: $incorrect_es; } } .flag.chose-better, .chose-better .flag { &:after { content: $acceptable_es; } } .flag.chose-good, .chose-good .flag { &:after { content: $acceptable_es; } } .flag.chose-best, .chose-best .flag { &:after { content: $preferred_es; } } .flag.correct-answer, .correct-answer .flag { &:after { content: $correct_missed_es; } } .correct-better .flag { &:after { content: $acceptable_missed_es; } } .correct-good .flag { &:after { content: $acceptable_missed_es; } } .correct-best .flag { &:after { content: $preferred_missed_es; } } } .mc-answer { background-color: transparent; background-position: 0 50%; background-repeat: no-repeat; hcimg: '/quiz/bullet.png'; &.correct { hcimg: '/quiz/mark_correct.png' } &.chose-better { hcimg: '/quiz/mark_correct.png' } &.chose-best { hcimg: '/quiz/mark_correct.png' } &.chose-good { hcimg: '/quiz/mark_correct.png' } &.no-answer { hcimg: '/quiz/mark_incorrect.png' } &.chosen-answer { hcimg: '/quiz/mark_incorrect.png' } div:first-child { display: inline-block; } .mc-answer-text { display: inline-block; margin-bottom: 5px; p { line-height: 1.2; } } } .question-block { .question { font-size: 16px; line-height: 1.3333; margin-bottom: 1em; p { margin: 1em 0; } table { .question table { border-collapse: collapse; border-spacing: 0; margin: 0 0 1em 0; td { padding: 0 0.25em 0.5em 0; } } } .dijitTextBox { /*margin-top: 1em;*/ } } .mc-answers { font-size: 14px; padding-bottom: 10px; .mc-answer { margin-bottom: 8px; padding-top: 2px; position: relative; &>div { margin-left: 26px; .mc-answer-text { display: inline-block; margin-bottom: 5px; } } p { line-height: 1.25; margin: 0; padding: 0; } .hint { color: #080; display: inline-block; font-size: 18px; left: -23px; opacity: 0.5; padding-right: 2px; position: absolute; top: 1px; } input[type="radio"] { float: left; line-height: 1; margin: 0; } } } } .progression-question { .mc-answer { background-image: none; } } .progression-restart { .formFields { padding-bottom: 20px; } } .progression-hint { .question-hintback { font-size: 16px; h2 { color: #888; font-size: 13px; font-weight: bold; margin-top: 0; text-transform: uppercase; } } } .progression-feedback { .question-feedback { font-size: 16px; h2 { color: #888; font-size: 13px; font-weight: bold; margin-top: 0; text-transform: uppercase; } p { font-size: 16px; margin: 1em 0; &.fmi { color: #333; font-size: 12px; margin-bottom: 0; padding-top: 0; } } } } .progression-report { .formFields { padding-bottom: 20px; } } #qf-progression { &.progression-restart { .formFields { overflow: visible; z-index: 3; } } } #quiz-report { height: 235px; /* overrides for no-audit attempts grid */ &.no-audit { #quiz-report-grid { .dgrid-row { color: #333 !important; cursor: default !important; text-shadow: none !important; &:hover { color: #000 !important; } &.dgrid-row-even { background: #fff !important; } &.dgrid-row-odd { background: #eee !important; } .dgrid-cell { background: transparent !important; color: inherit !important; cursor: default !important; text-shadow: none !important; } } } } /* standard attempts grid */ #quiz-report-grid { margin-left: 0; width: 100%; height: 200px; .field-timefinished { min-width: 150px; cursor: pointer; } .field-numberofquestions, .field-numbercorrect, .field-totalpercentcorrect { width: 110px; text-align: center; } } } span.reviewer-points { border: 5px solid #f4f4f4; border-radius: 50%; color: #bbb; display: inline-block; font-size: 15px; height: 45px; margin: 50px 0 0 10px; padding: 10px; text-align: center; width: 45px; } /* --------------------------------------------------------------- Responsive adjustments */ @media screen and (max-width: $screen-md-max) { } @media screen and (max-width: $screen-sm-max) { #content { input[type='radio'] { border: 1px solid #aaa; padding: 0.5em; font-size: 10px; line-height: 1em; width: 80%; background: #ccc; background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ddd)) !important; -webkit-appearance: none; -webkit-box-shadow: 1px 1px 1px #fff; -webkit-border-radius: 0.5em; display: inline-block; margin: 0 0.25em 0 0; padding: 0; width: 20px !important; height: 20px !important; -webkit-border-radius: 2em; vertical-align: text-top; position: relative; &:focus { outline: 0 !important; } &:checked { background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#f4f4f4)) !important; border: 1px solid #888; &:before { background: #888; border-radius: 4px; content: ''; display: inline-block; height: 8px; margin: 5px; width: 8px; } } } } } @media screen and (min-width: 620px) { .formFields { button + button { margin-left: 10px; } } } @media screen and (min-width: $screen-sm-min) and (max-width: 909px) { .hcquiz4, ui-container-layout.quiz-view { &.case-study { form { margin-left: 10px; } } #qf-progression { &.progression-restart, &.progression-begin { #quiz-content-region { font-size: 12px; } } } } } @media screen and (max-width: $screen-xs-max) { #qf-progression { .mc-answer { .hint { left: -19px; top: 6px; } } } } @media screen and (min-width: 620px) and (max-width: $screen-xs-max) { .hcquiz4, ui-container-layout.quiz-view { #qf-progression { &.progression-restart, &.progression-begin { #quiz-content-region { font-size: 14px; .question { font-size: 16px; } } } .question { font-size: 16px; } .mc-answer { /*overflow: hidden;*/ padding-top: 5px; &>div { margin-left: 30px; } .mc-answer-text { font-size: 18px; } } } } } @media screen and (max-width: 619px) { #qf-progression { .question { font-size: 18px !important; } .mc-answer { background-position: 10px 50% !important; /* overflow: hidden;*/ padding-top: 5px !important; &>div { margin-left: 30px !important; } .mc-answer-text { font-size: 16px; } } } #quiz-report-grid { .field-numberofquestions, .field-numbercorrect, .field-totalpercentcorrect { width: 20%; } } } @media screen and (min-width: 480px) and (max-width: 619px) { .hcquiz4, ui-container-layout.quiz-view { #qf-progression { /*width: 460px !important;*/ #quiz-content-region { font-size: 14px; } } } } @media screen and (max-width: 479px) { .hcquiz4, ui-container-layout.quiz-view { #qf-progression { width: auto !important; #quiz-content-region { font-size: 14px; } .question { font-size: 18px !important; } .mc-answer-text { font-size: 14px; } } } }