@citolab/qti-components 6.9.1-beta.72 → 6.9.1-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +92 -92
- package/dist/index.global.js +1 -1
- package/dist/index.js +2 -2
- package/dist/index.min.js +1 -1
- package/dist/item.css +50 -53
- package/dist/qti-components/index.cjs +2 -2
- package/dist/qti-components/index.js +2 -2
- package/dist/qti-components-jsx.d.ts +17 -17
- package/dist/vscode.html-custom-data.json +17 -17
- package/package.json +2 -1
package/dist/index.min.js
CHANGED
|
@@ -23,7 +23,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
23
23
|
<xsl:apply-templates/>
|
|
24
24
|
</xsl:element>
|
|
25
25
|
</xsl:template>
|
|
26
|
-
</xsl:stylesheet>`;function mi(s,t,e){s.querySelectorAll(t).forEach(r=>{let i=`${t}-${e}`,o=gi(r,i);r.replaceWith(o)})}function fi(s,t){s.querySelectorAll("*").forEach(e=>{let r=e.classList;r&&r.forEach(i=>{if(i.startsWith(`${t}:`)){let o=i.slice(`${t}:`.length),n=`${e.nodeName}-${o}`,a=gi(e,n);e.replaceWith(a)}})})}function gi(s,t){let e=document.createElement(t);for(let r of s.attributes)e.setAttribute(r.name,r.value);for(;s.firstChild;)e.appendChild(s.firstChild);return e}function bi(s){let t=[];return s.querySelectorAll("qti-assessment-item-ref").forEach(e=>{let r=e.getAttribute("identifier"),i=e.getAttribute("href"),o=e.getAttribute("category");t.push({identifier:r,href:i,category:o})}),t}var lr=null;function qe(s,t=!1){return t&&lr!==null&&lr.abort(),new Promise((e,r)=>{let i=new XMLHttpRequest;lr=i,i.open("GET",s,!0),i.responseType="document",i.onload=()=>{i.status>=200&&i.status<300?e(i.responseXML):r(i.statusText)},i.onerror=()=>{r(i.statusText)},i.send()})}function Ae(s){return new DOMParser().parseFromString(s,"text/xml")}function Te(s){let t=new XSLTProcessor,e=new DOMParser().parseFromString(hs,"text/xml");return t.importStylesheet(e),t.transformToFragment(s,document)}function vi(s,t){t.endsWith("/")||(t+="/"),s.querySelectorAll("[src],[href],[primary-path]").forEach(e=>{var o;let r="";e.getAttribute("src")&&(r="src"),e.getAttribute("href")&&(r="href"),e.getAttribute("primary-path")&&(r="primary-path");let i=(o=e.getAttribute(r))==null?void 0:o.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){let n=t+encodeURI(i);e.setAttribute(r,n)}})}function yi(s){s.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(e=>{let r=document.createComment(e.textContent);e.replaceChild(r,e.firstChild)})}function xi(s){s.querySelectorAll("qti-stylesheet").forEach(t=>t.remove())}var St=()=>{let s,t={async load(e,r=!1){return new Promise((i,o)=>{qe(e,r).then(n=>(s=n,t.path(e.substring(0,e.lastIndexOf("/"))),i(t)))})},parse(e){return s=Ae(e),t},path:e=>(vi(s,e),t),fn(e){return e(s),t},pciHooks(e){let r=["hook","module"],i=e.substring(0,e.lastIndexOf("/"));for(let o of r)s.querySelectorAll("["+o+"]").forEach(a=>{let c=a.getAttribute(o);!c.startsWith("data:")&&!c.startsWith("http")&&(a.setAttribute("base-url",e),a.setAttribute("module",i+"/"+encodeURI(c+(c.endsWith(".js")?"":".js"))))});return t},extendElementName:(e,r)=>(mi(s,e,r),t),extendElementsWithClass:(e="extend")=>(fi(s,e),t),customInteraction(e,r){let i=s.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",e),i.setAttribute("data-base-item",e+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),t},convertCDATAtoComment(){return yi(s),t},stripStyleSheets(){return xi(s),t},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Ei=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){s=Ae(e)},assessmentTest(){let e=s.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return t};var cr=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){return s=Ae(e),t},fn(e){return e(s),t},items(){return bi(s)},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Se=class extends v{constructor(){super(...arguments);this.identifier="";this.href=""}async connectedCallback(){super.connectedCallback();let e=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(this.dispatchEvent(e)){let o=this.closest("qti-assessment-item").querySelector(`[data-stimulus-idref=${this.identifier}]`);o?await this.updateStimulusRef(o):console.warn(`Stimulus with data-stimulus-idref ${this.identifier} not found`)}}async updateStimulusRef(e){let r=this.href.substring(0,this.href.lastIndexOf("/")),i=await St().load(this.href).then(o=>o.
|
|
26
|
+
</xsl:stylesheet>`;function mi(s,t,e){s.querySelectorAll(t).forEach(r=>{let i=`${t}-${e}`,o=gi(r,i);r.replaceWith(o)})}function fi(s,t){s.querySelectorAll("*").forEach(e=>{let r=e.classList;r&&r.forEach(i=>{if(i.startsWith(`${t}:`)){let o=i.slice(`${t}:`.length),n=`${e.nodeName}-${o}`,a=gi(e,n);e.replaceWith(a)}})})}function gi(s,t){let e=document.createElement(t);for(let r of s.attributes)e.setAttribute(r.name,r.value);for(;s.firstChild;)e.appendChild(s.firstChild);return e}function bi(s){let t=[];return s.querySelectorAll("qti-assessment-item-ref").forEach(e=>{let r=e.getAttribute("identifier"),i=e.getAttribute("href"),o=e.getAttribute("category");t.push({identifier:r,href:i,category:o})}),t}var lr=null;function qe(s,t=!1){return t&&lr!==null&&lr.abort(),new Promise((e,r)=>{let i=new XMLHttpRequest;lr=i,i.open("GET",s,!0),i.responseType="document",i.onload=()=>{i.status>=200&&i.status<300?e(i.responseXML):r(i.statusText)},i.onerror=()=>{r(i.statusText)},i.send()})}function Ae(s){return new DOMParser().parseFromString(s,"text/xml")}function Te(s){let t=new XSLTProcessor,e=new DOMParser().parseFromString(hs,"text/xml");return t.importStylesheet(e),t.transformToFragment(s,document)}function vi(s,t){t.endsWith("/")||(t+="/"),s.querySelectorAll("[src],[href],[primary-path]").forEach(e=>{var o;let r="";e.getAttribute("src")&&(r="src"),e.getAttribute("href")&&(r="href"),e.getAttribute("primary-path")&&(r="primary-path");let i=(o=e.getAttribute(r))==null?void 0:o.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){let n=t+encodeURI(i);e.setAttribute(r,n)}})}function yi(s){s.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(e=>{let r=document.createComment(e.textContent);e.replaceChild(r,e.firstChild)})}function xi(s){s.querySelectorAll("qti-stylesheet").forEach(t=>t.remove())}var St=()=>{let s,t={async load(e,r=!1){return new Promise((i,o)=>{qe(e,r).then(n=>(s=n,t.path(e.substring(0,e.lastIndexOf("/"))),i(t)))})},parse(e){return s=Ae(e),t},path:e=>(vi(s,e),t),fn(e){return e(s),t},pciHooks(e){let r=["hook","module"],i=e.substring(0,e.lastIndexOf("/"));for(let o of r)s.querySelectorAll("["+o+"]").forEach(a=>{let c=a.getAttribute(o);!c.startsWith("data:")&&!c.startsWith("http")&&(a.setAttribute("base-url",e),a.setAttribute("module",i+"/"+encodeURI(c+(c.endsWith(".js")?"":".js"))))});return t},extendElementName:(e,r)=>(mi(s,e,r),t),extendElementsWithClass:(e="extend")=>(fi(s,e),t),customInteraction(e,r){let i=s.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",e),i.setAttribute("data-base-item",e+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),t},convertCDATAtoComment(){return yi(s),t},stripStyleSheets(){return xi(s),t},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Ei=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){s=Ae(e)},assessmentTest(){let e=s.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return t};var cr=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){return s=Ae(e),t},fn(e){return e(s),t},items(){return bi(s)},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Se=class extends v{constructor(){super(...arguments);this.identifier="";this.href=""}async connectedCallback(){super.connectedCallback();let e=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(this.dispatchEvent(e)){let o=this.closest("qti-assessment-item").querySelector(`[data-stimulus-idref=${this.identifier}]`);o?await this.updateStimulusRef(o):console.warn(`Stimulus with data-stimulus-idref ${this.identifier} not found`)}}async updateStimulusRef(e){let r=this.href.substring(0,this.href.lastIndexOf("/")),i=await St().load(this.href).then(o=>o.htmlDoc());if(i){let o=i.querySelectorAll("qti-stimulus-body, qti-stylesheet");e.innerHTML="",e.append(...o)}}};l([d({type:String})],Se.prototype,"identifier",2),l([d({type:String})],Se.prototype,"href",2),Se=l([h("qti-assessment-stimulus-ref")],Se);var Ci={toAttribute:s=>s?"true":"false",fromAttribute:s=>s==="true"};function O(s,t){class e extends s{constructor(...o){super(...o);this.identifier="";this.tabIndex=0;this.disabled=!1;this.readonly=!1;this.internals=this.attachInternals()}handleDisabledChange(o,n){this.tabIndex=n?-1:0,n&&this.blur()}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`register-${t}`,{bubbles:!0,composed:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`unregister-${t}`,{bubbles:!0,composed:!0}))}_onKeyUp(o){o.altKey||o.code==="Space"&&(o.preventDefault(),this._activate())}_onClick(){this.disabled||this.readonly||(this.focus(),this._activate())}_activate(){this.disabled||this.readonly||this.dispatchEvent(new CustomEvent(`activate-${t}`,{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}render(){return u`<slot></slot>`}}return l([d({type:String})],e.prototype,"identifier",2),l([d({type:Number,reflect:!0,attribute:"tabindex"})],e.prototype,"tabIndex",2),l([d({type:Boolean,reflect:!0,attribute:"aria-disabled",converter:Ci})],e.prototype,"disabled",2),l([d({type:Boolean,reflect:!0,attribute:"aria-readonly",converter:Ci})],e.prototype,"readonly",2),l([M("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e}var _i=g`
|
|
27
27
|
:host {
|
|
28
28
|
display: block;
|
|
29
29
|
}
|
package/dist/item.css
CHANGED
|
@@ -304,6 +304,14 @@
|
|
|
304
304
|
background-color: var(--qti-bg-active);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
.act-bg {
|
|
308
|
+
background-color: var(--qti-bg-active);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.act-bor {
|
|
312
|
+
border-color: var(--qti-border-active);
|
|
313
|
+
}
|
|
314
|
+
|
|
307
315
|
/* Apply .rdo for readonly state */
|
|
308
316
|
|
|
309
317
|
.rdo {
|
|
@@ -1075,11 +1083,11 @@
|
|
|
1075
1083
|
}
|
|
1076
1084
|
|
|
1077
1085
|
.qti-height-1-3 {
|
|
1078
|
-
height: 33.
|
|
1086
|
+
height: 33.3333%;
|
|
1079
1087
|
}
|
|
1080
1088
|
|
|
1081
1089
|
.qti-height-2-3 {
|
|
1082
|
-
height: 66.
|
|
1090
|
+
height: 66.6667%;
|
|
1083
1091
|
}
|
|
1084
1092
|
|
|
1085
1093
|
.qti-height-1-4 {
|
|
@@ -1111,11 +1119,11 @@
|
|
|
1111
1119
|
}
|
|
1112
1120
|
|
|
1113
1121
|
.qti-height-1-6 {
|
|
1114
|
-
height: 16.
|
|
1122
|
+
height: 16.6667%;
|
|
1115
1123
|
}
|
|
1116
1124
|
|
|
1117
1125
|
.qti-height-2-6 {
|
|
1118
|
-
height: 33.
|
|
1126
|
+
height: 33.3333%;
|
|
1119
1127
|
}
|
|
1120
1128
|
|
|
1121
1129
|
.qti-height-3-6 {
|
|
@@ -1123,11 +1131,11 @@
|
|
|
1123
1131
|
}
|
|
1124
1132
|
|
|
1125
1133
|
.qti-height-4-6 {
|
|
1126
|
-
height: 66.
|
|
1134
|
+
height: 66.6667%;
|
|
1127
1135
|
}
|
|
1128
1136
|
|
|
1129
1137
|
.qti-height-5-6 {
|
|
1130
|
-
height: 83.
|
|
1138
|
+
height: 83.3333%;
|
|
1131
1139
|
}
|
|
1132
1140
|
|
|
1133
1141
|
.qti-height-auto {
|
|
@@ -1291,11 +1299,11 @@
|
|
|
1291
1299
|
}
|
|
1292
1300
|
|
|
1293
1301
|
.qti-width-1-3 {
|
|
1294
|
-
width: 33.
|
|
1302
|
+
width: 33.3333%;
|
|
1295
1303
|
}
|
|
1296
1304
|
|
|
1297
1305
|
.qti-width-2-3 {
|
|
1298
|
-
width: 66.
|
|
1306
|
+
width: 66.6667%;
|
|
1299
1307
|
}
|
|
1300
1308
|
|
|
1301
1309
|
.qti-width-1-4 {
|
|
@@ -1327,11 +1335,11 @@
|
|
|
1327
1335
|
}
|
|
1328
1336
|
|
|
1329
1337
|
.qti-width-1-6 {
|
|
1330
|
-
width: 16.
|
|
1338
|
+
width: 16.6667%;
|
|
1331
1339
|
}
|
|
1332
1340
|
|
|
1333
1341
|
.qti-width-2-6 {
|
|
1334
|
-
width: 33.
|
|
1342
|
+
width: 33.3333%;
|
|
1335
1343
|
}
|
|
1336
1344
|
|
|
1337
1345
|
.qti-width-3-6 {
|
|
@@ -1339,19 +1347,19 @@
|
|
|
1339
1347
|
}
|
|
1340
1348
|
|
|
1341
1349
|
.qti-width-4-6 {
|
|
1342
|
-
width: 66.
|
|
1350
|
+
width: 66.6667%;
|
|
1343
1351
|
}
|
|
1344
1352
|
|
|
1345
1353
|
.qti-width-5-6 {
|
|
1346
|
-
width: 83.
|
|
1354
|
+
width: 83.3333%;
|
|
1347
1355
|
}
|
|
1348
1356
|
|
|
1349
1357
|
.qti-width-1-12 {
|
|
1350
|
-
width: 8.
|
|
1358
|
+
width: 8.3333%;
|
|
1351
1359
|
}
|
|
1352
1360
|
|
|
1353
1361
|
.qti-width-2-12 {
|
|
1354
|
-
width: 16.
|
|
1362
|
+
width: 16.6667%;
|
|
1355
1363
|
}
|
|
1356
1364
|
|
|
1357
1365
|
.qti-width-3-12 {
|
|
@@ -1359,11 +1367,11 @@
|
|
|
1359
1367
|
}
|
|
1360
1368
|
|
|
1361
1369
|
.qti-width-4-12 {
|
|
1362
|
-
width: 33.
|
|
1370
|
+
width: 33.3333%;
|
|
1363
1371
|
}
|
|
1364
1372
|
|
|
1365
1373
|
.qti-width-5-12 {
|
|
1366
|
-
width: 41.
|
|
1374
|
+
width: 41.6667%;
|
|
1367
1375
|
}
|
|
1368
1376
|
|
|
1369
1377
|
.qti-width-6-12 {
|
|
@@ -1371,11 +1379,11 @@
|
|
|
1371
1379
|
}
|
|
1372
1380
|
|
|
1373
1381
|
.qti-width-7-12 {
|
|
1374
|
-
width: 58.
|
|
1382
|
+
width: 58.3333%;
|
|
1375
1383
|
}
|
|
1376
1384
|
|
|
1377
1385
|
.qti-width-8-12 {
|
|
1378
|
-
width: 66.
|
|
1386
|
+
width: 66.6667%;
|
|
1379
1387
|
}
|
|
1380
1388
|
|
|
1381
1389
|
.qti-width-9-12 {
|
|
@@ -1383,11 +1391,11 @@
|
|
|
1383
1391
|
}
|
|
1384
1392
|
|
|
1385
1393
|
.qti-width-10-12 {
|
|
1386
|
-
width: 83.
|
|
1394
|
+
width: 83.3333%;
|
|
1387
1395
|
}
|
|
1388
1396
|
|
|
1389
1397
|
.qti-width-11-12 {
|
|
1390
|
-
width: 91.
|
|
1398
|
+
width: 91.6667%;
|
|
1391
1399
|
}
|
|
1392
1400
|
|
|
1393
1401
|
.qti-width-full,
|
|
@@ -2094,14 +2102,6 @@ qti-response-declaration {
|
|
|
2094
2102
|
}
|
|
2095
2103
|
|
|
2096
2104
|
qti-text-entry-interaction {
|
|
2097
|
-
&:hover {
|
|
2098
|
-
background-color: var(--qti-hover-bg);
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
&:focus-within {
|
|
2102
|
-
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
2105
|
&::part(input) {
|
|
2106
2106
|
border-radius: 0;
|
|
2107
2107
|
cursor: text;
|
|
@@ -2110,6 +2110,17 @@ qti-response-declaration {
|
|
|
2110
2110
|
border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
|
|
2111
2111
|
outline: none;
|
|
2112
2112
|
}
|
|
2113
|
+
|
|
2114
|
+
&:hover {
|
|
2115
|
+
background-color: var(--qti-hover-bg);
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
&:focus-within {
|
|
2119
|
+
&::part(input) {
|
|
2120
|
+
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
2121
|
+
border-color: var(--qti-border-active);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2113
2124
|
}
|
|
2114
2125
|
|
|
2115
2126
|
qti-extended-text-interaction {
|
|
@@ -2129,6 +2140,7 @@ qti-response-declaration {
|
|
|
2129
2140
|
&:focus-within {
|
|
2130
2141
|
&::part(textarea) {
|
|
2131
2142
|
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
2143
|
+
border-color: var(--qti-border-active);
|
|
2132
2144
|
}
|
|
2133
2145
|
}
|
|
2134
2146
|
}
|
|
@@ -2252,7 +2264,6 @@ qti-response-declaration {
|
|
|
2252
2264
|
&:state(--checked),
|
|
2253
2265
|
&[aria-checked='true'] {
|
|
2254
2266
|
border-color: var(--qti-border-active);
|
|
2255
|
-
background-color: var(--qti-bg-active);
|
|
2256
2267
|
}
|
|
2257
2268
|
|
|
2258
2269
|
&:state(--readonly),
|
|
@@ -2287,9 +2298,9 @@ qti-response-declaration {
|
|
|
2287
2298
|
|
|
2288
2299
|
&[shape='rect'] {
|
|
2289
2300
|
|
|
2290
|
-
&:hover {
|
|
2291
|
-
|
|
2292
|
-
}
|
|
2301
|
+
/* &:hover {
|
|
2302
|
+
@apply hov;
|
|
2303
|
+
} */
|
|
2293
2304
|
|
|
2294
2305
|
&:focus {
|
|
2295
2306
|
box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
|
|
@@ -2298,7 +2309,6 @@ qti-response-declaration {
|
|
|
2298
2309
|
&:state(--checked),
|
|
2299
2310
|
&[aria-checked='true'] {
|
|
2300
2311
|
border-color: var(--qti-border-active);
|
|
2301
|
-
background-color: var(--qti-bg-active);
|
|
2302
2312
|
}
|
|
2303
2313
|
|
|
2304
2314
|
&[aria-readonly='true'] {
|
|
@@ -2331,25 +2341,21 @@ qti-response-declaration {
|
|
|
2331
2341
|
|
|
2332
2342
|
&[shape='poly'] {
|
|
2333
2343
|
&:hover::after {
|
|
2334
|
-
|
|
2335
2344
|
content: '';
|
|
2336
2345
|
width: 100%;
|
|
2337
2346
|
height: 100%;
|
|
2338
2347
|
background: repeating-linear-gradient(
|
|
2339
2348
|
45deg,
|
|
2340
|
-
var(--qti-
|
|
2341
|
-
var(--qti-
|
|
2349
|
+
var(--qti-border-active),
|
|
2350
|
+
var(--qti-border-active) 5px,
|
|
2342
2351
|
transparent 5px,
|
|
2343
2352
|
transparent 10px
|
|
2344
2353
|
);
|
|
2345
2354
|
display: block;
|
|
2346
|
-
border-color: var(--qti-border-active);
|
|
2347
|
-
background-color: var(--qti-bg-active);
|
|
2348
2355
|
}
|
|
2349
2356
|
|
|
2350
2357
|
&:state(--checked)::after,
|
|
2351
2358
|
&[aria-checked='true']::after {
|
|
2352
|
-
|
|
2353
2359
|
content: '';
|
|
2354
2360
|
width: 100%;
|
|
2355
2361
|
height: 100%;
|
|
@@ -2357,18 +2363,10 @@ qti-response-declaration {
|
|
|
2357
2363
|
45deg,
|
|
2358
2364
|
transparent,
|
|
2359
2365
|
transparent 5px,
|
|
2360
|
-
var(--qti-
|
|
2361
|
-
var(--qti-
|
|
2366
|
+
var(--qti-border-active) 5px,
|
|
2367
|
+
var(--qti-border-active) 10px
|
|
2362
2368
|
);
|
|
2363
2369
|
display: block;
|
|
2364
|
-
border-color: var(--qti-border-active);
|
|
2365
|
-
background-color: var(--qti-bg-active);
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
&:state(--checked),
|
|
2369
|
-
&[aria-checked='true'] {
|
|
2370
|
-
border-color: var(--qti-border-active);
|
|
2371
|
-
background-color: var(--qti-bg-active);
|
|
2372
2370
|
}
|
|
2373
2371
|
|
|
2374
2372
|
&[aria-readonly='true'] {
|
|
@@ -3111,7 +3109,7 @@ qti-response-declaration {
|
|
|
3111
3109
|
qti-graphic-gap-match-interaction {
|
|
3112
3110
|
position: relative;
|
|
3113
3111
|
|
|
3114
|
-
&
|
|
3112
|
+
&img {
|
|
3115
3113
|
margin: 0;
|
|
3116
3114
|
padding: 0;
|
|
3117
3115
|
}
|
|
@@ -3146,9 +3144,8 @@ qti-response-declaration {
|
|
|
3146
3144
|
margin-right: 0.125rem;
|
|
3147
3145
|
margin-bottom: 0.25rem; /* mb-1 */
|
|
3148
3146
|
height: 0.5rem; /* h-2 */
|
|
3149
|
-
background
|
|
3150
|
-
|
|
3151
|
-
background-size: calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;
|
|
3147
|
+
background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x 0
|
|
3148
|
+
center / calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;
|
|
3152
3149
|
}
|
|
3153
3150
|
|
|
3154
3151
|
&::part(rail) {
|