@caspingus/lt
Version:
A utility library of helpers and extensions useful when working with Learnosity APIs.
23 lines (22 loc) • 8.57 kB
JavaScript
import { r as e } from "../../../extensionsFactory-hk5ijx1G.js";
//#region src/assessment/extensions/ui/themes/juniorQuest/styles/index.css?inline
var t = "@import \"https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap\";:root{--lt__theme-background:#e6f2ff;--lt__theme-background-toc:#f6c70a;--lt__theme-baseFontSize:30px;--lt__theme-btn-primary-background:#2b63c7;--lt__theme-btn-primary-color:#fff;--lt__theme-color-primary:#333;--lt__theme-color-titles:#2b63c7;--lt__theme-font-family:\"LearnosityMath\", \"Comic Neue\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;--lt__theme-headingFontSize:1.8em;--lt__theme-subheadingFontSize:1.4em;--lt__theme-smallFontSize:.8em;--page__background-color:#e6f2ff}body{background-color:var(--page__background-color)}.lt__theme{width:100%;margin-left:auto;margin-right:auto}@media (width<1280px){.lt__theme{max-width:100%}}@media (width>=1280px){.lt__theme{max-width:1280px}}@media (width>=1536px){.lt__theme{max-width:1536px}}.lrn:not(.lrn_absolute_keyboard_parent),.lt__theme-juniorQuest{& .lrn.lrn-assess.lrn-md,& .lrn.lrn-assess,& .lrn{font-family:var(--lt__theme-font-family);font-style:normal;font-weight:400;font-size:var(--lt__theme-baseFontSize);color:var(--lt__theme-color-primary);background-color:var(--lt__theme-background);padding:.5em;& .lrn-region .top-right-wrapper{font-size:var(--lt__theme-smallFontSize);& .lrn_btn{vertical-align:bottom}}& .test-title-text{font-size:var(--lt__theme-headingFontSize);color:var(--lt__theme-color-titles);font-weight:700}& .subtitle{font-size:var(--lt__theme-subheadingFontSize);color:var(--lt__theme-color-titles);font-weight:700}& .items .progress span{background:var(--lt__theme-color-titles)}& .learnosity-item{container:learnosity-item/inline-size}& .toc{font-size:var(--lt__theme-smallFontSize)}& .lrn-vertical-toc .slides-vertical-pagination li{margin:7px 0}& .toc .lrn-pager li.pagination-active a{background:var(--lt__theme-background-toc)}& .lrn-vertical-toc .pagination-active:before,& .lrn-vertical-toc .pagination-active a:before{background-color:var(--lt__theme-background-toc)}& .lrn-vertical-toc .pagination-active:after,& .lrn-vertical-toc .pagination-active a:after{border-color:transparent transparent transparent var(--lt__theme-background-toc)}& .lrn-vertical-toc .pagination-item a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--lt__theme-background-toc);box-shadow:inset 0 0 0 2px var(--lt__theme-background-toc)}& .lrn-vertical-toc .slides-vertical-pagination li:first-child{margin:0}& .has-vertical-toc-region .lrn-right-region{width:150px}& .lrn-vertical-toc .pagination-item.pagination-item[data-attempted=partially_attempted]:not(.pagination-active) a,& .lrn-vertical-toc .pagination-item.pagination-item[data-attempted=fully_attempted]:not(.pagination-active) a{background-color:#f7f7f7}& .lrn-vertical-toc .pagination-item.pagination-item[data-attempted=partially_attempted]:not(.pagination-active):before,& .lrn-vertical-toc .pagination-item.pagination-item[data-attempted=fully_attempted]:not(.pagination-active):before{height:47px}& .lrn-bottom-right-region.lrn-align-top{margin-top:0}& .lrn-right-region .right-wrapper:not(.menu-with-scroll){background-color:#eaeaea;height:auto}& .lrn-vertical-toc .lrn-pager .slides-vertical-pagination{padding-bottom:1px}& .lrn-vertical-toc .slides-vertical-pagination{height:auto}& .lrn-region:not(.lrn-items-region) .menu-buttons .lrn_btn{font-size:.55em}& .lrn-horizontal-toc .pagination,& .lrn.lrn-assess .lrn-horizontal-toc .lrn-assess-pagination{font-size:1.03em}& .lrn_widget.lrn_mcq .lrn_mcqgroup{overflow-x:visible}& :is(input[type=radio]){transform:scale(1.5)}& .lrn_response_wrapper,& .lrn_texteditor,& .lrn_toolbar,& .lrn-toolbar,& .lrn-toolbar-footer{font-size:var(--lt__theme-smallFontSize)}& .lrn_widget .lrn_texteditor_editable{padding:.5em}& .lrn .col-xs-12{margin:0 auto;position:relative;left:25%}@media (width<900px){& .lrn .col-xs-12{width:100%;left:0}}@media (width<700px){& .lrn{font-size:var(--lt__theme-smallFontSize)}}@media (width>900px){& .lrn .col-xs-12{width:80%;margin:0 auto}}@media (width>1000px){& .lrn .col-xs-12{width:70%}}@media (width>1200px){& .lrn .col-xs-12{width:60%;margin:0 auto;position:relative;left:25%}}}& .lrn h1,& .lrn h2,& .lrn h3,& .lrn h4,& .lrn h5,& .lrn h6,& .lrn .h1,& .lrn .h2,& .lrn .h3,& .lrn .h4,& .lrn .h5,& .lrn .h6{font-family:var(--lt__theme-font-family)}& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn_blue,& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn:disabled:not(.lrn_btn_blue),& .lrn.lrn-assess .dialogs .lrn_btn_blue{background-color:var(--lt__theme-btn-primary-background);color:#fff;font-size:var(--lt__theme-smallFontSize);font-weight:700}& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn_blue:hover:not(:disabled),& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn:hover:not(:disabled),& .lrn.lrn-assess .dialogs .lrn_btn_blue:hover:not(:disabled),& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn_blue:active,& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn_blue:focus,& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn_blue:disabled{color:#fff;background-color:#5384da}& .lrn.lrn-assess .dialogs .modal-content .lrn_btn{font-size:var(--lt__theme-smallFontSize);line-height:1.5em}& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn.item-prev:focus{background-color:#5384da}& .lrn.lrn-assess .app-layout .lrn_btn.item-prev:focus:after{opacity:1}& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn{font-size:var(--lt__theme-smallFontSize)}& .lrn.lrn-assess .lrn-region:not(.lrn-items-region) .lrn_btn.item-prev,& .lrn.lrn-assess .dialogs .lrn_btn.item-prev{background-color:var(--lt__theme-btn-primary-background);color:#fff;font-size:var(--lt__theme-smallFontSize);border:1px solid #d9d9d9;font-weight:700}}:root{--lt__theme-main-focus-border:#1877b1}.lt__theme{& .lrn{& .inline-item{& .lrn-assess-content{& .lrn_cloze_response:focus,& .lrn-gridded-input:focus,& .lrn_widget.lrn_shorttext .lrn_textinput input:focus{box-shadow:0 0 0 2px var(--lt__theme-main-focus-border)}}& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:before,& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:after{top:-.235em}& .lrn_btn.lrn_validate{float:none}& .lrn_widget.lrn_association .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_association .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_sortlist .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_sortlist .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_orderlist .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_orderlist .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_classification .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_classification .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_clozeassociation .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_clozeassociation .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_imageclozeassociationV2 .lrn_possibilityList .lrn_btn_drag .lrn_icon:before,& .lrn_widget.lrn_imageclozeassociationV2 .lrn_possibilityListContainer .lrn_btn_drag .lrn_icon:before{top:.06em}}& .lrn-assess-item{& .lrn-assess-content{& .lrn_cloze_response:focus,& .lrn-gridded-input:focus,& .lrn_widget.lrn_shorttext .lrn_textinput input:focus,& .lrn_widget .lrn_texteditor_editable:focus{box-shadow:0 0 0 2px var(--lt__theme-main-focus-border);position:relative}}}}@media (width<700px){& .lrn{& .inline-item{& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:before,& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:after{top:-.2em}}}}@media (width<550px){& .lrn{& .inline-item{& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:before,& .lrn_qr.lrn_association .lrn_response .lrn_arrows .lrn_arrow:after{top:-.15em}}}}}", n = {
elements: {},
theme: "juniorQuest"
};
function r() {
a(), i();
}
function i() {
let e = n.elements.apiWrapper, t = document.createElement("main");
t.className = `lt__theme lt__theme-${n.theme}`, e.parentNode.insertBefore(t, e), t.appendChild(e);
}
function a() {
n.elements.apiWrapper = document.querySelector(".lrn-assess");
}
function o() {
return t;
}
var s = e("juniorQuest", r, { getStyles: o });
//#endregion
export { s as juniorQuest };