@citolab/qti-components 6.5.0 → 6.5.1
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 +119 -121
- package/dist/index.cjs +145 -146
- package/dist/index.d.cts +141 -142
- package/dist/index.d.ts +141 -142
- package/dist/index.js +145 -146
- package/dist/qti-components/index.cjs +99 -89
- package/dist/qti-components/index.d.cts +141 -142
- package/dist/qti-components/index.d.ts +141 -142
- package/dist/qti-components/index.js +122 -112
- package/dist/qti-transformers/index.cjs +1 -1
- package/dist/qti-transformers/index.js +1 -1
- package/dist/styles.bundled.css +422 -50
- package/dist/styles.css +7 -50
- package/package.json +6 -9
- package/src/styles/qti-interactions.css +6 -6
|
@@ -236,10 +236,10 @@ qti-graphic-gap-match-interaction {
|
|
|
236
236
|
qti-slider-interaction {
|
|
237
237
|
@apply block; /* else no screenshot will be made with html-to-image */
|
|
238
238
|
|
|
239
|
-
@apply hover:hov focus:foc aria-checked:act aria-readonly:rdo aria-disabled:dis;
|
|
239
|
+
/* @apply hover:hov focus:foc aria-checked:act aria-readonly:rdo aria-disabled:dis; */
|
|
240
240
|
|
|
241
241
|
--qti-tick-color: rgb(229 231 235 / 1);
|
|
242
|
-
--qti-tick-width:
|
|
242
|
+
--qti-tick-width: 1px;
|
|
243
243
|
|
|
244
244
|
&::part(slider) {
|
|
245
245
|
@apply mx-8; /* so the slider stays INSIDE of the qti-slider-interaction */
|
|
@@ -264,19 +264,19 @@ qti-slider-interaction {
|
|
|
264
264
|
@apply flex items-center; /* so the knob is neatly centered vertically */
|
|
265
265
|
/* DESIGN */
|
|
266
266
|
@apply box-border; /* if you have a border in the design apply, this box-border will make the border stay INSIDE the rail */
|
|
267
|
-
@apply h-
|
|
267
|
+
@apply h-1.5 w-full cursor-pointer rounded-full border border-solid border-gray-300 bg-gray-200;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
&::part(knob) {
|
|
271
|
-
@apply relative h-
|
|
271
|
+
@apply relative h-4 w-4 origin-center -translate-x-1/2 cursor-pointer rounded-full bg-primary-500;
|
|
272
272
|
left: var(--value-percentage);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
--show-value: true;
|
|
276
276
|
&::part(value) {
|
|
277
277
|
@apply absolute bottom-8; /* align the value, which you can drag, on top of the knob, so it aligns with the rest of the values */
|
|
278
|
-
@apply left-
|
|
279
|
-
@apply -translate-x-1/2 cursor-pointer rounded bg-
|
|
278
|
+
@apply left-2; /* should be half width of the knob if you want to center these two */
|
|
279
|
+
@apply -translate-x-1/2 cursor-pointer rounded bg-gray-100 px-2 py-1 text-center text-gray-500;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|